/* Styles for the single-screen pages: index, firm, contact.
   Legal pages (privacy, terms) still use styles.css. */
:root {
    --bg-deep: #1d3325;
    --bg: #243f2e;
    --bg-light: #2d4f3e;
    --panel: #162a1e;
    --footer: #112018;
    --gold: #c9a84c;
    --gold-soft: #dcc27a;
    --gold-grad: linear-gradient(180deg, #ecd593 0%, #c9a84c 55%, #9c7a2c 100%);
    --ink: #f5f1e6;
    --ink-muted: rgba(245, 241, 230, .76);
    --ink-faint: rgba(245, 241, 230, .52);
    --card: rgba(255, 255, 255, .88);
    --card-ink: #1b2a21;
    --card-muted: #56655b;
    --line: rgba(27, 42, 33, .22);
    --gutter: clamp(1.25rem, 5vw, 5.5rem);
    --serif: 'Lora', Georgia, 'Times New Roman', serif;
    --script: 'Cormorant Garamond', Georgia, serif;
    --ui: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background:
        radial-gradient(ellipse 55% 60% at 75% 45%, rgba(201, 168, 76, .09), transparent 70%),
        radial-gradient(ellipse 60% 70% at 0% 100%, rgba(0, 0, 0, .28), transparent 70%),
        linear-gradient(115deg, var(--bg-deep) 0%, var(--bg) 50%, var(--bg-light) 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--ui);
    -webkit-font-smoothing: antialiased;
}
/* Fine film grain so the flat greens feel like paper rather than a screen fill. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--gold); color: var(--panel); padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Page frame ---------- */
.page {
    position: relative;
    z-index: 1;
    overflow-x: clip;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.page > main {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 4vh, 3rem) var(--gutter);
}
/* Auto margins centre the content when there is room, and let it scroll from
   the top (instead of being pushed out of reach) when there is not. */
.stage { width: 100%; max-width: 1480px; margin: auto; }

/* ---------- Header ---------- */
.site-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1rem, 2.4vw, 2rem) var(--gutter) clamp(.75rem, 1.6vw, 1.25rem);
}
.site-header--solid { background: var(--bg-deep); box-shadow: 0 1px 0 rgba(201, 168, 76, .2); }
.brand img { height: clamp(32px, 3.4vw, 50px); width: auto; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: clamp(.75rem, 1.6vw, 1.4rem); }
.header-contact { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); font-size: .88rem; font-weight: 500; letter-spacing: .08em; }
.header-contact a { position: relative; display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-faint); text-decoration: none; transition: color .2s; }
.header-contact a:hover { color: var(--gold-soft); }
.header-contact svg { width: 18px; height: 18px; flex: none; }
.copy-tip {
    position: absolute;
    left: 50%;
    top: calc(100% + .5rem);
    transform: translateX(-50%) translateY(-4px);
    background: var(--panel);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    white-space: nowrap;
    padding: .3rem .65rem;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 76, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.copy-tip.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.site-nav { display: flex; gap: clamp(1.5rem, 3.5vw, 3.25rem); }
.site-nav a {
    position: relative;
    color: var(--ink-muted);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-decoration: none;
    padding: .35rem 0;
    transition: color .2s;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: .16em; bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding: 1rem var(--gutter);
    background: var(--footer);
    color: var(--ink-faint);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .03em;
}
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }

/* ---------- Shared type ---------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 clamp(1rem, 2.5vh, 1.6rem);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-soft);
}
.eyebrow { justify-content: center; }
.eyebrow::before, .eyebrow::after { content: ''; width: 2.5rem; height: 1px; background: var(--gold); }
.display {
    margin: 0;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.3rem, 11vw, 3.4rem);
    line-height: 1.02;
    white-space: nowrap;
    letter-spacing: -.01em;
}
.display em {
    font-style: normal;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.display-sub {
    margin: .15rem 0 0;
    text-align: right;
    font-family: var(--script);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.45rem, 2.2vw, 2.25rem);
    color: var(--ink-muted);
}
.lede {
    max-width: 36rem;
    margin: clamp(1.25rem, 3.5vh, 2.25rem) 0 0;
    font-family: var(--serif);
    font-size: clamp(1.02rem, 1.2vw, 1.18rem);
    line-height: 1.75;
    color: var(--ink-muted);
}
.tagline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .4rem 1.1rem;
    margin: clamp(1.5rem, 4.5vh, 3rem) 0 0;
    font-size: clamp(.82rem, .95vw, .95rem);
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.tagline span { display: inline-block; }
/* The headline sets the width; the subtitle hangs off its right end. */
.title-block { width: fit-content; max-width: 100%; }
.copy-column { width: fit-content; max-width: 100%; }
.firm-copy { width: fit-content; max-width: 100%; }
.tagline span::first-letter { color: var(--gold); font-size: 1.35em; }
.tagline i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); opacity: .7; }

