/* ──────────────────────────────────────────────────────────────
   CM Taxi Hasselt — Base Stylesheet
   Shared across every page: variables, reset, header, footer,
   sticky CTA, buttons, language toggle, scroll animation, and the
   homepage-specific sections. Page-specific sections live in their
   own stylesheet (fleet.css, destination.css, contact.css, reserveren.css).
────────────────────────────────────────────────────────────── */

/* ─── FONTS ──────────────────────────────────────────────────── */
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-v38-latin-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-v38-latin-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* ─── VARIABLES ────────────────────────────────────────────── */
:root {
    --color-paper: #faf8f4;
    --color-paper-opacity: rgba(250, 248, 244, 0.85);
    --color-ink: #1c1a17;
    --color-surface: #f1ede4;
    --color-muted: #5f5a51;
    --color-border: #e2ddd1;
    --color-accent: #a5723c;
    --color-error: #b3261e;
    --shadow-elegant: 0 20px 45px -20px rgba(28, 26, 23, 0.35);
    --font-serif: "Fraunces", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ─── BASE & RESET ─────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    /* overflow-x: hidden; */
}
body {
    position: relative;
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    padding-bottom: 4.25rem;
}
@media (min-width: 768px) {
    body { padding-bottom: 0; }
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button, input, select, textarea {
    font-family: inherit;
}

/* ─── LANGUAGE TOGGLE ──────────────────────────────────────── */
span.lang-nl, span.lang-en, a.lang-nl, a.lang-en, small.lang-nl, small.lang-en {
    display: none;
}
body.lang-is-nl span.lang-nl, body.lang-is-nl a.lang-nl, body.lang-is-nl small.lang-nl {
    display: inline;
}
body.lang-is-en span.lang-en, body.lang-is-en a.lang-en, body.lang-is-en small.lang-en {
    display: inline;
}
div.lang-nl, div.lang-en, p.lang-nl, p.lang-en {
    display: none;
}
body.lang-is-nl div.lang-nl, body.lang-is-nl p.lang-nl { display: block; }
body.lang-is-en div.lang-en, body.lang-is-en p.lang-en { display: block; }

.lang-toggle[data-lang="nl"] { opacity: 1; }
body.lang-is-en .lang-toggle[data-lang="nl"] { opacity: .45; }
body.lang-is-nl .lang-toggle[data-lang="en"] { opacity: .45; }

/* ─── LAYOUT HELPERS ──────────────────────────────────────── */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ─── HEADER ───────────────────────────────────────────────── */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 244, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.header-inner {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.brand {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}
.brand .accent { color: var(--color-accent); }
nav.main-nav {
    display: none;
    gap: 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
}
nav.main-nav a:hover { color: var(--color-ink); }
nav.main-nav a.is-current { color: var(--color-ink); font-weight: 600; }
@media (min-width: 768px) {
    nav.main-nav { display: flex; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.phone-link {
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
}
@media (min-width: 640px) {
    .phone-link { display: inline; }
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-left: 1px solid var(--color-border);
    padding-left: 1.25rem;
}
.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-muted);
    font: inherit;
    letter-spacing: inherit;
}
.lang-switch button.is-active { color: var(--color-ink); }
.lang-switch .sep { color: var(--color-border); }

.btn-book-header {
    display: none;
    background: var(--color-ink);
    color: var(--color-paper);
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background-color .2s ease;
}
.btn-book-header:hover { background: rgba(28, 26, 23, 0.85); }
@media (min-width: 768px) {
    .btn-book-header { display: inline-flex; align-items: center; }
}

/* ─── HERO (homepage booking hero) ───────────────────────────── */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    min-height: calc(100vh - 4rem);
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
}
.right { width: 80%; height: 100%; }
@media (min-width: 1024px) {
    .hero-section { flex-direction: row; }
}
@media (max-width: 768px) {
    .hero-section { min-height: calc(100vh - 4rem); flex-direction: column; }
}

.hero-form-col {
    width: 80%;
    padding: 1.5rem;
    margin-top: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.2) 60%, transparent);
}
@media (min-width: 1024px) {
    .hero-form-col { width: 45%; padding: 3.5rem; }
}

.hero-copy { max-width: 45rem; }
.eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-paper);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    line-height: 1.03;
    margin-bottom: 2.25rem;
    color: var(--color-paper);
    text-wrap: balance;
}
@media (min-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
}

.booking-card {
    padding: 1.5rem;
    box-shadow: var(--shadow-elegant);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
}
.field { margin-bottom: 1rem; }
.field:last-of-type { margin-bottom: 0; }
.field label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-paper);
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.field input {
    width: 100%;
    font-size: 0.875rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    outline: none;
    color: var(--color-ink);
    transition: box-shadow .15s ease;
}
.field input:focus {
    box-shadow: 0 0 0 2px var(--color-ink);
    border-color: var(--color-ink);
}
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-submit {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-ink);
    color: var(--color-paper);
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color .2s ease;
}
.btn-submit:hover { background: rgba(28, 26, 23, 0.85); }

.view-prices { margin-top: 1.5rem; color: var(--color-paper); }
.view-prices a {
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
}
.view-prices a:hover { border-color: var(--color-ink); }

