/* ============================================
   Garage Norest – Citroën Amilly — Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap');

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

:root {
    --primary-color: #1e2930;
    --accent-gold: #c99512;
    --accent-gold-hover: #b8860b;
    --accent-muted: #f4efe4;
    --accent-compliment: #0d7ae6;
    --text-light: #ffffff;
    --text-dark: #1a1d21;
    --text-muted: #5c636a;
    --bg-light: #f5f6f8;
    --bg-elevated: #ffffff;
    --border-subtle: rgba(30, 41, 48, 0.08);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --space-section: clamp(2.5rem, 5vw, 4rem);
    --space-gutter: clamp(1rem, 4vw, 1.5rem);
    --font-sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 0.22s;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* --- ANIMATIONS --- */
.reveal {
    position: relative;
    transform: translateY(28px);
    opacity: 0;
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transform: none;
        opacity: 1;
        transition: none;
    }
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image {
        animation: none !important;
    }
}

/* --- BASE STYLES --- */
body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    color: var(--primary-color);
}

section {
    padding: var(--space-section) var(--space-gutter);
}

:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}

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

/* Section titles (Services & produits, etc.) */
.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto clamp(2rem, 4vw, 2.75rem);
    padding: 0 0.25rem;
}

.section-header h2 {
    margin-bottom: 0.65rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.65;
    margin: 0 auto;
    max-width: 48ch;
}

/* Utility */
.hero-cta-wrap {
    margin-top: clamp(1.25rem, 3vw, 2rem);
}

.product-item--badged {
    position: relative;
}

.site-footer .footer-contact-link {
    color: #e8e8ec;
}

.site-footer .footer-contact-link:hover {
    color: var(--accent-gold);
}

/* --- HEADER & NAVIGATION --- */
header.site-header,
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

header.site-header.scrolled,
header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
}

