/* Law Offices of Joshwa Wang */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #292725;
    background: #f8f7f4;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin-bottom: 1.2rem;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.15;
}

.container {
    width: min(1160px, 90%);
    margin: 0 auto;
}

.narrow {
    max-width: 800px;
}

.section {
    padding: 110px 0;
}

.section-light {
    background: #eeece7;
}

.site-header {
    background: #f8f7f4;
    border-bottom: 1px solid #dedbd4;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    min-height: 95px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 10px;
    letter-spacing: 3px;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    opacity: 0.55;
}

.nav-button {
    background: #272622;
    color: white;
    padding: 14px 20px;
}

.menu-toggle {
    display: none;
    border: 1px solid #dedbd4;
    background: none;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 14px;
    cursor: pointer;
}

.hero {
    min-height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(24, 23, 21, 0.88), rgba(24, 23, 21, 0.42)),
        url("../images/attorney.jpg");
    background-color: #1c1b19;
    background-size: cover;
    background-position: center;
}

.hero-content {
    color: white;
    position: relative;
    z-index: 2;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 88px);
    max-width: 850px;
    margin-bottom: 30px;
}

.hero-description {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.button {
    display: inline-block;
    padding: 16px 28px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.button-light {
    background: white;
    color: #252421;
}

.button-dark {
    background: #272622;
    color: white;
}

.button-outline {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: white;
}

.center-button {
    text-align: center;
    margin-top: 60px;
}

.intro {
    text-align: center;
}

.intro h2,
.consultation h2 {
    font-size: clamp(36px, 5vw, 62px);
    margin-bottom: 30px;
}

.intro p:not(.eyebrow) {
    font-size: 18px;
    color: #68645e;
}

.section-dark {
    background: #292824;
    color: white;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: clamp(40px, 5vw, 65px);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #5b5952;
}

.practice-card {
    background: #292824;
    padding: 45px 35px;
    min-height: 280px;
}

.practice-card span {
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.6;
}

.practice-card h3 {
    font-size: 30px;
    margin: 45px 0 20px;
}

.practice-card p {
    color: #cbc8c1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.portrait-placeholder,
.portrait-large {
    min-height: 600px;
    background: linear-gradient(135deg, #d6d1c8, #a9a49a);
    display: flex;
    align-items: flex-end;
    padding: 35px;
}

.portrait-placeholder div {
    display: flex;
    flex-direction: column;
}

.portrait-placeholder span,
.portrait-large span {
    font-size: 12px;
    letter-spacing: 2px;
}

.portrait-placeholder small {
    margin-top: 5px;
}

.about-text h2,
.about-page-grid h2 {
    font-size: clamp(38px, 5vw, 62px);
    margin-bottom: 30px;
}

.about-text p {
    color: #64615b;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.placeholder-note {
    background: #eeece7;
    padding: 20px;
    font-size: 14px;
}

.page-hero {
    background: #292824;
    color: white;
    padding: 120px 0;
}

.page-hero h1 {
    font-size: clamp(46px, 7vw, 82px);
    margin-bottom: 20px;
}

.page-hero p:not(.eyebrow) {
    font-size: 19px;
    color: #d2d0ca;
}

.about-page-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
    align-items: start;
}

.about-page-grid p {
    color: #62605a;
}

.portrait-large {
    min-height: 680px;
}

.practice-list {
    max-width: 950px;
}

.practice-detail {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 50px;
    padding: 70px 0;
    border-bottom: 1px solid #d8d5ce;
}

.practice-number {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    color: #77736b;
}

.practice-detail h2 {
    font-size: 48px;
    margin-bottom: 25px;
}

.practice-detail p {
    color: #62605a;
    max-width: 700px;
}

.consultation {
    background: #dedbd4;
    text-align: center;
}

.consultation-inner {
    max-width: 800px;
}

.consultation p:not(.eyebrow) {
    color: #5e5a54;
    font-size: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.contact-information h2 {
    font-size: 55px;
    margin-bottom: 30px;
}

.contact-information > p:not(.eyebrow) {
    color: #66625c;
}

.contact-item {
    border-top: 1px solid #d8d5ce;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
}

.contact-item span {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 7px;
}

.contact-item strong {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.4;
}

.contact-link {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
    width: fit-content;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cfcac1;
    background: #fdfcf9;
    padding: 16px;
    margin-bottom: 25px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #77736b;
}

.form-disclaimer {
    font-size: 12px;
    color: #77736b;
    margin-bottom: 25px;
}

.success-message {
    background: #eeece7;
    padding: 45px;
}

.success-message h3 {
    font-size: 35px;
    margin-bottom: 15px;
}

.site-footer {
    background: #22211e;
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 70px;
}

.footer-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-grid p {
    color: #aaa79f;
}

.footer-grid h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-grid a {
    display: block;
    color: #aaa79f;
    margin-bottom: 9px;
    font-size: 14px;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #44423e;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    color: #77746d;
    font-size: 11px;
}

@media (max-width: 850px) {
    .nav-container {
        min-height: 80px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 80px;
        background: #f8f7f4;
        flex-direction: column;
        align-items: stretch;
        padding: 25px;
        gap: 0;
        border-bottom: 1px solid #dedbd4;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 15px 0;
    }

    .nav-button {
        padding: 15px;
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        min-height: 620px;
    }

    .practice-grid,
    .about-grid,
    .about-page-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portrait-placeholder,
    .portrait-large {
        min-height: 420px;
    }

    .practice-detail {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 48px 0;
    }

    .practice-detail h2 {
        font-size: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .section {
        padding: 72px 0;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-description {
        font-size: 16px;
    }

    .page-hero {
        padding: 80px 0;
    }

    .contact-information h2 {
        font-size: 40px;
    }
}