/* ─── SERVICES (homepage) ────────────────────────────────────── */
.services-section { padding: 6rem 0; }
.services-grid {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
@media (max-width: 768px) {
    .services-grid { 
        flex-direction: column; 
        gap: 4rem; 
    }
}
.service-item { display: flex; flex-direction: column; gap: 1rem; }
.service-rule { width: 2rem; height: 1px; background: var(--color-accent); }
.service-item h3 { font-family: var(--font-serif); font-size: 1.875rem; }
.service-item p {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 36ch;
}

/* ─── PRICING (homepage + reused as generic pricing table) ──── */
.pricing-section { padding: 6rem 0; background: var(--color-surface); }
.pricing-head { text-align: center; margin-bottom: 3.5rem; }
.pricing-head h2 { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 1rem; }
@media (min-width: 1024px) {
    .pricing-head h2 { font-size: 3rem; }
}
.pricing-head .sub {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.pricing-head p:not(.sub) {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.8;
    max-width: 42rem;
    margin: 0 auto;
}

.pricing-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 64rem;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .pricing-table { grid-template-columns: 1fr 1fr; }
}
.pricing-row {
    background: var(--color-paper);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 6rem;
    transition: background-color .2s ease;
}
.pricing-row:hover { background: rgba(241, 237, 228, 0.6); }
.pricing-row .route { font-weight: 500; }
.pricing-row .sub-label { font-size: 0.75rem; color: var(--color-muted); margin-top: 0.25rem; }
.pricing-row .price { font-family: var(--font-serif); font-size: 1.875rem; }

.pricing-cta { text-align: center; margin-top: 3rem; }
.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    background: var(--color-ink);
    color: var(--color-paper);
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background-color .2s ease;
}
.btn-primary-lg:hover { background: rgba(28, 26, 23, 0.85); }

/* ─── "WHY US" FLEET STRIP (homepage only — NOT the fleet listing page) ─── */
.fleet-section {
    padding: 6rem 10rem;
    border-top: 1px solid var(--color-border);
}
.fleet-grid {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 768px) {
    .fleet-grid { gap: 5rem; }
}
.fleet-grid img {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.why-col { display: flex; flex-direction: column; gap: 2.5rem; }
.why-col h2 { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1.15; }
@media (min-width: 1024px) {
    .why-col h2 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .fleet-section { padding: 4rem 1.5rem; }
    .fleet-grid { flex-direction: column; }
    .fleet-grid img { display: none; }
    .why-col h2 { font-size: 1.5rem; }
}
.why-items { display: flex; flex-direction: column; gap: 2rem; }
.why-item { display: flex; gap: 1rem; }
.why-badge {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    background: var(--color-paper);
    transition: background-color .25s ease, transform .25s ease;
}
.why-item:hover .why-badge { background: var(--color-surface); transform: translateY(-2px); }
.why-item h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}
.why-item p { font-size: 0.875rem; color: var(--color-muted); max-width: 44ch; }

/* ─── STICKY MOBILE CTA ──────────────────────────────────── */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 50;
    background: var(--color-ink);
    color: var(--color-paper);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .sticky-mobile-cta { display: none; }
}
.sticky-mobile-cta .tag { font-size: 11px; line-height: 1.3; }
.sticky-mobile-cta .tag strong { font-weight: 600; display: block; }
.sticky-mobile-cta .tag span.phone { color: rgba(250, 248, 244, 0.6); }
.sticky-mobile-cta a.cta {
    background: var(--color-paper);
    color: var(--color-ink);
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
footer.site-footer {
    background: var(--color-paper);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: space-between;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .footer-inner { flex-direction: row; }
}
.footer-brand { font-family: var(--font-serif); font-style: italic; font-size: 1.875rem; }
.footer-tag { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted); max-width: 34ch; }
.footer-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}
.footer-phone { font-size: 1.5rem; font-family: var(--font-serif); }
.footer-email, .footer-address { font-size: 0.875rem; color: var(--color-muted); }
.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 10px;
    color: var(--color-muted);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom .links { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--color-ink); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* ════════════════════════════════════════════════════════════
   SCROLL-REVEAL ANIMATION (progressive enhancement)
   Content is visible by default. Elements only become eligible
   for the hide/reveal treatment once main.js explicitly marks
   them with .js-pending — so a slow/blocked script never hides
   real content, it just skips the animation.
   ════════════════════════════════════════════════════════════ */
.scroll-animate {
    opacity: 1;
    transform: none;
}
.scroll-animate.js-pending {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.scroll-animate.js-pending.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-animate.slide-left.js-pending { transform: translateX(-20px) scale(0.98); }
.scroll-animate.slide-left.js-pending.is-visible { transform: translateX(0) scale(1); }
.scroll-animate.slide-right.js-pending { transform: translateX(20px) scale(0.98); }
.scroll-animate.slide-right.js-pending.is-visible { transform: translateX(0) scale(1); }
.scroll-animate.fade-only.js-pending { transform: none; }

.scroll-animate.delay-1 { transition-delay: 0.08s; }
.scroll-animate.delay-2 { transition-delay: 0.16s; }
.scroll-animate.delay-3 { transition-delay: 0.24s; }
.scroll-animate.delay-4 { transition-delay: 0.32s; }
.scroll-animate.delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    .scroll-animate.js-pending {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}