/*
 * HeritEon — site.css
 * Complete replacement for the supplied public-layout stylesheet.
 * Keep fonts.css and components.css; account/upload controls stay in their own files.
 * Short pages fill the viewport. Long pages scroll naturally; the footer never overlays content.
 * Horizontal centering uses margin-inline so the header cannot absorb vertical free space.
 */

:root {
    --ink: #123868;
    --navy: #18394F;
    --paper: #F6F7F5;
    --white: #FCFDFC;
    --line: #D8E0E2;
    --muted: #536A7B;
    --soft: #EDF2F4;
    --copper: #A35C38;
    --copper-light: #DBAD8C;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.7 Inter, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

a, button, summary {
    -webkit-tap-highlight-color: transparent;
}

    a:focus-visible, button:focus-visible, summary:focus-visible {
        outline: 2px solid var(--copper);
        outline-offset: 5px;
    }

    a:hover {
        color: var(--copper);
    }

p, h1, h2, h3 {
    margin: 0;
}

p {
    color: var(--muted);
}

.shell {
    width: calc(100% - 112px);
    max-width: 1280px;
    margin-inline: auto;
    margin-block: 0;
    min-width: 0;
}

.skip {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 8px 16px;
    background: white;
    transform: translateY(-160%);
}

    .skip:focus {
        transform: none;
    }

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    min-height: 114px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -1px;
    flex-shrink: 0;
    white-space: nowrap;
}

    .brand img {
        width: 58px;
        height: 58px;
        display: block;
        flex-shrink: 0;
    }

.masthead > .nav {
    display: flex;
    align-items: center;
    gap: 12px 20px;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.nav a {
    padding: 10px 0;
}

.menu {
    display: none;
    background: #FAFCFC;
    border: 1px solid var(--line);
    padding: 8px 15px;
    color: var(--ink);
    min-height: 44px;
    border-radius: 4px;
    border-color: #D8E3E8;
    box-shadow: 0 1px 2px #12386808;
}

.eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.folio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 14px 0;
    font-size: 11px;
    color: var(--muted);
    gap: 12px 24px;
    flex-wrap: wrap;
}

    .folio span:first-child {
        color: var(--copper);
    }

.cover {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
    min-height: 450px;
}

.cover-main {
    background: var(--navy);
    color: var(--white);
    padding: 49px 49px 43px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    border-radius: 4px 0 0 4px;
}

    .cover-main::before {
        content: "";
        width: 44px;
        height: 3px;
        background: var(--copper-light);
        margin-bottom: 37px;
    }

h1 {
    font-size: clamp(36px,3.65vw,51px);
    line-height: 1.16;
    font-weight: 500;
    letter-spacing: -1.8px;
}

    h1 span {
        color: #D8C5B3;
    }

.cover-main .intro {
    font-size: 16px;
    line-height: 1.8;
    color: #D2DDE1;
    max-width: 485px;
    margin-top: 25px;
}

.cover-main .link {
    color: var(--white);
    border-color: #899A9E;
    margin-top: auto;
    padding-top: 30px;
}

.link {
    display: inline-block;
    border-bottom: 1px solid #A88A76;
    padding: 7px 0;
    font-size: 13px;
    font-weight: 500;
}

    .link:hover {
        color: var(--copper);
    }

.cover-side {
    background: #EDF2F4;
    display: flex;
    flex-direction: column;
    padding: 47px 38px 37px;
    border-top: 1px solid #DCE0D9;
    border-right: 1px solid #DCE0D9;
    border-bottom: 1px solid #DCE0D9;
    border-color: #DCE4E7;
    border-radius: 0 4px 4px 0;
}

    .cover-side .eyebrow {
        color: var(--copper);
        margin-bottom: 23px;
    }

    .cover-side > p {
        font-size: 16px;
        line-height: 1.8;
        color: var(--ink);
        max-width: 370px;
    }

.scope-list {
    margin-top: auto;
    padding-top: 30px;
}

    .scope-list a {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        padding: 11px 0;
        border-top: 1px solid #C9D0CA;
        font-size: 13px;
        border-color: #D1DCDF;
    }

        .scope-list a span {
            color: #617686;
            font-size: 11px;
            font-variant-numeric: tabular-nums;
        }

        .scope-list a:last-child {
            border-bottom: 1px solid #C9D0CA;
            border-color: #D1DCDF;
        }

