/* =============================================
   DriverStBarth — Premium polish layer
   Loaded after the inline page styles (in head, last position)
   so it overrides without rebuilding every page.
   ============================================= */

/* Swiss / Dutch design — Inter, typographic, geometric, no fluff */

/* -----------------------------------------------
   WhatsApp nudge disabled site-wide.
   Reason: festive-season demand exceeds capacity.
   To re-enable: remove this rule.
   ----------------------------------------------- */
.wa-nudge { display: none !important; }

/* -----------------------------------------------
   Defensive mobile reset — prevent horizontal overflow
   that breaks layout on real iOS devices
   ----------------------------------------------- */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100%;
}

* { box-sizing: border-box; }

img, svg, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

/* Ensure all top-level wrappers can never exceed viewport */
.container, .header-inner, .hero, .page-hero,
section, main, article, .footer {
    max-width: 100%;
}

@media (max-width: 768px) {
    .container { padding-left: 16px !important; padding-right: 16px !important; }
    /* Force full-bleed sections that stretch end-to-end */
    .section, section { width: 100%; }
}

/* -----------------------------------------------
   Color tokens — warmer cream palette,
   deeper navy, subtle gold accent
   ----------------------------------------------- */
:root {
    /* Cream off-white instead of cool blue-grey */
    --off-white: #FAF7F0 !important;
    --gray-50: #FCFAF6 !important;
    --gray-100: #F4EFE3 !important;
    --gray-200: #E8E1D0 !important;

    /* Refined dark navy with warm undertone */
    --primary: #0B1424 !important;
    --primary-light: #1A2438 !important;

    /* Slightly deeper accent blue — less neon */
    --accent: #2563EB !important;
    --accent-dark: #1D4ED8 !important;
    --accent-light: #60A5FA !important;

    /* Premium gold accent — used sparingly */
    --accent-gold: #B8956A;
    --accent-gold-light: #D4B896;
    --accent-gold-soft: rgba(184,149,106,0.12);

    /* Softer, layered shadows */
    --shadow-sm: 0 1px 2px rgba(11,20,36,0.04) !important;
    --shadow-md: 0 2px 6px rgba(11,20,36,0.04), 0 12px 24px rgba(11,20,36,0.04) !important;
    --shadow-lg: 0 4px 12px rgba(11,20,36,0.05), 0 24px 48px rgba(11,20,36,0.06) !important;
}

/* -----------------------------------------------
   Body — warmer cream backdrop
   ----------------------------------------------- */
body {
    background: #FAF7F0;
}

/* -----------------------------------------------
   Hero / display typography — Swiss confidence
   Inter, heavy weight, tight tracking, geometric
   ----------------------------------------------- */
.hero h1,
.page-hero h1,
.hero-title,
h1.hero-title,
.section-title,
.directory-title,
.fare-title,
.faq-title,
.options-title,
.standby-title,
.surcharge-title,
.routes-title,
.tips-title,
.comparison-title,
.info-section-title,
.about-title,
main h1,
section h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.05 !important;
}

/* Hero subtitle — refined, low key */
.hero .subtitle,
.hero p,
.page-hero-subtitle,
.hero-subtitle {
    font-weight: 400 !important;
    letter-spacing: -0.005em !important;
    line-height: 1.55 !important;
    color: rgba(100,116,139,0.95);
}

/* Section labels — more spaced, refined */
.section-label,
.fare-label,
.options-label,
.tips-label,
.routes-label,
.standby-label,
.comparison-label,
.surcharge-label,
.directory-label,
span.section-label {
    letter-spacing: 2.2px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: var(--accent-gold) !important;
    text-transform: uppercase !important;
}

/* -----------------------------------------------
   Cards — softer corners, hairline borders, breathing room
   ----------------------------------------------- */
