/* =========================================================================
   7Edition — Homepage component CSS
   Depends on tokens.css (CSS custom properties).
   ========================================================================= */

/* =========================================================================
   Motion system
   ========================================================================= */

/* Progressive enhancement: only hide reveal-tagged items when JS is ready.
   Without JS (or before our inline <script> runs) the page is fully visible. */
.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms cubic-bezier(.2, .7, .2, 1),
                transform 800ms cubic-bezier(.2, .7, .2, 1),
                filter 800ms cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, transform, filter;
}
.js-ready [data-reveal="fade"]       { transform: none; }
.js-ready [data-reveal="zoom"]       { transform: scale(.94); }
.js-ready [data-reveal="zoom-out"]   { transform: scale(1.06); }
.js-ready [data-reveal="from-left"]  { transform: translateX(-32px); }
.js-ready [data-reveal="from-right"] { transform: translateX(32px); }
.js-ready [data-reveal="from-bottom"]{ transform: translateY(40px); }
.js-ready [data-reveal="rise"]       { transform: translateY(48px) scale(.97); }
.js-ready [data-reveal="blur"]       { transform: translateY(20px); filter: blur(8px); }
.js-ready [data-reveal="tilt"]       { transform: translateY(20px) rotate(-2deg); transform-origin: left center; }
.js-ready [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Stagger children inside grids — gives a left-to-right cascade effect when
   a row of cards enters the viewport at once. */
.re-grid > [data-reveal]:nth-child(1)  { transition-delay: 0ms; }
.re-grid > [data-reveal]:nth-child(2)  { transition-delay: 80ms; }
.re-grid > [data-reveal]:nth-child(3)  { transition-delay: 160ms; }
.re-grid > [data-reveal]:nth-child(4)  { transition-delay: 240ms; }
.re-grid > [data-reveal]:nth-child(5)  { transition-delay: 320ms; }
.re-grid > [data-reveal]:nth-child(6)  { transition-delay: 400ms; }
.re-cats__grid > [data-reveal]:nth-child(1)  { transition-delay: 0ms; }
.re-cats__grid > [data-reveal]:nth-child(2)  { transition-delay: 60ms; }
.re-cats__grid > [data-reveal]:nth-child(3)  { transition-delay: 120ms; }
.re-cats__grid > [data-reveal]:nth-child(4)  { transition-delay: 180ms; }
.re-cats__grid > [data-reveal]:nth-child(5)  { transition-delay: 240ms; }
.re-cats__grid > [data-reveal]:nth-child(6)  { transition-delay: 300ms; }
.re-usp__grid > [data-reveal]:nth-child(n)  { transition-delay: calc(60ms * (var(--i, 0))); }
.re-tm__grid > [data-reveal]:nth-child(2)  { transition-delay: 120ms; }
.re-tm__grid > [data-reveal]:nth-child(3)  { transition-delay: 240ms; }

/* Hero intro — staged reveal of eyebrow → headline → sub → bullets → form. */
@keyframes re-intro {
    0%   { opacity: 0; transform: translateY(16px); filter: blur(4px); }
    60%  { filter: blur(0); }
    100% { opacity: 1; transform: none; filter: blur(0); }
}
.re-hero .re-eyebrow      { animation: re-intro 800ms cubic-bezier(.2,.7,.2,1) 60ms both; }
.re-hero h1               { animation: re-intro 1000ms cubic-bezier(.2,.7,.2,1) 180ms both; }
.re-hero__sub             { animation: re-intro 900ms cubic-bezier(.2,.7,.2,1) 380ms both; }
.re-hero__bullets         { animation: re-intro 800ms cubic-bezier(.2,.7,.2,1) 540ms both; }
.re-hero__form            { animation: re-intro 900ms cubic-bezier(.2,.7,.2,1) 320ms both; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .re-hero .re-eyebrow,
    .re-hero h1, .re-hero__sub, .re-hero__bullets, .re-hero__form { animation: none !important; }
}

/* ---------- Skip link & shell ---------- */
.re-skiplink {
    position: absolute; left: -9999px; top: 8px; padding: 8px 12px;
    background: var(--accent); color: #000; border-radius: var(--r-md); z-index: 1000;
}
.re-skiplink:focus { left: 8px; }

.re-main { display: block; }

/* ---------- Header ---------- */
.re-site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 10, 10, .55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: background var(--t-fast), border-color var(--t-fast), backdrop-filter var(--t-fast);
}
.re-site-header.is-scrolled {
    background: rgba(10, 10, 10, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}
.re-site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 24px; align-items: center; min-height: 72px;
}
.re-logo {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--text);
    text-decoration: none;
}
.re-logo__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: #000;
    font-family: var(--font-ui); font-weight: 700; font-size: 18px;
}
.re-logo--lg { font-size: 28px; }

