/* ==========================================================================
   CUSTOM VEHICLE WORKSHOP STYLESHEET (DARK PRESETS & Fig-Replica)
   ========================================================================== */

/* Fonts are loaded via <link rel="preconnect"> + <link> in index.html <head> (faster than @import). */

:root {
    /* VFW Token Override (Dark Theme Integration) */
    --vfw-font-family: 'Roboto', sans-serif;
    --vfw-font-family-headings: 'Roboto Condensed', sans-serif;

    --vfw-color-background: #050608;
    --vfw-color-surface: #0e1015;
    --vfw-color-border: #22252e;
    --vfw-color-text: #f3f4f6;
    --vfw-color-text-muted: #9ca3af;
    --vfw-color-primary: #ff0037;
    --vfw-color-primary-hover: #ff2e5b;
    --vfw-color-primary-focus: rgba(255, 0, 55, 0.4);
    --vfw-color-success: #10b981;
    --vfw-color-success-bg: rgba(16, 185, 129, 0.1);

    --vfw-space-xs: 4px;
    --vfw-space-sm: 8px;
    --vfw-space-md: 16px;
    --vfw-space-lg: 24px;
    --vfw-space-xl: 32px;
    --vfw-space-2xl: 64px;

    --vfw-border-radius: 4px;

    /* Custom Design Tokens */
    --accent-red: #ff0037;
    --accent-green: #10b981;
    --bg-darker: #020203;
    --bg-card: #0d0f14;
    --glow-red: 0 0 15px rgba(255, 0, 55, 0.35);
    --glow-green: 0 0 15px rgba(16, 185, 129, 0.35);
    --slant-angle: -3deg;
    --header-h: 96px;
}

/* Consistent header offset for anchor jumps (replaces the old JS offset math) */
section[id] {
    scroll-margin-top: var(--header-h);
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Visible keyboard focus ring across custom controls */
.btn-premium:focus-visible,
.btn-whatsapp:focus-visible,
.btn-appt-hero:focus-visible,
.svc-book-button:focus-visible,
.reviews-cta:focus-visible,
.nav-toggle:focus-visible,
.svc-arrow:focus-visible,
.map-load:focus-visible,
.map-directions:focus-visible,
.back-to-top-btn:focus-visible,
.mab-btn:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Base Body Styles */
html {
    overflow-x: hidden;
}

body {
    background-color: var(--vfw-color-background);
    color: var(--vfw-color-text);
    font-family: var(--vfw-font-family);
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vfw-font-family-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

p {
    line-height: 1.6;
    color: var(--vfw-color-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

/* Custom Slant Layout Sections */
.slant-section-wrapper {
    position: relative;
    padding: clamp(56px, 11vw, 100px) 0;
    background-color: var(--vfw-color-background);
    z-index: 2;
}

.slant-section-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 2;
}

/* Header & Navigation Glassmorphism */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip; /* never let header content push page width; clip keeps the dropdown visible */
    z-index: 1000;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vfw-color-border);
}

.nav-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Brand logo image (top-left). Sized to nearly fill the header height; the small
   nav-container padding keeps the bar compact (~96px, matching --header-h) so a
   bigger logo does NOT grow the header. The asset has an opaque black background;
   `lighten` drops that black into the dark header (permanently dark theme) so only
   the white/red wordmark shows. */
.logo-img {
    height: clamp(52px, 7vw, 84px);
    width: auto;
    display: block;
    mix-blend-mode: lighten;
}

/* Footer brand wordmark (demoted from h1 to keep a single page h1) */
.footer-brand {
    font-family: var(--vfw-font-family-headings);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Hamburger toggle — hidden on desktop, shown under 900px */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid var(--vfw-color-border);
    border-radius: 4px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
    font-family: var(--vfw-font-family-headings);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vfw-color-text-muted);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 0, 55, 0.3);
}

/* Header "Book appointment" button (desktop only; mobile uses the frame below Contact) */
.appt-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-red);
    color: #ffffff;
    font-family: var(--vfw-font-family-headings);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 18px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255, 0, 55, 0.25);
    transition: all 0.2s ease;
}

.appt-header-btn svg {
    stroke: currentColor;
}

