/* GIDMA Landing Page — Lovable design (static) */

@font-face {
    font-family: "Class Garamond";
    src: url("../fonts/ClassGarmnd_BT_Roman.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Class Garamond";
    src: url("../fonts/ClassGarmnd_BT_Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --radius: 0.5rem;

    /* Brand palette — deep navy + warm gold */
    --navy-darkest: #0c1829;
    --navy-deep: #142438;
    --navy: #1e3a5c;
    --gold: #d4b56a;
    --gold-muted: #b89d5a;

    --background: #faf9f7;
    --foreground: #1a2332;
    --muted-foreground: #5a6270;
    --border: #e2e4e8;
    --white: #ffffff;

    /* Shared column rhythm — Vision left + Footer left MUST match */
    --section-pad-x: 2rem;
    --icon-col: 3.5rem;
    --icon-gap: 1.25rem;

    --gradient-hero: linear-gradient(
        180deg,
        color-mix(in srgb, var(--navy-darkest) 40%, transparent) 0%,
        color-mix(in srgb, var(--navy-darkest) 65%, transparent) 100%
    );
    --gradient-vision: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy) 100%);
}

@media (min-width: 768px) {
    :root {
        --section-pad-x: 3.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --section-pad-x: 4rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", system-ui, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: "Class Garamond", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    isolation: isolate;
    overflow: visible;
    color: var(--white);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

/* Header — above hero content so mobile dropdown stays clickable */
.site-header {
    position: relative;
    z-index: 50;
}

.site-header__inner {
    position: relative;
    width: 100%;
    margin: 0;
    max-width: none;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .site-header__inner {
        padding: 1.5rem 3.5rem;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        padding: 1.5rem 4rem;
    }
}

.site-brand {
    display: flex;
    align-items: center;
    line-height: 0;
}

.site-brand__logo {
    display: block;
    height: 3.75rem;
    width: auto;
}

@media (min-width: 768px) {
    .site-brand__logo {
        height: 4.5rem;
    }
}

@media (min-width: 1280px) {
    .site-brand__logo {
        height: 5rem;
    }
}

.site-brand__divider,
.site-brand__tagline {
    display: none;
}

/* Nav */
.site-nav {
    display: none;
    align-items: center;
    align-self: center;
    gap: 2.5rem;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ffffff;
    line-height: 1;
    padding: 0.35rem 0;
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

@media (min-width: 1280px) {
    .site-nav a {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }
}

.site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 100;
    min-width: 12rem;
    background: rgba(12, 24, 41, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        border: none;
        padding: 0;
        min-width: 0;
        box-shadow: none;
    }

    .site-nav.is-open {
        display: flex;
        flex-direction: row;
        position: static;
        top: auto;
        right: auto;
        z-index: auto;
        background: none;
        border: none;
        padding: 0;
        min-width: 0;
        box-shadow: none;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 12;
    position: relative;
    padding: 0.25rem;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

/* Hero content — below header so mobile menu links stay clickable */
.hero__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    padding: 6rem 1.5rem 8rem;
}

@media (min-width: 1024px) {
    .hero__content {
        padding: 8rem 1.5rem 11rem;
    }
}

.hero__title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
}

.hero__subtitle {
    margin-top: 1rem;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: clamp(0.95rem, 2.2vw, 1.125rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--gold);
    text-shadow: 0 2px 12px rgba(12, 24, 41, 0.85), 0 0 24px rgba(12, 24, 41, 0.6);
    max-width: 36rem;
    line-height: 1.5;
}

.hero__intro {
    margin-top: 1.5rem;
    max-width: 42rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

.hero__cta {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--white);
    transition: background 0.25s ease, color 0.25s ease;
}

.hero__cta:hover {
    background: var(--gold);
    color: var(--navy-darkest);
}

/* ─── FOCUS SECTIONS ─── */
.focus {
    background: var(--background);
}

#mission,
#vision,
#contact {
    scroll-margin-top: 5rem;
}

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

/* Mobile: text then image so sections never stack images back-to-back
   (also separates the hero from the first section photo) */
@media (max-width: 1023px) {
    .feature-row__image {
        order: 2;
    }

    .feature-block {
        order: 1;
    }

    .feature-row + .feature-row {
        border-top: 1px solid var(--border);
    }
}

@media (min-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
    }

    .feature-row--reverse .feature-block {
        order: 1;
    }

    .feature-row--reverse .feature-row__image {
        order: 2;
    }
}