.section {
    padding: 83px 0;
}

.section-top {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,2.3fr);
    gap: 50px;
    margin-bottom: 41px;
}

    .section-top .eyebrow {
        padding-top: 8px;
        color: var(--copper);
    }

h2 {
    font-size: 31px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -.8px;
}

h3 {
    font-size: 19px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -.3px;
}

.section-top p {
    max-width: 620px;
    margin-top: 17px;
    font-size: 15px;
}

.practice {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,2.3fr);
    gap: 50px;
}

.margin-note {
    max-width: 240px;
    padding-top: 7px;
    font-size: 13px;
}

    .margin-note p {
        margin-bottom: 20px;
    }

    .margin-note .small-line {
        display: block;
        width: 28px;
        height: 2px;
        background: #B88A6E;
        margin-bottom: 20px;
    }

.practice-list {
    border-bottom: 1px solid var(--line);
}

.practice-row {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    gap: 18px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}

    .practice-row p {
        font-size: 14px;
        max-width: 650px;
        margin-top: 10px;
        line-height: 1.8;
    }

.fields {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.fields-grid {
    display: grid;
    grid-template-columns: minmax(0,2.3fr) minmax(0,1fr);
    gap: 80px;
}

.field-list {
    border-bottom: 1px solid var(--line);
}

details {
    border-top: 1px solid var(--line);
}

summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 21px 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

    summary::-webkit-details-marker {
        display: none;
    }

    summary:hover {
        color: var(--copper);
    }

.field-body {
    padding: 0 35px 25px 0;
    font-size: 14px;
    max-width: 650px;
    padding-left: 36px;
}

.credential {
    display: inline-block;
    color: #355770;
    font-size: 12px;
    margin-top: 18px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
}

.field-aside {
    padding: 25px 0 0 25px;
    border-left: 1px solid var(--line);
    align-self: start;
}

    .field-aside .eyebrow {
        color: var(--copper);
    }

    .field-aside h3 {
        font-size: 23px;
        line-height: 1.4;
        margin: 18px 0;
    }

    .field-aside p {
        font-size: 14px;
        line-height: 1.85;
    }

    .field-aside .link {
        margin-top: 24px;
    }

.about {
    padding-bottom: 78px;
}

.about-body {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,2.3fr);
    gap: 50px;
}

.about-copy {
    max-width: 720px;
}

    .about-copy > p {
        font-size: 17px;
        line-height: 1.9;
        color: var(--ink);
    }

        .about-copy > p + p {
            font-size: 15px;
            color: var(--muted);
            margin-top: 20px;
        }

.about-label {
    font-size: 13px;
    color: var(--muted);
}

    .about-label strong {
        display: block;
        font-size: 16px;
        font-weight: 500;
        color: var(--ink);
        margin-bottom: 8px;
    }

.contact {
    background: var(--navy);
    color: var(--white);
    padding: 61px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);
    gap: 90px;
}

.contact .eyebrow {
    color: var(--copper-light);
    margin-bottom: 20px;
}

.contact h2 {
    font-size: 34px;
    max-width: 400px;
}

.contact p {
    color: #CFD9DD;
    max-width: 450px;
    font-size: 14px;
    margin-top: 20px;
}

.contact-info {
    align-self: center;
}

.email {
    display: inline-block;
    font-size: clamp(22px,2.6vw,26px);
    letter-spacing: -.7px;
    border-bottom: 1px solid #6D828C;
    padding: 4px 0 11px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

    .email:hover {
        color: var(--copper-light);
    }

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 28px;
    margin-top: 23px;
    font-size: 14px;
    color: #D2DCE0;
}

    .contact-meta a:hover {
        color: var(--copper-light);
    }

/* Footer: copyright left, links right; content remains in normal document flow. */
.site-footer,
body > footer {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.footer-copyright {
    font: inherit;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

    .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: inherit;
    }

        .footer-links a:hover {
            color: var(--copper);
        }

section[id], article[id] {
    scroll-margin-top: 25px;
}

.icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    stroke-width: 1.45;
}

.practice-icon {
    color: #587C98;
    padding-top: 3px;
}

.field-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

    .field-title .icon {
        color: #617E95;
    }

    .field-title > span {
        min-width: 0;
    }

