/* ============================================
   Track Time Driving School — Stylesheet
   Deep navy + warm gold · Clean minimalist
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    color: #1a2744;
    background-color: #fafaf8;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1a2744;
    color: #fafaf8;
    padding: 0.5rem 1rem;
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 1rem;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    color: #1a2744;
    letter-spacing: -0.01em;
}

.section-title--center {
    text-align: center;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 39, 68, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.nav-logo-mark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.125rem;
    color: #1a2744;
    width: 36px;
    height: 36px;
    border: 1px solid #1a2744;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}

.nav-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.125rem;
    color: #1a2744;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a2744;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #c9a84c !important;
    border: 1px solid #c9a84c !important;
    padding: 0.5rem 1rem !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: #c9a84c !important;
    color: #1a2744 !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1px;
    background: #1a2744;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
    transform: translateY(-6px) rotate(-45deg);
    opacity: 0;
}

/* --- Hero --- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fafaf8;
    display: flex;
    flex-direction: column;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4rem;
    align-items: center;
    flex: 1;
}

.hero-left {
    padding-right: 1rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    color: #1a2744;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #4a5568;
    max-width: 440px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-features {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-features li {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a2744;
    font-weight: 400;
    position: relative;
    padding-left: 1rem;
}

.hero-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #c9a84c;
    border-radius: 50%;
}

.hero-right {
    position: relative;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(26, 39, 68, 0.12);
    pointer-events: none;
}

.hero-accent-line {
    position: absolute;
    bottom: -2rem;
    left: -1.5rem;
    width: 60%;
    height: 1px;
    background: #c9a84c;
}

.hero-divider {
    border: none;
    border-top: 1px solid rgba(26, 39, 68, 0.1);
    margin: 0 2rem;
}

.hero-divider-text {
    display: block;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4a5568;
    font-weight: 400;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #1a2744;
    color: #fafaf8;
    border-color: #1a2744;
}

.btn-primary:hover {
    background: #243456;
    border-color: #243456;
}

.btn-ghost {
    background: transparent;
    color: #1a2744;
    border-color: #1a2744;
}

.btn-ghost:hover {
    background: #1a2744;
    color: #fafaf8;
}

.btn-white {
    background: #fafaf8;
    color: #1a2744;
    border-color: #fafaf8;
}

.btn-white:hover {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #1a2744;
}

.btn-outline-white {
    background: transparent;
    color: #fafaf8;
    border-color: rgba(250, 250, 248, 0.5);
}

.btn-outline-white:hover {
    background: #fafaf8;
    color: #1a2744;
    border-color: #fafaf8;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- About --- */
.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1rem;
    line-height: 1.85;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 39, 68, 0.1);
}

.stat {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 2.25rem;
    color: #1a2744;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4a5568;
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    background: rgba(26, 39, 68, 0.1);
    align-self: stretch;
}

/* --- Services --- */
.services {
    padding: 6rem 0 8rem;
    background: #f3f3ef;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(26, 39, 68, 0.08);
    margin-top: 4rem;
}

.service-card {
    background: #f3f3ef;
    padding: 3rem 2.5rem;
    transition: background 0.3s ease;
}

.service-card:hover {
    background: #fafaf8;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    color: #c9a84c;
}

.service-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.375rem;
    color: #1a2744;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #4a5568;
    font-weight: 300;
}

/* --- Process --- */
.process {
    padding: 8rem 0;
}

.process-header {
    text-align: center;
    margin-bottom: 5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.process-step {
    padding: 0 2rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 2rem;
    width: 1px;
    height: calc(100% - 4rem);
    background: rgba(26, 39, 68, 0.1);
}

.step-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 3rem;
    color: #c9a84c;
    line-height: 1;
    margin-bottom: 1.25rem;
    display: block;
}

.step-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.375rem;
    color: #1a2744;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.step-description {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #4a5568;
    font-weight: 300;
}

/* --- Testimonials --- */
.testimonials {
    padding: 8rem 0;
    background: #1a2744;
}

.testimonials .section-eyebrow {
    color: #c9a84c;
}

.testimonials .section-title {
    color: #fafaf8;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial {
    padding: 2.5rem;
    border: 1px solid rgba(250, 250, 248, 0.08);
    position: relative;
}

.testimonial-quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    line-height: 1;
    color: #c9a84c;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.4;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(250, 250, 248, 0.8);
    font-weight: 300;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-footer {
    border-top: 1px solid rgba(250, 250, 248, 0.08);
    padding-top: 1.5rem;
}

.testimonial-author {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c9a84c;
    font-weight: 400;
}

/* --- CTA --- */
.cta {
    padding: 8rem 0;
    background: #fafaf8;
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: #c9a84c;
}

.cta-title {
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #4a5568;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
    padding: 8rem 0;
    background: #f3f3ef;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c9a84c;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4a5568;
    font-weight: 400;
}

.contact-text a {
    color: #1a2744;
    transition: color 0.2s ease;
}

.contact-text a:hover {
    color: #c9a84c;
}

.contact-text span {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4a5568;
    font-weight: 300;
}

/* Form */
.contact-form-wrap {
    background: #fafaf8;
    padding: 3rem;
    border: 1px solid rgba(26, 39, 68, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a2744;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #1a2744;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(26, 39, 68, 0.2);
    padding: 0.75rem 0;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: #c9a84c;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a2744' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #1a2744;
    font-size: 0.9375rem;
    font-weight: 400;
}

.form-success svg {
    color: #c9a84c;
    flex-shrink: 0;
}

.form-success.visible {
    display: flex;
}

/* --- Footer --- */
.footer {
    padding: 4rem 0 2rem;
    background: #1a2744;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(250, 250, 248, 0.08);
    margin-bottom: 2rem;
}

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

.footer-logo-mark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1rem;
    color: #fafaf8;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(250, 250, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1rem;
    color: #fafaf8;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250, 250, 248, 0.5);
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #c9a84c;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(250, 250, 248, 0.4);
    font-weight: 300;
}

.footer-bottom a {
    color: rgba(250, 250, 248, 0.4);
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #c9a84c;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 0.7fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid .testimonial:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(26, 39, 68, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }

    .hero-right {
        order: -1;
    }

    .hero-image-frame {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-accent-line {
        display: none;
    }

    .hero-features {
        gap: 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid .testimonial:last-child {
        grid-column: span 1;
    }

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

    .contact-form-wrap {
        padding: 2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-inner {
        padding: 0 1.25rem;
    }

    .hero-inner {
        padding: 2rem 1.25rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
