/* =============================================================
   GDS — Geo Document Services
   Stylesheet for static landing page
   Translated 1:1 from src/app/App.tsx (Tailwind v4 + theme.css)
   ============================================================= */

/* ---------- Tokens (mirrors src/styles/theme.css) ---------- */
:root {
    --gds-blue:      #1e3a8a;
    --gds-blue-dark: #142a66;
    --gds-red:       #C8103A;
    --gds-red-dark:  #A30D2F;
    --gds-bg:        #fafafa;
    --gds-fg:        #1a1a1a;
    --gds-white:     #ffffff;

    /* Tailwind grays referenced in App.tsx */
    --gray-100:      #f3f4f6;
    --gray-200:      #e5e7eb;
    --gray-50:       #f9fafb;
    --gray-600:      #4b5563;
    --gray-700:      #374151;
    --gray-900:      #111827;

    /* Tailwind blue-50/100/200/700 referenced in App.tsx */
    --blue-50:       #eff6ff;
    --blue-100:      #dbeafe;
    --blue-200:      #bfdbfe;
    --blue-700:      #1d4ed8;

    --radius-sm:     0.125rem;
    --radius:        0.375rem;   /* App.tsx rounded-md */
    --radius-lg:     0.5rem;     /* App.tsx rounded-lg */

    --shadow-md:     0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg:     0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl:     0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-2xl:    0 25px 50px -12px rgba(0,0,0,0.25);

    --t-fast:        150ms ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gds-fg);
    background: var(--gds-white);  /* App.tsx hero/services/about explicitly use bg-white */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container {
    max-width: 1280px;          /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;         /* px-4 */
    padding-right: 1rem;
    width: 100%;
}
.container-narrow {
    max-width: 1024px;          /* max-w-5xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    background: var(--gds-white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-inner {
    padding-top: 0.75rem;       /* py-3 */
    padding-bottom: 0.75rem;
}
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo img {
    height: 48px;               /* h-12 */
    width: auto;
}
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;                  /* gap-8 */
}
.nav-desktop a {
    color: var(--gray-700);
    font-weight: 600;
    transition: color var(--t-fast);
}
.nav-desktop a:hover { color: var(--gds-blue); }
.nav-cta {
    padding: 0.625rem 1.5rem;   /* py-2.5 px-6 */
    background: var(--gds-red);
    color: var(--gds-white) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background var(--t-fast);
    font-size: 1rem;
}
.nav-cta:hover { background: var(--gds-red-dark); }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--gray-700);
    transition: color var(--t-fast);
}
.nav-toggle:hover { color: var(--gds-blue); }
.nav-toggle svg { width: 28px; height: 28px; }

.nav-mobile {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}
.nav-mobile.is-open { display: block; }
.nav-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
}
.nav-mobile-list a {
    color: var(--gray-700);
    font-weight: 600;
    transition: color var(--t-fast);
}
.nav-mobile-list a:hover { color: var(--gds-blue); }
.nav-mobile-list .nav-cta { width: 100%; text-align: center; display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--gds-white);
}
.hero-inner {
    padding-top: 4rem;          /* py-16 */
    padding-bottom: 4rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;                  /* gap-12 */
    align-items: center;
}
.hero h1 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;        /* mb-8 */
    font-size: 2.25rem;         /* text-4xl */
    line-height: 1.05;
    letter-spacing: -1.5px;
}
.hero-lede {
    font-size: 1.125rem;        /* text-lg */
    color: var(--gray-600);
    margin-bottom: 2.5rem;      /* mb-10 */
    line-height: 1.625;
    max-width: 42rem;           /* max-w-2xl */
}
.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;               /* gap-5 */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;        /* text-lg */
    border-radius: var(--radius);
    transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
    text-align: center;
    line-height: 1.25;
    padding: 1rem 2.5rem;       /* py-4 px-10 */
}
.btn-primary {
    background: var(--gds-red);
    color: var(--gds-white);
    box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
    background: var(--gds-red-dark);
    box-shadow: var(--shadow-xl);
}
.btn-secondary {
    background: var(--gds-white);
    color: var(--gds-blue);
    border: 2px solid var(--gds-blue);
    box-shadow: var(--shadow-md);
}
.btn-secondary:hover {
    background: var(--gds-blue);
    color: var(--gds-white);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    order: -1;                  /* order-first on mobile */
    opacity: 0.9;
}
.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-2xl);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.hero-divider {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--gds-blue), var(--gray-200), var(--gds-red));
}

