/* === Theme: Light Clean ===
 * Minimalist, light, calm. Clean typography, soft shadows, no glow effects.
 * Accent color drives buttons/highlights — defaults to blue but overridable via tenant_config.
 */

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

:root {
    /* Editable design tokens (overridden live by branding.php). */
    --radius-button: 10px;
    --radius-card: 16px;
    --radius-input: 10px;
    --section-spacing: 5rem;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-scale: 1;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --accent-red: #2563eb;
    --accent-red-hover: #1e40af;
    --accent-red-light: color-mix(in srgb, var(--accent-red) 8%, transparent);
    --border-color: #e2e8f0;
    --spacing: 1rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 20px -5px rgba(15, 23, 42, 0.1), 0 8px 12px -6px rgba(15, 23, 42, 0.06);
    --shadow-red: 0 8px 20px -8px color-mix(in srgb, var(--accent-red) 40%, transparent);
    --gradient-primary: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-hover) 100%);
    --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing); }

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 50;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.header:hover { background-color: rgba(255, 255, 255, 0.95); }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 0.9rem 0; }

.logo { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; min-width: max-content; }
.logo-img { height: 56px; width: auto; max-width: 200px; }
@media (max-width: 768px) { .logo-img { height: 48px; max-width: 160px; } .hero-logo { max-width: 80%; max-height: 220px; } .footer-logo-img { height: 32px; max-width: 140px; } }

.nav { display: flex; gap: 2rem; flex: 1; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.15s ease; padding: 0.5rem 0; }
.nav a:hover { color: var(--accent-red); }

/* Buttons — flat, solid, minimal */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-button);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
}
.btn-primary {
    background-color: var(--accent-red);
    color: #ffffff;
    box-shadow: var(--shadow-red);
}
.btn-primary:hover { background-color: var(--accent-red-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent-red) 55%, transparent); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--accent-red);
    color: var(--accent-red);
}
.btn-outline:hover { background-color: var(--accent-red-light); transform: translateY(-1px); }

