/* ===========================
   GLOBAL TWEAKS / TYPOGRAPHY
   =========================== */

body {
    color: #1f2933; /* slightly richer body text */
}

/* Subtle extra breathing room on big screens */
@media (min-width: 1280px) {
    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Headings: a bit more presence */
.section h2 {
    font-size: 1.7rem;
    letter-spacing: 0.01em;
    margin-bottom: 1.3rem;
}

.section h3 {
    font-weight: 600;
}

/* Intro paragraphs under headings */
.section-intro {
    color: #4b5563;
    font-size: 0.97rem;
}

/* Lighten the alt background slightly */
.section-alt {
    background-color: #f6f7fb;
}


/* ===========================
   HEADER & NAVIGATION
   =========================== */

/* Sticky header with nicer scroll state */
.site-header {
    background: linear-gradient(135deg, #061225 0%, #0b1f3b 60%, #061225 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: box-shadow 0.2s ease, background-color 0.2s ease,
        transform 0.15s ease;
}

.site-header.header-scrolled {
    background: rgba(7, 16, 48, 0.96);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(0);
}

/* Header content alignment */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo a {
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: 0.05em;
    font-size: 0.98rem;
    text-transform: uppercase;
}

/* Desktop nav baseline (mobile overrides below) */
.nav {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.nav a {
    color: #e2e6f0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease,
        transform 0.1s ease;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav a.nav-cta {
    padding: 0.45rem 1rem;
}

/* Base hamburger icon (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* When menu is open, morph into an X */
.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* MOBILE NAV BEHAVIOR */
@media (max-width: 768px) {
    .header-inner {
        align-items: center;
    }

    /* Show hamburger on mobile */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
    }

    /* Collapse nav into a slide-down panel */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #071632;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.25rem 1rem;
        gap: 0.35rem;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);

        /* animation state */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav a {
        padding: 0.35rem 0;
        width: 100%;
        border-radius: 6px;
    }

    .nav a.nav-cta {
        margin-top: 0.35rem;
        align-self: stretch;
        text-align: center;
    }
}

/* Explicitly hide hamburger on larger screens (hard guardrail) */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }

    .nav {
        position: static;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}


/* ===========================
   HERO POLISH
   =========================== */

.section-hero {
    /* keep existing gradient from style.css, just tweak padding on mobile */
}

.hero-content h1 {
    letter-spacing: 0.01em;
}

/* On mobile, tighten but keep presence */
@media (max-width: 768px) {
    .section-hero {
        padding-top: 2.6rem;
        padding-bottom: 2.6rem;
    }

    .hero-content h1 {
        font-size: 2.05rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Hero card: slightly softer corners */
.hero-card {
    border-radius: 14px;
}


/* ===========================
   CARDS / STEPS / SAMPLE DEAL
   =========================== */

.card,
.step,
.sample-deal {
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Lift on hover (desktop only) */
@media (min-width: 769px) {
    .card:hover,
    .step:hover,
    .sample-deal:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    }
}

/* Small legal / note text tone */
.section-note {
    color: #6b7280;
    font-size: 0.88rem;
}


/* ===========================
   LISTS (AREAS / CRITERIA)
   =========================== */

.areas-list,
.criteria-list {
    font-size: 0.95rem;
}

/* On larger screens, give them a touch more separation */
@media (min-width: 768px) {
    .areas-list,
    .criteria-list {
        column-gap: 2rem;
    }
}


/* ===========================
   JOIN SECTION / FORM WRAPPER
   =========================== */

.section-join {
    /* keep dark background from style.css, just ensure text color */
    color: #ffffff;
}

/* White card with dark text for the embedded form */
.form-wrapper {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: 0 10px 30px rgba(3, 9, 25, 0.55);
    color: #0f172a;
}

/* Force dark text inside the wrapper (no white-on-white surprises) */
.form-wrapper,
.form-wrapper * {
    color: #0f172a;
}

/* Keep the iframe rounded visually */
.form-wrapper iframe {
    border-radius: 10px;
    overflow: hidden;
}

/* Fallback link styling */
.form-fallback {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.form-fallback a {
    color: #1e40af;
    text-decoration: underline;
}

/* Disclaimers below form: softer text color */
.section-join .disclaimer-text {
    color: #cbd5f5;
}


/* ===========================
   BUTTON POLISH
   =========================== */

/* Slight gradient & hover lift for primary button */
.btn-primary {
    background-image: linear-gradient(135deg, #1dbf73 0%, #0fae62 100%);
    box-shadow: 0 4px 14px rgba(5, 88, 54, 0.4);
}

.btn-primary:hover {
    background-image: linear-gradient(135deg, #19a864 0%, #0b8d54 100%);
    box-shadow: 0 6px 20px rgba(5, 88, 54, 0.55);
}


/* ===========================
   FOOTER TWEAKS
   =========================== */

.site-footer {
    font-size: 0.86rem;
    line-height: 1.4;
}

.footer-links a {
    font-size: 0.85rem;
}

/* Stack footer content cleanly on narrow screens */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
    }
}