/* ============================================
   Gi Gi Driving School — Styles
   Palette: Deep Navy (#0f172a) + Warm Gold (#c8a44e)
   Fonts: Libre Baskerville (headings) + Manrope (body)
   ============================================ */

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

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

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #1e293b;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
    font-family: 'Libre Baskerville', Georgia, serif;
    line-height: 1.2;
    color: #0f172a;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8a44e;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.0625rem;
    color: #475569;
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.8125rem 1.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #c8a44e;
    color: #0f172a;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #b8943f;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #0f172a;
    border: 1.5px solid #0f172a;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: #0f172a;
    color: #ffffff;
}

.btn-outline-dark {
    background-color: transparent;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
    border-color: #0f172a;
    background-color: #0f172a;
    color: #ffffff;
}

.btn-nav {
    background-color: #c8a44e;
    color: #0f172a;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-nav:hover,
.btn-nav:focus-visible {
    background-color: #b8943f;
}

.btn-white {
    background-color: #ffffff;
    color: #0f172a;
}

.btn-white:hover,
.btn-white:focus-visible {
    background-color: #f1f5f9;
    transform: translateY(-1px);
}

.btn-outline-light {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

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

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

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #0f172a;
    color: #c8a44e;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 8px;
}

.logo-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.primary-nav a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s ease;
}

.primary-nav a:not(.btn):hover,
.primary-nav a:not(.btn):focus-visible {
    color: #0f172a;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.nav-toggle:hover {
    background-color: #f1f5f9;
}

.hamburger {
    position: relative;
    width: 20px;
    height: 14px;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #0f172a;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span {
    top: 6px;
}

.hamburger::before {
    top: 0;
}

.hamburger::after {
    bottom: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger span {
    transform: rotate(45deg);
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(90deg);
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    opacity: 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding-top: 72px;
    background-color: #f8fafc;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #e2e8f0;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    color: #c8a44e;
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat {
    flex: 1;
    text-align: left;
}

.stat-number {
    display: block;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.1875rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background-color: #e2e8f0;
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background-color: #c8a44e;
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
}

/* ============================================
   Services
   ============================================ */
.services {
    padding: 6rem 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-desc {
    margin: 0 auto;
}

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

.service-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.25s ease;
}

.service-card:hover {
    border-color: #c8a44e;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: #c8a44e;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: #0f172a;
}

.service-desc {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
}

/* ============================================
   Why Us
   ============================================ */
.why-us {
    padding: 6rem 0;
    background-color: #f8fafc;
}

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

.why-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-content .section-label {
    text-align: left;
}

.why-intro {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-feature {
    display: flex;
    gap: 1rem;
}

.why-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    border-radius: 8px;
    color: #c8a44e;
    margin-top: 2px;
}

.why-feature-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.why-feature-desc {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.65;
}

/* ============================================
   Process
   ============================================ */
.process {
    padding: 6rem 0;
    background-color: #0f172a;
}

.process .section-header {
    margin-bottom: 3.5rem;
}

.process .section-label {
    color: #c8a44e;
}

.process .section-title {
    color: #ffffff;
}

.process .section-desc {
    color: #94a3b8;
    margin: 0 auto;
}

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

.process-step {
    position: relative;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.process-step:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(200, 164, 78, 0.3);
}

.step-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #c8a44e;
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.625rem;
}

.step-desc {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
}

.step-desc a {
    color: #c8a44e;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.step-desc a:hover {
    color: #dbb860;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 6rem 0;
    background-color: #ffffff;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:first-child {
    border-top: 1px solid #e2e8f0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1.375rem 0;
    font-family: 'Manrope', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0f172a;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #c8a44e;
}

.faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f1f5f9;
    color: #0f172a;
    transition: all 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    background-color: #0f172a;
    color: #c8a44e;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
    padding-bottom: 1.375rem;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.75;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 5rem 0;
    background-color: #0f172a;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-content {
    flex: 1;
    min-width: 280px;
}

.cta-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.cta-desc {
    font-size: 1.0625rem;
    color: #94a3b8;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 6rem 0;
    background-color: #f8fafc;
}

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

.contact-info .section-label {
    text-align: left;
}

.contact-desc {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 2rem;
}

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

.contact-detail {
    display: flex;
    gap: 1rem;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    border-radius: 10px;
    color: #c8a44e;
}

.contact-detail strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.contact-detail p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
}

.contact-detail a {
    color: #c8a44e;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.contact-detail a:hover {
    color: #b8943f;
}

/* Form */
.contact-form-wrapper {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

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

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

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c8a44e;
    box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.15);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success message */
.form-success {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.form-success h3 {
    font-size: 1.375rem;
    color: #0f172a;
}

.form-success p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.65;
}

.form-success .btn {
    margin-top: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: #0f172a;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c8a44e;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
}

.footer-contact address {
    font-style: normal;
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-contact p {
    font-size: 0.9375rem;
}

.footer-contact a {
    color: #c8a44e;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #dbb860;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #475569;
}

/* ============================================
   Scroll Reveal (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);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 2rem;
    }

    .why-grid {
        gap: 2.5rem;
    }

    .contact-grid {
        gap: 2.5rem;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 0;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    }

    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .primary-nav a:not(.btn) {
        padding: 0.875rem 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1rem;
    }

    .primary-nav a:not(.btn):last-child {
        border-bottom: none;
    }

    .btn-nav {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 2.5rem 0 3rem;
        min-height: auto;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-img-wrapper {
        border-radius: 12px;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .stat {
        flex: none;
        width: calc(50% - 0.5rem);
    }

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

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

    .why-image {
        order: -1;
    }

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

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

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

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

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

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

    .hero-actions .btn {
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