.appt-header-btn:hover {
    background: var(--vfw-color-primary-hover);
    box-shadow: var(--glow-red);
    transform: translateY(-1px);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 95vh;
    min-height: 95svh; /* stable against mobile browser chrome; vh is the fallback */
    display: flex;
    align-items: center;
    /* Layers, top to bottom: two red neon glows, a dark tint for text contrast,
       then the header photo (--hero-bg, set per-visit by app.js). The default is
       the preloaded header_1 photo so the hero paints an image before JS runs
       (and without JS at all); app.js swaps in a random one for variety. */
    background:
        radial-gradient(circle at 72% 28%, rgba(255, 0, 55, 0.10) 0%, rgba(5, 6, 8, 0) 55%),
        linear-gradient(160deg, rgba(5, 6, 8, 0.30) 0%, rgba(5, 6, 8, 0.48) 52%, rgba(5, 6, 8, 0.85) 100%),
        var(--hero-bg, url("/images/header_1.webp"));
    background-size: cover;
    background-position: center;
    padding-top: var(--header-h);
}

/* Hero action buttons (Call + WhatsApp) */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-subtitle-top {
    font-family: var(--vfw-font-family-headings);
    font-size: 14px;
    color: var(--accent-red);
    letter-spacing: 0.3em;
    font-weight: 900;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-h1 {
    font-size: clamp(32px, 6vw, 64px);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-p {
    font-size: clamp(16px, 2.5vw, 19px);
    margin-bottom: 40px;
    color: #cbd5e1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Call Button Action */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-red);
    color: #ffffff;
    padding: 16px 36px;
    font-family: var(--vfw-font-family-headings);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: var(--glow-red);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: skewX(-7deg);
}

.btn-premium > * {
    transform: skewX(7deg);
}

.btn-premium:hover {
    background: var(--vfw-color-primary-hover);
    box-shadow: 0 0 25px rgba(255, 0, 55, 0.65);
    transform: translateY(-2px) skewX(-7deg);
}

.btn-premium svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* WhatsApp button — secondary/ghost so the red Call button leads */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: #25d366;
    padding: 14px 28px;
    font-family: var(--vfw-font-family-headings);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid #25d366;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: skewX(-7deg);
}

.btn-whatsapp > * {
    transform: skewX(7deg);
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.12);
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px) skewX(-7deg);
}

.btn-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Hero "Book appointment" button — a filled red co-primary next to Call, on every
   breakpoint (booking is the site's primary goal, so it must not be demoted). */
.btn-appt-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-red);
    color: #ffffff;
    padding: 16px 30px;
    font-family: var(--vfw-font-family-headings);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: var(--glow-red);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: skewX(-7deg);
}

.btn-appt-hero > * {
    transform: skewX(7deg);
}

.btn-appt-hero:hover {
    background: var(--vfw-color-primary-hover);
    box-shadow: 0 0 25px rgba(255, 0, 55, 0.65);
    transform: translateY(-2px) skewX(-7deg);
}

.btn-appt-hero svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* Appointment item lives only in the mobile dropdown menu */
.nav-appt {
    display: none;
}

/* SERVICES CAROUSEL OVERRIDES */
.services-section {
    padding: clamp(80px, 14vw, 120px) 0 clamp(48px, 8vw, 80px) 0;
}

.section-header-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto clamp(28px, 6vw, 50px) auto;
    padding: 0 24px;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.section-label {
    font-size: 13px;
    color: var(--accent-red);
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-h2 {
    font-size: clamp(24px, 6vw, 42px);
    margin-bottom: 16px;
}

/* WHY US / TRUST BAND */
.why-section {
    padding: clamp(48px, 9vw, 90px) 0;
    background-color: var(--bg-darker);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.why-item {
    background: var(--bg-card);
    border: 1px solid var(--vfw-color-border);
    border-radius: 8px;
    padding: 26px 22px;
    text-align: center;
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: var(--accent-red);
    background: rgba(255, 0, 55, 0.1);
}

.why-icon svg {
    width: 26px;
    height: 26px;
}

.why-item-title {
    font-size: 16px;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: 0.03em;
}

.why-item-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--vfw-color-text-muted);
    margin: 0;
}

/* REVIEWS / SOCIAL PROOF */
.reviews-section {
    padding: clamp(56px, 11vw, 100px) 0;
    background-color: var(--vfw-color-background);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--vfw-color-border);
    border-radius: 8px;
    padding: 24px;
}

.review-stars {
    color: #f5b301;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-quote {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--vfw-color-text);
}

