/* ==========================================================================
   Northern Sweet Supply — Landing Page
   ========================================================================== */

:root {
    --navy: #1B2A4A;
    --navy-deep: #111C32;
    --navy-light: #243656;
    --navy-surface: #2A3F64;
    --gold: #D4A34A;
    --gold-light: #E4BA6A;
    --gold-dim: rgba(212, 163, 74, 0.12);
    --blue-accent: #4B7BE5;
    --white: #F7F8FA;
    --white-pure: #FFFFFF;
    --gray-100: #E8EBF0;
    --gray-200: #CDD3DC;
    --gray-300: #A0AABB;
    --gray-400: #7A8699;
    --gray-500: #56637A;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.landing {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--navy-deep);
    color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* ── Navigation ── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 28, 50, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    color: var(--white);
}

.nav-brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-300);
    border-radius: 0.375rem;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--white); }

.nav-link--login {
    margin-left: 0.5rem;
    background: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-200);
}

.nav-link--login:hover {
    background: var(--navy-surface);
    color: var(--white);
}

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

.nav-links-mobile-logo { display: block; }
@media (min-width: 768px) { .nav-links-mobile-logo { display: none; } }

/* Mobile menu */
.nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
}

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

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-gold {
    background: var(--gold);
    color: var(--navy-deep);
    padding: 0.8125rem 1.75rem;
}

.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
    background: transparent;
    color: var(--gray-200);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--navy-surface);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--white);
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* ── Section Layout ── */
.section {
    padding: 5rem 0;
}

.section--lg { padding: 6rem 0; }

@media (min-width: 768px) {
    .section { padding: 6.5rem 0; }
    .section--lg { padding: 8rem 0; }
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--white);
}

@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.section-subtitle {
    margin-top: 1rem;
    font-size: 1.0625rem;
    color: var(--gray-400);
    max-width: 560px;
    line-height: 1.65;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 50%, transparent);
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

@media (min-width: 768px) { .hero { padding: 7rem 0 6rem; } }

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 50%, rgba(75, 123, 229, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(212, 163, 74, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; }

.hero-content { max-width: 640px; }

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--white);
}

@media (min-width: 640px) { .hero-title { font-size: 3.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

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

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: contain;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 768px) {
    .hero-logo { display: block; }
}

.hero-text {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-400);
    max-width: 520px;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-stats {
    margin-top: 3.5rem;
    display: flex;
    gap: 2.5rem;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-top: 0.125rem;
}

/* ── Cards ── */
.card {
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
    border-color: rgba(212, 163, 74, 0.25);
    transform: translateY(-2px);
}

.card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.card-icon--gold { background: var(--gold-dim); }
.card-icon--blue { background: rgba(75, 123, 229, 0.12); }

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.375rem;
}

.card-text {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.55;
}

.card-brands {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.card-brand-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
}

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Brands Bar ── */
.brands-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.625rem;
    padding: 2rem 0;
}

.brand-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-400);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

.brand-badge:hover {
    border-color: var(--gold);
    color: var(--white);
}

/* ── Programs ── */
.program-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    transition: background 0.2s;
}

.program-item:hover { background: rgba(255, 255, 255, 0.02); }

.program-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.program-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.program-text {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.55;
}

/* ── Coverage ── */
.coverage-card {
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: border-color 0.25s;
}

.coverage-card:hover { border-color: rgba(75, 123, 229, 0.3); }

.coverage-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--blue-accent);
    flex-shrink: 0;
    margin-top: 0.375rem;
    box-shadow: 0 0 8px rgba(75, 123, 229, 0.4);
}

.coverage-city {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.coverage-towns {
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ── Contact Form ── */
.contact-section {
    background: var(--navy);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 1.5rem;
}

@media (min-width: 640px) { .contact-section { padding: 3rem 2.5rem; } }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-200);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    font-size: 0.875rem;
    background: var(--navy-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--white);
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input::placeholder { color: var(--gray-500); }
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 163, 74, 0.15);
}

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

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

/* ── Footer ── */
.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 0 2rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-top { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    opacity: 0.7;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-200);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.footer-link {
    font-size: 0.8125rem;
    color: var(--gray-400);
    transition: color 0.2s;
}

.footer-link:hover { color: var(--white); }

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger.visible > *:nth-child(n+7) { transition-delay: 0.35s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
