/* ============================================
   KP Automotive — Clean Minimalist Design
   Palette: Charcoal (#1F2937 / #374151 / #4B5563)
            Coral (#FB6F92 / #E8557A)
            Neutrals: #F9FAFB / #F3F4F6 / #E5E7EB / #9CA3AF / #6B7280
   Typography: Playfair Display (headings) + Inter (body)
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --charcoal: #1F2937;
    --charcoal-light: #374151;
    --charcoal-mid: #4B5563;
    --coral: #FB6F92;
    --coral-dark: #E8557A;
    --bg-light: #F9FAFB;
    --bg-warm: #FFFFFF;
    --border: #E5E7EB;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(31,41,55,.06);
    --shadow-md: 0 4px 20px rgba(31,41,55,.08);
    --shadow-lg: 0 10px 40px rgba(31,41,55,.12);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--bg-warm);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--coral);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--coral-dark); }

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

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--coral);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--radius);
    z-index: 9999;
    font-weight: 500;
}
.skip-link:focus {
    top: 1rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 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: .6rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: -.01em;
}
.logo:hover { color: var(--charcoal); }

.nav-list {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
}
.nav-list a {
    color: var(--charcoal-mid);
    font-size: .875rem;
    font-weight: 400;
    padding: .5rem .875rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-list a:hover {
    color: var(--charcoal);
    background: var(--bg-light);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--charcoal);
    transition: all var(--transition);
    position: absolute;
    left: 10px;
}
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { content: ''; top: -6px; left: 0; }
.hamburger::after { content: ''; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 500;
    padding: .8125rem 1.75rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover {
    color: var(--coral-dark) !important;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--coral);
    color: #fff !important;
    border-color: var(--coral);
}
.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
}

.btn-outline-light {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--charcoal) !important;
    border-color: var(--border);
}
.btn-outline-dark:hover {
    border-color: var(--coral);
    color: var(--coral) !important;
}

.btn-sm { padding: .5rem 1.125rem; font-size: .8125rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(31,41,55,.92) 0%,
        rgba(31,41,55,.75) 50%,
        rgba(31,41,55,.88) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 8rem 1.5rem 4rem;
}
.hero-eyebrow {
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -.02em;
}
.hero-title .accent {
    color: var(--coral);
    font-style: italic;
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255,255,255,.4);
    animation: bobble 2s ease-in-out infinite;
}
@keyframes bobble {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 7rem 0;
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}
.section-eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: .75rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}
.section-sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services {
    background: var(--bg-light);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: all var(--transition);
}
.service-card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251,111,146,.2);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: .625rem;
}
.service-card p {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}
.about-content .section-eyebrow { margin-bottom: .75rem; }
.about-content .section-title { margin-bottom: 1.5rem; }
.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 300;
}
.about-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
}
.stat-label {
    font-size: .8125rem;
    color: var(--text-muted);
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    background: var(--charcoal);
    color: #fff;
}
.why-us .section-eyebrow { color: var(--coral); }
.why-us .section-title { color: #fff; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.why-item {
    padding: 2.25rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.why-item:hover {
    border-color: rgba(251,111,146,.3);
    background: rgba(255,255,255,.03);
}
.why-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--coral);
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}
.why-item h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: .75rem;
    color: #fff;
}
.why-item p {
    color: rgba(255,255,255,.6);
    font-size: .9375rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: var(--coral);
    padding: 5rem 0;
}
.cta-inner {
    text-align: center;
    max-width: 640px;
}
.cta-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}
.cta-inner p {
    color: rgba(255,255,255,.85);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    font-weight: 300;
}
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-outline-coral {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255,255,255,.5);
}
.btn-outline-coral:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--bg-light);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251,111,146,.2);
    border-radius: var(--radius);
}
.contact-item strong {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: .25rem;
}
.contact-item p,
.contact-item a {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}
.contact-item a:hover { color: var(--coral); }

/* Form */
.contact-form-wrap {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 1.75rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: .375rem;
    letter-spacing: .03em;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(251,111,146,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-note {
    font-size: .8125rem;
    color: var(--text-muted);
    margin-top: .75rem;
    text-align: center;
}
.form-success {
    display: none;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--radius);
    color: #065F46;
    font-size: .9375rem;
    margin-top: 1rem;
}
.form-success.show {
    display: flex;
}
.form-success svg { flex-shrink: 0; color: #10B981; }

/* Map */
.map-wrap {
    border-top: 1px solid var(--border);
}
.map-wrap iframe {
    width: 100%;
    height: 380px;
    display: block;
    filter: grayscale(.3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,.6);
    padding: 4rem 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-brand p {
    margin-top: 1rem;
    font-size: .9375rem;
    line-height: 1.7;
    font-weight: 300;
    max-width: 320px;
}
.footer-brand .logo { color: #fff; }
.footer-links {
    display: flex;
    gap: 3rem;
}
.footer-links strong {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}
.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: .9375rem;
    font-weight: 300;
}
.footer-links a:hover { color: var(--coral); }
.footer-links span {
    font-size: .9375rem;
    font-weight: 300;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.5rem 0;
}
.footer-bottom p {
    font-size: .8125rem;
    color: rgba(255,255,255,.35);
}

/* ============================================
   ANIMATIONS (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity .6s ease, transform .6s ease;
    }
    .reveal.hidden {
        opacity: 0;
        transform: translateY(24px);
    }
}

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

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }
    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-list a {
        padding: .75rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }
    .nav-list li:last-child a {
        border-bottom: none;
        margin-top: .5rem;
    }

    .hero-content { padding: 7rem 1.25rem 3rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

    .section { padding: 5rem 0; }
    .services-grid { grid-template-columns: 1fr; }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-image { order: -1; }
    .about-image img { aspect-ratio: 4/3; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { flex-direction: column; gap: 2rem; }
    .about-stats { flex-wrap: wrap; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2.25rem; }
    .section-title { font-size: 1.75rem; }
    .service-card { padding: 1.75rem 1.5rem; }
    .contact-form-wrap { padding: 1.75rem; }
}
