/* ========================================
   Excel Driving School — Styles
   ======================================== */

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

:root {
    --navy: #1a2f4b;
    --navy-dark: #111f33;
    --navy-light: #243d5e;
    --gold: #c9a84c;
    --gold-light: #dfc06e;
    --gold-dark: #b08f32;
    --white: #ffffff;
    --off-white: #f5f3ef;
    --gray-50: #faf9f7;
    --gray-100: #f0ede8;
    --gray-200: #e0dbd3;
    --gray-400: #9e9790;
    --gray-600: #5c5650;
    --gray-800: #2a2520;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(26,47,75,0.08);
    --shadow-md: 0 4px 16px rgba(26,47,75,0.10);
    --shadow-lg: 0 8px 32px rgba(26,47,75,0.14);
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: 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(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius);
    z-index: 9999;
    font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    box-shadow: 0 4px 16px rgba(26,47,75,0.30);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; padding: 16px 24px; }

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy);
}
.logo--light, .logo--light * { color: var(--white); }

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--navy-dark);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.375rem;
}
.logo--light .logo-mark { background: var(--gold); color: var(--navy-dark); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
    position: relative;
}
.main-nav a:not(.btn):hover { color: var(--navy); }
.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    position: relative;
    transition: background var(--transition);
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); top: 0; }

/* --- Hero --- */
.hero {
    padding-top: 72px;
    background: var(--navy);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 60px 0;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
}
.trust-icon {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}
.hero-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
}
.section-eyebrow--light { color: var(--gold); }
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}
.section-title--light { color: var(--white); }

/* --- Services --- */
.services {
    padding: 96px 0;
    background: var(--gray-50);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: var(--navy);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--gold);
}
.service-icon svg { width: 28px; height: 28px; }
.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.service-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 96px 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image {
    position: relative;
}
.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }

.about-content .section-eyebrow { text-align: left; }
.about-content .section-title { text-align: left; margin-bottom: 24px; }
.about-text {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
    padding: 28px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.stat { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.4;
}
.about-content > .btn { margin-top: 8px; }

/* --- Why Us --- */
.why-us {
    padding: 96px 0;
    background: var(--navy);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.why-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: background var(--transition), border-color var(--transition);
}
.why-card:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(201,168,76,0.4);
}
.why-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 12px;
}
.why-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.why-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
    padding: 96px 0;
    background: var(--gray-50);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--gold);
    margin-bottom: 20px;
}
.testimonial-stars svg { width: 18px; height: 18px; }
.testimonial-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}
.cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.cta-text {
    color: rgba(255,255,255,0.7);
    font-size: 1.0625rem;
    max-width: 560px;
    line-height: 1.7;
}
.cta-actions { flex-shrink: 0; }

/* --- FAQ --- */
.faq {
    padding: 96px 0;
    background: var(--white);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--gray-200);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 24px 0;
    text-align: left;
}
.faq-q-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
}
.faq-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--gold);
    transition: transform var(--transition);
}
.faq-item[open] .faq-toggle,
.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 0 24px;
}
.faq-answer p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.75;
}
.faq-answer a {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faq-answer a:hover { color: var(--navy); }

/* --- Contact --- */
.contact {
    padding: 96px 0;
    background: var(--navy);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-info .section-eyebrow { text-align: left; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }
.contact-text {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
    display: flex;
    gap: 16px;
}
.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item strong {
    display: block;
    color: var(--white);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.contact-item p, .contact-item a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.contact-item a:hover { color: var(--gold); }

/* --- Form --- */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}
.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    color: #166534;
    font-size: 0.9375rem;
}
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; color: #22c55e; }

/* --- Footer --- */
.site-footer {
    background: var(--navy-dark);
    padding: 64px 0 0;
    color: rgba(255,255,255,0.7);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
}
.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 12px;
}
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* --- Scroll Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid { gap: 32px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid .testimonial-card:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; z-index: 1001; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 88px 32px 32px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }
    .main-nav.open { right: 0; }
    .main-nav a { font-size: 1.0625rem; }
    .main-nav a:not(.btn)::after { display: none; }
    
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 40px 0 60px;
    }
    .hero-image { order: -1; }
    .hero-img-wrapper { border-radius: var(--radius); }
    .hero-accent { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-content .section-eyebrow,
    .about-content .section-title { text-align: center; }
    .about-stats { text-align: center; }
    
    .why-grid { grid-template-columns: 1fr; }
    
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonials-grid .testimonial-card:last-child { grid-column: span 1; max-width: 100%; }
    
    .cta-grid { flex-direction: column; text-align: center; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-info .section-eyebrow,
    .contact-info .section-title { text-align: center; }
    .contact-text { text-align: center; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-headline { font-size: 1.75rem; }
    .about-img-accent { display: none; }
    .about-stats { grid-template-columns: 1fr; gap: 16px; }
    .contact-form-wrap { padding: 28px 20px; }
}