/* Image logo — preserves intrinsic aspect ratio at fixed height. */
.re-logo--img {
    display: inline-flex; align-items: center;
    padding: 0;
}
.re-logo--img img {
    display: block;
    height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.re-logo--img.re-logo--lg img { height: 48px; max-width: 220px; }

/* Stacked logo: heavy italic bold brand mark + spaced italic "RENT A CAR" tag. */
.re-logo--stacked {
    flex-direction: column; align-items: flex-start; gap: 0;
    line-height: 1;
}
.re-logo--stacked .re-logo__name {
    font-weight: 900;
    font-style: italic;
    font-size: 28px;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: .95;
    transform: skewX(-6deg);
    text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.re-logo--stacked .re-logo__tag {
    font-weight: 800;
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0.42em;
    color: var(--logo-orange);
    margin-top: 8px;
    line-height: 1;
    transform: skewX(-6deg);
}
.re-logo--stacked.re-logo--lg .re-logo__name { font-size: 36px; }
.re-logo--stacked.re-logo--lg .re-logo__tag  { font-size: 13px; letter-spacing: 0.46em; }
.re-nav { display: none; }
@media (min-width: 980px) { .re-nav { display: block; } }
.re-nav__list {
    display: flex; gap: 24px; list-style: none; padding: 0; margin: 0;
}
.re-nav__list a {
    color: var(--text); font-weight: 500; font-size: 14px; letter-spacing: .02em;
}
.re-nav__list a:hover { color: var(--accent); }
.re-header-cta {
    padding: 10px 16px;
}
.re-header-cta__num {
    display: none; font-weight: 600;
}
@media (min-width: 720px) { .re-header-cta__num { display: inline; } }
.re-burger {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: transparent; border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 10px; cursor: pointer; min-width: 44px; min-height: 44px;
    justify-self: end;        /* anchor to right edge of grid cell */
    align-items: center;
    width: 44px;              /* lock width so it doesn't stretch on mobile */
}
.re-burger span {
    width: 18px; height: 2px; background: var(--text); display: block;
}
@media (min-width: 980px) { .re-burger { display: none; } }

/* ---------- Section baseline ---------- */
.re-section { padding-block: 64px; }
@media (max-width: 640px) { .re-section { padding-block: 48px; } }
.re-section__head { text-align: center; margin-bottom: 32px; }
.re-section__head h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 0 0 8px; color: var(--text); }
.re-section__head p { color: var(--text-muted); margin: 0; max-width: 60ch; margin-inline: auto; }
.re-section__head--row {
    display: flex; align-items: end; justify-content: space-between; text-align: left; gap: 16px; flex-wrap: wrap;
}
.re-section__head--row p { margin: 4px 0 0; }
.re-eyebrow {
    color: var(--accent); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; margin: 0 0 12px;
}
.re-link { color: var(--accent); font-weight: 600; }
.re-link:hover { color: var(--accent-hover); }

/* ---------- Hero ---------- */
.re-hero {
    background-size: cover, cover, cover, cover, cover;
    background-position: center;
    background-color: #0A0A0A;
    min-height: 680px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.re-hero::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 80px;
    background: linear-gradient(180deg, rgba(10,10,10,0), #0A0A0A);
    pointer-events: none;
}
.re-hero__inner {
    display: grid; gap: 48px; padding-block: 80px 64px;
    grid-template-columns: 1fr;
}
@media (min-width: 980px) {
    .re-hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; }
}
/* Centered hero variant — used by the new search-pill layout. */
.re-hero__inner--centered {
    grid-template-columns: 1fr !important;
    text-align: center;
    max-width: 1100px;
    margin-inline: auto;
}
.re-hero__inner--centered .re-hero__copy { max-width: none; }
.re-hero__inner--centered .re-hero__sub { margin-inline: auto; max-width: 60ch; }
.re-hero__inner--centered .re-hero__search-row { justify-content: center; }
.re-hero__inner--centered .re-hero__trust { justify-content: center; }
.re-hero__copy h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05; margin: 0 0 16px;
}
.re-hero__sub { font-size: 18px; max-width: 56ch; }
.re-hero__bullets {
    display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 24px 0 0; list-style: none;
}
.re-hero__bullets li {
    color: var(--text); font-weight: 500; font-size: 13px;
    background: rgba(249, 115, 22, .08);
    border: 1px solid rgba(249, 115, 22, .35);
    padding: 6px 12px; border-radius: var(--r-pill);
}
.re-hero__form {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 24px; box-shadow: var(--sh-md);
}
.re-hero__form h2 { font-family: var(--font-ui); font-size: 20px; margin: 0 0 16px; }