/* ============================================================
   SHARED SECTION HEADER PATTERN
   ============================================================ */
.section-head {
    text-align: center;
    margin-bottom: 3.5rem;      /* mb-14 */
}
.section-head h2 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;      /* mb-6 */
    font-size: 2.25rem;         /* text-4xl */
    letter-spacing: -0.8px;
}
.section-underline {
    width: 6rem;                /* w-24 */
    height: 4px;                /* h-1 */
    background: var(--gds-red);
    margin-left: auto;
    margin-right: auto;
}
.section-head p {
    font-size: 1.25rem;         /* text-xl */
    color: var(--gray-600);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding-top: 4rem;          /* py-16 */
    padding-bottom: 4rem;
    background: var(--gds-white);
    border-top: 1px solid var(--gray-100);
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;                /* gap-6 */
    max-width: 48rem;           /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;               /* gap-5 */
    cursor: default;
}
.service-icon {
    flex-shrink: 0;
    width: 3.5rem;              /* w-14 */
    height: 3.5rem;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gds-blue);
    transition: background var(--t-fast);
}
.service-icon svg { width: 24px; height: 24px; }
.service-item:hover .service-icon { background: var(--blue-100); }
.service-title {
    padding-top: 0.75rem;       /* pt-3 */
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.25rem;         /* text-xl */
    transition: color var(--t-fast);
}
.service-item:hover .service-title { color: var(--gds-blue); }

/* ============================================================
   WHY IT MATTERS
   ============================================================ */
.why {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: var(--gray-50);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;                /* gap-10 */
}
.benefit-card {
    text-align: center;
    background: var(--gds-white);
    padding: 2rem;              /* p-8 */
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--t-fast);
}
.benefit-card:hover { box-shadow: var(--shadow-lg); }
.benefit-icon {
    width: 5rem;                /* w-20 */
    height: 5rem;
    background: var(--blue-50);
    border: 2px solid var(--blue-100);
    border-radius: 50%;
    margin: 0 auto 1.5rem;      /* mb-6 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gds-blue);
}
.benefit-icon svg { width: 56px; height: 56px; }    /* w-14 h-14 */
.benefit-card h3 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;        /* mb-4 */
    font-size: 1.5rem;          /* text-2xl */
}
.benefit-card p {
    color: var(--gray-600);
    line-height: 1.625;
    font-size: 1.125rem;        /* text-lg */
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: var(--gds-white);
    border-top: 1px solid var(--gray-100);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;                  /* gap-12 */
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.about-content h2 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;        /* mb-8 */
    font-size: 2.25rem;
    letter-spacing: -0.8px;
    line-height: 1.1;
}
.about-content .section-underline {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;        /* mb-8 */
}
.about-text > * + * { margin-top: 1.5rem; }   /* space-y-6 */
.about-text p {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.625;
}
.about-text p.lead {
    font-weight: 500;
    color: var(--gray-900);
}
.about-attribution {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
}
.about-attribution .name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gds-blue);
    margin-bottom: 0.25rem;
}
.about-attribution .role {
    color: var(--gray-600);
    font-weight: 500;
}
.about-attribution .org {
    color: var(--gray-600);
    margin-top: 0.5rem;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
    background: var(--gds-red);
    padding: 30px 0;
}
.cta-strip-inner { text-align: center; }
.cta-strip h2 {
    color: var(--gds-white);
    font-weight: 700;
    margin-bottom: 2rem;        /* mb-8 */
    font-size: 1.875rem;        /* text-3xl */
    letter-spacing: -0.8px;
    padding: 0 1rem;
    line-height: 1.15;
}
.cta-strip p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 24px;
    line-height: 1.5;
    padding: 0 1rem;
}
.btn-on-red {
    padding: 1rem 3rem;         /* py-4 px-12 */
    background: var(--gds-white);
    color: var(--gds-red);
    font-weight: 700;
    border-radius: var(--radius);
    font-size: 1.125rem;
    box-shadow: var(--shadow-xl);
    transition: background var(--t-fast), box-shadow var(--t-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-on-red:hover {
    background: var(--gray-50);
    box-shadow: var(--shadow-2xl);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--gds-blue);
    color: var(--gds-white);
    padding-top: 1.75rem;       /* py-7 */
    padding-bottom: 1.75rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;                /* gap-6 */
    margin-bottom: 1.5rem;      /* mb-6 */
}
.footer-logo {
    display: block;
    height: 60px;
    width: auto;
    margin-bottom: 0.75rem;
}
.footer-desc {
    color: var(--blue-100);
    font-size: 0.875rem;        /* text-sm */
    line-height: 1.375;         /* leading-snug */
    margin-bottom: 0.75rem;
    max-width: 24rem;           /* max-w-sm */
}
.footer-sub {
    color: var(--blue-200);
    font-size: 0.75rem;         /* text-xs */
}
.footer-col h4 {
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--gds-white);
    font-size: 0.875rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.375rem; }