.reveal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.reveal-2 { animation-delay: .1s; }
.reveal-3 { animation-delay: .2s; }
.reveal-4 { animation-delay: .3s; }
.reveal-5 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Home ---------- */
.hero .stage { display: grid; gap: 3rem; align-items: center; max-width: none; }
.hero-copy { justify-self: center; text-align: center; }
.hero-copy .title-block { margin-inline: auto; }
.hero-copy .display { text-align: left; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; margin-top: clamp(1.75rem, 5vh, 3rem); }
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.7rem;
    background: var(--gold-grad);
    color: #1a2a1f;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 14px 30px -14px rgba(201, 168, 76, .7);
    transition: transform .2s, box-shadow .2s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(201, 168, 76, .85); }
.btn-gold svg, .link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, .5);
    color: var(--ink);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
}
.btn-gold:hover svg, .link-arrow:hover svg { transform: translateX(4px); }
.practice { margin: clamp(2rem, 6vh, 3.75rem) 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(201, 168, 76, .22); }
.practice-label { display: block; margin-bottom: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.practice-list { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--ink-muted); }

/* The emblem sits inside a slowly turning seal of text and two gold rings. */
.seal {
    position: relative;
    justify-self: center;
    width: min(82vw, 440px);
    aspect-ratio: 1;
}
.seal::before {
    content: '';
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(201, 168, 76, .16), transparent 75%);
}
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal-ring circle { fill: none; stroke: var(--gold); }
.seal-ring .ring-outer { stroke-width: .25; opacity: .55; }
.seal-ring .ring-inner { stroke-width: .15; opacity: .35; }
.seal-text { animation: turn 120s linear infinite; transform-origin: 50% 50%; }
.seal-text text { fill: var(--gold-soft); opacity: .75; font-family: var(--ui); font-size: 2.35px; font-weight: 600; letter-spacing: .55px; }
.seal img {
    position: absolute;
    inset: 10.5%;
    width: 79%;
    filter: drop-shadow(0 26px 50px rgba(0, 0, 0, .45));
}
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reveal, .seal-text { animation: none; } }

/* ---------- The Firm ---------- */
.firm .stage { display: grid; gap: 2.5rem; align-items: center; }
.profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: linear-gradient(160deg, #1b3224, var(--panel) 60%);
    border: 1px solid rgba(201, 168, 76, .28);
    outline: 1px solid rgba(201, 168, 76, .12);
    outline-offset: 8px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
}
.profile-media {
    position: relative;
    height: min(110vw, 420px);
    background: radial-gradient(closest-side at 50% 65%, rgba(201, 168, 76, .18), transparent);
}
.profile-media img {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: calc(100% - 1.5rem);
    object-fit: contain;
    object-position: bottom center;
}
.profile-body { padding: 1.75rem 1.5rem 2rem; }
.profile-name {
    margin: 0 0 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(201, 168, 76, .3);
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.3rem, 1.75vw, 1.75rem);
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.profile-body p { margin: 0 0 1rem; font-family: var(--serif); font-size: .98rem; line-height: 1.75; color: var(--ink-muted); }
.profile-body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-deep) url('../assets/office-entrance.webp') center 35% / cover no-repeat; }
.contact .stage { display: grid; gap: 1.5rem; max-width: 1280px; }
.card {
    background: var(--card);
    color: var(--card-ink);
    border-radius: 14px;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.form-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.5rem); }
