/* ============================================================
   BookEasyWash - Core Stylesheet
   ============================================================ */

:root {
    --plum: #6D214F;
    --plum-dark: #521a3c;
    --cream: #FFF8F2;
    --gold: #C89B5D;
    --gold-light: #e8cfa3;
    --text-dark: #2B2025;
    --white: #FFFFFF;
    --bg-light: #F7EFE9;
    --success: #2e7d32;
    --danger: #c62828;
    --border: #ecdfd3;

    --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Poppins', 'Inter', sans-serif;
    --font-logo: 'Bahnschrift', 'Poppins', 'Segoe UI', sans-serif;

    --radius: 10px;
    --radius-lg: 18px;
    --shadow: 0 4px 20px rgba(109, 33, 79, 0.08);
    --shadow-lg: 0 10px 40px rgba(109, 33, 79, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--plum);
    margin: 0 0 0.5em;
    line-height: 1.25;
}

p { margin: 0 0 1em; }
a { color: var(--plum); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 12px; font-size: 2.1rem; }
.section-subtitle { text-align: center; color: #6b5a61; max-width: 640px; margin: 0 auto 40px; }
.text-center { text-align: center; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-align: center;
}
.btn-primary {
    background: var(--plum);
    color: var(--white);
    box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--plum-dark); transform: translateY(-2px); color: var(--white); }
.btn-secondary {
    background: transparent;
    color: var(--plum);
    border-color: var(--gold);
}
.btn-secondary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------------- Offer bar ---------------- */
.offer-bar {
    background: linear-gradient(90deg, var(--plum), var(--plum-dark));
    color: var(--gold-light);
    text-align: center;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 500;
}
.offer-bar p { margin: 0; }