/* ---------- Search pill (hero) ---------- */
.re-hero__search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.re-searchpill {
    display: inline-flex;
    align-items: center;
    background: rgba(35, 35, 35, .85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px;
    height: 64px;
    max-width: 100%;
}
.re-searchpill__loc {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 16px; color: var(--text); cursor: pointer;
    white-space: nowrap;
}
.re-searchpill__loc select {
    background: transparent; border: 0; color: var(--text);
    font: inherit; font-weight: 600;
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
    min-width: 70px;
    padding-right: 4px;
}
.re-searchpill__loc select option { background: var(--bg); color: var(--text); }
.re-searchpill__loc select:focus { outline: none; }
.re-searchpill__divider {
    width: 1px; height: 24px;
    background: rgba(255,255,255,.18);
    flex: 0 0 1px;
}
.re-searchpill input[type="search"] {
    flex: 1 1 auto;
    background: transparent; border: 0; outline: none;
    padding: 0 18px; color: var(--text); font: inherit;
    min-width: 140px;
    -webkit-appearance: none;
}
.re-searchpill input[type="search"]::placeholder { color: var(--text-muted); }
.re-searchpill__go {
    flex: 0 0 50px;
    width: 50px; height: 50px;
    min-width: 50px; min-height: 50px;
    padding: 0;
    background: #fff;
    border: 0; border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform var(--t-fast), background var(--t-fast);
    aspect-ratio: 1 / 1;
}
.re-searchpill__go:hover { transform: translateX(2px); background: var(--accent); }
.re-searchpill__go:hover svg path { stroke: #fff !important; }

.re-btn--light {
    background: #fff; color: #0A0A0A;
    border-radius: 999px;
    padding: 0 28px;
    font-weight: 600;
    height: 64px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.re-btn--light:hover { background: var(--accent); color: #fff; }
.re-hero__cta { vertical-align: middle; }

/* Hero trust strip */
.re-hero__trust {
    display: inline-flex; flex-wrap: wrap; gap: 14px; align-items: center;
    margin: 24px 0 0; padding: 0; list-style: none;
    color: var(--text); font-weight: 500; font-size: 14px;
}
.re-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.re-hero__trust svg { color: var(--accent); }

/* ---------- Booking form (rq-form lives in plugin) ---------- */
.rq-form { display: grid; gap: 12px; }
.rq-form .rq-field { display: grid; gap: 4px; }
.rq-form .rq-label { color: var(--text-muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.rq-form input, .rq-form select {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 12px 14px; color: var(--text); font: inherit; min-height: 44px;
}
.rq-form input:focus, .rq-form select:focus {
    outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}
.rq-form .rq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rq-submit { width: 100%; margin-top: 4px; padding: 14px 16px; }
.rq-status { font-size: 13px; min-height: 18px; margin: 8px 0 0; color: var(--text-muted); }
.rq-status.is-success { color: var(--success); }
.rq-status.is-error   { color: #FCA5A5; }

/* ---------- Categories ---------- */
.re-cats__grid {
    display: grid; gap: 16px; padding: 0; margin: 0; list-style: none;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .re-cats__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .re-cats__grid { grid-template-columns: repeat(6, 1fr); } }
.re-cat a {
    display: block; position: relative; aspect-ratio: 1.3 / 1;
    border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
    border: 1px solid var(--border); background: var(--surface);
    transition: transform var(--t-fast), border-color var(--t-fast);
}
.re-cat a:hover { transform: translateY(-2px); border-color: var(--accent); }
.re-cat__media {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    z-index: 0;
}
.re-cat__media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,.0), rgba(10,10,10,.85));
}
.re-cat__label {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
    color: var(--text); font-weight: 600;
}

/* ---------- Brands grid — 3 fill-width marque cards ---------- */
.re-brands__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px)  { .re-brands__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 560px)  { .re-brands__grid { grid-template-columns: 1fr; gap: 12px; } }

.re-brand {
    position: relative; isolation: isolate;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--surface) center/cover no-repeat;
    color: var(--text);
    overflow: hidden;
    display: block;
    transition: transform var(--t-fast), border-color var(--t-fast);
    text-decoration: none;
}
@media (min-width: 901px)  { .re-brand { aspect-ratio: 4 / 4.4; } }

.re-brand::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,.05) 0%, rgba(10,10,10,.45) 50%, rgba(10,10,10,.95) 100%);
    transition: opacity var(--t-fast);
}
.re-brand:hover { transform: translateY(-3px); border-color: var(--accent); }
.re-brand:hover .re-brand__cta { color: var(--accent); }
.re-brand:hover .re-brand__cta svg { transform: translateX(4px); }

