/* ============================================
   Country Boy Auto Supply — Stylesheet
   Classic & Elegant · Forest Green + Off-White
   ============================================ */

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

:root {
    --forest:        #1B4332;
    --forest-light:  #2D6A4F;
    --forest-dark:   #081C15;
    --cream:         #F5F0E8;
    --cream-light:   #FAF7F0;
    --gold:          #D4C5A9;
    --gold-dark:     #B8A88A;
    --text-dark:     #1A1A1A;
    --text-muted:    #5A5A5A;
    --white:         #FFFFFF;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow-md:     0 4px 20px rgba(0,0,0,.10);
    --shadow-lg:     0 8px 40px rgba(0,0,0,.14);
    --radius:        12px;
    --radius-lg:     20px;
    --transition:    .3s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--text-dark);
    background: var(--cream-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    line-height: 1.25;
    font-weight: 600;
}

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

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

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

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(27, 67, 50, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 197, 169, 0.15);
    transition: var(--transition);
}

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

.logo {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent {
    color: var(--gold);
}

.logo-icon {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.main-nav a {
    color: var(--cream);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--forest-dark);
    border-color: var(--gold);
}

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

.btn-outline-light {
    background: transparent;
    color: var(--cream);
    border-color: rgba(212, 197, 169, 0.6);
}

.btn-outline-light:hover {
    background: var(--cream);
    color: var(--forest);
    border-color: var(--cream);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* ---------- MOBILE TOGGLE ---------- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle[aria-expanded="true"] 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;
    text-align: center;
    overflow: hidden;
    /* Colorful gradient background */
    background:
        linear-gradient(135deg,
            #081C15 0%,
            #1B4332 25%,
            #2D6A4F 50%,
            #40916C 70%,
            #52B788 85%,
            #74C69D 100%
        );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(82, 183, 140, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 197, 169, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(45, 106, 79, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4C5A9' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    max-width: 820px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--cream);
    margin-bottom: 24px;
    font-weight: 600;
    line-height: 1.15;
}

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

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

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(212, 197, 169, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- SECTION COMMON ---------- */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--forest);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}

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

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

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

.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    color: var(--forest);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

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

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

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(27, 67, 50, 0.12);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--forest);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(27, 67, 50, 0.15);
}

/* ---------- PRODUCTS ---------- */
.products {
    padding: 120px 0;
    background: var(--white);
}

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

.product-card {
    background: var(--cream-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid rgba(27, 67, 50, 0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 67, 50, 0.12);
}

.product-img {
    overflow: hidden;
    height: 200px;
}

.product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.product-card:hover .product-img img {
    transform: scale(1.06);
}

.product-card h3 {
    font-size: 1.15rem;
    color: var(--forest);
    padding: 20px 24px 8px;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 24px 24px;
    line-height: 1.7;
}

/* ---------- WHY US ---------- */
.why-us {
    padding: 120px 0;
    background: var(--forest);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D4C5A9' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.why-us .section-eyebrow {
    color: var(--gold);
}

.why-us .section-title {
    color: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.feature {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 197, 169, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: all var(--transition);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 197, 169, 0.25);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 197, 169, 0.1);
    border: 1px solid rgba(212, 197, 169, 0.2);
}

.feature h3 {
    font-size: 1.05rem;
    color: var(--cream);
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.65);
    line-height: 1.75;
}

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

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid rgba(27, 67, 50, 0.06);
    transition: all var(--transition);
}

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

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--forest);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

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

.contact-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(27, 67, 50, 0.08);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value,
.contact-item a {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

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

/* ---------- FORM ---------- */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(27, 67, 50, 0.06);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--forest);
    margin-bottom: 8px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid rgba(27, 67, 50, 0.15);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream-light);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest-light);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(27, 67, 50, 0.08);
    border-radius: var(--radius);
    color: var(--forest);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ---------- MAP ---------- */
.map-wrap {
    margin-top: 0;
    border-radius: 0;
    overflow: hidden;
    height: 320px;
    filter: saturate(0.7) contrast(1.05);
}

.map-wrap iframe {
    width: 100%;
    height: 320px;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--forest-dark);
    color: var(--cream);
    padding: 80px 0 0;
}

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

.footer-brand p {
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 16px;
    max-width: 300px;
}

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

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.65);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.65);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(245, 240, 232, 0.65);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(212, 197, 169, 0.1);
    padding: 24px 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.4);
}

/* ---------- REVEAL ANIMATIONS (progressive enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(27, 67, 50, 0.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        transform: translateY(-120%);
        transition: transform var(--transition);
        border-bottom: 1px solid rgba(212, 197, 169, 0.15);
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1rem;
    }

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

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

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

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

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

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

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 16px;
    }
}
