/* ========================================
   Victorious Mobile Detailing
   Royal Purple + Gold theme
   You're in the hands of victors.
   ======================================== */

:root {
    --color-bg: #0E0A14;
    --color-bg-secondary: #160F22;
    --color-bg-card: #1B1226;
    --color-text: #F4F1FA;
    --color-text-muted: rgba(244, 241, 250, 0.72);
    --color-primary: #4B1D7D;
    --color-primary-strong: #6A2BA9;
    --color-accent: #D4AF37;
    --color-accent-strong: #F0C955;
    --color-jewel-red: #9B1B30;
    --color-jewel-emerald: #1F6F4A;
    --color-white: #ffffff;
    --color-danger: #E04848;
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.45);
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
      radial-gradient(900px 500px at 80% -10%, rgba(75, 29, 125, 0.35), transparent 60%),
      radial-gradient(700px 420px at -10% 110%, rgba(212, 175, 55, 0.08), transparent 60%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.01em; }

h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; line-height: 1.18; margin-bottom: 1rem; color: var(--color-text); }
h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 600; line-height: 1.25; margin-bottom: 0.75rem; color: var(--color-text); }
h3 { font-size: clamp(18px, 3vw, 22px); font-weight: 600; line-height: 1.3; color: var(--color-text); font-family: var(--font-primary); letter-spacing: 0; }

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

.text-center { text-align: center; }
.text-small { font-size: 14px; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.container-sm { max-width: 800px; }

.content {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1.5rem;
}

/* Header */
.header {
    padding: 1rem 1.5rem;
    background: rgba(14, 10, 20, 0.85);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header a { text-decoration: none; }

.nav { display: flex; gap: 1rem; align-items: center; }
.nav a { color: var(--color-text); font-weight: 500; font-size: 15px; padding: 0.5rem 0.75rem; border-radius: 8px; transition: color var(--transition-speed) ease, background var(--transition-speed) ease; }
.nav a:hover { color: var(--color-accent); }

@media (max-width: 640px) {
    .header .container { flex-wrap: wrap; gap: 0.75rem; }
    .brand-wordmark { display: none; }
    .nav a { font-size: 14px; padding: 0.4rem 0.6rem; }
}

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

/* Question Counter */
.question-counter {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

/* Vehicle Selection Cards */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem auto;
    max-width: 600px;
}

@media (min-width: 768px) {
    .vehicle-grid { gap: 1.5rem; max-width: 700px; }
}

.vehicle-card {
    background: linear-gradient(155deg, rgba(75, 29, 125, 0.32), rgba(27, 18, 38, 0.85));
    border: 2px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--color-text);
    font-family: var(--font-primary);
}

.vehicle-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at 50% -20%, rgba(212, 175, 55, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.vehicle-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(75, 29, 125, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.35) inset;
}

.vehicle-card:hover::before { opacity: 1; }

.vehicle-card:active { transform: translateY(-2px) scale(0.98); }

.vehicle-icon {
    width: 100%;
    max-width: 120px;
    height: 80px;
    margin: 0 auto 1rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.vehicle-name { font-size: 18px; font-weight: 600; color: var(--color-text); }

/* Pricing Page */
.pricing-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.urgency-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-jewel-red), #6E1322);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

.price-display { margin: 2rem 0; }

.regular-price { position: relative; font-size: 24px; color: rgba(244, 241, 250, 0.5); margin-bottom: 0.5rem; }
.regular-price::after {
    content: '✗';
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    color: var(--color-danger);
    font-size: 32px;
    font-weight: 700;
}
.regular-price .price { text-decoration: line-through; }

.special-price { font-size: 56px; font-weight: 700; color: var(--color-accent); line-height: 1; font-family: var(--font-display); }
.price-label { font-size: 14px; color: rgba(244, 241, 250, 0.7); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
    color: #1A1228;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5);
}

.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-ghost-gold {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    box-shadow: inset 0 0 0 0 rgba(212, 175, 55, 0);
}

.btn-ghost-gold:hover {
    background: rgba(212, 175, 55, 0.08);
    box-shadow: inset 0 0 0 60px rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

/* Calendar Container */
.calendar-container {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    min-height: 380px;
    margin: 2rem auto;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Thank You Page */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #1A1228;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(75, 29, 125, 0.25);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.5s ease;
}

/* Footer */
.footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 12px;
    color: rgba(244, 241, 250, 0.55);
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(14, 10, 20, 0.8);
}

.footer a {
    color: rgba(244, 241, 250, 0.75);
    text-decoration: none;
    margin: 0 0.5rem;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.6s ease-out; }

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .vehicle-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .special-price { font-size: 42px; }
    .pricing-container { padding: 1.5rem; }
    .vehicle-card { min-height: 120px; padding: 1rem; }
    .btn { min-height: 48px; padding: 0.875rem 1.5rem; font-size: 16px; }
    .vehicle-card:active, .btn:active { opacity: 0.85; }
}