.disclosure-icon {
    width: 17px;
    height: 17px;
    color: #6B8192;
    transition: transform .18s ease;
}

details[open] .disclosure-icon {
    transform: rotate(180deg);
}

details[open] .field-title .icon {
    color: var(--copper);
}

.practice-row p, .field-body, .field-aside p {
    font-size: 15px;
}

.field-list summary {
    font-size: 18px;
}

body > main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body > .shell {
    flex: 0 0 auto;
}

.cover-main .link:hover {
    color: var(--copper-light);
    border-color: var(--copper-light);
}

:where(.cover, .section-top, .practice, .practice-row, .fields-grid, .about-body, .contact-grid) > * {
    min-width: 0;
}

h1, h2, h3, p, .field-title > span {
    overflow-wrap: break-word;
}

@media (min-width:1600px) {
    .shell {
        max-width: 1320px;
    }

    .cover {
        min-height: 465px;
    }
}

@media (max-width:1050px) {
    .shell {
        width: calc(100% - 64px);
    }

    .masthead {
        min-height: 98px;
    }

        .masthead > .nav {
            gap: 21px;
        }

    .cover-main {
        padding: 36px;
    }

    .cover-side {
        padding: 36px 28px;
    }

        .cover-side > p {
            font-size: 15px;
        }

    .cover-main .intro {
        font-size: 15px;
    }

    h1 {
        font-size: 38px;
    }

    .section-top, .practice, .about-body {
        grid-template-columns: minmax(0,1fr) minmax(0,2.3fr);
        gap: 30px;
    }

    .fields-grid {
        gap: 40px;
    }

    .contact-grid {
        gap: 45px;
    }
}

@media (max-width:760px) {
    .shell {
        width: calc(100% - 40px);
    }

    .masthead {
        min-height: 84px;
        flex-wrap: wrap;
        gap: 0;
        padding: 12px 0;
    }

    .brand {
        font-size: 25px;
    }

        .brand img {
            width: 49px;
            height: 49px;
        }

    .menu {
        display: block;
    }

    .masthead > .nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 14px 0 3px;
        gap: 0;
        font-size: 14px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

        .masthead > .nav.open {
            display: flex;
        }

    .nav a {
        padding: 11px 2px;
        min-height: 44px;
    }

    .folio {
        font-size: 10px;
        gap: 20px;
        align-items: flex-start;
    }

        .folio span:last-child {
            text-align: right;
        }

    .cover {
        grid-template-columns: minmax(0,1fr);
    }

    .cover-main {
        padding: 31px 27px 29px;
        min-height: 370px;
        border-radius: 4px 4px 0 0;
    }

        .cover-main::before {
            margin-bottom: 25px;
        }

        .cover-main h1 {
            font-size: clamp(31px,7.2vw,45px);
            letter-spacing: -1px;
        }

        .cover-main .intro {
            font-size: 15px;
            max-width: 520px;
            margin-top: 21px;
        }

        .cover-main .link {
            padding-top: 25px;
        }

    .cover-side {
        padding: 27px;
        border-left: 1px solid #DCE0D9;
        border-top: 0;
        border-radius: 0 0 4px 4px;
    }

        .cover-side .eyebrow {
            margin-bottom: 13px;
        }

        .cover-side > p {
            max-width: 540px;
            font-size: 15px;
        }

    .scope-list {
        padding-top: 22px;
    }

        .scope-list a {
            min-height: 44px;
        }

    .section {
        padding: 49px 0;
    }

    .section-top, .practice, .about-body {
        grid-template-columns: minmax(0,1fr);
        gap: 18px;
    }

    .section-top {
        margin-bottom: 27px;
    }

        .section-top .eyebrow {
            padding-top: 0;
        }

    h2 {
        font-size: 27px;
        letter-spacing: -.6px;
    }

    .section-top p {
        margin-top: 15px;
        font-size: 14px;
    }

    .margin-note {
        max-width: 520px;
        padding: 0;
    }

        .margin-note .small-line {
            display: none;
        }

        .margin-note p {
            margin: 0 0 9px;
        }

            .margin-note p:last-child {
                display: none;
            }

    .practice-row {
        padding: 22px 0;
        gap: 12px;
        grid-template-columns: 23px minmax(0,1fr);
    }

    h3 {
        font-size: 18px;
    }

    .practice-row p {
        font-size: 14px;
    }

    .fields-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 29px;
    }

    summary {
        font-size: 17px;
        padding: 19px 0;
    }

    .field-body {
        padding-right: 12px;
        padding-left: 33px;
    }

    .field-aside {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 26px 0 0;
    }

        .field-aside h3 {
            font-size: 22px;
            margin: 12px 0;
        }

        .field-aside .link {
            margin-top: 14px;
        }

    .about-body {
        gap: 22px;
    }

    .about-label {
        padding-bottom: 19px;
        border-bottom: 1px solid var(--line);
    }

    .about-copy > p {
        font-size: 16px;
    }

        .about-copy > p + p {
            font-size: 14px;
        }

    .contact {
        padding: 42px 0;
    }

    .contact-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 27px;
    }

    .contact h2 {
        font-size: 29px;
    }

    .contact p {
        margin-top: 15px;
    }

    .email {
        font-size: 23px;
    }

    .contact-meta {
        gap: 12px 25px;
        font-size: 13px;
    }

    .practice-row p, .field-body, .field-aside p {
        font-size: 14px;
    }

    .field-title {
        gap: 12px;
    }

        .field-title .icon {
            width: 21px;
            height: 21px;
        }

    .field-list summary {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        padding-block: 16px;
        gap: 4px 20px;
    }

    .footer-links {
        gap: 8px 20px;
    }
}