.taxi-card,
.info-card,
.surcharge-card,
.option-card,
.tip-card,
.route-card,
.fare-card,
.booking-option,
.summary-card,
.sidebar-card,
.company-card,
.rental-card {
    border-color: rgba(15,23,42,0.06) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(11,20,36,0.03) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.taxi-card:hover,
.info-card:hover,
.option-card:hover,
.booking-option:hover,
.company-card:hover,
.rental-card:hover {
    border-color: rgba(184,149,106,0.4) !important;
    box-shadow: 0 4px 16px rgba(11,20,36,0.06), 0 1px 3px rgba(11,20,36,0.04) !important;
    transform: translateY(-1px);
}

/* Favorite cards — keep gold treatment but refine it */
.taxi-card.is-favorite {
    border-color: rgba(184,149,106,0.5) !important;
    background: linear-gradient(180deg, rgba(184,149,106,0.04), rgba(184,149,106,0)) !important;
}

/* -----------------------------------------------
   Buttons — refined typography, generous padding
   ----------------------------------------------- */
.btn,
.btn-primary,
.btn-secondary,
.btn-whatsapp,
.btn-block,
.btn-lg {
    letter-spacing: 0.005em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary {
    background: var(--primary) !important;
}

.btn-primary:hover {
    background: #0B1424 !important;
    box-shadow: 0 4px 16px rgba(11,20,36,0.18) !important;
    transform: translateY(-1px);
}

/* -----------------------------------------------
   Page hero — softer dark gradient
   ----------------------------------------------- */
.page-hero,
.hero,
.hero-short {
    position: relative;
}

/* Removed decorative gradient line — Swiss design avoids ornament */

/* -----------------------------------------------
   Headers / navigation — refined
   ----------------------------------------------- */
.header.scrolled {
    background: rgba(11,20,36,0.92) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
}

/* Logo: subtle gold tint on .com */
.logo-text span {
    color: #93C5FD !important;
    font-weight: 600;
}

/* -----------------------------------------------
   Tab bar — softer mobile chrome
   ----------------------------------------------- */
.tab-bar {
    background: rgba(250,247,240,0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: 0.5px solid rgba(15,23,42,0.06) !important;
}

/* -----------------------------------------------
   Section backgrounds — alternating cream tones
   ----------------------------------------------- */
.section-alt,
section.alt-bg,
.content-section.alt-bg {
    background: #F5F1E8 !important;
}

/* -----------------------------------------------
   Footer — refined
   ----------------------------------------------- */
.footer {
    background: var(--primary) !important;
}

.footer-seo {
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    color: rgba(148,163,184,0.7) !important;
    letter-spacing: 0.005em;
    font-weight: 400;
}

/* -----------------------------------------------
   FAQ — softer
   ----------------------------------------------- */
.faq-item {
    border-radius: 12px !important;
    border-color: rgba(15,23,42,0.06) !important;
    background: #FFFFFF !important;
}

.faq-item[open] {
    border-color: rgba(184,149,106,0.4) !important;
    box-shadow: 0 2px 8px rgba(11,20,36,0.04) !important;
}

/* -----------------------------------------------
   Disclaimers / source notes — small caps, low contrast
   Swiss reads as functional info, no italics
   ----------------------------------------------- */
.route-disclaimer,
.disclaimer,
.fare-disclaimer {
    color: rgba(100,116,139,0.85) !important;
    letter-spacing: 0.005em;
    font-weight: 400;
}

/* -----------------------------------------------
   Group labels (My Drivers, Licensed Taxis)
   ----------------------------------------------- */
.group-label {
    color: rgba(100,116,139,0.85) !important;
    letter-spacing: 2px !important;
}

.group-label-fav {
    color: var(--accent-gold) !important;
    border-bottom-color: rgba(184,149,106,0.2) !important;
}

/* -----------------------------------------------
   Chat bubbles — slightly warmer
   ----------------------------------------------- */
.msg-bot .msg-bubble {
    background: #F1ECDF !important;
}

.chat-section {
    background: linear-gradient(180deg, #F4EFE3 0%, #FAF7F0 100%) !important;
}

/* -----------------------------------------------
   Search input — softer
   ----------------------------------------------- */
.search-input-wrap,
.chat-input {
    border-color: rgba(15,23,42,0.08) !important;
    background: #FFFFFF !important;
}

.search-input-wrap:focus-within,
.chat-input:focus {
    border-color: rgba(184,149,106,0.5) !important;
    box-shadow: 0 0 0 3px rgba(184,149,106,0.1) !important;
}

/* -----------------------------------------------
   Tab bar active — keep blue but soften
   ----------------------------------------------- */
.tab-bar a.active,
.tab-bar a:active {
    color: var(--accent) !important;
}

.tab-bar a.tab-cta {
    box-shadow: 0 4px 16px rgba(37,99,235,0.25) !important;
}

/* -----------------------------------------------
   Smooth animations everywhere
   ----------------------------------------------- */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fade-up {
    animation-duration: 0.7s !important;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

/* -----------------------------------------------
   Fine details
   ----------------------------------------------- */
hr,
.divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184,149,106,0.3), transparent);
    margin: 32px 0;
}

/* Typographic accents */
strong, b { font-weight: 600; }