@media (max-width: 374px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    .vehicle-card { padding: 0.75rem; }
    .vehicle-icon { max-width: 80px; height: 60px; }
    .vehicle-name { font-size: 14px; }
    .special-price { font-size: 36px; }
    .pricing-container { padding: 1rem; }
    .container { padding: 0.75rem; }
}

@media (min-width: 1024px) {
    .vehicle-grid { gap: 1.5rem; }
    .vehicle-card:hover { transform: translateY(-6px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============= Reusable card patterns shared across pages ============= */

.info-card {
    background: linear-gradient(155deg, rgba(75, 29, 125, 0.22), rgba(27, 18, 38, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 30px rgba(75, 29, 125, 0.35);
}

.info-icon { font-size: 44px; margin-bottom: 1rem; }
.info-card h3 { color: var(--color-text); font-size: 19px; margin-bottom: 0.6rem; }
.info-card p { color: rgba(244, 241, 250, 0.72); font-size: 15px; line-height: 1.6; margin-bottom: 0; }

.service-block {
    background: linear-gradient(155deg, rgba(75, 29, 125, 0.28), rgba(27, 18, 38, 0.7));
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    transition: border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.service-block:hover { border-color: rgba(212, 175, 55, 0.55); transform: translateY(-3px); }

.service-icon { font-size: 36px; margin-bottom: 0.75rem; }
.service-block h3 { color: var(--color-accent); font-size: 18px; margin-bottom: 0.5rem; font-family: var(--font-display); letter-spacing: 0.02em; }
.service-block p { color: rgba(244, 241, 250, 0.7); font-size: 14.5px; line-height: 1.55; margin-bottom: 0; }

.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li {
    color: rgba(244, 241, 250, 0.85);
    padding: 0.65rem 0 0.65rem 1.6rem;
    position: relative;
    font-size: 15px;
}
.service-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.step-card { text-align: center; }

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-display);
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(75, 29, 125, 0.4);
}

.step-card h4 { color: var(--color-text); font-size: 17px; margin-bottom: 0.4rem; }
.step-card p { color: rgba(244, 241, 250, 0.7); font-size: 14px; }

.faq-grid { display: grid; gap: 1.25rem; max-width: 800px; margin: 0 auto; }

.faq-item {
    background: rgba(75, 29, 125, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.faq-question { color: var(--color-accent); font-size: 16px; margin-bottom: 0.6rem; font-weight: 600; }
.faq-answer { color: rgba(244, 241, 250, 0.8); font-size: 14.5px; line-height: 1.6; margin: 0; }

.placeholder-tile {
    background: linear-gradient(155deg, rgba(75, 29, 125, 0.45), rgba(27, 18, 38, 0.8));
    border: 1px dashed rgba(212, 175, 55, 0.45);
    border-radius: 14px;
    padding: 2.25rem 1.5rem;
    text-align: center;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.placeholder-tile span {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-primary);
    color: var(--color-accent);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gallery-card {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(27, 18, 38, 0.7);
}

.gallery-card img { width: 100%; height: 280px; object-fit: cover; display: block; }

.gallery-card figcaption {
    padding: 0.75rem 1rem;
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-align: center;
    background: rgba(14, 10, 20, 0.7);
}

.cta-btn { animation: pulse-glow 2.4s ease-in-out infinite; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35); }
    50% { box-shadow: 0 4px 32px rgba(212, 175, 55, 0.6); }
}