.review-cite {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

.review-name {
    font-family: var(--vfw-font-family-headings);
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.review-meta {
    font-size: 13px;
    color: var(--vfw-color-text-muted);
}

.reviews-cta-row {
    text-align: center;
    margin-top: 36px;
}

.reviews-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-red);
    font-family: var(--vfw-font-family-headings);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.reviews-cta:hover {
    border-bottom-color: var(--accent-red);
}

/* Appointment form step headers (visual grouping, single form — not multi-step) */
.appt-step-head {
    font-family: var(--vfw-font-family-headings);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-red);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--vfw-color-border);
}

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

@media (max-width: 560px) {
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* SERVICE POSTER CAROUSEL */
.svc-carousel {
    position: relative;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 64px;
    box-sizing: border-box;
}

.svc-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
    padding: 8px 4px;
    scrollbar-width: none;
}

.svc-track::-webkit-scrollbar {
    display: none;
}

/* Poster card: portrait media + text caption, three-up on desktop */
.svc-card {
    flex: 0 0 auto;
    width: calc((100% - 48px) / 3);
    display: flex;
    flex-direction: column;
    border: 1px solid #1f222b;
    border-radius: 6px;
    background: var(--bg-card);
    overflow: hidden;
    scroll-snap-align: start;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.svc-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-4px);
    box-shadow: var(--glow-red);
}

/* Clickable poster region (opens the full-res lightbox) */
.svc-media {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    margin: 0;
    border: 0;
    background: var(--bg-card);
    overflow: hidden;
    cursor: zoom-in;
}

.svc-media:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: -2px;
}

.svc-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Real text caption beneath the poster (crawlable + screen-reader friendly) */
.svc-caption {
    padding: 14px 14px 16px 14px;
    text-align: left;
}

.svc-caption-title {
    font-family: var(--vfw-font-family-headings);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.svc-caption-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--vfw-color-text-muted);
    margin: 0;
}

/* "Book this service" — turns browsing intent straight into a booking */
.svc-book-button {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent-red);
    padding: 8px 16px;
    font-family: var(--vfw-font-family-headings);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1.5px solid var(--accent-red);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.svc-book-button:hover {
    background: var(--accent-red);
    color: #ffffff;
    box-shadow: var(--glow-red);
}

.svc-book-button svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

/* Swipe affordance: a hint line + a right-edge fade so the hidden posters read */
.svc-swipe-hint {
    text-align: center;
    margin: 20px auto 0 auto;
    font-size: 13px;
    color: var(--vfw-color-text-muted);
}

.svc-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 6, 8, 0) 0%, var(--vfw-color-background) 90%);
}

/* Prev / next arrows */
.svc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--vfw-color-border);
    background: rgba(13, 15, 20, 0.9);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.svc-arrow:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: var(--glow-red);
}

.svc-arrow-prev { left: 8px; }
.svc-arrow-next { right: 8px; }

/* Custom slanting accents */
.slanting-accent-bar {
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    margin: 0 auto 16px auto;
    transform: skewX(-20deg);
}

/* CONTACT & VISIT US SECTION */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
    margin-top: 40px;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    border: 1px solid var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-red);
    background: rgba(255, 0, 55, 0.05);
    box-shadow: 0 0 8px rgba(255, 0, 55, 0.1);
}

.info-icon-wrapper svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.info-title {
    font-size: 15px;
    color: var(--vfw-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-content {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    /* pre-line renders the \n line breaks in the translated Opening Hours; the
       phone/WhatsApp blocks keep their <a>/<br> on one source line so no stray
       source newline is rendered as a leading/extra gap. */
    white-space: pre-line;
}

.info-content a:hover {
    color: var(--accent-red);
}

/* Google Maps location panel (replaces the old contact form) */
.contact-map-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-map-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vfw-color-border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    min-height: 460px;
    background: var(--bg-card);
}

.contact-map {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: 0;
}

/* Click-to-load placeholder button */
.map-load {
    font-family: var(--vfw-font-family-headings);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: rgba(255, 0, 55, 0.08);
    border: 1px solid var(--accent-red);
    border-radius: 4px;
    padding: 14px 26px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-load:hover {
    background: var(--accent-red);
    box-shadow: var(--glow-red);
}

.map-directions {
    align-self: flex-start;
    font-family: var(--vfw-font-family-headings);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-red);
}

.map-directions:hover {
    text-shadow: 0 0 10px rgba(255, 0, 55, 0.4);
}

/* Open-now / closed status badge next to opening hours */
.status-badge[hidden] {
    display: none;
}

.status-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.status-badge.is-open {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--accent-green);
}