@media (max-width:360px) {
    .shell {
        width: calc(100% - 32px);
    }

    .cover-main, .cover-side {
        padding-left: 22px;
        padding-right: 22px;
    }

        .cover-main h1 {
            font-size: 29px;
        }

    .email {
        font-size: 23px;
    }

    .folio {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    .disclosure-icon {
        transition: none;
    }
}

/* Standalone About and Contact pages; home-page sections stay unchanged. */
body[data-page="about"] > main,
body[data-page="contact"] > main {
    justify-content: center;
}

.inner-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    align-items: start;
    gap: clamp(32px, 6vw, 88px);
    padding-block: clamp(48px, 7vh, 88px);
}

.inner-page > * {
    min-width: 0;
}

.inner-page-heading .eyebrow {
    margin-bottom: 18px;
    color: var(--copper);
}

.inner-page h1 {
    max-width: 480px;
    font-size: clamp(28px, 2.8vw, 38px);
    line-height: 1.25;
    letter-spacing: -0.8px;
}

.inner-page-intro {
    max-width: 460px;
    margin-top: 22px;
    line-height: 1.8;
}

.inner-page-copy {
    max-width: 660px;
}

.inner-page-copy > p:first-child {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.85;
}

.inner-page-copy > p + p {
    margin-top: 20px;
}

.inner-page-copy > .link {
    margin-top: 22px;
}

.direct-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin: 0;
    padding: 8px 0 8px 36px;
    border-left: 1px solid var(--line);
    font-style: normal;
}

.direct-contact-email {
    max-width: 100%;
    padding-block: 6px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.45;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}

.direct-contact-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .inner-page {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-block: 42px;
    }

    .inner-page-copy > p:first-child {
        font-size: 16px;
    }

    .direct-contact {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 24px 0 0;
        gap: 14px;
    }
}

/* Compact home-page closing sections. */
.home-about,
.home-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    gap: 24px clamp(30px, 5vw, 72px);
}

.home-about {
    padding-block: 44px;
}

.home-about > *,
.home-contact > * {
    min-width: 0;
}

.home-about h2 {
    max-width: 410px;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.4;
}

.home-about p {
    max-width: 660px;
    font-size: 15px;
    line-height: 1.8;
}

.home-about .link {
    margin-top: 12px;
}

.home-contact {
    align-items: center;
    padding-block: 26px;
    border-top: 1px solid var(--line);
}

.home-contact h2 {
    font-size: 17px;
    letter-spacing: 0;
}

.home-contact address {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
    font-style: normal;
    font-size: 14px;
}

.home-contact address a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.home-contact-email {
    font-size: 20px;
}

@media (max-width: 760px) {
    .home-about,
    .home-contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .home-about {
        padding-block: 32px;
    }

    .home-contact {
        padding-block: 20px;
        gap: 8px;
    }
}
