:root {
    --ink: #07111f;
    --midnight: #0b1b33;
    --blue: #102b52;
    --gold: #c99b38;
    --gold-light: #f1d28a;
    --ivory: #f8f5ef;
    --paper: #ffffff;
    --muted: #667085;
    --line: rgba(7, 17, 31, 0.12);
    --shadow: 0 24px 80px rgba(7, 17, 31, 0.18);
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0 0 1.2rem; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.05; letter-spacing: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 800; }
h1 { font-size: clamp(3.1rem, 8vw, 6.8rem); max-width: 1050px; }
h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
h3 { font-size: 1.2rem; }
input, textarea, select, button { font: inherit; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}
.skip-link, .screen-reader-text {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    z-index: 1000;
    padding: .65rem 1rem;
    background: var(--gold);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding: 18px 0;
    transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    background: rgba(7, 17, 31, 0.92);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
    padding: 10px 0;
}
.nav-shell, .primary-nav, .menu, .brand, .button-row, .socials, .footer-bottom {
    display: flex;
    align-items: center;
}
.nav-shell { justify-content: space-between; gap: 24px; }
.brand { gap: 12px; color: #fff; font-weight: 800; }
.brand-logo {
    width: clamp(132px, 13vw, 190px);
    height: auto;
    max-height: 76px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.42);
    background: linear-gradient(135deg, var(--gold), #785418);
    color: #101010;
    font-weight: 900;
}
.brand-text { line-height: 1.1; text-transform: uppercase; font-size: .85rem; letter-spacing: 0; }
.brand-text strong { display: block; color: var(--gold-light); }
.menu { list-style: none; margin: 0; padding: 0; gap: 22px; }
.menu a, .nav-cta {
    color: rgba(255,255,255,.86);
    font-size: .9rem;
    font-weight: 700;
}
.menu a:hover { color: var(--gold-light); }
.nav-cta {
    margin-left: 10px;
    padding: .72rem 1rem;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
}
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 5px auto;
}

.hero, .page-hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--ink);
    padding: 150px 0 90px;
}
.compact-hero { min-height: 48vh; align-items: center; background: linear-gradient(135deg, var(--ink), var(--blue)); }
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,17,31,.94) 0%, rgba(7,17,31,.72) 42%, rgba(7,17,31,.28) 100%);
}
.hero-content {
    position: relative;
    color: #fff;
    padding-bottom: 24px;
}
.hero-content p:not(.eyebrow) {
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 720px;
}
.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.button-row { gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .85rem 1.2rem;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #121212; }
.button-ghost { border-color: rgba(255,255,255,.36); color: #fff; }
.button-dark { background: var(--ink); color: #fff; margin-top: 18px; }
.text-link { color: var(--blue); font-weight: 900; border-bottom: 2px solid var(--gold); }

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: rgba(255,255,255,.68); }
.section-heading {
    max-width: 820px;
    margin-bottom: 42px;
}
.split-grid, .impact-grid, .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: clamp(34px, 7vw, 90px);
    align-items: center;
}
.image-stack { position: relative; }
.image-stack img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.impact-card {
    position: absolute;
    left: -24px;
    bottom: 28px;
    width: min(260px, 70%);
    padding: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.impact-card strong { display: block; font-family: var(--font-display); font-size: 3.2rem; color: var(--gold); line-height: 1; }
.impact-card span { font-weight: 800; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.service-card {
    min-height: 255px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    color: #fff;
}
.service-card.light {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: 0 18px 46px rgba(7,17,31,.08);
}
.service-card p { color: rgba(255,255,255,.66); }
.service-card.light p { color: var(--muted); }
.card-number { display: block; color: var(--gold); font-weight: 900; margin-bottom: 34px; }

.gold-band {
    background: linear-gradient(135deg, #d8ac4a, #f2d68e);
}
.gold-band p, .gold-band .eyebrow { color: rgba(7,17,31,.78); }

.project-grid, .portfolio-grid, .news-grid, .two-cards, .stats-grid {
    display: grid;
    gap: 22px;
}
.project-grid, .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portfolio-grid, .two-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    color: #fff;
    background: var(--ink);
}
.project-card.large { min-height: 520px; }
.project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    transition: transform .5s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card div {
    position: absolute;
    inset: auto 0 0;
    padding: 28px;
    background: linear-gradient(0deg, rgba(7,17,31,.94), transparent);
}
.project-card p { color: var(--gold-light); font-weight: 900; text-transform: uppercase; font-size: .78rem; }
.project-card h2, .project-card h3 { max-width: 92%; }

.stats-section { background: var(--blue); color: #fff; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
    padding: 28px;
    border-left: 1px solid rgba(255,255,255,.18);
}
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 5rem);
    color: var(--gold-light);
    line-height: 1;
}
.stat span { color: rgba(255,255,255,.78); font-weight: 800; }

.testimonial-carousel {
    position: relative;
    min-height: 220px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: clamp(28px, 6vw, 64px);
}
.testimonial { display: none; margin: 0; font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1.22; font-family: var(--font-display); }
.testimonial.active { display: block; }
.testimonial cite { display: block; margin-top: 22px; color: var(--gold); font: 800 .9rem var(--font-sans); text-transform: uppercase; }

.news-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(7,17,31,.06);
}
.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-bottom: 20px;
}
.news-card p { color: var(--gold); font-weight: 900; text-transform: uppercase; font-size: .78rem; }
.news-card a:hover { color: var(--gold); }
.cta-panel {
    padding: clamp(36px, 7vw, 76px);
    background: var(--ink);
    color: #fff;
    text-align: center;
}
.cta-panel h2 { max-width: 850px; margin-left: auto; margin-right: auto; }