.status-badge.is-closed {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid #f87171;
}

/* APPOINTMENT CTA FRAME (below Contact; mobile/tablet — desktop uses the header button) */
.appointment-section {
    padding: 0 0 clamp(48px, 10vw, 80px) 0;
}

.appointment-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--vfw-color-border);
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.appointment-icon {
    flex-shrink: 0;
    color: var(--accent-red);
    display: flex;
}

.appointment-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.appointment-text {
    flex: 1 1 220px;
    min-width: 0;
}

.appointment-title {
    font-family: var(--vfw-font-family-headings);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.appointment-desc {
    font-size: 14px;
    color: var(--vfw-color-text-muted);
    margin: 0;
}

.appointment-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-red);
    color: #ffffff;
    font-family: var(--vfw-font-family-headings);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 24px;
    border-radius: 4px;
    box-shadow: var(--glow-red);
    transition: all 0.2s ease;
}

.appointment-btn svg {
    stroke: currentColor;
}

.appointment-btn:hover {
    background: var(--vfw-color-primary-hover);
    box-shadow: 0 0 22px rgba(255, 0, 55, 0.6);
    transform: translateY(-2px);
}

/* Desktop shows the header button instead of the frame */
@media (min-width: 901px) {
    .appointment-section {
        display: none;
    }
}

/* APPOINTMENT MODAL */
.appt-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.appt-modal-open {
    display: flex;
}

.appt-modal-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: auto;
    background: var(--bg-card);
    border: 1px solid var(--vfw-color-border);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 26px 24px 22px 24px;
    box-sizing: border-box;
}

.appt-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--vfw-color-border);
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appt-modal-close:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.appt-modal-title {
    font-family: var(--vfw-font-family-headings);
    font-size: 22px;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
    margin: 0 0 20px 0;
    padding: 0 40px;
}

.appt-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.appt-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

/* The hidden attribute must win over the flex display above */
.appt-field[hidden] {
    display: none;
}

.appt-form-grid .appt-field {
    margin-bottom: 0;
}

.appt-label {
    font-family: var(--vfw-font-family-headings);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vfw-color-text-muted);
    margin-bottom: 6px;
}

.appt-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    background: #050608;
    border: 1px solid var(--vfw-color-border);
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--vfw-font-family);
    font-size: 15px;
    color-scheme: dark;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appt-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--vfw-color-primary-focus);
}

textarea.appt-input {
    resize: vertical;
    min-height: 72px;
}

/* Time slots */
.appt-slots-wrap {
    margin-bottom: 16px;
}

.appt-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.appt-slot {
    padding: 10px 4px;
    border-radius: 4px;
    font-family: var(--vfw-font-family-headings);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.appt-slot.is-open {
    background: rgba(16, 185, 129, 0.14);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.appt-slot.is-open:hover {
    background: rgba(16, 185, 129, 0.26);
}

.appt-slot.is-taken {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
    color: #f87171;
    cursor: not-allowed;
    opacity: 0.7;
}

.appt-slot.is-selected {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #04120b;
    box-shadow: var(--glow-green);
}

.appt-slots-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--vfw-color-text-muted);
}

.appt-slots-note {
    margin-top: 8px;
    font-size: 13px;
    color: #f87171;
}

.appt-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--vfw-color-text-muted);
    cursor: pointer;
}

.appt-consent input {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-red);
}

.appt-status {
    margin: 0 0 14px 0;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.appt-status.is-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid #f87171;
    color: #f87171;
}

.appt-status.is-success {
    background: var(--vfw-color-success-bg);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.appt-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.appt-cancel,
.appt-send {
    font-family: var(--vfw-font-family-headings);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 26px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appt-cancel {
    background: transparent;
    border: 1px solid var(--vfw-color-border);
    color: var(--vfw-color-text-muted);
}

.appt-cancel:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.appt-send {
    background: var(--accent-red);
    border: none;
    color: #ffffff;
    box-shadow: var(--glow-red);
}

.appt-send:hover {
    background: var(--vfw-color-primary-hover);
    box-shadow: 0 0 22px rgba(255, 0, 55, 0.6);
}

.appt-modal-close:focus-visible,
.appt-slot:focus-visible,
.appt-cancel:focus-visible,
.appt-send:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* FOOTER SECTION */
.site-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--vfw-color-border);
    padding: clamp(48px, 9vw, 80px) 0 32px 0;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-brand-desc {
    margin-top: 16px;
    max-width: 320px;
}

.footer-nav-col h4 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 16px;
}

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

