/* =================================================================
   STERLING & ASSOCIATES — Text-Dominant Newspaper Layout
   Light background. Wide reading column. Almost no images.
   ================================================================= */

:root {
    --ink: #1C1C1C;
    --surface: #2A2A2A;
    --cream: #F8F8F5;
    --brass: #B8860B;
    --dim: #666;

    --display: 'Playfair Display', 'Georgia', serif;
    --body: 'Source Serif 4', 'Georgia', serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;

    --column: 680px;
    --gutter: clamp(1.5rem, 5vw, 3rem);
    --section-gap: clamp(3.5rem, 7vw, 6rem);

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
    font-family: var(--body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.72;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--ink);
}

/* ---------- Column layout ---------- */
.column {
    max-width: var(--column);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Site header ---------- */
.site-header {
    padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) 0;
    text-align: center;
}
.site-header__wordmark {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--brass);
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}
.site-header__wordmark a { color: var(--brass); }
.site-header__tagline {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    font-weight: 400;
}

/* ---------- Navigation ---------- */
.site-nav {
    text-align: center;
    padding: 1.5rem var(--gutter) 0;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.site-nav__links {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}
.site-nav__links a {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
    transition: color 0.3s var(--ease);
    padding: 0.3rem 0;
}
.site-nav__links a:hover,
.site-nav__links a.is-active {
    color: var(--ink);
}

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1.1rem;
    right: var(--gutter);
    z-index: 200;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.mobile-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s;
}
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 190;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer a {
    font-family: var(--display);
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    color: var(--ink);
    transition: color 0.3s var(--ease);
}
.mobile-drawer a:hover { color: var(--brass); }

/* ---------- Horizontal rule ---------- */
.rule {
    border: none;
    border-top: 1px solid var(--brass);
    opacity: 0.3;
    margin: var(--section-gap) auto;
    max-width: var(--column);
}

/* ---------- Prose sections ---------- */
.prose {
    max-width: var(--column);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.prose p {
    margin-bottom: 1.4rem;
    font-weight: 400;
    font-size: 1rem;
    color: var(--ink);
}
.prose p:last-child { margin-bottom: 0; }

/* Intro paragraph — slightly larger */
.intro p {
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--ink);
}

/* Practice area headings */
.practice-heading {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.2rem;
    margin-top: var(--section-gap);
}
.practice-heading:first-child { margin-top: 0; }

/* Partner name headings */
.partner-name {
    font-family: var(--display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.8rem;
    margin-top: var(--section-gap);
}
.partner-name:first-child { margin-top: 0; }

/* Section subtitle — mono label */
.section-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 1.5rem;
}

/* Page title for subpages */
.page-title {
    font-family: var(--display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2rem;
}

/* ---------- Contact details block ---------- */
.contact-block {
    max-width: var(--column);
    margin: 0 auto;
    padding: 0 var(--gutter);
    font-family: var(--body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ink);
}
.contact-block a {
    border-bottom: 1px solid var(--brass);
    transition: color 0.3s var(--ease);
}
.contact-block a:hover {
    color: var(--brass);
}

/* Compact contact line at bottom of index */
.contact-line {
    max-width: var(--column);
    margin: 0 auto;
    padding: 0 var(--gutter);
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--dim);
}
.contact-line a {
    color: var(--dim);
    border-bottom: 1px solid var(--brass);
    transition: color 0.3s var(--ease);
}
.contact-line a:hover { color: var(--brass); }
.contact-line .confidential {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dim);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--brass);
    margin-top: var(--section-gap);
    padding: 2rem var(--gutter) 1.8rem;
    max-width: var(--column);
    margin-left: auto;
    margin-right: auto;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
}
.footer-inner a {
    color: var(--brass);
    transition: opacity 0.3s var(--ease);
}
.footer-inner a:hover { opacity: 0.7; }

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Selection ---------- */
::selection { background: var(--brass); color: var(--cream); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .site-nav__links { display: none; }
    .mobile-toggle { display: flex; }

    .site-header {
        padding-top: clamp(2rem, 6vw, 3rem);
    }
}

@media (max-width: 480px) {
    body { font-size: 17px; }
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
}
