/* ============================================================================
   ExecEstate Strata — Design System
   Palette + typography + layout + components in one file.
   Locked 2026-07-30 (see plan §OQ1).
   ============================================================================ */

/* --- 1. Fonts ----------------------------------------------------------- */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/css/fonts/cormorant-garamond-400.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('/css/fonts/cormorant-garamond-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/css/fonts/cormorant-garamond-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/css/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('/css/fonts/inter-500.woff2') format('woff2'); }

/* --- 2. Palette --------------------------------------------------------- */

:root {
    --navy:    #1a2c4e;
    --ink:     #2a2f3a;
    --grey:    #6e737d;
    --ice:     #f4f6fa;   /* pale ice-blue body background — replaces cream */
    --hairline:#dde3ee;   /* cooler hairline (was warm #e5e0d6) */
    --accent:  #4a6fa5;   /* steel-blue accent — replaces muted gold */
    --accent-dark: #3a5a8a;
    --white:   #ffffff;

    /* Type scale */
    --fs-h1: 3.2rem;
    --fs-h2: 2.2rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.15rem;
    --fs-body: 1rem;
    --fs-small: 0.88rem;
    --fs-eyebrow: 0.78rem;

    /* Spacing scale (rem) */
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3rem;
    --space-9: 4.5rem;

    --container-max: 1120px;
    --radius: 4px;
    --shadow: 0 2px 8px rgba(26, 44, 78, 0.06);
    --transition: 150ms ease;
}

/* --- 3. Reset + base ---------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--ink);
    background: var(--ice);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--space-6) 0; }

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); text-decoration: underline; }

ul, ol { padding-left: 1.4em; margin: 0 0 var(--space-4); }
li { margin-bottom: 0.3em; }

::selection { background: var(--navy); color: var(--white); }

/* --- 4. Typography ------------------------------------------------------ */

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--navy); margin: 0 0 0.5em; line-height: 1.15; font-weight: 500; }
h1 { font-size: var(--fs-h1); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p { margin: 0 0 var(--space-4); }

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--grey);
    margin: 0 0 var(--space-3);
    font-weight: 500;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.7); }

.lede {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ink);
}
.text-center { text-align: center; }
.text-muted { color: var(--grey); }
.text-small { font-size: var(--fs-small); }

/* --- 5. Layout primitives ----------------------------------------------- */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}
.section { padding: var(--space-9) 0; }
.section--tight { padding: var(--space-7) 0; }
.section--no-top { padding-top: 0; }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- 6. Topbar ---------------------------------------------------------- */

.topbar {
    position: sticky; top: 0; z-index: 10;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    max-width: var(--container-max);
    margin: 0 auto;
    gap: var(--space-5);
}
.topbar__logo img {
    height: 26px; width: auto; display: block;
    /* Logo SVG is navy wordmark + steel-blue accent.
       Invert so it reads white-on-navy in the topbar. */
    filter: brightness(0) invert(1);
}
.topbar__nav { display: flex; gap: var(--space-5); flex-wrap: wrap; align-items: center; }
.topbar__nav a {
    font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); font-weight: 500;
}
.topbar__nav a:hover,
.topbar__nav a.is-active {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* --- 7. Hero ------------------------------------------------------------ */

.hero {
    position: relative;
    min-height: 540px;
    display: flex; align-items: flex-end;
    background-size: cover; background-position: center;
}
.hero--short { min-height: 340px; }
.hero--tall { min-height: 620px; }

.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,44,78,0) 30%, rgba(26,44,78,0.88) 100%);
    pointer-events: none;
}
.hero__content {
    position: relative;
    color: var(--white);
    padding: var(--space-8) var(--space-5) var(--space-7);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}
.hero__content h1 { color: var(--white); max-width: 760px; margin-bottom: var(--space-4); }
.hero__content .lede { color: rgba(255, 255, 255, 0.92); max-width: 660px; font-weight: 400; }

.hero__ctas { display: flex; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }

/* Inner-page hero (no overlay — text on ice-blue + image on right) */
.page-hero {
    padding: var(--space-9) 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
}
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-7); align-items: center; }
.page-hero__image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.page-hero h1 { margin-bottom: var(--space-3); }

/* --- 8. Buttons + links ------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { text-decoration: none; }

/* Dark button on light bg */
.btn--primary {
    background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Light button on dark bg (for hero) */
.btn--light {
    background: transparent; color: var(--white); border-color: var(--white);
}
.btn--light:hover { background: var(--white); color: var(--navy); }

/* Filled accent button */
.btn--filled {
    background: var(--accent); color: var(--white); border-color: var(--accent);
}
.btn--filled:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }

.link-arrow {
    color: var(--navy); font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.4em;
}
.link-arrow::after { content: '\2192'; transition: transform var(--transition); }
.link-arrow:hover { color: var(--accent); text-decoration: none; }
.link-arrow:hover::after { transform: translateX(2px); }

/* --- 9. Stats band ------------------------------------------------------ */