.footer-links-list a {
    color: var(--vfw-color-text-muted);
    font-size: 14px;
}

.footer-links-list a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid #14161c;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--vfw-color-text-muted);
    font-size: 13px;
}

/* Copyright + maker credit stacked in the left zone of the sub-footer. */
.footer-copy {
    display: flex;
    flex-direction: column;
}

/* Discreet developer/maker credit: subordinate to the copyright by size, not by
   dimming (keeps the mailto link above the AA contrast floor). */
.maker-credit {
    margin-top: 6px;
    font-size: 11px;
    color: var(--vfw-color-text-muted);
}

.maker-credit a {
    color: inherit;
    text-decoration: none;
    padding: 2px 0;
}

.maker-credit a:hover,
.maker-credit a:focus-visible {
    text-decoration: underline;
}

.back-to-top-btn {
    font-family: var(--vfw-font-family-headings);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--vfw-color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.back-to-top-btn:hover {
    color: var(--accent-red);
}

/* VFW Modal Custom Styling Integration */
.vfw-modal-overlay {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
}

.vfw-modal-window {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--vfw-color-border) !important;
    color: var(--vfw-color-text) !important;
    box-shadow: 0 0 30px rgba(0,0,0,0.6) !important;
}

.vfw-modal-title {
    font-family: var(--vfw-font-family-headings) !important;
    text-transform: uppercase;
    font-weight: 900;
}

/* Sticky mobile action bar — revealed only on phones (see media query) */
.mobile-action-bar {
    display: none;
}

/* Responsive breakdowns */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    /* Header appointment button hides; the frame below Contact takes over */
    .appt-header-btn {
        display: none;
    }

    /* Reveal hamburger; push brand left so controls cluster on the right */
    .nav-toggle {
        display: flex;
    }

    .nav-container {
        gap: 12px;
    }

    .logo-wrapper {
        margin-right: auto;
    }

    /* Larger logo on phones — scales with the viewport so bigger phones get a
       bolder mark while the smallest ones stay clear of the burger. */
    .logo-img {
        height: clamp(54px, 15vw, 72px);
    }

    /* Nav collapses into a full-width dropdown under the fixed header */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(5, 6, 8, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--vfw-color-border);
        padding: 0 24px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.open {
        max-height: 70vh;
    }

    .nav-link {
        padding: 16px 0;
        border-bottom: 1px solid var(--vfw-color-border);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Reveal the appointment item inside the dropdown */
    .nav-appt {
        display: block;
        color: var(--accent-red);
    }

    /* Two posters per view on tablet */
    .svc-card {
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 600px) {
    /* Keep the header within the viewport on narrow phones */
    .nav-container {
        gap: 10px;
    }

    /* Appointment button spans the card on phones */
    .appointment-btn {
        width: 100%;
    }

    /* Appointment modal: single-column form, 4-per-row slots */
    .appt-form-grid {
        grid-template-columns: 1fr;
    }

    .appt-slots {
        grid-template-columns: repeat(4, 1fr);
    }

    .svc-carousel {
        padding: 0 44px;
    }

    /* One poster per view on mobile */
    .svc-card {
        width: 100%;
    }

    .svc-arrow {
        width: 40px;
        height: 40px;
    }

    .mobile-action-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        background: rgba(5, 6, 8, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--vfw-color-border);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mab-btn {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 9px 2px;
        font-family: var(--vfw-font-family-headings);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        white-space: nowrap;
        color: #ffffff;
    }

    .mab-btn svg {
        fill: currentColor;
    }

    .mab-wa {
        color: #25d366;
    }

    .mab-appt {
        color: var(--accent-red);
    }

    .mab-appt svg {
        fill: none;
        stroke: currentColor;
    }

    /* Leave room so the fixed bar never covers the footer (incl. notch inset) */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 520px) {
    /* Stack copyright above the back-to-top button */
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}
/* @audited cfw style=e21efaa0c731 memsec=e21efaa0c731 test=ff5fb4a04876 design=e2e3dc2c59b8 */