/* ---------------- Header ---------------- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1440px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand__mark {
    background: var(--plum);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-weight: 700;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}
.brand__mark-img {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.brand__name {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--plum);
    white-space: nowrap;
}
.main-nav { display: flex; gap: 14px; align-items: center; flex-wrap: nowrap; }
.main-nav a { color: var(--text-dark); font-weight: 500; font-size: 0.85rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; flex-shrink: 0; }
.main-nav a:hover, .main-nav a.active { color: var(--plum); border-color: var(--gold); }
.nav-track { color: var(--plum) !important; font-weight: 600; }
.site-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-book-header { padding: 11px 20px; font-size: 0.88rem; white-space: nowrap; flex-shrink: 0; }

.user-menu { position: relative; flex-shrink: 0; }
.user-icon-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--plum);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.user-icon-link:hover, .user-icon-link[aria-expanded="true"] { background: var(--plum); color: var(--white); }

.user-menu__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 200;
}
.user-menu__dropdown.open { display: block; }
.user-menu__name {
    padding: 8px 12px;
    font-weight: 600;
    color: var(--plum);
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.user-menu__dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}
.user-menu__dropdown a:hover { background: var(--bg-light); color: var(--plum); }

.city-switcher {
    display: flex; align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 14px;
    flex-shrink: 0;
    white-space: nowrap;
}
.city-switcher select {
    border: none; background: transparent; color: var(--plum); font-weight: 600;
    font-size: 0.8rem; font-family: var(--font-body); cursor: pointer; padding: 2px 0;
}
.city-switcher select:focus { outline: none; }
.city-switcher--mobile { width: 100%; justify-content: flex-start; margin-bottom: 6px; }
.city-switcher--mobile select { flex: 1; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--plum); margin: 0 auto; }

.mobile-nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(43,32,37,0.55);
    backdrop-filter: blur(2px);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-nav-overlay.open { display: block; opacity: 1; }

.mobile-nav {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; max-width: 85vw; height: 100%;
    background: var(--white);
    z-index: 200;
    display: flex; flex-direction: column;
    transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 40px rgba(43,32,37,0.25);
}
.mobile-nav.open { right: 0; }

.mobile-nav__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--plum), var(--plum-dark));
    flex-shrink: 0;
}
.mobile-nav__header .brand__name { color: var(--gold-light); font-size: 1.1rem; }
.mobile-nav__close {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: var(--gold-light);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease;
}
.mobile-nav__close:hover { background: rgba(255,255,255,0.22); }

.mobile-nav__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.mobile-nav__greeting { font-weight: 600; color: var(--plum); font-size: 0.95rem; margin-bottom: 14px; }
.mobile-nav .city-switcher--mobile { margin-bottom: 16px; }

.mobile-nav__links { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav__links a {
    display: block;
    font-weight: 500; color: var(--text-dark); font-size: 0.96rem;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}
.mobile-nav__links a:hover { background: var(--bg-light); }
.mobile-nav__links a.active { background: var(--bg-light); color: var(--plum); border-left-color: var(--gold); font-weight: 600; }

.mobile-nav__divider { height: 1px; background: var(--border); margin: 14px 0; }

.mobile-nav__footer {
    flex-shrink: 0;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--white);
}
.mobile-nav__cta {
    display: block; width: 100%; text-align: center;
    color: var(--white) !important;
    box-shadow: var(--shadow-lg);
}

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--cream) 60%);
    padding: 60px 0 70px;
    overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--plum);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.hero h1 { font-size: 2.9rem; margin-bottom: 18px; }
.hero p.lead { font-size: 1.1rem; color: #5a4a50; margin-bottom: 28px; max-width: 540px; }
.hero__ctas { display: flex; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 26px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 500; color: #55444a; }
.trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero__media {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    position: relative;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__price-tag {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.hero__price-tag .amount { font-family: var(--font-body); font-size: 1.6rem; color: var(--plum); font-weight: 700; }
.hero__price-tag .label { font-size: 0.78rem; color: #7a6a70; }

/* ---------------- Service cards ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
}
.service-card__price { font-family: var(--font-body); font-size: 1.6rem; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.service-card ul.dw-list { list-style: none; padding: 0; margin: 0 0 16px; }
.service-card ul.dw-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }

/* ---------------- Benefit cards ---------------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid var(--border);
    text-align: center;
}
.benefit-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.benefit-card h3 { font-size: 1.05rem; }
.benefit-card p { font-size: 0.9rem; color: #6b5a61; margin: 0; }
.disclaimer-box {
    background: var(--bg-light);
    border-left: 4px solid var(--gold);
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.86rem;
    color: #6b5a61;
    margin-top: 30px;
}

/* ---------------- How it works ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 10px; }
.step-card__num {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--plum);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.step-card p { font-size: 0.9rem; color: #6b5a61; }

/* ---------------- Price highlight ---------------- */
.price-highlight {
    background: linear-gradient(135deg, var(--plum), var(--plum-dark));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
}
.price-highlight h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 6px; }
.price-highlight .big-price { font-family: var(--font-body); font-size: 3.4rem; color: var(--gold-light); font-weight: 700; margin: 10px 0; letter-spacing: -0.01em; }
.price-highlight p.support { color: #e8d5df; }
.price-highlight .badge-first {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid var(--gold-light);
    padding: 14px 26px;
    border-radius: 12px;
    margin-top: 24px;
}
.price-highlight .badge-first strong { color: var(--gold-light); display: block; margin-bottom: 4px; }

/* ---------------- FAQ ---------------- */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.faq-question .icon { transition: transform 0.2s ease; color: var(--gold); font-size: 1.3rem; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0 22px;
    color: #5a4a50;
    font-size: 0.92rem;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 18px; }

/* ---------------- Forms ---------------- */
label { display: block; font-weight: 500; font-size: 0.88rem; margin-bottom: 6px; color: var(--text-dark); }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], select, textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-dark);
}
input[type=date] { -webkit-appearance: none; appearance: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.required { color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid #c8e6c9; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c6cb; }
.alert-info { background: var(--bg-light); color: var(--plum); border: 1px solid var(--border); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--plum-dark); color: #e8d5df; padding: 56px 0 0; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer__col h4 { color: var(--gold-light); font-size: 1rem; margin-bottom: 14px; }
.footer__col a, .footer__col p { display: block; color: #e8d5df; margin-bottom: 10px; font-size: 0.9rem; }
.footer__col a:hover { color: var(--gold-light); }
.brand--footer .brand__name, .brand--footer .brand__mark { color: var(--gold-light); }
.brand--footer { margin-bottom: 14px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 0.82rem; }

/* ---------------- Floating buttons ---------------- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 150;
}
.sticky-book-bar { display: none; }

/* ---------------- Misc pages ---------------- */
.page-header {
    background: var(--bg-light);
    padding: 46px 0;
    text-align: center;
}
.page-header h1 { margin-bottom: 8px; }
.content-block { max-width: 780px; margin: 0 auto; }
.content-block h2 { margin-top: 34px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th, table.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
table.data-table th { background: var(--bg-light); color: var(--plum); }

.track-detail-row { display: none; }
.track-detail-row.open { display: table-row; }

@media (max-width: 600px) {
    table.data-table:not(.data-table--simple) thead { display: none; }
    table.data-table:not(.data-table--simple),
    table.data-table:not(.data-table--simple) tbody,
    table.data-table:not(.data-table--simple) tr,
    table.data-table:not(.data-table--simple) td { display: block; width: 100%; }
    table.data-table:not(.data-table--simple) tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; padding: 8px 0; background: var(--white); }
    table.data-table:not(.data-table--simple) td { border-bottom: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; text-align: right; }
    table.data-table:not(.data-table--simple) td::before { content: attr(data-label); font-weight: 600; color: var(--plum); text-align: left; flex-shrink: 0; }
    table.data-table:not(.data-table--simple) td:empty { display: none; }

    /* Simple 2-column label/value tables already fit narrow screens without transforming */
    table.data-table--simple th, table.data-table--simple td { font-size: 0.82rem; padding: 8px; }
    table.data-table--simple td:first-child { color: var(--plum); font-weight: 600; white-space: nowrap; }
    table.data-table--simple td:last-child { text-align: right; }

    .track-row { display: block; }
    table.data-table:not(.data-table--simple) tr.track-detail-row:not(.open) { display: none; }
    .track-detail-row.open { display: block; }
    .track-detail-row td { display: block; text-align: left; }
    .track-detail-row td::before { content: none; }
}

/* ---------------- Auth pages (login / signup) ---------------- */
.auth-section { padding: 60px 0 80px; }
.auth-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--plum);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 44px 40px;
}
.auth-card h1 { text-align: center; font-size: 1.9rem; margin-bottom: 6px; }
.auth-card__subtitle { text-align: center; color: #7a6a70; font-size: 0.92rem; margin-bottom: 30px; }
.auth-card .form-group { margin-bottom: 20px; }
.auth-card label { font-size: 0.9rem; margin-bottom: 8px; }
.auth-card input[type=text],
.auth-card input[type=tel],
.auth-card input[type=email],
.auth-card input[type=password] {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
}
.auth-card .btn-block { padding: 15px; font-size: 1rem; margin-top: 8px; }
.auth-card__footer { text-align: center; margin-top: 24px; font-size: 0.92rem; color: #6b5a61; }
.auth-card__footer a { font-weight: 600; }

.password-disclosure summary {
    cursor: pointer;
    color: var(--plum);
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.password-disclosure summary::-webkit-details-marker { display: none; }
.password-disclosure summary::after {
    content: '›';
    font-size: 1.3rem;
    color: var(--gold);
    transition: transform 0.2s ease;
    line-height: 1;
}
.password-disclosure[open] summary::after { transform: rotate(90deg); }
.password-disclosure summary:hover { color: var(--plum-dark); text-decoration: underline; }
.password-disclosure__form {
    max-width: 380px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.badge { display: inline-block; padding: 4px 10px; border-radius: 50px; font-size: 0.74rem; font-weight: 600; }
.badge-booking_received { background: #e3e0ff; color: #4b3fb0; }
.badge-pickup_scheduled { background: #d6ecff; color: #1567b8; }
.badge-picked_up { background: #fff3d6; color: #a4761a; }
.badge-processing { background: #ffe3c2; color: #b3600a; }
.badge-ready_for_delivery { background: #e0f5da; color: #3d8b2f; }
.badge-out_for_delivery { background: #d6f5ea; color: #158a63; }
.badge-delivered { background: #d9f2d9; color: var(--success); }
.badge-cancelled { background: #fbdada; color: var(--danger); }

.timeline { list-style: none; padding: 0; margin: 30px 0; }
.timeline li {
    position: relative;
    padding-left: 34px;
    padding-bottom: 26px;
    border-left: 2px solid var(--border);
    margin-left: 12px;
}
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: -9px; top: 0;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--border);
}
.timeline li.done::before { background: var(--success); }
.timeline li.current::before { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-light); }
.timeline li.cancelled::before { background: var(--danger); }
.timeline .t-label { font-weight: 600; }
.timeline .t-time { font-size: 0.8rem; color: #8a7a80; }
