/* =========================================================
   The Ecosystem Agency — Brand styles
   Palette: midnight navy + antique gold + ivory
   ========================================================= */

:root {
    --navy-900: #06122a;
    --navy-800: #0b1d3a;
    --navy-700: #102a4e;
    --navy-600: #18345f;
    --gold-500: #c9a24b;
    --gold-400: #d8b86a;
    --gold-300: #e6cf94;
    --ivory: #f6f1e6;
    --paper: #fbf8f1;
    --ink: #0a1326;
    --muted: #6b7488;
    --line: rgba(201, 162, 75, 0.22);

    --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 14px;
    --shadow-soft: 0 20px 60px -25px rgba(6, 18, 42, 0.45);
    --shadow-gold: 0 14px 40px -18px rgba(201, 162, 75, 0.55);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--navy-700);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

a:hover {
    color: var(--gold-500);
    border-bottom-color: var(--gold-500);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--navy-900);
    margin: 0 0 .6em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold-500);
    margin-bottom: 1.1rem;
}

.lead {
    font-size: 1.18rem;
    color: #2a3144;
    max-width: 60ch;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(251, 248, 241, 0.85);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    color: var(--navy-900);
}

.brand img {
    height: 40px;
    width: auto;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: .02em;
    color: var(--navy-900);
}

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

.nav-links a {
    color: var(--navy-800);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
}

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

.nav-cta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--navy-800);
    color: var(--ivory) !important;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}

.nav-cta:hover {
    background: var(--navy-900);
    color: var(--gold-300) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--navy-800);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(201, 162, 75, .18), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(24, 52, 95, .35), transparent 60%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    color: var(--ivory);
    overflow: hidden;
    padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 12vw, 160px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .35;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    color: var(--ivory);
    font-weight: 400;
}

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

.hero p.lead {
    color: rgba(246, 241, 230, 0.82);
    font-size: 1.22rem;
    max-width: 56ch;
}

.hero .eyebrow {
    color: var(--gold-400);
}

.hero-mark {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mark img {
    max-width: 380px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
    animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cta-row {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--gold-400);
    color: var(--navy-900);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(246, 241, 230, 0.4);
}

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

/* ---------- Sections ---------- */
section {
    padding: clamp(70px, 9vw, 110px) 0;
}

.section-head {
    max-width: 740px;
    margin-bottom: 56px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-alt {
    background: linear-gradient(180deg, var(--paper) 0%, #f1ead8 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-dark {
    background:
        radial-gradient(900px 500px at 100% 0%, rgba(201, 162, 75, .14), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-800));
    color: var(--ivory);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--ivory);
}

.section-dark .lead {
    color: rgba(246, 241, 230, .82);
}

.section-dark .eyebrow {
    color: var(--gold-400);
}

/* ---------- Cards / grids ---------- */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 162, 75, 0.5);
}

.card .num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    color: #404a63;
    margin: 0;
}

.card-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 162, 75, 0.18);
    color: var(--ivory);
}

.card-dark p {
    color: rgba(246, 241, 230, .78);
}

/* ---------- Pillar list (Approach) ---------- */
.pillars {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.pillar {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 22px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.pillar .num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--gold-500);
    line-height: 1;
}

.pillar h3 {
    margin-bottom: 6px;
}

.pillar p {
    margin: 0;
    color: #3a4258;
}

/* ---------- Capability table ---------- */
.lanes {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.lanes th,
.lanes td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.lanes th {
    background: var(--navy-800);
    color: var(--ivory);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lanes tr:last-child td {
    border-bottom: none;
}

.lanes tr:nth-child(even) td {
    background: #fbf8f1;
}

.lanes td.lane {
    font-weight: 600;
    color: var(--navy-900);
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tag-covered {
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
}

.tag-partial {
    background: rgba(201, 162, 75, 0.18);
    color: #8a6a1f;
}

.tag-gap {
    background: rgba(176, 0, 32, 0.10);
    color: #b00020;
}

/* ---------- Quote ---------- */
.quote {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.3;
    color: var(--navy-900);
    font-style: italic;
    border-left: 3px solid var(--gold-500);
    padding: 6px 0 6px 28px;
    max-width: 820px;
}

.section-dark .quote {
    color: var(--ivory);
}

/* ---------- Lists ---------- */
ul.checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

ul.checks li {
    position: relative;
    padding-left: 30px;
    color: #2c3450;
}

.section-dark ul.checks li {
    color: rgba(246, 241, 230, .88);
}

ul.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--gold-300), var(--gold-500));
    box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.12);
}

/* ---------- CTA banner ---------- */
.cta-banner {
    margin: 0;
    padding: clamp(60px, 9vw, 100px) 0;
    background:
        radial-gradient(900px 400px at 0% 50%, rgba(201, 162, 75, .18), transparent 60%),
        linear-gradient(120deg, var(--navy-900), var(--navy-700));
    color: var(--ivory);
    text-align: center;
}

.cta-banner h2 {
    color: var(--ivory);
}

.cta-banner p {
    color: rgba(246, 241, 230, .82);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Form ---------- */
.form {
    display: grid;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
}

.form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy-700);
    margin-bottom: 6px;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9d2bf;
    border-radius: 10px;
    background: #fbf8f1;
    font: inherit;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.18);
}

.form textarea {
    min-height: 140px;
    resize: vertical;
}

.flash {
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(46, 125, 50, 0.1);
    color: #1f5e23;
    border: 1px solid rgba(46, 125, 50, 0.25);
    margin-bottom: 18px;
    font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-900);
    color: rgba(246, 241, 230, .7);
    padding: 60px 0 32px;
    border-top: 1px solid rgba(201, 162, 75, .18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-grid h4 {
    color: var(--gold-400);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.footer-grid a {
    color: rgba(246, 241, 230, .78);
    border: none;
}

.footer-grid a:hover {
    color: var(--gold-400);
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-brand img {
    height: 44px;
}

.footer-brand span {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--ivory);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    color: rgba(246, 241, 230, .5);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .hero-mark img {
        max-width: 240px;
        margin: 0 auto;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .lanes th,
    .lanes td {
        padding: 12px 14px;
        font-size: .92rem;
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 0;
        padding: 12px 24px 18px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-mark img {
        animation: none;
    }
}