/* ===================================
   B & B Auto Tech - Custom Styles
   =================================== */

:root {
    /* Color Palette */
    --navy: #1e3a5f;
    --navy-light: #2d4a6f;
    --navy-dark: #152a45;
    --gold: #d4a574;
    --gold-light: #e8c4a0;
    --gold-dark: #b8925f;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #faf9f7;
    --cream: #f5f3f0;
    --gray-50: #f8f7f5;
    --gray-100: #f0efe9;
    --gray-200: #e2e0d8;
    --gray-300: #c8c5ba;
    --gray-400: #a8a498;
    --gray-500: #78746c;
    --gray-600: #5c5952;
    --gray-700: #44423e;
    --gray-800: #2e2c28;
    --gray-900: #1a1917;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--gray-600);
}

/* Utility Classes */
.text-gold {
    color: var(--gold);
}

.text-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
}

.logo-icon {
    color: var(--gold);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.nav-links a:hover {
    color: var(--navy);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/289740/pexels-photo-289740.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(21, 42, 69, 0.85) 0%,
        rgba(30, 58, 95, 0.75) 50%,
        rgba(21, 42, 69, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding-top: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-title {
    color: var(--white);
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-style: italic;
}

.hero-title span {
    font-style: normal;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    align-self: center;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.1);
    border-color: var(--gold);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 16px;
    color: var(--gold);
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
}

.service-card p {
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.service-features li svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* Driving School Section */
.driving-school {
    padding: var(--section-padding);
    background: var(--white);
}

.driving-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.driving-content .section-tag {
    text-align: left;
}

.driving-content .section-title {
    text-align: left;
}

.driving-content .section-subtitle {
    text-align: left;
    margin-bottom: 40px;
}

.driving-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.driving-feature {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-icon.gold {
    background: rgba(212, 165, 116, 0.15);
    color: var(--gold-dark);
}

.feature-icon.navy {
    background: rgba(30, 58, 95, 0.1);
    color: var(--navy);
}

.driving-feature h4 {
    color: var(--navy);
    margin-bottom: 4px;
}

.driving-feature p {
    font-size: 0.9375rem;
}

.driving-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

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

.image-accent {
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    border-radius: 24px;
    transform: translate(16px, 16px);
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--navy);
    color: var(--white);
    padding: 24px 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.3);
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.badge-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--cream);
}

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

.about-image {
    position: relative;
}

.about-image .image-wrapper {
    border-radius: 24px;
    overflow: hidden;
}

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

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: -40px;
    padding: 0 24px;
}

.about-stat {
    background: var(--white);
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-stat .stat-number {
    color: var(--navy);
    font-size: 2rem;
}

.about-stat .stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-subtitle {
    text-align: left;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 32px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    display: flex;
    gap: 16px;
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    color: var(--navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.value-item h4 {
    color: var(--navy);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.testimonials .section-tag {
    color: var(--gold-light);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 16px;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    border-radius: 50%;
    color: var(--white);
}

.testimonial-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--gold);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

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

.contact-info .section-subtitle {
    text-align: left;
    margin-bottom: 40px;
}

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

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 14px;
    color: var(--navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-item h4 {
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.contact-item a:hover {
    color: var(--gold);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

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

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    color: var(--white);
    margin-bottom: 24px;
}

.form-success h4 {
    color: var(--navy);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-600);
}

/* Map Section */
.map-section {
    height: 400px;
}

.map-section iframe {
    filter: grayscale(30%);
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    font-size: 0.9375rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--gold);
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive */
@media (max-width: 1024px) {
    .driving-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .driving-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--gray-100);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .about-stats {
        margin-top: 24px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .service-card {
        padding: 28px 24px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}