.feature-row__image {
    width: 100%;
    height: 100%;
    max-height: 35rem;
    object-fit: cover;
}

.feature-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: 3.5rem 2rem;
}

@media (min-width: 768px) {
    .feature-block {
        padding: 3.5rem 3.5rem;
    }
}

@media (min-width: 1024px) {
    .feature-block {
        padding: 5rem 4rem;
    }
}

.feature-block__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.feature-block__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
    color: var(--gold-muted);
}

.feature-block__title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-darkest);
    line-height: 1.25;
}

.feature-block__rule {
    width: 4rem;
    height: 1px;
    background: var(--gold);
}

.feature-block__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-block__body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--muted-foreground);
}

/* ─── VISION ─── */
.vision {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--gradient-vision);
}

.vision__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 6px 6px;
    pointer-events: none;
}

/* Full-bleed 50/50 — identical to footer__main */
.vision__inner,
.footer__main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

@media (min-width: 1024px) {
    .vision__inner,
    .footer__main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* LEFT cells — Vision heading + Footer address share ONE rule */
.vision__lead,
.footer__item:not(.footer__item--email) {
    display: grid;
    grid-template-columns: var(--icon-col) minmax(0, 1fr);
    column-gap: var(--icon-gap);
    align-items: center;
    padding: 3.5rem var(--section-pad-x);
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .vision__lead,
    .footer__item:not(.footer__item--email) {
        padding: 5rem var(--section-pad-x);
    }
}

.vision__icon,
.footer__item:not(.footer__item--email) .footer__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: var(--icon-col);
    height: var(--icon-col);
    min-width: var(--icon-col);
    min-height: var(--icon-col);
    max-width: var(--icon-col);
    max-height: var(--icon-col);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
}

.vision__icon {
    color: var(--gold);
}

.footer__item:not(.footer__item--email) .footer__icon {
    color: var(--gold-muted);
}

.vision__icon svg,
.footer__item:not(.footer__item--email) .footer__icon svg {
    width: 1.25rem;
    height: 1.25rem;
    max-width: 100%;
    max-height: 100%;
}

.vision__label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--gold);
    margin: 0;
    padding: 0;
}

.vision__title {
    margin: 0.75rem 0 0;
    padding: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.2;
}

.vision__rule {
    margin-top: 1rem;
    width: 4rem;
    height: 1px;
    background: color-mix(in srgb, var(--gold) 70%, transparent);
}

.vision__heading,
.footer__address {
    margin: 0;
    padding: 0;
    min-width: 0;
    text-align: left;
}

.vision__text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    padding: 2.5rem var(--section-pad-x) 3.5rem;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .vision__text {
        display: flex;
        align-items: center;
        align-self: stretch;
        min-height: 100%;
        padding: 5rem var(--section-pad-x);
    }
}

/* ─── FOOTER ─── */
.footer {
    border-top: 1px solid var(--border);
    background: var(--background);
    width: 100%;
    max-width: none;
}

.footer__item--email {
    display: grid;
    grid-template-columns: var(--icon-col) minmax(0, 1fr);
    column-gap: var(--icon-gap);
    align-items: center;
    padding: 2.5rem var(--section-pad-x) 3.5rem;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .footer__item--email {
        padding: 5rem var(--section-pad-x);
    }
}

.footer__item--email .footer__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: var(--icon-col);
    height: var(--icon-col);
    margin: 0;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
    color: var(--gold-muted);
}

.footer__item--email .footer__icon svg {
    width: 1.1rem;
    height: 1.1rem;
    max-width: 100%;
    max-height: 100%;
}

.footer__address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.75;
}

.footer__org {
    font-family: "Class Garamond", Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
    padding: 0;
}

.footer__lines {
    margin-top: 0.25rem;
    color: var(--muted-foreground);
}

.footer__email {
    padding: 0;
    font-size: 0.875rem;
    color: var(--foreground);
    transition: color 0.2s ease;
    min-width: 0;
}

.footer__email:hover {
    color: var(--gold-muted);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem var(--section-pad-x);
    text-align: center;
    width: 100%;
}

.footer__bottom p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
