/* public/assets/css/style.css */
/* ─── Sprint 2 – CRO & UX Improvements ─── */

/* ── Global Design Tokens ── */
:root {
    --radius: 8px;
    --space: 1.5rem;
}

/* ── Improved text contrast (was #a0a0a0, now #a1a1b4 – meets 4.5:1 on dark bg) ── */
.body-muted, .text-zinc-400 { color: #a1a1b4!important; }

/* ── Focus outline for keyboard accessibility ── */
*:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
    border-radius: var(--radius);
}

/* ── Button hover micro-animations ── */
.btn-gold,
.btn-primary,
[class*="btn-"] {
    transition: transform 0.2s cubic-bezier(0.25,1,0.5,1),
                box-shadow 0.2s ease,
                background 0.2s ease !important;
}
.btn-gold:hover,
.btn-gold:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}

/* ── Trust Bar ── */
.trust-bar {
    width: 100%;
    background: linear-gradient(90deg, rgba(212,175,55,0.06) 0%, rgba(212,175,55,0.03) 100%);
    border-bottom: 1px solid rgba(212,175,55,0.12);
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 4vw, 48px);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c9b96a;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.trust-bar-item svg {
    color: #d4af37;
    flex-shrink: 0;
}

/* ── Sticky Mobile Phone CTA ── */
.sticky-phone-btn {
    display: none;
}
@media (max-width: 767px) {
    .sticky-phone-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)); /* clear bottom-nav */
        left: 16px;   /* LEFT side – away from AI-chat icon (bottom-right) */
        right: auto;
        z-index: 9990;
        background: #d4af37;
        color: #111;
        font-weight: 700;
        font-size: 13px;
        padding: 12px 18px;
        border-radius: 50px;
        box-shadow: 0 4px 20px rgba(212,175,55,0.45);
        text-decoration: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: none;
        cursor: pointer;
        white-space: nowrap;
    }
    .sticky-phone-btn:hover, .sticky-phone-btn:focus-visible {
        transform: scale(1.05);
        box-shadow: 0 6px 28px rgba(212,175,55,0.6);
    }
}

/* ── Fix: <picture> must not break w-full/h-full on child <img> ── */
picture {
    display: contents;
}

/* ── Booking Progress Bar ── */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 8px;
}
.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}
.booking-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #27272a;
    background: #18181b;
    color: #71717a;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.booking-step.active .booking-step-number {
    background: #d4af37;
    border-color: #d4af37;
    color: #111;
    box-shadow: 0 0 14px rgba(212,175,55,0.45);
}
.booking-step.done .booking-step-number {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.booking-step-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #52525b;
}
.booking-step.active .booking-step-label { color: #d4af37; }
.booking-step.done .booking-step-label { color: #4ade80; }
.booking-step-line {
    flex: 1;
    height: 2px;
    background: #27272a;
    margin-bottom: 22px;
    min-width: 32px;
    max-width: 80px;
}

/* ── Response-time badge ── */
.response-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.04em;
}
.response-badge svg { color: #4ade80; }

/* ── Contact page privacy note ── */
.privacy-note {
    font-size: 11px;
    color: #52525b;
    text-align: center;
    margin-top: 8px;
}
.privacy-note a { color: #71717a; text-decoration: underline; }
.privacy-note a:hover { color: #d4af37; }

/* ── Guarantee banner in footer ── */
.guarantee-strip {
    border-top: 1px solid rgba(212,175,55,0.12);
    background: rgba(212,175,55,0.04);
    padding: 14px 24px;
    text-align: center;
    font-size: 12px;
    color: #71717a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.guarantee-strip svg { color: #d4af37; flex-shrink: 0; }
.guarantee-strip strong { color: #a1a1b4; }

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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-input: #1a1a1a;

    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;

    --accent-gold: #d4af37;
    --accent-gold-hover: #b4941f;
    --accent-gold-dim: rgba(212, 175, 55, 0.1);

    --border-subtle: #333;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.3);

    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #b4941f 100%);
    --gradient-dark: linear-gradient(to bottom, transparent, #0a0a0a);
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-scale {
    transition: transform var(--transition);
}

.hover-scale:hover {
    transform: scale(1.02);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
header {
    padding: 20px 0;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    transition: var(--transition);
}

header.scrolled .logo {
    transform: scale(0.95);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.btn {
    color: var(--accent-gold);
    padding-bottom: 14px;
    /* Reset padding for btn */
}

.nav-links a.btn::after {
    display: none;
}

.nav-links a.btn:hover {
    color: #000;
}

/* Hero */
.hero {
    height: 100vh;
    /* Full screen impact */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../images/hero-garage-dark.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Simple Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transition: text-shadow 0.5s ease;
}

.hero h1:hover {
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.hero p {
    font-size: 1.35rem;
    color: #e0e0e0;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}


/* Forms */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: #fff;
    /* Visibility fix */
    font-family: var(--font-body);
    border-radius: 4px;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px var(--accent-gold-dim);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Checkbox Card (Booking) */
.checkbox-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.checkbox-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.checkbox-card input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-card input[type="checkbox"]::after {
    content: '✓';
    color: #000;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.checkbox-card input[type="checkbox"]:checked {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.checkbox-card input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: scale(1);
}

/* Service Highlights (Home) */
.service-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.service-card h3 {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Footer CSS removed to let Tailwind control the layout */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 24px;
}

.footer-col li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: #fff;
}

/* Admin Dashboard Table */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: var(--bg-card);
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    color: var(--accent-gold);
    font-family: var(--font-heading);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(255, 165, 0, 0.2);
    color: orange;
}

.badge-approved {
    background: rgba(0, 255, 0, 0.2);
    color: #4ade80;
}

.badge-rejected {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

/* Team Section */
.team-grid {
    display: grid;
    gap: 40px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold-dim);
}

.team-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Desktop layout for team card */
@media (min-width: 768px) {
    .team-card {
        flex-direction: row;
        align-items: stretch;
    }

    .team-img-wrapper {
        width: 40%;
        /* Image takes 40% width */
        height: auto;
        min-height: 350px;
    }

    .team-info {
        width: 60%;
        padding: 40px;
    }

    /* Modal */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .modal-card {
        background: var(--bg-card);
        padding: 32px;
        border-radius: 8px;
        border: 1px solid var(--accent-gold);
        width: 90%;
        max-width: 600px;
    }