/* Bandeau identité : Garage Norest + logos marques */
.header-brand {
    background: linear-gradient(180deg, #f4f6f8 0%, #e8ecf0 100%);
    border-bottom: 1px solid rgba(30, 41, 48, 0.1);
}

.header-brand-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem var(--space-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.header-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    min-width: 0;
    transition: opacity var(--duration) var(--ease-out);
}

.header-identity:hover {
    opacity: 0.88;
}

.header-identity:focus-visible {
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.header-identity__mark {
    height: clamp(40px, 8vw, 52px);
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

.header-identity__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    text-align: left;
}

.header-identity__title {
    font-size: clamp(1.35rem, 4.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--primary-color);
}

.header-identity__meta {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.header-marques {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem 0.85rem;
    flex: 1 1 auto;
    min-width: 0;
}

.header-marques img {
    height: clamp(22px, 4.5vw, 30px);
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: grayscale(0.12);
    transition: opacity var(--duration) ease, filter var(--duration) ease, transform var(--duration) ease;
}

.header-marques img:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-1px);
}

.header-nav-wrap {
    border-top: 1px solid rgba(30, 41, 48, 0.06);
}

.header-content {
    padding: 0.75rem var(--space-gutter);
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 640px) {
    .header-brand-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .header-identity {
        flex-direction: column;
        text-align: center;
    }

    .header-identity__text {
        text-align: center;
        align-items: center;
    }

    .header-marques {
        justify-content: center;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-marques img:hover {
        transform: none;
    }
}

.logo {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.nav-link {
    padding: 0.55rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-pill);
    transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
    position: relative;
    background: transparent;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(201, 149, 18, 0.1);
    border: 1px solid rgba(201, 149, 18, 0.22);
    box-shadow: var(--shadow-sm);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: clamp(1.5rem, 5vw, 3rem);
    background: linear-gradient(115deg, rgba(15, 20, 28, 0.78) 0%, rgba(15, 20, 28, 0.42) 45%, rgba(255, 255, 255, 0) 88%);
}

.hero h1 {
    font-size: clamp(1.65rem, 5vw, 3.15rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    line-height: 1.15;
    max-width: 16ch;
}

.tagline {
    font-size: clamp(0.7rem, 1.5vw, 0.875rem);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

/* --- BUTTONS --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.75rem;
    min-height: 48px;
    background: var(--accent-gold);
    color: #0f1419;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-pill);
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
    box-shadow: 0 4px 14px rgba(201, 149, 18, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 149, 18, 0.4);
    background: var(--accent-gold-hover);
}

@media (prefers-reduced-motion: reduce) {
    .cta-button:hover,
    .cta-button-large:hover,
    .value-card:hover,
    .service-card:hover,
    .nav-link:hover {
        transform: none;
    }
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--text-dark);
}

.cta-button.secondary:hover {
    background: var(--accent-gold);
    color: #0f1419;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    min-height: 52px;
    background: var(--accent-gold);
    color: #0f1419;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-pill);
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
    box-shadow: 0 6px 22px rgba(201, 149, 18, 0.38);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 149, 18, 0.42);
    background: var(--accent-gold-hover);
}

/* --- HOME: WHY CHOOSE US --- */
.why-choose-us {
    background: var(--bg-light);
    padding: var(--space-section) var(--space-gutter);
    border-top: 1px solid var(--border-subtle);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 1000px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.value-card {
    background: var(--bg-elevated);
    color: var(--text-dark);
    padding: clamp(1.35rem, 3vw, 2rem);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-md);
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h3 {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 0.9375rem;
    margin: 0;
}

/* --- BRAND LOGOS --- */
.brand-logos-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0 0;
    max-width: 1000px;
    margin: 0 auto;
}

.brand-logos-strip img {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    filter: grayscale(20%);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.2s ease;
}

.brand-logos-strip img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

/* --- HOME: SERVICES --- */
.services {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.85rem, 2vw, 1.25rem);
    max-width: 640px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: clamp(1.25rem, 3vw, 1.85rem) 1.15rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.service-card:hover {
    border-color: rgba(30, 41, 48, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- HOME: TESTIMONIALS --- */
.testimonials {
    padding: var(--space-section) var(--space-gutter);
    background: #eef0f3;
    overflow: hidden;
}

/* Compact rating header */
.rating-summary {
    max-width: min(100%, 20rem);
    margin: -0.25rem auto clamp(1.75rem, 4vw, 2.5rem);
    padding: 1rem 1.35rem;
    text-align: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
}

.rating-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex: 1 1 100%;
    order: 3;
}

.rating-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.rating-stars {
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: var(--accent-gold);
    font-weight: 700;
}

.testimonials-strip {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem 1.25rem;
    background: var(--bg-elevated);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e4e4e7;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.testimonial-name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: baseline;
}

.testimonial-name {
    font-weight: 600;
    color: #222;
}

.testimonial-date {
    font-size: 0.8rem;
    color: #999;
}

.testimonial-stars {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.testimonial-text {
    color: var(--text-muted);
    line-height: 1.68;
    font-size: 0.875rem;
}

/* remove old marquee layout */
.testimonials-row {
    display: none;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- ABOUT PAGE --- */
.about {
    padding: 3rem 1.5rem;
    background: radial-gradient(circle at 0% 0%, rgba(59, 59, 63, 0.06), transparent 50%), #ffffff;
    border-top: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    background: var(--accent-gold);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    box-shadow: 0 6px 18px rgba(210,160,23,0.12);
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.15;
    margin: 0;
}

.about-title .nobr {
    white-space: nowrap;
}

.about-subtitle-main {
    font-size: 1.1rem;
    color: #444;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.about-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.about-highlight {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-highlight-label {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.about-right {
    display: flex;
    justify-content: center;
}

.about-card {
    background: #17181c;
    border-radius: 20px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    max-width: 380px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(166, 166, 171, 0.35), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.about-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-logo-main {
    max-width: 170px;
    width: 100%;
    height: auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.about-stat-item {
    text-align: left;
}

.about-stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.about-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #f0f0f0;
}

.about-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fdfdfd;
    background: rgba(255, 255, 255, 0.05);
}

/* --- SERVICES DETAILED (A PROPOS PAGE) --- */
.services-detailed {
    padding: 4rem 1.5rem;
    background: #f5f5f7;
}

.services-grid-detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: white;
    padding: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    position: relative;
    z-index: 0; /* images stay behind content */
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: none !important; /* prevent inherited animations from moving the image */
}

.service-content {
    flex: 1;
    padding: 1.5rem;
    background: #1c1d21;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.service-item h3 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin: 0;
}

.service-content p {
    font-size: 0.95rem;
    color: #f5f5f5;
    line-height: 1.8;
}

/* --- PRODUCTS SECTION (A PROPOS PAGE) --- */
.products-section {
    padding: 4rem 1.5rem;
    background: #f3f3f5;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background: white;
    color: var(--text-dark);
    padding: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--accent-gold);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    position: relative;
    z-index: 0; /* images stay behind content */
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: none !important; /* prevent inherited animations from moving the image */
}

.product-content {
    flex: 1;
    padding: 1.5rem;
    background: #1c1d21;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.product-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(212,160,23,0.22);
    color: var(--accent-gold);
    background: rgba(212,160,23,0.06);
}

.product-item h3 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.product-content p {
    font-size: 0.95rem;
    color: #f5f5f5;
    line-height: 1.8;
}

/* --- CONTACT PAGE --- */
.contact {
    background: var(--bg-light);
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-icon {
    font-size: 1.5rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.info-item p {
    color: #666;
    font-size: 0.95rem;
}

.contact-link {
    color: #666;
    text-decoration: none;
    transition: color 0.16s ease, transform 0.16s ease;
}

.contact-link:hover {
    color: #005bb5;
    transform: translateX(2px);
}

.hours-table {
    font-size: 0.95rem;
    color: #666;
    border-collapse: collapse;
}

.hours-table td {
    padding: 0.25rem 0.5rem 0.25rem 0;
    vertical-align: top;
}

.hours-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.map-section {
    padding: 3rem 1.5rem;
    background: white;
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- PIECES AUTO PAGE --- */
.pieces-hero-new {
    background: linear-gradient(135deg, #1f2024 0%, #3b3b3f 40%, #5a5b60 100%);
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.pieces-hero-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.pieces-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.pieces-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pieces-hero-content p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* Animated starfield canvas in Pièces Auto hero */
#pieces-hero-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
}

.pieces-features {
    padding: 5rem 1.5rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #f5f5f7;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e5;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    background: rgba(59, 59, 63, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.pieces-about {
    padding: 5rem 1.5rem;
    background: #f3f3f5;
}

.pieces-about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.pieces-about-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.3;
}

.pieces-about-content p {
    color: #666;
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.pieces-about-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.visual-stat {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.visual-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.pieces-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e0e0e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pieces-logo-link:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--accent-gold);
}

.pieces-benefits {
    padding: 5rem 1.5rem;
    background: white;
}

.benefits-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border: 1px solid #e0e0e5;
}

.benefit-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    color: var(--primary-color);
    background: rgba(59, 59, 63, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 30px;
    height: 30px;
}

.benefit-content {
    flex: 1;
}

.benefit-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.benefit-item p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

.pieces-cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #1f2024 0%, #3b3b3f 80%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pieces-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* --- FOOTER --- */
footer {
    background: #17181c;
    color: var(--text-light);
    padding: 0;
    border-top: 3px solid var(--accent-gold);
}

.site-footer {
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo {
    max-width: 100px;
    margin-bottom: 0.5rem;
}

.footer-col h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.16s ease, transform 0.16s ease;
}

.footer-links a:hover {
    color: #5eb0ff;
    transform: translateX(2px);
}

.footer-bottom {
    background: #111218;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #bbbbbb;
    border-top: 1px solid #1f2024;
}

/* --- COOKIE BANNER (minimal, no design refactor) --- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(17, 18, 24, 0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.9rem 1rem;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-banner-text {
    color: #e7e7e7;
    font-size: 0.95rem;
    line-height: 1.45;
}

.cookie-banner-text strong {
    color: var(--accent-gold);
}

.cookie-link {
    color: var(--accent-gold);
    text-decoration: underline;
    margin-left: 0.5rem;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.65rem 1rem;
}

/* Ensure cookie banner buttons are readable on dark background */
.cookie-banner .cta-button {
    color: #111218;
}

.cookie-banner .cta-button.secondary {
    color: #ffffff;
    border-color: rgba(255,255,255,0.32);
}

.cookie-banner .cta-button.secondary:hover {
    color: #111218;
    border-color: var(--accent-gold);
}

/* --- MAP PLACEHOLDER (blocked until consent) --- */
.map-wrapper {
    position: relative;
}

.cookie-blocker {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(17, 18, 24, 0.78);
}

.cookie-blocker-inner {
    width: min(560px, 95%);
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem;
    border-top: 4px solid var(--accent-gold);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* --- CONTACT PAGE STYLES --- */
.page-hero {
    background: linear-gradient(rgba(17, 18, 24, 0.82), rgba(17, 18, 24, 0.88)), url('../images/garage-exterieur-route.png');
    background-size: cover;
    background-position: center;
    padding: clamp(5rem, 14vw, 8rem) var(--space-gutter) clamp(4rem, 10vw, 6rem);
    text-align: center;
    color: white;
}

.hero-content-center h1 {
    font-size: clamp(2rem, 6vw, 3.25rem);
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.15;
}

.hero-content-center p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.65;
}

/* Bloc coordonnées (page Contact) — remplace les styles inline */
.contact-info-stack {
    margin-top: 1rem;
    color: var(--text-dark);
    line-height: 1.55;
}

.contact-info-row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.contact-info-row:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.contact-info-title {
    font-weight: 700;
    color: var(--primary-color);
}

.contact-info-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-info-value {
    margin-top: 0.4rem;
    font-weight: 700;
}

.contact-info-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-value a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-blocker-title {
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.cookie-blocker-text {
    line-height: 1.5;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cookie-blocker-actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hours-closed {
    color: var(--accent-gold);
    font-weight: 600;
}

.hours-muted {
    opacity: 0.72;
}

.hours-card-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
}

.hours-card-text p {
    margin: 0 0 0.75rem;
}

.hours-card-text p:last-child {
    margin-bottom: 0;
}

.cookie-reset-wrap {
    margin-top: 0.75rem;
}

/* Blocs texte pages légales */
.legal-prose {
    line-height: 1.65;
    color: var(--text-dark);
}

.legal-prose a {
    color: var(--accent-compliment);
    text-decoration: none;
}

.legal-prose p {
    margin: 0 0 0.75rem;
}

.legal-prose p:last-child {
    margin-bottom: 0;
}

.contact-main {
    padding: 5rem 1.5rem;
    background: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Left Column Styling */
.contact-form-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(38,50,56,0.06);
    border-top: 4px solid var(--accent-gold);
    margin-bottom: 2rem;
}

.contact-form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: left;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.9rem;
    color: #444;
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(255,215,0,0.25);
}

.contact-form-card .cta-button {
    margin-top: 0.5rem;
}

.contact-text-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
    border-top: 4px solid var(--accent-gold);
}

.contact-text-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-text-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-text-content p:last-child {
    margin-bottom: 0;
}

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

.detail-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.detail-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #f3f3f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    color: var(--accent-gold);
}

.detail-icon {
    font-size: 1.5rem;
}

.detail-text h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.detail-text p {
    margin: 0 0 0.4rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.detail-link {
    display: inline-block;
    color: var(--accent-compliment);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.16s ease, transform 0.16s ease;
}

.detail-link:hover {
    color: #005bb5;
    transform: translateX(2px);
}

.detail-link-large {
    display: block;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0.2rem;
    transition: color 0.16s ease, transform 0.16s ease;
}

.detail-link-large:hover {
    color: #005bb5;
    transform: translateX(2px);
}

/* Right Column Styling */
.hours-card {
    background: #1c1d21;
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 1px solid #292a30;
}

.hours-card h3 {
    color: var(--text-light);
    background: linear-gradient(90deg, rgba(0,0,0,0.08), rgba(0,0,0,0.03));
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
}

/* Texte et bouton secondaire lisibles sur fond sombre (contact, politique RGPD) */
.hours-card .hours-card-text,
.hours-card .hours-card-text p {
    color: rgba(255, 255, 255, 0.92);
}

.hours-card .cta-button.secondary {
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(201, 149, 18, 0.9);
}

.hours-card .cta-button.secondary:hover {
    color: #0f1419;
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
}

.hours-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: #eee;
    border: 4px solid white;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Media Queries for Contact */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (min-width: 768px) {
    .header-brand-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .header-content {
        padding: 1rem 2rem;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-container {
        height: 500px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .repair-card {
        grid-column-start: 2;
    }
    
    .brand-logos-strip {
        gap: 3rem;
    }
    
    .brand-logos-strip img {
        height: 45px;
    }
    
    .services-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pieces-about-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
    
    .pieces-about-visual {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pieces-hero-content h1 {
        font-size: 3.5rem;
    }
    
    .pieces-hero-content p {
        font-size: 1.3rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .pieces-about-content h2 {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .benefit-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .benefit-icon svg {
        width: 25px;
        height: 25px;
    }

    .about-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
        gap: 4rem;
        align-items: stretch;
    }

    .about-title {
        font-size: 2.6rem;
    }

    .contact-grid {
        grid-template-columns: 1.3fr 0.9fr;
    }
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1.3fr 0.9fr;
    }
}

@media (min-width: 1024px) {
    .services-grid-detailed {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-logo {
        max-width: 90px;
        margin: 0 auto 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-overlay {
        padding: 1.5rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    h2 {
        font-size: clamp(1.35rem, 4vw, 1.65rem);
    }
    
    .pieces-hero-content h1 {
        font-size: 2rem;
    }
    
    .pieces-hero-content p {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .pieces-about-content h2 {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .benefit-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .benefit-icon svg {
        width: 25px;
        height: 25px;
    }

    .about-card {
        max-width: 440px;
    }
    
    .section-logo {
        max-width: 90px;
        margin: 0 auto 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    section {
        padding: 2rem 1rem;
    }
    
    .hero {
        min-height: 18rem;
        height: min(72vh, 34rem);
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
    
    .pieces-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .pieces-about {
        padding: 3rem 1rem;
    }
    
    .pieces-benefits {
        padding: 3rem 1rem;
    }
    
    .pieces-cta {
        padding: 3rem 1rem;
    }
    
    .hero-content-center h1 {
        font-size: 2.5rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .hours-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Make on-site availability note visually distinct */
.on-site-note {
    max-width: 900px;
    margin: 0.5rem auto 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
    background: var(--accent-muted);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(38,50,56,0.04);
}

/* Ensure images never overlap their content and keep all text strictly below titles */
.service-item, .product-item {
    display: flex;
    flex-direction: column; /* enforce image first, then content */
    position: relative;
    overflow: hidden; /* keep image contained */
}

.service-image,
.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    position: relative;
    z-index: 0; /* images stay behind content */
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: none !important; /* prevent inherited animations from moving the image */
}

/* Ensure content is above images and all text sits visibly below titles */
.service-content,
.product-content {
    position: relative;
    z-index: 1;
    padding-top: 1rem; /* small breathing room under title if needed */
}

/* Prevent hover on card from forcing the image to overlap text */
.service-item:hover .service-image,
.product-item:hover .product-image {
    transform: none;
}

/* If any global image animation affects these images, force them static */
.service-item img,
.product-item img {
    pointer-events: auto;
}

/* Extra safety: reduce translate on card hover so it doesn't visually cross other blocks */
.service-item:hover,
.product-item:hover {
    transform: translateY(-6px); /* subtle lift */
}

/* Keep internal stacking consistent on narrow viewports */
@media (max-width: 575px) {
    .service-image,
    .product-image {
        height: 160px;
    }
}

/* --- REMOVED LEGACY CONTENT ---
   Removed: .about-content, .about-logo, .about-text, .about-subtitle (old about layout)
   Removed: .pieces-hero (old pieces hero design)
   Removed: .pieces-categories (unused)
   Removed: .pieces-info, .info-card, .footer-logo (unused contact/pieces components)
   Removed: .contact-logo (unused in contact page)
   Removed: .product-icon, .service-icon-detailed, .benefit-number (unused icon variants)
*/

.products-highlight {
    text-align: center;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Footer left column improved layout */
.footer-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-left .footer-logo {
    max-width: 88px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    background: transparent;
    flex-shrink: 0;
}

.footer-left-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-left-title {
    font-weight: 800;
    color: var(--accent-gold);
    margin: 0;
    font-size: 1rem;
}

.footer-left-desc {
    margin: 0;
    color: #d1d1d1;
    font-size: 0.93rem;
    line-height: 1.25;
    max-width: 320px;
}

/* Make sure layout stacks nicely on small screens */
@media (max-width: 575px) {
    .footer-left {
        gap: 0.75rem;
        align-items: flex-start;
    }
    .footer-left .footer-logo {
        max-width: 72px;
    }
    .footer-left-desc {
        max-width: 220px;
        font-size: 0.9rem;
    }
}

/* Vehicle modal styles */
.vehicle-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.vehicle-modal.open {
    display: flex;
}
.vehicle-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}
.vehicle-modal-panel {
    position: relative;
    width: min(1100px, 95%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    display: flex;
    align-items: stretch;
}
/* Ensure modal content fits without pushing action buttons off-screen:
   - restrict gallery heights
   - make details column scrollable if long
   - keep action area visible by using sticky footer area inside modal */
.vehicle-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #333;
    cursor: pointer;
}
.vehicle-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    align-items: start;
    /* ensure vertical fit */
    max-height: calc(90vh - 40px);
    overflow: hidden;
}
.vehicle-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    align-content: start;
    overflow: auto;
    padding-bottom: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    /* ensure a compact, consistent block: large preview on top, thumbnails in a 2-column grid below */
    grid-auto-rows: 120px; /* default thumbnail row height */
}

/* All gallery images share a consistent sizing/fit */
.vehicle-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

/* Large preview spans full width and is taller but capped to viewport-friendly size */
.vehicle-modal-panel .vehicle-gallery img:first-child {
    grid-column: 1 / -1;
    height: 260px;
    object-fit: cover;
}

/* Thumbnails are uniform (two columns) */
.vehicle-gallery > div,
.vehicle-gallery > .thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* If viewport is narrow, slightly reduce heights */
@media (max-width: 900px) {
    .vehicle-modal-panel .vehicle-gallery img:first-child {
        height: 200px;
    }
    .vehicle-gallery {
        grid-auto-rows: 100px;
    }
}

/* If viewport is tall, allow a slight increase for main preview but keep thumbnails consistent */
@media (min-height: 900px) {
    .vehicle-modal-panel .vehicle-gallery img:first-child {
        height: 300px;
    }
    .vehicle-gallery {
        grid-auto-rows: 140px;
    }
}

/* Price badge for product cards */
.product-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(0,0,0,0.6);
    color: var(--accent-gold);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.06);
}

/* subtle uplift on hover */
.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(10,10,10,0.08);
}

/* ensure vehicle details column scrolls nicely if long */
.vehicle-details {
    max-height: 78vh;
    overflow: auto;
    padding-right: 6px;
}

@media (max-width: 575px) {
    .product-image {
        height: 180px;
    }
}

/* ===== Improved product cards & modal visuals ===== */
.product-item {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 260px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-item:hover .product-image {
    transform: scale(1.03);
}

.product-content {
    flex: 1;
    padding: 1.35rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, #0a0b0d 0%, #12141a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: #ffefc7;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

.product-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.product-price {
    margin-top: 0.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.product-cta-row {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Fix: ensure CTA buttons inside product-cta-row are consistently sized and vertically aligned */
.product-cta-row .cta-button,
.product-cta-row .cta-button.info-btn,
.product-cta-row a.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 118px;
    padding: 0 1rem;
    margin-top: 0 !important;
    line-height: 1;
}

.product-content .cta-button:not(.info-btn) {
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.cta-button.info-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: none;
}

.cta-button.info-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

