/* ==========================================================================
   Diver5ify — Shared Stylesheet
   Aesthetic: Forest green + ivory + bronze. Brookfield-style.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Forest green & ivory — Brookfield-style */
    --navy: #0F2E1F;        /* primary deep forest green */
    --navy-deep: #06190F;   /* darker forest for footer */
    --navy-soft: #1E4A35;   /* lighter forest accent */
    --cream: #F1EAD9;       /* warm ivory background */
    --cream-light: #FAF6EC; /* lighter ivory for cards */
    --gold: #A07C3A;        /* bronze accent */
    --gold-soft: #C2A064;   /* lighter bronze for dark backgrounds */
    --charcoal: #1B2620;    /* near-black body text with green tint */
    --slate: #4B564E;       /* muted secondary text */
    --mute: #8A8F88;        /* tertiary text */
    --line: #D9D0BB;        /* dividers */
    --line-soft: #E8E0CB;   /* soft dividers */
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--charcoal);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .container, .container-narrow {
        padding: 0 24px;
    }
    section {
        padding: 64px 0;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line-soft);
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(241, 234, 217, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    padding: 22px 40px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 48px;
}

.brand {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    line-height: 1;
}

.brand-mark {
    color: var(--gold);
    font-style: italic;
}

.nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    gap: 18px;
}

.nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
}

.nav a:hover {
    color: var(--gold);
}

.nav a.active {
    color: var(--gold);
}

.nav-cta {
    background: var(--navy);
    color: var(--cream) !important;
    padding: 12px 22px;
    font-size: 0.78rem !important;
    letter-spacing: 0.08em !important;
    transition: background 0.2s ease;
}

.nav-cta:hover {
    background: var(--navy-deep);
    color: var(--cream) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--navy);
}

@media (max-width: 980px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream-light);
        flex-direction: column;
        gap: 0;
        padding: 20px 24px;
        border-bottom: 1px solid var(--line);
        flex: initial;
        justify-content: flex-start;
    }
    .nav.open {
        display: flex;
    }
    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line-soft);
        width: 100%;
    }
    .nav-cta {
        margin-top: 12px;
        text-align: center;
        border-bottom: none !important;
    }
    .menu-toggle {
        display: block;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    background: var(--navy);
    color: var(--cream);
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(160, 124, 58, 0.08), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(160, 124, 58, 0.05), transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 28px;
    font-weight: 500;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 880px;
    margin-bottom: 32px;
    color: var(--cream-light);
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-soft);
    font-weight: 400;
}

.hero p.lede {
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 640px;
    color: rgba(241, 234, 217, 0.78);
    font-weight: 300;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Section hero for sector pages */
.sector-hero {
    background: var(--navy);
    color: var(--cream);
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
}

.sector-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(160, 124, 58, 0.10), transparent 55%);
    pointer-events: none;
}

.sector-hero-inner {
    position: relative;
    z-index: 1;
}

.sector-hero .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 24px;
    font-weight: 500;
}

.sector-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 880px;
    margin-bottom: 28px;
    color: var(--cream-light);
}

.sector-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    color: rgba(241, 234, 217, 0.78);
    font-weight: 300;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-deep);
}