.re-brand__body {
    position: relative; z-index: 1;
    height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: 6px; padding: 22px;
}
.re-brand__count {
    font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted);
}
.re-brand__name {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; color: var(--text);
}
.re-brand__cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--text);
    margin-top: 6px;
    transition: color var(--t-fast);
}
.re-brand__cta svg { transition: transform var(--t-fast); }

/* ---------- Mobile drawer ---------- */
body.is-drawer-open .re-tabbar { display: none !important; }
.re-drawer-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0, 0, 0, .6);
    opacity: 0; pointer-events: none;
    transition: opacity 300ms ease;
}
.re-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.re-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
    width: min(86vw, 360px);
    background: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
    padding: 20px 20px calc(80px + env(safe-area-inset-bottom) + 16px);
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 20px;
}
.re-drawer.is-open { transform: none; }
.re-drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.re-drawer .re-drawer__close,
.re-drawer__close {
    appearance: none; -webkit-appearance: none;
    background: transparent !important; background-image: none !important;
    border: 1px solid var(--border) !important; color: var(--text) !important;
    border-radius: 999px !important;
    width: 40px !important; height: 40px !important; min-width: 40px;
    padding: 0 !important; margin: 0;
    box-shadow: none !important;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px; line-height: 1; cursor: pointer;
    flex: 0 0 auto;
}
.re-drawer__list { padding: 0; margin: 0; list-style: none; display: grid; gap: 4px; }
.re-drawer__list a {
    display: block; padding: 14px 12px; border-radius: var(--r-md);
    color: var(--text); font-size: 16px;
    transition: background var(--t-fast), color var(--t-fast);
}
.re-drawer__list a:hover { background: var(--surface-2); color: var(--accent); }
.re-drawer__cta {
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
    display: grid; gap: 8px;
}
@media (min-width: 980px) { .re-drawer, .re-drawer-backdrop { display: none; } }

/* ---------- Promo banner ---------- */
.re-promo__panel {
    display: flex; align-items: center; min-height: 280px;
    border-radius: var(--r-lg); overflow: hidden; padding: 32px;
    background-size: cover; background-position: center;
    border: 1px solid var(--border);
}
.re-promo__copy { max-width: 540px; }
.re-promo__copy h2 { font-size: 32px; margin: 0 0 8px; }
.re-promo__copy p { color: var(--text); margin: 0 0 16px; }
.re-promo__panel .re-btn { pointer-events: none; }

/* ---------- Card grids ----------
   auto-fill keeps cards a sensible width whether we have 2 or 12 entries —
   no more 50%-empty rows when a category has fewer items than columns. */
