/* Millennial Consulting: shared stylesheet */

:root {
    --color-primary: #446eb6;
    --color-primary-2: #005EE9;
    --color-dark: #0F172A;
    --color-dark-2: #364151;
    --color-light-bg: #E7F6FF;
    --color-white: #FFFFFF;
    --color-border: #D1DAE5;
    --color-black: #070614;
    --color-text: #222222;

    /* Semantic tokens: these are the ones theme-switching actually overrides.
       The literal palette above stays constant (e.g. quote-block/footer are
       "always dark" accents in both themes); only page chrome flips. */
    --surface: var(--color-white);
    --surface-alt: var(--color-light-bg);
    --text-heading: var(--color-dark);
    --text-muted: var(--color-dark-2);
    --text-body: var(--color-text);
    --border-color: var(--color-border);

    --font-heading: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius: 12px;
    --max-width: 1160px;
    --header-height: 84px;
}

:root[data-theme="dark"] {
    --color-primary: #6f9ae0;
    --color-primary-2: #4d9fff;

    --surface: #0B1220;
    --surface-alt: #141B2E;
    --text-heading: #F1F5F9;
    --text-muted: #A8B3C6;
    --text-body: #C9D3E0;
    --border-color: rgba(255, 255, 255, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.2s ease, color 0.2s ease;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-2); }

ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.25;
}

h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }

p { margin-bottom: 1rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 72px 0; }
.section--alt { background: var(--surface-alt); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

/* ── VISION / MISSION ──
   Asymmetric on purpose: Vision is one short, declarative line and reads as
   a headline; Mission is a longer working paragraph and reads as prose. The
   column widths and accent bar echo a ledger's two-column statement, a
   register that fits an investment firm rather than a decorative flourish. */
.vm-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
}

.vm-vision { padding-top: 4px; }
.vm-statement {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-heading);
}

.vm-mission {
    border-left: 3px solid var(--color-primary);
    padding-left: 28px;
}
.vm-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 46ch;
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .vm-grid { grid-template-columns: 1fr; gap: 32px; }
    .vm-mission { border-left: none; border-top: 3px solid var(--color-primary); padding-left: 0; padding-top: 20px; }
    .vm-body { max-width: none; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-2); color: var(--color-white); }

.btn--ghost { border-color: var(--color-white); color: var(--color-white); }
.btn--ghost:hover { background: var(--color-white); color: var(--color-primary); }

/* ── HEADER ── */
#site-header { position: sticky; top: 0; z-index: 100; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-heading);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.nav-cta { margin-left: 8px; }

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text-heading); border-radius: 2px; }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px 28px;
        gap: 18px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-cta { margin-left: 0; }
}

/* ── BANNER / HERO ── */
.banner {
    position: relative;
    color: var(--color-white);
    background-image:
        linear-gradient(120deg, rgba(15,23,42,0.88) 10%, rgba(68,110,182,0.72) 100%),
        url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 96px 0;
}

.banner--home { padding: 130px 0 110px; }
.banner--page { padding: 64px 0; }

.banner .eyebrow { color: #cfe0ff; }
.banner h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    max-width: 760px;
}
.banner p.lead {
    max-width: 640px;
    font-size: 1.05rem;
    color: #dbe6ff;
    margin-top: 16px;
}
.banner .btn-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Services hero: the 7 services are real, enumerable content, so the hero
   doubles as a jump-nav straight into the matching card below. */
.hero-chip-row {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
}
.hero-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
}

/* Contact hero: get the two fastest ways to reach us in front of the visitor
   immediately, rather than making them scroll to the info list below. */
.hero-quick-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── ABOUT HERO ──
   About is a dossier, not a mood shot: drop the photo the other pages share
   and read instead as a company letterhead, a dark statement page with the
   real headline facts set out underneath like ledger entries. */
.about-hero {
    background: var(--color-black);
    color: var(--color-white);
    padding: 88px 0 0;
}
.about-hero__intro { max-width: 720px; padding-bottom: 44px; }
.about-hero .eyebrow { color: #9fb8e6; }
.about-hero h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    max-width: 720px;
}
.about-hero .lead {
    max-width: 620px;
    font-size: 1.05rem;
    color: #c3cee2;
    margin-top: 16px;
    margin-bottom: 0;
}

.about-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.about-hero__fact {
    padding: 24px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.about-hero__fact:first-child { border-left: none; padding-left: 0; }
.about-hero__fact dt {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8fa3c4;
    margin-bottom: 6px;
}
.about-hero__fact dd {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-white);
}

@media (max-width: 700px) {
    .about-hero__facts { grid-template-columns: 1fr; }
    .about-hero__fact {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        padding-left: 0;
    }
    .about-hero__fact:first-child { border-top: none; padding-top: 0; }
}

/* ── CARDS / GRIDS ── */
.grid {
    display: grid;
    gap: 28px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
}

.card--icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--surface-alt);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-card { scroll-margin-top: calc(var(--header-height) + 16px); }
.service-card ul { margin-top: 12px; }
.service-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.94rem;
    color: var(--text-muted);
}
.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ── CLOSING SERVICE (Talent and Organization) ──
   Seven services don't divide evenly into a 3-column grid, so rather than
   leave the 7th card stranded alone in its own row, it becomes a deliberate
   full-width closing statement: the discipline that runs under the other six. */
.closing-service {
    scroll-margin-top: calc(var(--header-height) + 16px);
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.closing-service__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.closing-service__text h3 { margin-bottom: 8px; }
.closing-service__text p { color: var(--text-muted); margin-bottom: 0; }
.closing-service__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.94rem;
    color: var(--text-muted);
}
.closing-service__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

@media (max-width: 860px) {
    .closing-service { grid-template-columns: 1fr; }
    .closing-service__icon { margin-bottom: 4px; }
}

/* ── VALUES / PILLS ── */
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
    background: var(--surface-alt);
    color: var(--text-heading);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.92rem;
}

.badge-list { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-body);
}

/* ── QUOTE / MD MESSAGE ── */
/* Always a dark accent block regardless of theme, so it uses the literal
   palette color, not the surface token that flips with dark mode. */
.quote-block {
    background: var(--color-black);
    color: var(--color-white);
    border-radius: var(--radius);
    padding: 44px;
}
.quote-block p { color: #cbd5e1; }
.quote-block .signee {
    margin-top: 20px;
    color: var(--color-white);
    font-family: var(--font-heading);
}
.quote-block .signee strong { display: block; font-size: 1.05rem; }
.quote-block .signee span { color: #94a3b8; font-size: 0.88rem; }

.quote-block--with-photo {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.quote-block__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.15);
}
.quote-block__body { flex: 1; min-width: 0; }

@media (max-width: 640px) {
    .quote-block--with-photo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ── PARTNERS ── */
.partner-list { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .partner-list { grid-template-columns: 1fr; } }
.partner-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
}
.partner-item span {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item strong { display: block; color: var(--text-heading); }

.form-field { margin-bottom: 18px; }
.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-heading);
    margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-body);
    background: var(--surface);
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
    margin-top: 4px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { color: #15803d; }
.form-status.error { color: #b91c1c; }

.map-embed {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 32px;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ── FOOTER ── */
/* Always a dark accent block regardless of theme, same reasoning as .quote-block. */
.site-footer {
    background: var(--color-black);
    color: #94a3b8;
    padding: 40px 0;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-inner p { margin: 0; font-size: 0.85rem; }
.footer-inner strong { color: var(--color-white); }

.scroll-top {
    background: var(--color-primary);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
}
.scroll-top:hover { background: var(--color-primary-2); color: var(--color-white); }