.btn-primary:hover {
    background: var(--gold-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(241, 234, 217, 0.35);
}

.btn-ghost:hover {
    border-color: var(--gold-soft);
    color: var(--gold-soft);
}

.btn-dark {
    background: var(--navy);
    color: var(--cream);
}

.btn-dark:hover {
    background: var(--navy-deep);
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 500;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--navy);
    margin-bottom: 24px;
    max-width: 760px;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.section-lede {
    font-size: 1.08rem;
    color: var(--slate);
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 60px;
    font-weight: 300;
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats {
    background: var(--cream-light);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-number .accent {
    color: var(--gold);
}

.stat-label {
    margin-top: 14px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ==========================================================================
   Sector cards
   ========================================================================== */

.sectors {
    background: var(--cream);
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.sector-card {
    background: var(--cream-light);
    padding: 48px 38px;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.sector-card:hover {
    background: var(--navy);
    color: var(--cream);
}

.sector-card:hover .sector-card-num,
.sector-card:hover .sector-card-title,
.sector-card:hover .sector-card-desc,
.sector-card:hover .sector-card-link {
    color: var(--cream);
}

.sector-card:hover .sector-card-link {
    color: var(--gold-soft);
}

.sector-card-num {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 24px;
    font-style: italic;
}

.sector-card-title {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.sector-card-desc {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 28px;
    flex-grow: 1;
}

.sector-card-link {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sector-card-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.sector-card:hover .sector-card-link::after {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sector-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Approach / two-column
   ========================================================================== */

.two-col {
    background: var(--cream-light);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.two-col-grid h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 14px;
    font-weight: 500;
}

.two-col-grid p {
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.7;
    font-weight: 300;
}

.principle {
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.principle:first-child {
    border-top: none;
    padding-top: 0;
}

@media (max-width: 900px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   Roles list (sector pages)
   ========================================================================== */

.roles {
    background: var(--cream-light);
}

.roles-intro {
    margin-bottom: 70px;
}

.roles-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 80px;
}

.role-category h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 22px;
    font-weight: 500;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    letter-spacing: -0.005em;
}

.role-category h3 .num {
    color: var(--gold);
    font-style: italic;
    font-size: 0.9rem;
    margin-right: 12px;
    font-weight: 400;
}

.role-list {
    list-style: none;
}

.role-list li {
    padding: 11px 0;
    font-size: 0.96rem;
    color: var(--charcoal);
    border-bottom: 1px dotted var(--line-soft);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.role-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.role-list li:last-child {
    border-bottom: none;
}

@media (max-width: 800px) {
    .roles-categories {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ==========================================================================
   Offices
   ========================================================================== */

.offices {
    background: var(--cream-light);
    border-top: 1px solid var(--line-soft);
    padding: 90px 0;
}

.offices-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 40px;
    flex-wrap: wrap;
}

.offices-header .section-title {
    margin-bottom: 0;
}

.offices-header p {
    color: var(--slate);
    max-width: 360px;
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 300;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.office {
    background: var(--cream-light);
    padding: 36px 28px;
    transition: background 0.3s ease;
}

.office:hover {
    background: var(--navy);
    color: var(--cream);
}

.office:hover .office-num,
.office:hover .office-city,
.office:hover .office-region {
    color: var(--cream);
}

.office:hover .office-num {
    color: var(--gold-soft);
}

.office-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 18px;
}

.office-city {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.office-region {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    font-weight: 500;
}

@media (max-width: 980px) {
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .offices-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Pull quote
   ========================================================================== */

.pull-quote {
    background: var(--navy);
    color: var(--cream);
    padding: 110px 0;
    text-align: center;
}

.pull-quote blockquote {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--cream-light);
    max-width: 920px;
    margin: 0 auto;
    font-style: italic;
    letter-spacing: -0.01em;
}

.pull-quote blockquote::before {
    content: '"';
    color: var(--gold);
    font-size: 4rem;
    line-height: 0;
    margin-right: 8px;
    vertical-align: -0.3em;
}

.pull-quote blockquote::after {
    content: '"';
    color: var(--gold);
    font-size: 4rem;
    line-height: 0;
    margin-left: 8px;
    vertical-align: -0.3em;
}

/* ==========================================================================
   Contact / CTA strip
   ========================================================================== */

.cta-strip {
    background: var(--cream-light);
    border-top: 1px solid var(--line-soft);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-inner h2 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    color: var(--navy);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.cta-inner h2 em {
    font-style: italic;
    color: var(--gold);
}

.cta-inner p {
    color: var(--slate);
    margin-top: 18px;
    font-size: 1.02rem;
    line-height: 1.7;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cta-actions .email {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--navy);
    font-weight: 500;
}

.cta-actions .email a:hover {
    color: var(--gold);
}

@media (max-width: 800px) {
    .cta-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--navy-deep);
    color: rgba(241, 234, 217, 0.7);
    padding: 70px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(160, 124, 58, 0.18);
}

.footer-brand h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--cream-light);
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-brand h3 .mark {
    color: var(--gold);
    font-style: italic;
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 320px;
    font-weight: 300;
}

.footer-col h4 {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 22px;
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    padding: 6px 0;
}

.footer-col li a {
    font-size: 0.92rem;
    color: rgba(241, 234, 217, 0.7);
    font-weight: 300;
}

.footer-col li a:hover {
    color: var(--gold-soft);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    font-size: 0.82rem;
    color: rgba(241, 234, 217, 0.5);
    font-weight: 300;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 920px;
    margin: 0 auto;
    background: var(--navy);
    color: var(--cream);
    padding: 20px 28px;
    z-index: 200;
    border: 1px solid rgba(160, 124, 58, 0.3);
    box-shadow: 0 4px 24px rgba(6, 25, 15, 0.25);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(241, 234, 217, 0.85);
    margin: 0;
    font-weight: 300;
    flex: 1;
    min-width: 280px;
}

.cookie-banner a {
    color: var(--gold-soft);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--cream);
}

.cookie-btn {
    background: var(--gold);
    color: var(--navy-deep);
    border: none;
    padding: 11px 28px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: var(--sans);
}

.cookie-btn:hover {
    background: var(--gold-soft);
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px 20px;
    }
    .cookie-banner-inner {
        gap: 16px;
    }
}

/* ==========================================================================
   Privacy page
   ========================================================================== */

.privacy {
    background: var(--cream-light);
    padding: 80px 0 100px;
}

.privacy-effective {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 48px;
}

.privacy h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy);
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.privacy p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--charcoal);
    margin-bottom: 16px;
    font-weight: 400;
}

.privacy a {
    color: var(--gold);
    text-decoration: underline;
}

.privacy a:hover {
    color: var(--navy);
}

.privacy strong {
    color: var(--navy);
    font-weight: 600;
}

.privacy em {
    color: var(--navy-soft);
    font-style: italic;
    font-weight: 500;
}

/* ==========================================================================
   Misc utilities
   ========================================================================== */

.divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 0 32px;
}

.divider.center {
    margin: 0 auto 32px;
}

.text-center {
    text-align: center;
}