.re-grid { display: grid; gap: 20px; }
.re-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.re-grid--4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Fleet card ---------- */
.re-fcard__body { display: grid; gap: 12px; }
.re-fcard__title { margin: 0; font-size: 18px; font-family: var(--font-ui); font-weight: 600; }
.re-fcard__title a { color: var(--text); }
.re-fcard__title a:hover { color: var(--accent); }
.re-fcard__specs {
    display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none;
}
.re-fcard__specs li {
    color: var(--text-muted); font-size: 12px;
    border: 1px solid var(--border); border-radius: var(--r-pill);
    padding: 2px 8px;
}
.re-fcard__prices {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    background: var(--surface-2); border-radius: var(--r-md); padding: 4px;
}
.re-pricetab {
    background: transparent; border: 0; border-radius: var(--r-sm);
    padding: 8px; cursor: pointer; color: var(--text-muted);
    display: grid; gap: 2px; text-align: center;
    font-family: inherit; transition: background var(--t-fast), color var(--t-fast);
}
.re-pricetab span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.re-pricetab strong { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.re-pricetab.is-active { background: #F5F5F5; color: #0A0A0A; }
.re-pricetab.is-active strong { color: #0A0A0A; }
.re-fcard__cta {
    display: grid; grid-template-columns: 1fr auto auto; gap: 6px;
}
/* Icon-only round-ish buttons in fleet cards (WhatsApp + Call) */
.re-btn--icon {
    width: 44px;
    padding: 8px;
    aspect-ratio: 1 / 1;
}
.re-badge {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    background: var(--accent); color: #000; padding: 4px 10px; border-radius: var(--r-pill);
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
}
.re-card__media { position: relative; }

/* ---------- Pricing tables ---------- */
.re-pricing__grid {
    display: grid; gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 900px)  { .re-pricing__grid { grid-template-columns: repeat(2, 1fr); } }
.re-pricing__table {
    width: 100%; border-collapse: collapse;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    overflow: hidden;
}
.re-pricing__table caption {
    text-align: left; padding: 16px; font-family: var(--font-display); font-size: 22px;
    background: var(--surface-2);
}
.re-pricing__table th, .re-pricing__table td {
    padding: 14px 16px; border-top: 1px solid var(--border);
    font-variant-numeric: tabular-nums; font-size: 15px;
}
.re-pricing__table th { color: var(--text-muted); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.re-pricing__table th:first-child, .re-pricing__table td:first-child { text-align: left; }
.re-pricing__table th:not(:first-child), .re-pricing__table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.re-pricing__table tbody tr:hover { background: var(--surface-2); }
.re-pricing__table td:not(:first-child) { color: var(--accent); font-weight: 600; }
.re-pricing__table td:first-child a { color: var(--text); text-decoration: none; }
.re-pricing__table td:first-child a:hover { color: var(--accent); }

/* ---------- USP grid — 6 honest items in 3x2 ---------- */
.re-usp__grid {
    display: grid; gap: 18px; padding: 0; margin: 0; list-style: none;
    grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .re-usp__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .re-usp__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.re-usp__tile {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 24px;
    border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--surface);
    transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.re-usp__tile:hover {
    transform: translateY(-3px);
    border-color: rgba(249,115,22,.4);
    background: var(--surface-2);
}
.re-usp__icon {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(249,115,22,.18) 0%, rgba(249,115,22,.08) 100%);
    color: var(--accent);
    border: 1px solid rgba(249,115,22,.20);
}
.re-usp__body { flex: 1 1 auto; min-width: 0; }
.re-usp__tile h3 {
    font-family: var(--font-display); font-weight: 600;
    font-size: 17px; line-height: 1.25; margin: 2px 0 6px;
    color: var(--text);
}
.re-usp__tile p  {
    color: var(--text-muted); font-size: 14px; line-height: 1.55;
    margin: 0;
}

/* ---------- Testimonials marquee ---------- */
.re-tm__marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
@keyframes re-tm-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.re-tm__track {
    display: flex; gap: 24px;
    padding: 0; margin: 0; list-style: none;
    width: max-content;
    animation: re-tm-scroll 60s linear infinite;
}
.re-tm__marquee:hover .re-tm__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .re-tm__track { animation: none; }
}
.re-tm__card {
    flex: 0 0 360px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 24px;
}
.re-tm__quote {
    font-family: var(--font-display);
    font-style: italic; font-weight: 500;
    font-size: 17px; line-height: 1.55;
    color: var(--text);
    margin: 0;
}
.re-tm__who   { font-size: 13px; color: var(--text-muted); margin: 16px 0 6px; }
.re-tm__stars { color: var(--accent); margin: 0; letter-spacing: .15em; font-size: 16px; }

/* ---------- Social ---------- */
.re-social { background: var(--surface); border-block: 1px solid var(--border); padding-block: 32px; }
.re-social__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.re-social__inner h3 { margin: 0; font-family: var(--font-display); font-size: 22px; }
.re-social__list { display: flex; gap: 16px; padding: 0; margin: 0; list-style: none; flex-wrap: wrap; }
.re-social__list a {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text); font-weight: 500;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 8px 14px;
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.re-social__list a:hover { color: var(--accent); border-color: var(--accent); background: rgba(249,115,22,.06); }
.re-social__list svg { display: block; }

/* ---------- Footer ---------- */
.re-footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: 64px; }
.re-footer__grid {
    display: grid; gap: 32px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .re-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .re-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.re-footer__col h4 {
    font-family: var(--font-ui); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 12px;
}
.re-footer__col ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.re-footer__col a  { color: var(--text-muted); font-size: 14px; }
.re-footer__col a:hover { color: var(--text); }
.re-footer__cols-2 { grid-template-columns: 1fr 1fr; }
.re-contact-list { padding: 0; margin: 12px 0 0; list-style: none; display: grid; gap: 6px; }
.re-contact-list strong { color: var(--text); margin-right: 6px; }
.re-contact-list a { color: var(--text-muted); }
.re-contact-list a:hover { color: var(--accent); }
.re-footer__bottom {
    margin-top: 48px; padding-block: 20px; border-top: 1px solid var(--border);
}
.re-footer__bottom .re-container {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.re-payments { display: flex; gap: 12px; padding: 0; margin: 0; list-style: none; color: var(--text-muted); font-size: 12px; }

/* =========================================================================
   Single vehicle + archive templates
   ========================================================================= */

/* Single-vehicle page: tighter top — header chrome + breadcrumb already
   provide enough breathing room without the default 64px section padding. */
.re-section.re-vehicle { padding-top: 20px; padding-bottom: 64px; }

/* Breadcrumb */
.re-crumbs ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-muted); }
.re-crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--border); }
.re-crumbs a { color: var(--text-muted); }
.re-crumbs a:hover { color: var(--accent); }
.re-crumbs [aria-current="page"] { color: var(--text); }

