/* ============================================
   DriveSafe Online — Styles
   Midnight Blue + Mint · Clean Minimalist
   ============================================ */

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

:root {
    --midnight: #0A1628;
    --midnight-light: #1A2D4A;
    --midnight-mid: #2A4060;
    --mint: #34D4A8;
    --mint-light: #5EEBC0;
    --mint-dark: #2BB890;
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --gray-50: #F1F5F7;
    --gray-100: #E2E8EC;
    --gray-200: #C8D1D8;
    --gray-300: #9AA8B4;
    --gray-400: #6B7F90;
    --gray-500: #4A5E70;
    --gray-600: #2D3F50;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--midnight);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 14px;
}
.skip-link:focus {
    top: 12px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow 0.3s var(--ease-smooth);
}
.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--midnight);
}
.logo--light .logo-text {
    color: var(--white);
}

/* NAV */
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}
.primary-nav a {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--mint);
    transition: width 0.3s var(--ease-out);
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--midnight);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
    width: 100%;
}

/* NAV TOGGLE */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--midnight);
    padding: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 12px 28px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}
.btn:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
}
.btn--primary:hover {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(52, 212, 168, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--midnight);
    border-color: var(--midnight);
}
.btn--outline:hover {
    background: var(--midnight);
    color: var(--white);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--white {
    background: var(--white);
    color: var(--midnight);
    border-color: var(--white);
}
.btn--white:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 13px;
}
.btn--lg {
    padding: 16px 36px;
    font-size: 15px;
}
.btn--full {
    width: 100%;
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 16px;
}
.section-label--light {
    color: var(--mint-light);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    color: var(--midnight);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.section-title--light {
    color: var(--white);
}

.section-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-400);
    max-width: 560px;
}
.section-subtitle--light {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--midnight);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.7) 0%,
        rgba(10, 22, 40, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}
.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 auto 40px;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: float 2.5s var(--ease-smooth) infinite;
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   PROGRAMS
   ============================================ */
.programs {
    padding: 120px 0;
    background: var(--white);
}
.programs .section-label,
.programs .section-title,
.programs .section-subtitle {
    text-align: center;
}
.programs .section-subtitle {
    margin: 0 auto 64px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.program-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s var(--ease-out);
}
.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
    border-color: var(--mint);
}

.program-img {
    height: 220px;
    overflow: hidden;
}
.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.program-card:hover .program-img img {
    transform: scale(1.05);
}

.program-body {
    padding: 32px;
}
.program-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint-dark);
    background: rgba(52, 212, 168, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.program-body h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    color: var(--midnight);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.program-body > p {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 20px;
}
.program-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.program-list li {
    font-size: 14px;
    color: var(--gray-500);
    padding-left: 16px;
    position: relative;
}
.program-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mint);
}

/* ============================================
   WHY
   ============================================ */
.why {
    padding: 120px 0;
    background: var(--off-white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.why-text .section-subtitle {
    margin-bottom: 0;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--mint-dark);
    margin-top: 2px;
}
.feature-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--midnight);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.feature-desc {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
}

/* ============================================
   APPROACH
   ============================================ */
.approach {
    padding: 120px 0;
    background: var(--white);
}
.approach-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.approach-text .section-subtitle {
    margin-bottom: 0;
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--gray-100);
}
.step:first-child {
    border-top: 1px solid var(--gray-100);
}
.step-number {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 14px;
    color: var(--mint);
    padding-top: 2px;
    letter-spacing: 0.02em;
}
.step-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--midnight);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.step-desc {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
}

/* ============================================
   COMMUNITY
   ============================================ */
.community {
    padding: 120px 0;
    background: var(--midnight);
    overflow: hidden;
}
.community-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.community-text .section-subtitle {
    margin-bottom: 0;
}

.stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 48px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.stat {
    flex: 1;
    text-align: center;
}
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 48px;
    color: var(--mint);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
}

.community-img {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 8/5;
}
.community-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-light) 100%);
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.cta-text {
    flex: 1;
}
.cta-text .section-subtitle {
    margin-bottom: 0;
}
.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--white);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.contact-info .section-subtitle {
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-icon {
    color: var(--mint-dark);
    flex-shrink: 0;
}
.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 2px;
}
.contact-item a {
    color: var(--midnight);
    font-weight: 400;
    transition: color 0.2s;
}
.contact-item a:hover {
    color: var(--mint-dark);
}

/* FORM */
.contact-form-wrap {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--midnight);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(52, 212, 168, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-note {
    font-size: 13px;
    color: var(--gray-300);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--mint-dark);
    margin: 0 auto 16px;
}
.form-success h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    color: var(--midnight);
    margin-bottom: 8px;
}
.form-success p {
    font-size: 15px;
    color: var(--gray-400);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--midnight);
    padding: 64px 0 32px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    max-width: 280px;
    line-height: 1.7;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--mint);
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-phone {
    font-size: 18px;
    font-weight: 400;
    color: var(--white);
    transition: color 0.2s;
}
.footer-phone:hover {
    color: var(--mint);
}
.footer-address {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}
.footer-bottom span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   SCROLL REVEAL (below fold only)
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-layout,
    .approach-inner,
    .community-inner,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-actions {
        justify-content: center;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-100);
        padding: 24px;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s var(--ease-out);
        z-index: 999;
    }
    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .primary-nav a::after {
        display: none;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .programs,
    .why,
    .approach,
    .community,
    .contact {
        padding: 80px 0;
    }
    .program-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        flex-direction: column;
        gap: 24px;
    }
    .stat-divider {
        width: 48px;
        height: 1px;
    }
    .stat-number {
        font-size: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrap {
        padding: 24px;
    }

    .cta {
        padding: 80px 0;
    }
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-actions .btn {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-content {
        padding: 100px 16px 60px;
    }
}