.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.35); border-radius: 50%; border-top-color: #fff; animation: spin 0.7s linear infinite; margin-right: 0.5rem; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero — calm, lots of whitespace */
.hero {
    /* Clear the fixed header with padding (not a transparent margin) → no empty band under header. */
    padding: calc(72px + 6rem) 0 5rem;
    background:
        radial-gradient(circle at 90% 10%, var(--accent-red-light) 0%, transparent 40%),
        var(--bg-dark);
    position: relative;
    overflow: hidden;
}
.hero .container { display: flex; flex-direction: column; gap: 3rem; position: relative; z-index: 1; }
.hero-image { order: 1; }
.hero-content { order: 2; }
.hero-content h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}
.highlight { color: var(--accent-red); }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; max-width: 560px; }
.button-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-image {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    height: 320px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.hero-logo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.image-placeholder { color: var(--text-muted); text-align: center; }

/* Section header — clean, no gradients */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.section-header h2::after { display: none; }
.section-header p { font-size: 1.05rem; color: var(--text-muted); margin-top: 0.75rem; }

/* Services */
.services { padding: var(--section-spacing) 0; background-color: var(--bg-secondary); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.service-card:hover { transform: translateY(-3px); border-color: var(--accent-red); box-shadow: var(--shadow-md); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.service-card p { font-size: 0.97rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.7; }
.price { font-size: 1.35rem; font-weight: 700; color: var(--accent-red); letter-spacing: -0.02em; }

/* Features */
.features { padding: var(--section-spacing) 0; background-color: var(--bg-dark); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-item:hover { transform: translateY(-3px); border-color: var(--accent-red); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; display: inline-block; }
.feature-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-primary); }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Testimonials slider */
.testimonials { padding: var(--section-spacing) 0; background-color: var(--bg-secondary); }
.testimonials-grid { display: flex; gap: 1.5rem; overflow: hidden; position: relative; width: 100%; padding: 0.5rem 0; }
.testimonials-slider { display: flex; gap: 1.5rem; animation: slideReviews 45s linear infinite; will-change: transform; width: fit-content; }
.testimonials-slider:hover { animation-play-state: paused; }
@keyframes slideReviews { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    flex: 0 0 360px; min-width: 360px; max-width: 360px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial-card p { color: var(--text-primary); margin-bottom: 1.25rem; font-style: normal; font-size: 0.97rem; line-height: 1.65; }
.author { padding-top: 1rem; border-top: 1px solid var(--border-color); }
.name { font-weight: 600; color: var(--text-primary); margin-bottom: 0.2rem; }
.role { color: var(--text-muted); font-size: 0.88rem; }

/* CTA */
.cta { padding: 4rem 0; background-color: var(--bg-secondary); }
.cta-content { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; font-weight: 700; }
.cta-content > p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.cta-footer { margin-top: 1rem; font-size: 0.88rem; color: var(--text-muted); }

/* Contact */
.contact { padding: var(--section-spacing) 0; background-color: var(--bg-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; align-items: start; }
.contact-details { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-card); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-details h3 { font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--text-primary); font-weight: 600; }
.contact-details p { color: var(--text-muted); margin-bottom: 0.75rem; font-size: 0.97rem; line-height: 1.7; }
.contact-details strong { color: var(--text-primary); font-weight: 600; }
.contact-details a { color: var(--accent-red); text-decoration: none; font-weight: 500; }
.contact-details a:hover { text-decoration: underline; }
.contact-map { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.contact-map iframe { border-radius: var(--radius-card); width: 100%; height: 380px; display: block; }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 1.5rem; }
.footer-col h3 { color: var(--text-primary); font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col h4 { color: var(--text-primary); font-weight: 600; margin-bottom: 0.75rem; }
.footer-col p, .footer-col ul a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { text-decoration: none; transition: color 0.15s ease; }
.footer-col ul a:hover { color: var(--accent-red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border-color); flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.88rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--accent-red); }

/* Appointments */
.appointments { padding: var(--section-spacing) 0; background-color: var(--bg-secondary); }
.appointment-types { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.appointment-type-btn {
    flex: 1; min-width: 220px;
    padding: 1.75rem 1.5rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    box-shadow: var(--shadow-sm);
}
.appointment-type-btn:hover { border-color: var(--accent-red); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.appointment-type-btn.active { border-color: var(--accent-red); background: var(--accent-red-light); }
.appointment-type-btn h3 { color: var(--text-primary); margin-bottom: 0.35rem; font-size: 1.1rem; font-weight: 600; }
.appointment-type-btn p { color: var(--text-muted); font-size: 0.9rem; }

.appointment-flow { max-width: 760px; margin: 0 auto; position: relative; overflow: hidden; }
.appointment-slide { position: relative; width: 100%; display: none; transform: translateX(100%); opacity: 0; transition: transform 0.45s ease, opacity 0.45s ease; will-change: transform, opacity; }
.appointment-slide.active { transform: translateX(0); opacity: 1; display: block; }
.appointment-slide.slide-out-left { transform: translateX(-100%); opacity: 0; }
.appointment-slide.slide-out-right { transform: translateX(100%); opacity: 0; }
.appointment-slide.slide-in-from-right { transform: translateX(100%); opacity: 0; }
.appointment-slide.slide-in-from-right.active { transform: translateX(0); opacity: 1; }
.appointment-slide.slide-in-from-left { transform: translateX(-100%); opacity: 0; }
.appointment-slide.slide-in-from-left.active { transform: translateX(0); opacity: 1; }
.appointment-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.appointment-step h3 { color: var(--text-primary); margin-bottom: 1.25rem; text-align: center; font-size: 1.25rem; font-weight: 600; }

.box-selection { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.box-btn { background: var(--bg-secondary); border: 1.5px solid var(--border-color); border-radius: 12px; padding: 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.2s, transform 0.2s, background-color 0.2s; color: var(--text-primary); }
.box-btn:hover, .box-btn.active { border-color: var(--accent-red); background-color: var(--accent-red-light); transform: translateY(-2px); }
.box-btn h4 { margin: 0 0 0.25rem 0; font-size: 1.05rem; font-weight: 600; }

.back-btn { transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.4rem; }
.back-btn:hover { background: var(--accent-red) !important; color: #fff !important; transform: translateX(-3px); }

.wash-type-selection { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.wash-type-btn { padding: 1.5rem; background: var(--bg-secondary); border: 1.5px solid var(--border-color); border-radius: 12px; cursor: pointer; transition: border-color 0.2s, transform 0.2s; text-align: left; }
.wash-type-btn:hover { border-color: var(--accent-red); transform: translateY(-2px); }
.wash-type-btn.selected { border-color: var(--accent-red); background-color: var(--accent-red-light); }
.wash-type-btn h4 { color: var(--text-primary); margin-bottom: 0.35rem; font-size: 1.05rem; font-weight: 600; }
.wash-type-btn p { color: var(--text-muted); font-size: 0.88rem; }

.date-selection { margin-bottom: 1.25rem; }
.date-selection label { display: block; color: var(--text-primary); margin-bottom: 0.4rem; font-weight: 500; font-size: 0.95rem; }
.date-selection input { width: 100%; padding: 0.7rem 0.95rem; background-color: #fff; border: 1.5px solid var(--border-color); border-radius: var(--radius-button); color: var(--text-primary); font-size: 0.95rem; font-family: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.date-selection input:focus { outline: none; border-color: var(--accent-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-red) 15%, transparent); }

.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.time-slot { padding: 0.7rem 0.85rem; background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.15s ease; color: var(--text-primary); font-weight: 600; font-size: 0.92rem; }
.time-slot:hover { border-color: var(--accent-red); }
.time-slot.selected { border-color: var(--accent-red); background-color: var(--accent-red); color: #fff; }
.time-slot.disabled { opacity: 0.4; cursor: not-allowed; }

/* Modals */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; min-height: 100vh; background-color: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); overflow-y: auto; -webkit-overflow-scrolling: touch; animation: fadeIn 0.2s ease; }
.modal.show { display: block !important; visibility: visible !important; opacity: 1 !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { background: var(--bg-card); margin: 2rem auto; padding: 2rem; border: 1px solid var(--border-color); border-radius: var(--radius-card); max-width: 480px; width: 90%; position: relative; box-shadow: var(--shadow-lg); animation: slideUp 0.25s ease; }
.appointment-modal-content { max-width: 780px; width: 90%; }
.appointment-flow-container { position: relative; overflow: hidden; min-height: 400px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin: -2rem -2rem 1.5rem -2rem; padding: 1rem 1.5rem; background-color: var(--accent-red); border-radius: var(--radius-card) 16px 0 0; }
.modal-header h2 { color: #fff; margin: 0; font-weight: 600; font-size: 1.15rem; }
.continua-btn { clear: both; }
.continua-btn::after { content: ''; clear: both; display: table; }
.close { color: #fff; font-size: 1.6rem; font-weight: 400; cursor: pointer; background: none; border: none; padding: 0; line-height: 1; transition: opacity 0.2s; }
.close:hover { opacity: 0.7; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; color: var(--text-primary); font-weight: 500; font-size: 0.95rem; }
.form-group input, .form-group select { width: 100%; padding: 0.7rem 0.95rem; background-color: #fff; border: 1.5px solid var(--border-color); border-radius: var(--radius-button); color: var(--text-primary); font-size: 0.95rem; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-red) 15%, transparent); }

.error-message { background-color: rgba(220, 38, 38, 0.08); border: 1.5px solid #dc2626; color: #dc2626; padding: 0.85rem 1rem; border-radius: var(--radius-button); font-size: 0.92rem; font-weight: 500; }

.confirmation-content { text-align: center; padding: 1.25rem 0; }
.confirmation-content p { color: var(--text-primary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.25rem; }
.confirmation-content .btn { margin-top: 0.75rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; order: 3; }
    .hero .container { flex-direction: column; }
    .button-group { flex-direction: column; }
    .button-group .btn { width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .testimonial-card { min-width: 280px; flex: 0 0 280px; max-width: 280px; }
    .testimonials-slider { animation-duration: 32s; }
}
@media (max-width: 480px) {
    .logo { font-size: 1.1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .appointment-types { flex-direction: column; }
    .appointment-type-btn { min-width: 100%; }
    .wash-type-selection { grid-template-columns: 1fr; }
    .time-slots { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
    .modal-content { margin: 1rem auto; padding: 1.25rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map iframe { height: 280px; }
}