/* Vehicle head — now lives inside the right sidebar, above price tabs */
.re-vehicle__book-head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.re-vehicle__book-head .re-eyebrow { margin: 0 0 8px; }
.re-vehicle__book-head h1 {
    font-size: clamp(22px, 2.4vw, 30px);
    margin: 0 0 12px;
    line-height: 1.2;
}
.re-vehicle__book-head .re-fcard__specs {
    margin: 0;
    flex-wrap: wrap;
}
.re-vehicle__book-head .re-fcard__specs li { font-size: 12px; padding: 3px 10px; }
.re-fcard__specs-hot { color: #000 !important; background: var(--accent) !important; border-color: var(--accent) !important; }

/* Multi-image gallery */
.re-gallery { display: grid; gap: 12px; }
.re-gallery__main {
    margin: 0; border-radius: var(--r-lg); overflow: hidden;
    background: var(--surface); position: relative;
    aspect-ratio: 16/10;
}
.re-gallery__main img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: opacity 240ms ease;
}
.re-gallery__main img.is-fading { opacity: 0; }

.re-gallery__thumbs {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 8px;
    grid-template-columns: repeat(4, 1fr);
}
.re-gallery__thumb {
    position: relative; padding: 0; border: 2px solid transparent;
    background: var(--surface); border-radius: var(--r-md);
    cursor: pointer; overflow: hidden; aspect-ratio: 16/10;
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.re-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.re-gallery__thumb:hover { transform: translateY(-2px); }
.re-gallery__thumb.is-active { border-color: var(--accent); }

/* Two-column gallery + booking */
.re-vehicle__grid {
    display: grid; gap: 32px;
    grid-template-columns: 1fr;
}
@media (min-width: 980px) {
    .re-vehicle__grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
}
.re-vehicle__hero {
    margin: 0; border-radius: var(--r-lg); overflow: hidden; position: relative;
    background: var(--surface);
}
.re-vehicle__hero img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }

.re-vehicle__book {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 24px; display: grid; gap: 16px; position: sticky; top: 96px;
}
.re-vehicle__prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface-2); border-radius: var(--r-md); padding: 4px; }
.re-vehicle__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.re-vehicle__form-title { margin: 8px 0 0; font-family: var(--font-ui); font-size: 16px; }

/* About + inclusions + related */
.re-vehicle__about, .re-vehicle__inclusions, .re-vehicle__related { margin-top: 64px; }
.re-vehicle__about h2, .re-vehicle__inclusions h2 { font-size: 28px; margin: 0 0 16px; }
.re-vehicle__copy p { color: var(--text-muted); max-width: 70ch; }

.re-vehicle__inclusion-grid {
    display: grid; gap: 12px; padding: 0; list-style: none;
    grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .re-vehicle__inclusion-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .re-vehicle__inclusion-grid { grid-template-columns: repeat(3, 1fr); } }
.re-vehicle__inclusion-grid li {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 14px 16px; display: grid; gap: 4px;
}
.re-vehicle__inclusion-grid strong { color: var(--text); font-family: var(--font-ui); }
.re-vehicle__inclusion-grid span  { color: var(--text-muted); font-size: 13px; }

