/* ========================================
   White Oak Driving School — Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #2D1F1A;
    background: #FDF6F0;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Fonts --- */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }

/* --- Custom Properties --- */
:root {
    --terracotta: #B85A38;
    --terracotta-dark: #9A4528;
    --terracotta-light: #D4845E;
    --sand: #E8C9A0;
    --sand-light: #F5E6D0;
    --sand-lighter: #FDF6F0;
    --sand-dark: #C4A06A;
    --dark: #2D1F1A;
    --dark-soft: #4A3728;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(45, 31, 26, 0.08);
    --shadow-lg: 0 12px 48px rgba(45, 31, 26, 0.12);
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Outfit', sans-serif; font-weight: 600;
    border-radius: 50px; cursor: pointer; border: none;
    transition: all 0.25s ease; text-align: center;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--terracotta); }
.btn-white:hover { background: var(--sand-light); transform: translateY(-2px); }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; padding: 16px 32px; font-size: 1.05rem; }

/* --- Section Tag --- */
.section-tag {
    display: inline-block;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--terracotta); background: var(--sand-light);
    padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--dark); margin-bottom: 16px; }
.section-sub { font-size: 1.1rem; color: var(--dark-soft); max-width: 560px; }
.text-accent { color: var(--terracotta); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-sub { margin: 0 auto; }

/* --- Nav --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(253, 246, 240, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 90, 56, 0.1);
    transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--dark); }
.nav-logo { width: 36px; height: 36px; }
.nav-accent { color: var(--terracotta); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 16px; font-weight: 500; font-size: 0.95rem; color: var(--dark-soft); border-radius: 8px; transition: all 0.2s; }
.nav-links a:hover { color: var(--terracotta); background: var(--sand-light); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 0 80px;
    background: var(--sand-lighter);
    overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.geo-shape { position: absolute; opacity: 0.12; }
.geo-circle-1 { width: 400px; height: 400px; border-radius: 50%; background: var(--terracotta); top: -80px; right: -80px; }
.geo-circle-2 { width: 200px; height: 200px; border-radius: 50%; background: var(--sand-dark); bottom: 10%; left: 5%; }
.geo-triangle { width: 0; height: 0; border: none;
    border-style: solid;
    border-width: 0 90px 155px 90px;
    border-color: transparent transparent var(--terracotta-light) transparent;
    top: 20%; left: 8%; transform: rotate(-15deg); opacity: 0.15;
}
.geo-square { width: 120px; height: 120px; background: var(--sand-dark); top: 60%; right: 15%; transform: rotate(45deg); opacity: 0.1; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--sand);
    padding: 8px 18px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; color: var(--terracotta);
    margin-bottom: 24px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--dark); margin-bottom: 20px; line-height: 1.1; }
.hero-sub { font-size: 1.15rem; color: var(--dark-soft); margin-bottom: 32px; max-width: 480px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stat Cards */
.hero-cards { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--white); border-radius: var(--radius);
    padding: 20px 24px; box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateX(8px); }
.stat-card--1 { border-left: 4px solid var(--terracotta); }
.stat-card--2 { border-left: 4px solid var(--sand-dark); }
.stat-card--3 { border-left: 4px solid var(--terracotta-light); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card--1 .stat-icon { background: rgba(184, 90, 56, 0.1); color: var(--terracotta); }
.stat-card--2 .stat-icon { background: rgba(196, 160, 106, 0.2); color: var(--sand-dark); }
.stat-card--3 .stat-icon { background: rgba(212, 132, 94, 0.15); color: var(--terracotta-light); }
.stat-icon svg { width: 24px; height: 24px; }
.stat-number { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.stat-label { font-size: 0.85rem; color: var(--dark-soft); }

/* --- Services --- */
.services { padding: 100px 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    position: relative; background: var(--sand-lighter);
    border-radius: var(--radius); padding: 36px 28px;
    transition: all 0.3s ease; overflow: hidden;
    border: 1px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sand); background: var(--white); }
.service-card-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--terracotta); border-radius: var(--radius) var(--radius) 0 0; opacity: 0; transition: opacity 0.3s; }
.service-card:hover .service-card-accent { opacity: 1; }
.service-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(184, 90, 56, 0.08); color: var(--terracotta); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 10px; }
.service-card > p { font-size: 0.95rem; color: var(--dark-soft); margin-bottom: 16px; }
.service-features { display: flex; flex-direction: column; gap: 8px; }
.service-features li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--dark-soft); }
.service-features li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta-light); flex-shrink: 0; }