.stats {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: var(--space-6) var(--space-8);
    justify-content: center;
    padding: var(--space-6) 0;
}
.stat { text-align: center; }
.stat__num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    color: var(--accent);
    font-weight: 500;
    line-height: 1;
}
.stat__label {
    font-size: 0.95rem;
    color: var(--ink);
    margin-top: var(--space-2);
}

/* --- 10. Quote card ----------------------------------------------------- */

.quote-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-left: 4px solid var(--accent);
    padding: var(--space-6) var(--space-7);
    max-width: 800px;
    margin: 0 auto;
}
.quote-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--navy);
    font-style: italic;
    margin: 0;
}
.quote-card__source {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--grey);
    margin-top: var(--space-4);
}

/* --- 11. Feature cards -------------------------------------------------- */

.feature {
    /* No card chrome — clean type-led 3-col features */
}
.feature h3 { margin-bottom: var(--space-3); }
.feature p { margin: 0; color: var(--ink); }

/* --- 12. Article cards -------------------------------------------------- */

.article-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    padding: var(--space-6);
    display: flex; flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.article-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.article-card__date {
    font-size: 0.82rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}
.article-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin: 0 0 var(--space-3);
    line-height: 1.25;
    font-weight: 500;
}
.article-card__excerpt {
    margin: 0 0 var(--space-5);
    color: var(--ink);
}
.article-card .link-arrow { margin-top: auto; }

/* --- 13. Staff cards ---------------------------------------------------- */

.staff-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    padding: var(--space-5) var(--space-6);
}
.staff-card__role {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-3);
}
.staff-card__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    color: var(--navy);
    margin: 0 0 var(--space-3);
    font-weight: 500;
}
.staff-card__contact {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink);
}
.staff-card__contact a { display: inline-block; margin-right: var(--space-3); }

/* --- 14. Resources list ------------------------------------------------- */

.resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--hairline);
}
.resources-list li {
    border-bottom: 1px solid var(--hairline);
    padding: var(--space-4) 0;
}
.resources-list a {
    display: flex; justify-content: space-between; align-items: center;
    color: var(--navy);
    font-weight: 500;
    font-size: 1.05rem;
}
.resources-list a:hover { color: var(--accent); text-decoration: none; }
.resources-list__meta {
    font-size: 0.85rem;
    color: var(--grey);
    font-weight: 400;
}

/* --- 15. Contact detail cards ------------------------------------------- */

.contact-detail-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    padding: var(--space-6);
}
.contact-detail-card h3 { margin-top: 0; }
.contact-detail-card .contact-detail-row {
    display: flex; gap: var(--space-3); align-items: baseline;
    margin-bottom: var(--space-3);
}
.contact-detail-card .contact-detail-row strong {
    min-width: 80px;
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
    font-weight: 600;
}

/* --- 16. Breadcrumbs ---------------------------------------------------- */

.breadcrumb {
    font-size: 0.85rem;
    color: var(--grey);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--hairline);
}
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb__sep { margin: 0 0.5em; color: var(--hairline); }

/* --- 17. Privacy / legal prose ----------------------------------------- */

.legal-prose {
    max-width: 780px;
    margin: 0 auto;
}
.legal-prose h2 { margin-top: var(--space-7); }
.legal-prose h3 { margin-top: var(--space-6); font-size: 1.25rem; }
.legal-prose p, .legal-prose li { color: var(--ink); }

/* --- 18. Download card (complaint policy) ------------------------------ */

.download-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    padding: var(--space-7);
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.download-card h2 { margin-top: 0; }
.download-card p { color: var(--grey); }
.download-card .btn { margin-top: var(--space-4); }

/* --- 19. Footer --------------------------------------------------------- */

.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
    padding: var(--space-8) 0 var(--space-5);
    margin-top: var(--space-9);
}
.footer a { color: rgba(255, 255, 255, 0.85); }
.footer a:hover { color: var(--white); }

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-7);
}
.footer__brand-mark img {
    height: 32px; width: auto;
    margin-bottom: var(--space-3);
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.footer__contact-line {
    font-size: 0.9rem;
    margin-bottom: var(--space-3);
}
.footer h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 var(--space-4);
    font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.4rem; font-size: 0.92rem; }

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: var(--space-4);
    font-size: 0.82rem;
}
.footer__disclaimer {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 720px;
    margin-top: var(--space-4);
}

/* --- 20. Responsive ----------------------------------------------------- */

@media (max-width: 880px) {
    :root {
        --fs-h1: 2.2rem;
        --fs-h2: 1.7rem;
        --fs-h3: 1.3rem;
    }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .page-hero__grid { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr 1fr; }
    .topbar__inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .topbar__nav { gap: var(--space-4); font-size: 0.85rem; }
    .hero, .hero--short, .hero--tall { min-height: 380px; }
    .hero__content h1 { font-size: 2rem; }
    .quote-card { padding: var(--space-5); }
    .quote-card p { font-size: 1.2rem; }
}

@media (max-width: 520px) {
    .footer__top { grid-template-columns: 1fr; }
    .stats { gap: var(--space-5); }
    .stat__num { font-size: 2.4rem; }
}