.footer-links a {
    color: var(--blue-200);
    font-size: 0.875rem;
    transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--gds-white); }
.footer-contact {
    display: flex; flex-direction: column; gap: 0.375rem;
    color: var(--blue-200);
    font-size: 0.875rem;
}
.footer-contact a, .footer-contact span {
    color: var(--blue-200);
    transition: color var(--t-fast);
    cursor: pointer;
}
.footer-contact a:hover, .footer-contact span:hover { color: var(--gds-white); }
.footer-contact .city {
    margin-top: 0.5rem;
    color: var(--blue-100);
    cursor: default;
}
.footer-contact .city:hover { color: var(--blue-100); }

.footer-bottom {
    border-top: 1px solid rgba(29, 78, 216, 0.5);   /* blue-700/50 */
    padding-top: 1rem;
}
.footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.footer-copyright {
    color: var(--blue-200);
    font-size: 0.75rem;
}
.footer-legal { display: flex; gap: 1rem; font-size: 0.75rem; }
.footer-legal a {
    color: var(--blue-200);
    transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--gds-white); }

/* ============================================================
   RESPONSIVE — sm: 640px, md: 768px, lg: 1024px, xl: 1280px
   ============================================================ */
@media (min-width: 640px) {
    .container, .container-narrow {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .nav-logo img { height: 64px; }                 /* sm:h-16 */

    .hero-inner { padding-top: 6rem; padding-bottom: 6rem; }
    .hero h1 { font-size: 3rem; }                   /* sm:text-5xl */
    .hero-lede { font-size: 1.25rem; }              /* sm:text-xl */
    .hero-ctas { flex-direction: row; }
    .btn { padding: 1.25rem 3rem; }                 /* sm:py-5 sm:px-12 */
    .btn-on-red { padding: 1.25rem 3.5rem; }        /* sm:py-5 sm:px-14 */

    .section-head { margin-bottom: 4rem; }
    .section-head h2 { font-size: 3rem; }

    .services { padding-top: 5rem; padding-bottom: 5rem; }
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 3.5rem;                          /* sm:gap-x-14 sm:gap-y-10 */
    }

    .why { padding-top: 5rem; padding-bottom: 5rem; }
    .why-grid { gap: 3rem; }                         /* sm:gap-12 */

    .about { padding-top: 5rem; padding-bottom: 5rem; }
    .about-content h2 { font-size: 3rem; }
    .about-text p { font-size: 1.25rem; }

    .cta-strip h2 { font-size: 2.25rem; }            /* sm:text-4xl */

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-bottom-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .container, .container-narrow {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .nav-inner { padding-top: 1rem; padding-bottom: 1rem; }
    .nav-logo img { height: 84px; }
    .nav-desktop { display: flex; }
    .nav-toggle { display: none; }
    .nav-mobile { display: none !important; }

    .hero-inner { padding-top: 8rem; padding-bottom: 8rem; }
    .hero-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 5rem;                                   /* lg:gap-20 */
    }
    .hero h1 { font-size: 3.75rem; }                 /* lg:text-6xl */
    .hero-lede { font-size: 1.5rem; }                /* lg:text-2xl */
    .hero-image { order: 0; }                        /* lg:order-last */

    .section-head { margin-bottom: 5rem; }
    .section-head h2 { font-size: 3.75rem; }

    .services { padding-top: 7rem; padding-bottom: 7rem; }
    .services-grid { gap: 2.5rem 5rem; }              /* lg:gap-x-20 */

    .why { padding-top: 7rem; padding-bottom: 7rem; }
    .why-grid { gap: 4rem; }                          /* lg:gap-16 */

    .about { padding-top: 7rem; padding-bottom: 7rem; }
    .about-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 5rem;
    }
    .about-content h2 { font-size: 3.75rem; }

    .cta-strip h2 { font-size: 3rem; }                /* lg:text-5xl */

    .footer { padding-top: 2.25rem; padding-bottom: 2.25rem; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
    .footer-brand { grid-column: span 1; }
}

@media (min-width: 1280px) {
    .hero h1 { font-size: 4.5rem; }                   /* xl:text-7xl */
}
