/* ============================================
   Wholesale Auto Market — Custom Styles
   Classic & Elegant | Navy + Gold Palette
   ============================================ */

/* --- Custom Properties --- */
:root {
    --navy: #1a2a4a;
    --navy-light: #243656;
    --navy-dark: #111d35;
    --gold: #c9a84c;
    --gold-light: #d4b96a;
    --gold-dark: #b8943f;
    --cream: #f8f6f1;
    --cream-dark: #efece4;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-mid: #4a4a4a;
    --text-light: #6b6b6b;
    --font-serif: 'Lora', 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(26,42,74,0.08);
    --shadow-md: 0 4px 20px rgba(26,42,74,0.10);
    --shadow-lg: 0 8px 40px rgba(26,42,74,0.12);
    --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);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 1rem;
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

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

.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);
    border: 2px solid var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline-gold:hover,
.btn-outline-gold:focus-visible {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* --- Section Helpers --- */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

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

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

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-header.light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 246, 241, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 42, 74, 0.08);
    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 */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
}

/* Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-mid);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--navy);
    background: rgba(26, 42, 74, 0.06);
}

.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    font-weight: 500 !important;
    border-radius: var(--radius-sm) !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--navy-light) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 110;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.hero-content {
    padding-right: 1rem;
}

.hero-greeting {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.hero-accent-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--navy);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    max-width: 280px;
}

.hero-accent-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 6rem 0;
    background: var(--white);
}

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

.service-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(26, 42, 74, 0.08);
    background: var(--cream);
    transition: var(--transition);
}

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

.service-icon {
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.1875rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 6rem 0;
    background: var(--cream);
}

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

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-img-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.about-img-accent img {
    display: block;
}

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

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

.about-body {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 42, 74, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    padding: 6rem 0;
    background: var(--navy);
}

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

.why-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.why-card:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
}

.why-icon {
    margin-bottom: 1.25rem;
}

.why-card h3 {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

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

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 6rem 0;
    background: var(--white);
}

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

.testimonial-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(26, 42, 74, 0.08);
    background: var(--cream);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-quote {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    opacity: 0.4;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.testimonial-author {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

.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, 3vw, 2.25rem);
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 6rem 0;
    background: var(--cream);
}

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

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

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

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

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

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

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

.contact-item p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contact-item a {
    color: var(--navy);
    border-bottom: 1px solid rgba(26, 42, 74, 0.2);
    transition: var(--transition);
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 42, 74, 0.06);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--text-mid);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid rgba(26, 42, 74, 0.15);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

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

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(26, 107, 58, 0.08);
    border: 1px solid rgba(26, 107, 58, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: #1a6b3a;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 4rem 0 0;
}

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

.footer-logo .logo-text {
    color: var(--white);
}

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

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

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

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

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

.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(248, 246, 241, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid rgba(26, 42, 74, 0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .main-nav a {
        padding: 0.75rem 1rem;
    }
    
    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-accent-card {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-content .section-label,
    .about-content .section-title {
        text-align: center;
    }
    
    .about-body {
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .about-img-accent {
        right: 0;
    }
    
    .services-grid,
    .why-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