/* --- Why Us --- */
.why-us { padding: 100px 0; background: var(--sand-lighter); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-content .section-sub { margin-bottom: 36px; }
.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-item { display: flex; gap: 16px; }
.why-check { width: 28px; height: 28px; border-radius: 8px; background: var(--terracotta); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.why-check svg { width: 16px; height: 16px; }
.why-item strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1.05rem; color: var(--dark); margin-bottom: 4px; }
.why-item span { font-size: 0.95rem; color: var(--dark-soft); }
.why-visual { position: relative; }
.why-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.why-img-wrap img { width: 100%; height: 640px; object-fit: cover; border-radius: var(--radius); }
.why-img-accent { position: absolute; bottom: -20px; right: -20px; width: 200px; height: 200px; background: var(--terracotta); border-radius: var(--radius); opacity: 0.15; z-index: -1; }
.why-floating-card {
    position: absolute; bottom: 32px; left: -24px;
    background: var(--white); border-radius: var(--radius);
    padding: 24px 28px; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; gap: 4px;
}
.wfc-number { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: var(--terracotta); }
.wfc-label { font-size: 0.85rem; color: var(--dark-soft); line-height: 1.4; }

/* --- Process --- */
.process { padding: 100px 0; background: var(--white); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-steps::before {
    content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%;
    height: 2px; background: var(--sand); z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--terracotta); color: var(--white);
    font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; box-shadow: 0 4px 20px rgba(184, 90, 56, 0.3);
}
.process-step h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--dark-soft); max-width: 240px; margin: 0 auto; }

/* --- Testimonials --- */
.testimonials { padding: 100px 0; background: var(--sand-lighter); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--white); border-radius: var(--radius); padding: 32px 28px;
    box-shadow: var(--shadow); transition: transform 0.3s;
    border: 1px solid var(--sand-light);
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-stars svg { width: 18px; height: 18px; color: var(--sand-dark); fill: var(--sand-dark); }
.testimonial-card p { font-size: 0.95rem; color: var(--dark-soft); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.ta-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--terracotta); color: var(--white); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--dark); }
.testimonial-author span { font-size: 0.8rem; color: var(--dark-soft); }

/* --- CTA --- */
.cta { padding: 100px 0; background: var(--terracotta); position: relative; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-shape { position: absolute; border-radius: 50%; }
.cta-shape.csa { width: 300px; height: 300px; background: rgba(255,255,255,0.05); top: -80px; left: -60px; }
.cta-shape.csb { width: 180px; height: 180px; background: rgba(255,255,255,0.06); bottom: -40px; right: 10%; }
.cta-shape.csc { width: 80px; height: 80px; background: rgba(255,255,255,0.08); top: 20%; right: 5%; border-radius: 16px; transform: rotate(30deg); }
.cta-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 16px; }
.cta-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white:hover { background: var(--sand-light); }

/* --- Contact --- */
.contact { padding: 100px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info .section-sub { margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; }
.ci-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(184, 90, 56, 0.08); color: var(--terracotta); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon svg { width: 24px; height: 24px; }
.contact-item strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.contact-item span, .contact-item a { font-size: 0.95rem; color: var(--dark-soft); }
.contact-item a:hover { color: var(--terracotta); }
.contact-form-wrap { background: var(--sand-lighter); border-radius: var(--radius); padding: 40px; border: 1px solid var(--sand); }
.contact-form h3 { font-size: 1.4rem; color: var(--dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--sand);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem;
    color: var(--dark); background: var(--white); transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--terracotta); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
    display: none; align-items: center; gap: 10px;
    margin-top: 16px; padding: 16px; border-radius: var(--radius-sm);
    background: rgba(184, 90, 56, 0.08); color: var(--terracotta-dark);
    font-weight: 500; font-size: 0.95rem;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --- Map --- */
.map-section { height: 380px; }
.map-section iframe { filter: saturate(0.7) contrast(1.05); }

/* --- Footer --- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 12px; }
.footer-logo-icon { width: 32px; height: 32px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { font-family: 'Outfit', sans-serif; font-size: 1rem; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.85rem; }

/* --- Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
    .reveal.hidden { opacity: 0; transform: translateY(30px); }
}
.reveal { /* default visible for no-JS */ }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-cards { flex-direction: row; flex-wrap: wrap; }
    .stat-card { flex: 1; min-width: 200px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .why-visual { order: -1; }
    .why-img-wrap img { height: 400px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .process-steps::before { display: none; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--sand-lighter); flex-direction: column;
        padding: 20px; gap: 4px; border-bottom: 1px solid var(--sand);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; width: 100%; }
    .nav-toggle { display: flex; }
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-title { font-size: 2rem; }
    .hero-cards { flex-direction: column; }
    .stat-card { flex: none; }
    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .why-floating-card { left: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; justify-content: center; }
}
