/* ============================================
   Car Buddy — Classic & Elegant Marketing Site
   Deep Navy + Warm Gold Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --navy-950: #060e1f;
    --navy-900: #0a1628;
    --navy-800: #0f2140;
    --navy-700: #162d56;
    --navy-600: #1e3d6e;
    --navy-500: #264a7e;
    
    --gold-600: #a88632;
    --gold-500: #c8a44e;
    --gold-400: #d4b76a;
    --gold-300: #e0ca88;
    --gold-200: #ece0b0;
    --gold-100: #f5ecd4;
    
    --cream-50: #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ebe4d6;
    
    --text-dark: #0f1923;
    --text-medium: #3d4f63;
    --text-light: #6b7f94;
    --text-white: #f0ebe0;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.1);
    --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 16px 60px rgba(10, 22, 40, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

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

.gold {
    color: var(--gold-500);
}

/* --- Section Shared --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 560px;
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    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(200, 164, 78, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--navy-900);
}

.btn-outline-light:hover {
    background: var(--navy-900);
    color: #fff;
}

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

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 164, 78, 0.15);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(6, 14, 31, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.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;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(240, 235, 224, 0.8);
    position: relative;
}

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

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

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

.nav-cta {
    padding: 10px 22px !important;
    background: var(--gold-500);
    color: var(--navy-900) !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

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

.nav-cta:hover {
    background: var(--gold-400);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(200, 164, 78, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(30, 61, 110, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(15, 33, 64, 0.9) 0%, transparent 70%),
        linear-gradient(160deg, #060e1f 0%, #0f2140 40%, #162d56 70%, #0a1628 100%);
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(200, 164, 78, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(200, 164, 78, 0.03) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 14, 31, 0.3) 0%,
        rgba(6, 14, 31, 0.1) 50%,
        rgba(6, 14, 31, 0.5) 100%
    );
    z-index: 2;
}

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

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(240, 235, 224, 0.75);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-400);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(240, 235, 224, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(200, 164, 78, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(240, 235, 224, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid var(--cream-200);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-200);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    color: var(--gold-500);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--navy-900);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--cream-100);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--gold-500);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content > p {
    color: var(--text-medium);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-values {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.value-item svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

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

.why-us .section-title {
    color: #fff;
}

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

.why-card {
    background: var(--navy-800);
    border-radius: var(--radius-md);
    padding: 40px 36px;
    border: 1px solid rgba(200, 164, 78, 0.1);
    transition: all var(--transition);
}

.why-card:hover {
    border-color: rgba(200, 164, 78, 0.3);
    transform: translateY(-2px);
}

.why-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-500);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.95rem;
    color: rgba(240, 235, 224, 0.65);
    line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 36px 32px;
    border: 1px solid var(--cream-200);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold-200);
}

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

.testimonial-text {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-900);
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: var(--navy-900);
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(200, 164, 78, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 50%, rgba(30, 61, 110, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, #060e1f 0%, #0f2140 50%, #060e1f 100%);
}

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

.cta .section-eyebrow {
    color: var(--gold-400);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(240, 235, 224, 0.7);
    margin-bottom: 40px;
}

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

.cta-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cta-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--cream-100);
}

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

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

.contact-desc {
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-details {
    display: grid;
    gap: 28px;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    border-radius: var(--radius-sm);
    color: var(--gold-500);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

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

/* --- Contact Form --- */
.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--cream-200);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream-50);
    border: 1.5px solid var(--cream-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    color: #166534;
    font-size: 0.95rem;
}

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

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

/* --- Map --- */
.map-section {
    background: var(--navy-900);
}

.map-container {
    opacity: 0.9;
}

.map-container iframe:hover {
    opacity: 1;
}

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

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

.footer-brand p {
    color: rgba(240, 235, 224, 0.55);
    font-size: 0.95rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
}

.footer-logo svg {
    color: var(--gold-500);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.footer-links ul {
    display: grid;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(240, 235, 224, 0.6);
}

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

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(240, 235, 224, 0.55);
    line-height: 1.8;
}

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

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(240, 235, 224, 0.4);
}

.footer-bottom a {
    color: rgba(240, 235, 224, 0.4);
}

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

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* Default visible state for no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(6, 14, 31, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-120%);
        transition: transform var(--transition);
        border-bottom: 1px solid rgba(200, 164, 78, 0.15);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

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

    .about-image img {
        height: 350px;
    }

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

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

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

    .testimonials-grid .testimonial-card:last-child {
        grid-column: auto;
    }

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

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

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

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

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

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

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

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