:root {
    --primary: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-soft: #eff6ff;
    --accent: #059669;
    --accent-soft: #ecfdf5;
    --dark: #0f172a;
    --text: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg-soft: #f8fafc;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
    --bottom-nav-h: 64px;
}

* { font-family: 'Inter', system-ui, sans-serif; box-sizing: border-box; }

body {
    color: var(--text);
    background: #fff;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

.site-navbar {
    padding: .6rem 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.site-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--dark) !important;
    letter-spacing: -.02em;
}

.site-navbar .navbar-brand i { color: var(--primary); }

/* Top navigation menu */
.site-navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.site-nav {
    gap: .15rem;
    margin-left: 1rem;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .45rem .75rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    border: none;
    background: transparent;
    transition: background .2s, color .2s;
}

.site-nav-link:hover,
.site-nav-link.active,
.site-nav-dropdown-btn.show {
    color: var(--primary);
    background: var(--primary-soft);
}

.site-nav-dropdown-menu {
    border-radius: 12px;
    padding: .5rem;
    min-width: 220px;
    margin-top: .5rem !important;
}

.site-nav-dropdown-menu .dropdown-item {
    border-radius: 8px;
    font-size: .9rem;
    padding: .5rem .75rem;
}

.site-nav-dropdown-menu .dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.site-nav-toggle {
    text-decoration: none;
    line-height: 1;
}

.site-mobile-nav { width: min(320px, 88vw); }

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .85rem;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.mobile-nav-section {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 700;
    padding: .5rem .85rem .25rem;
}

.mobile-nav-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 600;
    gap: 3px;
    border: none;
    background: transparent;
    padding: 0;
}

.mobile-nav-tab-btn i { font-size: 1.2rem; }

.nav-anchor {
    height: 0;
    scroll-margin-top: 80px;
}

.service-category-section,
#book, #why-us, #faq {
    scroll-margin-top: 80px;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    background: var(--primary-soft);
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all .2s;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
}

.location-pill:hover { background: #dbeafe; }
.location-pill i { font-size: 1rem; flex-shrink: 0; }

.location-pill.empty {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
}

.location-bar {
    background: linear-gradient(90deg, #ecfdf5, #eff6ff);
    border-bottom: 1px solid #bbf7d0;
    padding: .5rem 0;
    font-size: .85rem;
    color: #166534;
}

.location-bar strong { color: var(--dark); }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: 10px;
}

.btn-primary:hover, .btn-primary:focus {
    background: #1e40af;
    border-color: #1e40af;
}

.section-title {
    font-weight: 800;
    color: var(--dark);
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    letter-spacing: -.02em;
}

.discount-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: .7rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.stars { color: #f59e0b; }

.hero {
    background: linear-gradient(160deg, #eff6ff 0%, #f0f9ff 40%, #fff 100%);
    padding: 1.75rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero { padding: 3.5rem 0 4rem; }
}

.hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.badge-trusted {
    background: var(--accent-soft);
    color: #047857;
    font-weight: 600;
    padding: .4rem .9rem;
    border-radius: 50px;
    font-size: .78rem;
    border: 1px solid #a7f3d0;
}

.search-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-top: 1.25rem;
}

.service-scroll {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    padding: .25rem .25rem .75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.service-scroll::-webkit-scrollbar { display: none; }

.service-scroll .service-card {
    min-width: 170px;
    max-width: 190px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.service-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.service-card-img-wrap {
    position: relative;
    height: 115px;
    min-height: 115px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

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

.service-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 50%);
}

.service-card-price-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    font-size: .85rem;
    padding: .2rem .55rem;
    border-radius: 8px;
    z-index: 1;
}

.service-card-body { padding: .85rem; }

.service-card-body h6 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: .35rem;
}

.service-card-book {
    display: block;
    width: 100%;
    margin-top: .5rem;
    padding: .4rem;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
}

/* Real-time service search */
.search-match-hidden { display: none !important; }
.search-section-hidden { display: none !important; }

.search-status {
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: .9rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.service-card.search-highlight,
.popular-card.search-highlight {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    animation: search-pulse 1.2s ease 2;
}

@keyframes search-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(29, 78, 216, 0); }
}

#service-search:focus {
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
    border-color: var(--primary);
}

.popular-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all .25s;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.popular-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.popular-card img { width: 100%; height: 130px; object-fit: cover; }

.offer-banner {
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 2rem 1.5rem;
}

.trust-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.trust-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: .75rem;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.city-badge {
    display: inline-block;
    padding: .45rem 1rem;
    margin: .2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 500;
    color: var(--text);
    transition: all .2s;
    text-decoration: none;
    font-size: .85rem;
}

.city-badge:hover, .city-badge.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.location-modal .modal-content { border-radius: var(--radius-lg); border: none; }
.location-modal .modal-header { background: linear-gradient(135deg, var(--primary-soft), #fff); }

.location-modal .city-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .85rem 1rem;
    margin-bottom: .5rem;
    width: 100%;
    text-align: left;
    background: #fff;
    transition: all .15s;
    font-weight: 500;
}

.location-modal .city-item:hover,
.location-modal .city-item.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.ucs-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--dark);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.ucs-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 2.5rem 0 1.5rem;
}

.site-footer h5 { color: #fff; font-weight: 600; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-h);
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}

@media (min-width: 768px) {
    .mobile-bottom-nav { display: none; }
}

.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .65rem;
    font-weight: 600;
    gap: 3px;
}

.mobile-bottom-nav a i { font-size: 1.2rem; }
.mobile-bottom-nav a.active { color: var(--primary); }

.service-hero-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: var(--bg-soft);
}

@media (min-width: 768px) {
    .service-hero-img { height: 380px; border-radius: var(--radius-lg); }
}

.price-box {
    background: linear-gradient(135deg, var(--primary-soft), #fff);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.package-option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all .2s;
}

.package-option:hover, .package-option.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.sticky-book-bar {
    position: fixed;
    bottom: var(--bottom-nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: .75rem 1rem;
    z-index: 1025;
    box-shadow: 0 -8px 30px rgba(0,0,0,.08);
}

@media (min-width: 768px) {
    .sticky-book-bar {
        position: sticky;
        top: 90px;
        bottom: auto;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
}

.bg-section { background: var(--bg-soft); }