.values-panel, .statement-card, .contact-panel {
    background: #fff;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(7,17,31,.08);
}
.statement-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.check-list { padding: 0; margin: 0; list-style: none; }
.check-list li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 800; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 12px; background: var(--gold); }
.impact-list { display: grid; gap: 18px; }
.impact-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 28px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
}
.impact-row span { font-family: var(--font-display); color: var(--gold); font-size: 2.8rem; line-height: 1; }

.contact-hero { min-height: 62vh; background: linear-gradient(135deg, var(--ink), var(--blue)); }
.contact-form {
    display: grid;
    gap: 18px;
    background: #fff;
    padding: clamp(26px, 5vw, 48px);
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; font-weight: 800; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    background: #f8fafc;
    padding: 14px 16px;
    color: var(--ink);
}
textarea { resize: vertical; }
.form-note { font-size: .86rem; margin: 0; }
.map-embed iframe {
    width: 100%;
    min-height: 240px;
    border: 0;
    filter: grayscale(1) contrast(1.05);
}
.prose { max-width: 820px; }
.prose a { color: var(--blue); border-bottom: 1px solid var(--gold); }
.featured-image img { width: 100%; max-height: 620px; object-fit: cover; margin-top: -70px; position: relative; z-index: 2; box-shadow: var(--shadow); }

.site-footer {
    background: #050b14;
    color: #fff;
    padding: 72px 0 26px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr 1fr;
    gap: 32px;
}
.site-footer p, .site-footer a { color: rgba(255,255,255,.68); }
.site-footer h3 { color: #fff; }
.footer-brand { margin-bottom: 16px; }
.footer-logo {
    width: 172px;
    max-height: 92px;
}
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials { gap: 10px; margin-top: 18px; }
.socials a, .whatsapp-float {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 900;
    font-size: .76rem;
}
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { min-width: 0; background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.newsletter-form button { border: 0; background: var(--gold); color: #111; padding: 0 16px; font-weight: 900; }
.footer-bottom {
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 42px;
    padding-top: 22px;
}
.footer-bottom p { margin: 0; font-size: .85rem; }
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    border: 0;
    color: #07111f;
    box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.reveal {
    opacity: 1;
    transform: none;
}
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}
.js-enabled .reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: fixed;
        top: 78px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
        background: rgba(7,17,31,.98);
        box-shadow: var(--shadow);
    }
    .primary-nav.is-open { display: flex; }
    .menu { display: grid; gap: 10px; }
    .nav-cta { margin-left: 0; text-align: center; }
    .split-grid, .impact-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .service-grid, .project-grid, .news-grid, .portfolio-grid, .two-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .container { width: min(100% - 28px, 1180px); }
    .hero, .page-hero { min-height: 82vh; padding: 126px 0 58px; }
    .compact-hero { min-height: 38vh; }
    h1 { font-size: 2.55rem; line-height: 1.08; }
    .hero-content h1 { max-width: 9.8ch; }
    .hero-content p:not(.eyebrow) { max-width: 34ch; }
    h2 { font-size: 2.15rem; }
    .service-grid, .project-grid, .news-grid, .portfolio-grid, .stats-grid, .form-row { grid-template-columns: 1fr; }
    .service-card, .news-card, .values-panel, .statement-card, .contact-form, .contact-panel { padding: 24px; }
    .project-card, .project-card.large { min-height: 380px; }
    .impact-row { grid-template-columns: 1fr; gap: 12px; }
    .footer-bottom, .newsletter-form { flex-direction: column; align-items: flex-start; }
    .impact-card { position: relative; left: 0; bottom: auto; width: 100%; margin-top: -18px; }
    .brand-logo { width: 122px; max-height: 62px; }
    .brand-text { font-size: .72rem; }
}
