/* ========================================
   4-Star Driving School — Custom Styles
   ======================================== */

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

:root {
    --navy-900: #0a1628;
    --navy-800: #0f172a;
    --navy-700: #1e2d4a;
    --navy-600: #2a3f66;
    --gold-500: #d4a017;
    --gold-400: #e2b832;
    --gold-300: #f0d060;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    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 transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-star {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold-500);
    line-height: 1;
}

.nav-logo-text {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--navy-800);
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--gray-600);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-500);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--navy-800);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--white);
    background: var(--navy-800);
    padding: 10px 20px;
    letter-spacing: 0.02em;
    transition: background var(--transition);
}

.nav-cta:hover {
    background: var(--navy-700);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--navy-800);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--navy-800);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--white);
    padding: 8px;
    transition: transform var(--transition);
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-menu-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    transition: color var(--transition);
}

.mobile-menu-link:hover {
    color: var(--gold-500);
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--gold-400);
    margin-top: 16px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-800);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(10, 22, 40, 0.7) 100%);
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 32px;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-accent {
    font-style: italic;
    color: var(--gold-400);
}

.hero-subheadline {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 480px;
}

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

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 48px;
}

.hero-stat {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat:first-child {
    padding-top: 0;
}

.hero-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
}

.hero-stat-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 -24px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 32px;
    transition: all var(--transition);
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-800);
    border-color: var(--gold-500);
}

.btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.3);
}

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

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy-800);
    border-color: var(--gray-300);
}

.btn-outline-dark:hover {
    border-color: var(--navy-800);
    background: var(--navy-800);
    color: var(--white);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 0.875rem;
}

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

/* ========================================
   Section Shared
   ======================================== */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--navy-800);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-line {
    width: 48px;
    height: 1.5px;
    background: var(--gold-500);
    margin-bottom: 32px;
}

.section-line--centered {
    margin-left: auto;
    margin-right: auto;
}

.section-header--centered {
    text-align: center;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services .section-header {
    margin-bottom: 64px;
}

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

.service-card {
    padding: 48px 40px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.08);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    margin-bottom: 24px;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--navy-800);
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-600);
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 1px;
    background: var(--gold-500);
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 120px 0;
    background: var(--off-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--gold-500);
    z-index: -1;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-value-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.about-value span:last-child {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--gray-700);
}

/* ========================================
   Why Us Section
   ======================================== */
.why-us {
    padding: 120px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.why-card {
    padding: 48px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.why-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.06);
}

.why-card-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 24px;
    transition: color var(--transition);
}

.why-card:hover .why-card-number {
    color: var(--gold-500);
}

.why-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--navy-800);
    margin-bottom: 12px;
    line-height: 1.3;
}

.why-card-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--gray-500);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 120px 0;
    background: var(--off-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    max-width: 440px;
}

.contact-text {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-500);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--gray-700);
}

.contact-detail-link {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--navy-800);
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 2px;
    transition: border-color var(--transition), color var(--transition);
}

.contact-detail-link:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border: 1px solid var(--gray-200);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.form-input {
    width: 100%;
    padding: 14px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--gray-800);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    outline: none;
    transition: border-color var(--transition);
    -webkit-appearance: none;
}

.form-input:focus {
    border-bottom-color: var(--gold-500);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-select {
    cursor: pointer;
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 40px 20px;
}

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

.form-success-icon {
    margin-bottom: 8px;
}

.form-success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy-800);
}

.form-success-text {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--gray-500);
    max-width: 320px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--navy-800);
    padding: 80px 0 0;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 64px;
    align-items: start;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-star {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold-500);
}

.footer-logo-text {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.45);
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--gold-400);
}

.footer-address {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom span {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-stats {
        border-left: none;
        padding-left: 0;
        flex-direction: row;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 32px;
        margin-top: 16px;
    }

    .hero-stat {
        flex: 1;
        padding: 16px 0;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-stat:last-child {
        border-right: none;
    }

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

    .about-layout {
        gap: 48px;
    }

    .contact-layout {
        gap: 48px;
    }

    .footer-layout {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-container {
        padding: 0 24px;
    }

    .hero-headline {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }

    .services {
        padding: 80px 0;
    }

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

    .service-card {
        padding: 36px 32px;
    }

    .about {
        padding: 80px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img {
        height: 360px;
    }

    .about-image-accent {
        display: none;
    }

    .why-us {
        padding: 80px 0;
    }

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

    .why-card {
        padding: 36px;
    }

    .cta-section {
        padding: 80px 0;
    }

    .contact {
        padding: 80px 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info {
        max-width: 100%;
    }

    .contact-form-wrapper {
        padding: 32px;
    }

    .footer {
        padding: 64px 0 0;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 0;
    }

    .hero-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-stat:last-child {
        border-bottom: none;
    }

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

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