/* Spec table — 2-column key/value list. Bold values; gold for highlights. */
.re-vehicle__spectable { margin-top: 64px; }
.re-vehicle__spectable h2 { font-size: 28px; margin: 0 0 20px; }
.re-spectable {
    display: grid; gap: 0 48px;
    grid-template-columns: 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 28px;
}
@media (min-width: 720px) { .re-spectable { grid-template-columns: 1fr 1fr; } }
.re-spectable__col { list-style: none; padding: 0; margin: 0; }
.re-spectable__col li {
    display: flex; gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
.re-spectable__col li:last-child { border-bottom: 0; }
.re-spectable__label { color: var(--text-muted); }
.re-spectable__val   { color: var(--text); font-weight: 600; }
.re-spectable__val.is-hot { color: var(--accent); }

/* Terms / docs / delivery 3-card row */
.re-vehicle__terms { margin-top: 32px; }
.re-terms {
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .re-terms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .re-terms { grid-template-columns: repeat(3, 1fr); } }
.re-terms__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    display: grid; gap: 16px;
    align-content: start;
}
.re-terms__card h3 {
    text-align: center;
    font-size: 22px; margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.re-terms__card h4 {
    font-family: var(--font-ui);
    font-size: 15px;
    color: var(--text);
    margin: 8px 0 -4px;
    text-align: center;
    font-weight: 600;
}
.re-terms__card ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.re-terms__card ul li { padding-left: 4px; }
.re-terms__card ul li::marker { color: var(--accent); }
.re-terms__card strong { color: var(--text); font-weight: 600; }

/* Archive hero — bg layers come from inline style (per-term keyword image). */
.re-archive-hero {
    padding-block: 120px 64px;
    background-color: #0A0A0A;
    background-size: cover, cover, cover, cover, cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.re-archive-hero::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 60px;
    background: linear-gradient(180deg, rgba(10,10,10,0), #0A0A0A);
    pointer-events: none;
}
.re-archive-hero h1 { font-size: clamp(36px, 5vw, 64px); margin: 8px 0 12px; }
.re-archive-hero__blurb { color: var(--text-muted); max-width: 60ch; }

/* Filters */
.re-archive { padding-top: 32px; }
.re-archive__filters {
    display: grid; gap: 12px; margin-bottom: 32px;
    grid-template-columns: 1fr;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 16px;
}
@media (min-width: 720px)  { .re-archive__filters { grid-template-columns: repeat(3, 1fr); } }

.re-archive__pager { margin-top: 32px; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.re-archive__pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: var(--r-md);
    color: var(--text); background: var(--surface);
    transition: background var(--t-fast), border-color var(--t-fast);
}
.re-archive__pager .page-numbers.current,
.re-archive__pager .page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.re-empty { background: var(--surface); padding: 48px; border-radius: var(--r-lg); text-align: center; color: var(--text-muted); }
.re-empty a { color: var(--accent); }

/* Hide Astra's bundled scroll-to-top button — collides with our FAB stack. */
#ast-scroll-top,
.ast-scroll-to-top,
.ast-scroll-top-icon,
.astra-back-to-top,
[class*="scroll-to-top"] {
    display: none !important;
}

/* ---------- Sticky FABs (desktop only — mobile uses tabbar) ---------- */
.re-fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 60;
    display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 720px) { .re-fab { display: none; } }
.re-fab__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: var(--r-pill);
    box-shadow: var(--sh-md); color: #fff;
    transition: transform var(--t-fast);
}
.re-fab__btn:hover { transform: scale(1.05); color: #fff; }
.re-fab__btn--wa   { background: var(--success); }
.re-fab__btn--call { background: var(--call); }

/* ---------- Promo CTA tweaks ---------- */
.re-promo__panel .re-btn--primary { pointer-events: none; }

/* =========================================================================
   Mobile app-feel layer
   Activated below 720px viewport — bottom tabbar, sticky CTA, tighter spacing,
   scroll-snap horizontal carousels, native-tap feedback.
   ========================================================================= */

/* Bottom tabbar — hidden on desktop */
.re-tabbar { display: none; }
.re-stickycta { display: none; } /* mobile-only — unset inside @media (max-width: 720px) */

@media (max-width: 720px) {
    /* Disable browser's pull-to-refresh / overscroll bounce so the page
       feels app-anchored, not document-scrolly. */
    html { overscroll-behavior-y: contain; }

    /* Detect notch — pad bottom so tabbar clears the home indicator. */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

    /* ---- Bottom tabbar ---- */
    .re-tabbar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: rgba(10, 10, 10, .96);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .re-tabbar__item {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 4px; padding: 10px 6px;
        color: var(--text-muted);
        font-size: 11px; font-weight: 500;
        text-decoration: none;
        min-height: 56px;
        transition: color 150ms ease, transform 100ms ease;
        -webkit-tap-highlight-color: transparent;
    }
    .re-tabbar__item:active { transform: scale(.93); color: var(--accent); }
    .re-tabbar__item:hover  { color: var(--text); }
    .re-tabbar__item--wa svg   { color: var(--success); }
    .re-tabbar__item--call svg { color: var(--call); }

    /* ---- Sticky bottom CTA (single vehicle page, mobile-only) ---- */
    .re-stickycta {
        display: flex !important; /* override desktop default below */
        position: fixed;
        left: 0; right: 0;
        bottom: calc(64px + env(safe-area-inset-bottom));
        z-index: 85;
        display: flex; align-items: center; gap: 12px;
        padding: 12px 16px;
        background: rgba(20, 20, 20, .98);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
    }
    .re-stickycta__price { flex: 1; line-height: 1.2; }
    .re-stickycta__label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
    .re-stickycta__price strong { font-size: 18px; color: var(--text); font-weight: 700; }
    .re-stickycta__price small  { font-weight: 400; color: var(--text-muted); }
    .re-stickycta__btn {
        flex: 0 0 auto;
        padding: 14px 20px;
        border-radius: 999px;
        gap: 6px;
    }

    /* On single vehicle page, push body padding up so sticky CTA + tabbar both clear */
    body.single-vehicle { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }

    /* ---- Header trim — slimmer on mobile ---- */
    .re-site-header__inner { min-height: 60px; gap: 12px; }
    .re-logo--img img { height: 30px; }
    /* Mobile: hide header Call CTA — bottom tabbar already has Call action */
    .re-header-cta { display: none; }

    /* ---- Hero trim ---- */
    .re-hero { min-height: auto; padding-block: 32px; }
    .re-hero__inner--centered { padding-block: 24px 32px; }
    .re-hero__copy h1 { font-size: clamp(28px, 8vw, 36px); }
    .re-hero__sub { font-size: 15px; }
    .re-hero__search-row { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
    .re-searchpill { width: 100%; height: 56px; }
    .re-searchpill input[type="search"] { font-size: 16px; /* prevent iOS zoom */ }
    .re-btn--light { width: 100%; height: 56px; padding: 0 20px; }
    .re-hero__trust { font-size: 13px; gap: 10px; }

    /* ---- Sections — tighter mobile padding ---- */
    .re-section { padding-block: 40px; }
    .re-section__head h2 { font-size: clamp(22px, 6vw, 28px); }
    .re-section__head p  { font-size: 14px; }
    .re-container { padding-inline: 16px; }

    /* ---- Category strip — horizontal scroll-snap on mobile ---- */
    .re-cats__grid {
        display: flex; gap: 12px; overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-inline: 16px; margin-inline: -16px;
        padding-bottom: 8px;
    }
    .re-cats__grid::-webkit-scrollbar { display: none; }
    .re-cat {
        flex: 0 0 60%; min-width: 200px;
        scroll-snap-align: start;
    }

    /* ---- Fleet card grid — single column, full-bleed images ---- */
    .re-grid--3, .re-grid--4 { grid-template-columns: 1fr !important; gap: 16px; }

    /* ---- Section heads — smaller margin ---- */
    .re-section__head { margin-bottom: 20px; }
    .re-section__head--row { flex-direction: column; align-items: flex-start; }

    /* ---- Single vehicle ---- */
    .re-vehicle__grid { gap: 20px; }
    .re-vehicle__book { position: static; padding: 20px; }
    .re-vehicle__book-head h1 { font-size: 22px; }
    .re-spectable { padding: 16px; gap: 0; }
    .re-spectable__col li { font-size: 14px; padding: 12px 0; }

    /* ---- Native tap feedback on cards + buttons ---- */
    .re-card, .re-cat, .re-brand, .re-btn, .re-pricetab, .re-tm__card,
    .re-fcard__cta a, .re-searchpill__go, .re-burger, .re-link {
        -webkit-tap-highlight-color: transparent;
    }
    .re-card:active, .re-cat:active { transform: scale(.985); }
    .re-btn:active, .re-pricetab:active { transform: scale(.97); }

    /* ---- Footer — collapse to single column ---- */
    .re-footer__grid { grid-template-columns: 1fr 1fr; }
    .re-footer__col--brand { grid-column: 1 / -1; }
    .re-footer__bottom .re-container { flex-direction: column; align-items: flex-start; }

    /* ---- Pricing tables — stack to single column ---- */
    .re-pricing__grid { grid-template-columns: 1fr; }

    /* ---- USP grid — 1 column on phones (cards have rich content) ---- */
    .re-usp__grid { grid-template-columns: 1fr !important; gap: 14px; }

    /* ---- Hide desktop nav on mobile, show burger ---- */
    .re-nav { display: none; }
}

/* Disable text selection on tap-only interactive surfaces — prevents the
   blue selection rectangle that appears when tapping a card. */
@media (max-width: 720px) {
    .re-tabbar, .re-stickycta, .re-pricetab, .re-fcard__cta, .re-cat, .re-brand {
        -webkit-user-select: none; user-select: none;
    }
}
