/* ============================================
   Kiko's Garage and Auto Sales — Stylesheet
   Forest Green + Off-White Editorial Design
   ============================================ */

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

:root {
    --green-900: #0D2818;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52B788;
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --cream-dark: #E8E0D0;
    --brown-warm: #8B7355;
    --text-dark: #1A1A1A;
    --text-mid: #3D3D3D;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --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.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream-light);
    color: var(--text-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--green-800);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
}

em {
    font-style: italic;
    color: var(--green-700);
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 12px;
}

.section-eyebrow--light {
    color: rgba(255,255,255,0.7);
}

/* ---------- Section Title ---------- */
.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.section-header {
    margin-bottom: 56px;
}

.section-header--light {
    margin-bottom: 64px;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--cream-dark);
}
.btn-secondary:hover {
    border-color: var(--green-700);
    color: var(--green-700);
}

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

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

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

.btn-nav {
    background: var(--green-800);
    color: var(--white);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.875rem;
}
.btn-nav:hover {
    background: var(--green-700);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: var(--transition);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--green-800);
}

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

/* ---------- Nav ---------- */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-list a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}
.nav-list a:not(.btn):hover {
    color: var(--green-700);
}
.nav-list a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-600);
    transition: width var(--transition);
}
.nav-list a:not(.btn):hover::after {
    width: 100%;
}

/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-800);
    border-radius: 2px;
    transition: var(--transition);
    position: absolute;
    left: 7px;
}
.hamburger { top: 17px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; top: 7px; }

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

/* ---------- Hero ---------- */
.hero {
    padding-top: 100px;
    padding-bottom: 0;
    background: var(--cream-light);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 64px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--green-600);
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-headline-accent {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    color: var(--green-700);
    font-size: 0.7em;
    margin-top: 8px;
}

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

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

.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-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: var(--green-800);
    color: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.hero-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--green-800) 0%, var(--green-600) 50%, var(--cream-dark) 100%);
}

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-500);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--green-800);
}
.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

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

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

.about-image-stack {
    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: -32px;
    right: -24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream-light);
}
.about-img-accent img {
    width: 100%;
    display: block;
}

.about-stat {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--green-800);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.about-stat .stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}
.about-stat .stat-label {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.about-content {
    padding-left: 8px;
}

.about-lead {
    font-size: 1.125rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cream-dark);
}
.about-signature svg {
    flex-shrink: 0;
}
.about-signature span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--green-700);
}

/* ---------- Why Us ---------- */
.why-us {
    padding: 100px 0;
    background: var(--green-800);
    position: relative;
    overflow: hidden;
}

.why-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 2px 2px, var(--white) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

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

.why-item {
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    transition: var(--transition);
}
.why-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.why-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.12);
    line-height: 1;
    margin-bottom: 12px;
}

.why-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 10px;
}

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

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

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}
.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-500);
}

.testimonial-quote {
    margin-bottom: 16px;
    opacity: 0.15;
}

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

.testimonial-author {
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    color: var(--green-700);
}

/* ---------- CTA ---------- */
.cta {
    padding: 80px 0;
    background: var(--green-700);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.75;
    margin-top: 20px;
    max-width: 480px;
}

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

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

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

.contact-details {
    list-style: none;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.0625rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}
.contact-item a:hover {
    color: var(--green-700);
    text-decoration: underline;
}

.contact-map {
    margin-top: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--text-dark);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream-light);
    transition: var(--transition);
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(27, 67, 50, 0.06);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}
.form-success p {
    font-size: 0.9375rem;
    color: var(--green-800);
    font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--green-900);
    color: var(--white);
    padding: 56px 0 32px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 32px;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-bottom a:hover {
    color: var(--white);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 0.7fr;
        gap: 32px;
    }
    .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;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 110;
    }
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }
    .nav-list.open {
        right: 0;
    }
    .nav-list a {
        font-size: 1.0625rem;
    }
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 99;
    }
    .nav-overlay.active {
        display: block;
    }

    .hero {
        padding-top: 80px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-image {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .hero-badge {
        left: 0;
        bottom: -12px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-content {
        padding-left: 0;
    }
    .about-img-accent {
        right: 0;
        bottom: -24px;
    }

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

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .cta-text {
        margin-left: auto;
        margin-right: auto;
    }
    .cta-actions {
        justify-content: center;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
    .cta-actions {
        flex-direction: column;
    }
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