.form-card h1 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 2.8vw, 2.6rem); line-height: 1.1; color: var(--bg-deep); }
.form-intro { margin: .5rem 0 1.4rem; font-family: var(--serif); font-size: .98rem; line-height: 1.6; color: var(--card-muted); }
.contact-form { display: flex; flex-direction: column; flex: 1; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field--grow { flex: 1; }
.field label { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--card-muted); }
.field input, .field textarea {
    width: 100%;
    padding: .5rem 0;
    border: 0;
    border-bottom: 1.5px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--card-ink);
    font: 500 1rem/1.5 var(--ui);
    transition: border-color .2s;
}
.field textarea { flex: 1; min-height: 5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.honeypot { position: absolute; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: .4rem; }
.btn {
    min-width: 11rem;
    padding: .9rem 1.6rem;
    border: 0;
    border-radius: 8px;
    background: var(--bg-deep);
    color: var(--ink);
    font: 700 .85rem var(--ui);
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.btn:hover { background: var(--bg-light); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.social { display: flex; align-items: center; gap: .65rem; font-size: .88rem; font-weight: 500; letter-spacing: .04em; color: var(--card-muted); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--bg-deep); transition: color .2s, background .2s; }
.social a:hover { background: var(--bg-deep); color: var(--ink); }
.social svg { width: 22px; height: 22px; }
.form-note { margin: .25rem 0 0; font-size: .78rem; color: var(--card-muted); }
.form-note a { color: var(--bg-deep); }
.form-status { margin: 0; font-size: .9rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: #1d6b3a; }
.form-status.is-error { color: #a12a2a; }

.contact-side { display: flex; flex-direction: column; gap: 1.25rem; }
.info-card { display: grid; gap: 1rem; margin: 0; padding: clamp(1.25rem, 2vw, 1.75rem); list-style: none; }
.info-card li { display: flex; align-items: center; gap: 1rem; }
.info-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--bg-deep); color: var(--gold-soft); }
.info-icon svg { width: 20px; height: 20px; }
.info-label { display: block; font-family: var(--serif); font-size: .82rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--card-muted); }
.info-value { font-size: 1rem; font-weight: 500; line-height: 1.45; letter-spacing: .03em; color: var(--card-ink); text-decoration: none; }
a.info-value:hover { color: var(--bg-light); text-decoration: underline; text-underline-offset: 3px; }
.map { position: relative; flex: 1; min-height: 260px; overflow: hidden; border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
    .site-header { flex-wrap: wrap; }
    .header-contact { display: none; }
    .site-nav a { font-size: .92rem; letter-spacing: .12em; }
    .tagline { gap: .4rem .8rem; letter-spacing: .2em; font-size: .76rem; }
    .eyebrow { letter-spacing: .2em; font-size: .72rem; }
    .practice-list { font-size: .9rem; }
    .eyebrow::before, .eyebrow::after { width: 1.25rem; }
}
@media (max-width: 420px) {
    .tagline { gap: .4rem .55rem; letter-spacing: .14em; font-size: .72rem; }
    .practice-list { font-size: .84rem; }
    .site-header { justify-content: center; }
    .header-right { align-items: center; }
}

/* ---------- Tablet and up ---------- */
@media (min-width: 900px) {
    .profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .profile-media { height: auto; min-height: 320px; }
    .profile-body { align-self: center; padding: 2rem 2.25rem 2rem 1.5rem; }
    .contact .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
    .display { font-size: clamp(3rem, 5vw, 5.6rem); }
}
/* Home page: always exactly one screen on desktop, never a scrollbar. The seal
   may run past the edges; the page frame clips it and the header and footer
   sit on top of it. */
@media (min-width: 1024px) {
    .page--home { height: 100vh; height: 100svh; overflow: hidden; }
    .page--home > main.hero { min-height: 0; overflow: visible; }
    .hero-copy { justify-self: start; }
    /* The seal is sized past the screen: its right edge and its bottom run off
       the page, and the text column takes whatever width is left. */
    /* Height cap keeps the emblem's own lettering above the footer on short screens. */
    .hero { --seal: min(60vw, calc((100vh - 170px) * 1.35)); position: relative; }
    .hero .stage { padding-right: calc(var(--seal) * .93 - var(--gutter) + 1.5rem); }
    .seal {
        position: absolute;
        top: calc(50% - var(--seal) * .4);
        right: calc(var(--seal) * -.07);
        width: var(--seal);
    }
}
@media (min-width: 1024px) and (max-width: 1199px) {
    .hero .eyebrow, .hero .tagline { flex-wrap: nowrap; white-space: nowrap; letter-spacing: .18em; }
    .hero .eyebrow::before, .hero .eyebrow::after { width: 1.25rem; }
    .hero .tagline { gap: .7rem; font-size: .8rem; }
}
@media (min-width: 1024px) and (max-height: 700px) {
    .hero .eyebrow { margin-bottom: .6rem; }
    .hero .tagline { margin-top: 1rem; }
    .hero-actions { margin-top: 1.25rem; }
    .practice { margin-top: 1.25rem; padding-top: .8rem; }
}
@media (min-width: 1024px) and (max-height: 600px) {
    .practice { display: none; }
}
@media (min-width: 1100px) {
    .firm .stage { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4.5rem); }
}
/* Tall enough for everything: lock to one screen. The main area can still
   scroll on its own if a window is only just tall enough. */
@media (min-width: 1100px) and (min-height: 660px) {
    .page { height: 100vh; height: 100svh; }
    .page > main { min-height: 0; overflow-y: auto; }
    .contact-form { gap: clamp(.6rem, 1.6vh, 1.1rem); }
    .form-intro { margin-bottom: clamp(.75rem, 2vh, 1.4rem); }
    .field textarea { min-height: 3.5rem; }
    .map { min-height: 200px; }
}
/* Short laptop screens (e.g. 1366x768 or 1536x730 in a browser window). */
@media (min-width: 1100px) and (min-height: 660px) and (max-height: 820px) {
    .site-header { padding-block: .9rem .6rem; }
    .header-right { gap: .5rem; }
    .page > main { padding-block: 1rem; }
    .form-card { padding: 1.4rem 2rem; }
    .form-card h1 { font-size: 2rem; }
    .form-intro { margin: .25rem 0 .6rem; }
    .contact-form { gap: .55rem; }
    .field textarea { min-height: 3rem; }
    .info-card { gap: .7rem; padding: 1.1rem 1.5rem; }
    .info-icon { width: 40px; height: 40px; }
}
