/* ============================================
   BOBBITTS AUTOMOTIVE — Custom Styles
   Palette: Emerald Green (#047857) + Cream (#FDF8F0)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-emerald-900: #022c22;
    --color-emerald-800: #064e3b;
    --color-emerald-700: #065f46;
    --color-emerald-600: #047857;
    --color-emerald-500: #059669;
    --color-emerald-400: #10b981;
    --color-emerald-100: #d1fae5;
    --color-emerald-50:  #ecfdf5;
    
    --color-cream-50:  #fefdfb;
    --color-cream-100: #fdf8f0;
    --color-cream-200: #f5efe3;
    --color-cream-300: #e8dfd0;
    
    --color-dark:    #1a1a1a;
    --color-gray-700:#374151;
    --color-gray-500:#6b7280;
    --color-gray-300:#d1d5db;
    --color-gray-100:#f3f4f6;
    --color-white:   #ffffff;
    
    --font-heading: 'Fraunces', serif;
    --font-body:    'DM Sans', sans-serif;
    
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full: 9999px;
    
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl:  0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
    
    --transition: all 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-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-dark);
    background-color: var(--color-cream-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

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

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.125rem; }

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

/* --- Section Label --- */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-emerald-600);
    background: var(--color-emerald-50);
    border: 1px solid var(--color-emerald-100);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-label.light {
    color: var(--color-cream-200);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
}

.section-header.light h2,
.section-header.light p {
    color: var(--color-cream-100);
}

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

.btn-primary {
    background: var(--color-emerald-600);
    color: var(--color-white);
    border-color: var(--color-emerald-600);
}

.btn-primary:hover {
    background: var(--color-emerald-700);
    border-color: var(--color-emerald-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    border-color: var(--color-emerald-600);
    color: var(--color-emerald-600);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--color-white);
    color: var(--color-emerald-700);
    border-color: var(--color-white);
}

.btn-light:hover {
    background: var(--color-cream-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-emerald-700);
}

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

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

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

.nav-links a:not(.btn):hover {
    color: var(--color-emerald-600);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-emerald-600);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(2, 44, 34, 0.6);
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    background: var(--color-cream-50);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-xl);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-dark);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--color-emerald-600);
}

/* --- Hero Section --- */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--color-cream-50);
    overflow: hidden;
}

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

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

.badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--color-emerald-700);
    background: var(--color-emerald-50);
    border: 1px solid var(--color-emerald-100);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--color-dark);
    line-height: 1.15;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    margin-bottom: 36px;
    line-height: 1.7;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

.trust-item svg {
    color: var(--color-emerald-600);
    flex-shrink: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-emerald-100);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.floating-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-emerald-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-600);
    flex-shrink: 0;
}

.floating-card-text {
    display: flex;
    flex-direction: column;
}

.floating-card-text strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-dark);
}

.floating-card-text span {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
    background: var(--color-cream-100);
}

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

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-emerald-100);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--color-emerald-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-600);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-emerald-600);
    color: var(--color-white);
}

.service-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.service-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-gray-500);
}

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

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

.about-image {
    position: relative;
}

.image-stack {
    position: relative;
}

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

.about-accent-bg {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    background: var(--color-emerald-100);
    border-radius: var(--radius-xl);
    z-index: -1;
}

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

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

.about-content > p {
    font-size: 1.0625rem;
    margin-bottom: 16px;
    line-height: 1.75;
}

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

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

.value-icon {
    width: 52px;
    height: 52px;
    background: var(--color-emerald-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-600);
    flex-shrink: 0;
}

.value-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* --- Why Us Section --- */
.why-us {
    padding: 100px 0;
    background: var(--color-emerald-800);
}

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

.why-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

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

.why-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: rgba(255,255,255,0.15);
    margin-bottom: 16px;
    line-height: 1;
}

.why-card h3 {
    color: var(--color-white);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.why-card p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta {
    padding: 80px 0;
    background: var(--color-emerald-600);
}

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

.cta h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    margin-bottom: 36px;
}

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

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

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

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1.0625rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

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

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--color-emerald-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-600);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    color: var(--color-dark);
    margin-bottom: 4px;
}

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

.contact-item a:hover {
    color: var(--color-emerald-600);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--color-dark);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    background: var(--color-cream-50);
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-emerald-600);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-emerald-50);
    border: 1px solid var(--color-emerald-100);
    border-radius: var(--radius-md);
    color: var(--color-emerald-700);
    font-weight: 500;
    margin-top: 16px;
}

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

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

/* --- Footer --- */
.footer {
    background: var(--color-emerald-900);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.logo-light {
    color: var(--color-emerald-400);
}

.footer-brand p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9375rem;
    margin-top: 16px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

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

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

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-emerald-400);
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.35);
}

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

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .floating-card {
        left: 10px;
        bottom: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .image-wrapper img,
    .image-stack img {
        height: 360px;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
    }
    
    .contact-form-wrapper {
        padding: 24px 20px;
    }
}
