/* =====================================================================
   Rental Car Muça — public site styles.
   Loaded only by _PublicLayout, so nothing here can affect the admin panel.

   The palette comes from the logo: black (its background) and gold (its
   lettering). Black frames the page — header, hero, contact, footer — and
   gold is kept for the things you should press. The content in between is
   light, so the car photos do the talking.
   ===================================================================== */

:root {
    --c-night: #000000;          /* logo background: header, hero, footer */
    --c-night-raised: #141414;   /* panels sitting on black */
    --c-gold: #E2A32E;           /* logo gold: buttons and accents only */
    --c-gold-hover: #F0B647;
    --c-gold-deep: #8A5B00;      /* gold that stays readable as text on white (5.9:1) */
    --c-paper: #F3F4F5;          /* alternate section background */
    --c-white: #FFFFFF;
    --c-ink: #17191D;            /* body text */
    --c-muted: #5F6570;          /* secondary text (5.3:1 on paper) */
    --c-line: #E2E4E7;
    --c-silver: #C9CDD3;         /* text on black */
    --c-silver-dim: #8B9099;     /* secondary text on black (6.4:1) */
    --c-line-dark: rgba(255, 255, 255, 0.12);

    --radius: 12px;
    --radius-sm: 8px;
    --header-h: 72px;
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* One family, two widths: wide for headings (echoes the logo's stretched
       letters), normal for reading. */
    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------------------------------------------------------------- base */

/* site.css shrinks the root font to 14px on phones for the admin tables;
   the public site keeps 16px so text stays readable on a phone. */
html {
    font-size: 100%;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body.public {
    margin: 0;
    font-family: var(--font);
    font-stretch: 100%;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-ink);
    background: var(--c-white);
    -webkit-tap-highlight-color: rgba(226, 163, 46, 0.25);
}

.public h1, .public h2, .public h3 {
    font-family: var(--font);
    font-stretch: 125%;
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: inherit;
}

.public a { color: var(--c-gold-deep); }
.public a:hover { color: var(--c-ink); }

.on-dark { background: var(--c-night); color: var(--c-silver); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--c-white); }
.on-dark a { color: var(--c-white); }
.on-dark a:hover { color: var(--c-gold); }

/* Visible keyboard focus everywhere, in a colour that shows on each background. */
.public :focus-visible {
    outline: 2px solid var(--c-gold-deep);
    outline-offset: 2px;
}
.public .on-dark :focus-visible { outline-color: var(--c-gold); }
.public main:focus { outline: none; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: 0.6rem 1rem;
    background: var(--c-gold);
    color: var(--c-night) !important;
    font-weight: 700;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 0.75rem; }

.icon {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    vertical-align: -0.15em;
}

/* ------------------------------------------------------------- buttons */

.pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.pbtn:active { transform: translateY(1px); }
.pbtn .icon { width: 1.2em; height: 1.2em; }

/* Prefixed with .public so they outrank the general link colours above
   (".public a" would otherwise turn button text brown on gold). */
.public .pbtn--gold { background: var(--c-gold); color: var(--c-night); }
.public .pbtn--gold:hover { background: var(--c-gold-hover); color: var(--c-night); }

.public .pbtn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--c-white); }
.public .pbtn--ghost:hover { border-color: var(--c-white); background: rgba(255, 255, 255, 0.06); color: var(--c-white); }

.public .pbtn--outline { background: transparent; border-color: #C3C7CD; color: var(--c-ink); }
.public .pbtn--outline:hover { border-color: var(--c-ink); color: var(--c-ink); }

.public .pbtn--dark { background: var(--c-ink); color: var(--c-white); }
.public .pbtn--dark:hover { background: #000; color: var(--c-white); }

.pbtn--sm { min-height: 40px; padding: 0.45rem 0.85rem; font-size: 0.875rem; }
.pbtn--lg { min-height: 52px; padding: 0.8rem 1.4rem; font-size: 1rem; }
.pbtn--block { width: 100%; }

/* --------------------------------------------- admin strip (admin only) */

.admin-strip {
    background: var(--c-gold);
    color: var(--c-night);
    font-size: 0.875rem;
}
.admin-strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding-block: 0.45rem;
}
.admin-strip a { color: var(--c-night); font-weight: 700; }
.admin-strip a:hover { color: var(--c-night); text-decoration: none; }

/* -------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--c-line-dark);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--c-white) !important;
}
.brand__logo { width: 48px; height: 48px; border-radius: 50%; }
.brand__name {
    font-stretch: 118%;
    font-weight: 750;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--c-line-dark);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--c-white);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-nav__links {
    display: flex;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav__links a {
    color: var(--c-silver);
    text-decoration: none;
    font-weight: 550;
}
.site-nav__links a:hover { color: var(--c-white); }

.site-nav__contact { display: flex; align-items: center; gap: 1.25rem; }
.site-nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--c-white);
    text-decoration: none;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Below 992px the links fold into a menu — but only once public.js is running
   (the nav-ready class), so the links never become unreachable without JavaScript. */
@media (max-width: 991.98px) {
    .nav-ready .nav-toggle { display: inline-flex; }

    .nav-ready .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.5rem 0.75rem 1.25rem;
        background: var(--c-night);
        border-bottom: 1px solid var(--c-line-dark);
    }
    .nav-ready .site-nav.is-open { display: flex; animation: menu-in 0.2s var(--ease-out); }

    .site-nav__links { flex-direction: column; gap: 0; }
    .site-nav__links a {
        display: block;
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid var(--c-line-dark);
        font-size: 1.05rem;
    }
    .site-nav__contact { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .site-nav__phone { padding: 0.5rem 0.25rem; }

    /* Without JS: links simply wrap under the logo. */
    html:not(.nav-ready) .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
    html:not(.nav-ready) .site-nav { flex-wrap: wrap; gap: 1rem; }
    html:not(.nav-ready) .site-nav__links { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
    html:not(.nav-ready) .site-nav__links a { padding: 0; border: 0; }
}

@keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 2rem;
}

.hero__title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.4rem, 6.2vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
}

.hero__lead {
    max-width: 34rem;
    margin: 0 0 2rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--c-silver);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--c-silver);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__facts .icon { color: var(--c-gold); }

.hero__badge { display: flex; justify-content: center; }
.hero__badge img {
    width: 100%;
    max-width: 440px;
    height: auto;
}

/* The ridge: drawn edge to edge under the hero, from the first pickup point to the last. */
.hero__route {
    position: relative;
    height: clamp(90px, 13vw, 170px);
    margin-top: clamp(1rem, 3vw, 2rem);
}
.hero__route svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero__ridge {
    fill: none;
    stroke: var(--c-gold);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke; /* stays 2px however the SVG is stretched */
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

/* Pins sit exactly on the path's two ends (same percentages as the path's coordinates in a 1200x200 box). */
.route-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-gold);
    box-shadow: 0 0 0 5px rgba(226, 163, 46, 0.2);
}
.route-pin--start { left: calc(3.333% - 5px); top: calc(89% - 5px); }
.route-pin--end { left: calc(96.667% - 5px); top: calc(31% - 5px); }

.route-pin__label {
    position: absolute;
    bottom: calc(100% + 10px);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-white);
    white-space: nowrap;
}
.route-pin--start .route-pin__label { left: 0; }
.route-pin--end .route-pin__label { right: 0; }

@media (prefers-reduced-motion: no-preference) {
    .hero__ridge { stroke-dashoffset: 1; animation: ridge-draw 1.8s var(--ease-out) 0.2s forwards; }
    .route-pin { opacity: 0; animation: fade-in 0.5s ease forwards; }
    .route-pin--start { animation-delay: 0.2s; }
    .route-pin--end { animation-delay: 1.7s; }
}

@keyframes ridge-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

@media (max-width: 767.98px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__badge { order: -1; justify-content: flex-start; }
    .hero__badge img { max-width: 150px; }
    .hero__actions .pbtn { flex: 1 1 100%; }
    .route-pin__label { font-size: 0.72rem; }
}

/* ------------------------------------------------------------ sections */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--paper { background: var(--c-paper); }

.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}
.section-lead { margin: 0; color: var(--c-muted); font-size: 1.05rem; }
.on-dark .section-lead { color: var(--c-silver); }

/* ------------------------------------------------------------- filters */

.filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}

.filters__label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-muted);
}

.filters .form-control,
.filters .form-select {
    min-height: 44px;
    border-color: #CDD1D6;
    border-radius: var(--radius-sm);
    background-color: var(--c-white);
    color: var(--c-ink);
    font-family: var(--font);
}
.filters .form-control:focus,
.filters .form-select:focus {
    border-color: var(--c-gold-deep);
    box-shadow: 0 0 0 3px rgba(226, 163, 46, 0.35);
}

.filters__actions { display: flex; gap: 0.5rem; }
.filters.is-live .filters__submit { display: none; }

@media (max-width: 1199.98px) {
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters__field--search { grid-column: 1 / -1; }
    .filters__actions { grid-column: 1 / -1; }
    .filters__actions .pbtn { flex: 1; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ car grid */

.results-count {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--c-muted);
}

/* Loading state while catalogue.js fetches new results. */
#vehicleResults { transition: opacity 0.15s ease; }
#vehicleResults[aria-busy="true"] { opacity: 0.45; pointer-events: none; }

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

.car-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
    .car-card:hover {
        transform: translateY(-3px);
        border-color: #CDD1D6;
        box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.28);
    }
}

.car-card__media { position: relative; background: var(--c-night-raised); }
.car-card__media .carousel-control-prev,
.car-card__media .carousel-control-next { width: 44px; }
@media (hover: hover) {
    .car-card__media .carousel-control-prev,
    .car-card__media .carousel-control-next { opacity: 0; transition: opacity 0.15s ease; }
    .car-card:hover .carousel-control-prev,
    .car-card:hover .carousel-control-next,
    .car-card__media .carousel-control-prev:focus-visible,
    .car-card__media .carousel-control-next:focus-visible { opacity: 0.9; }
}

.car-card__count {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--c-white);
    font-size: 0.75rem;
    font-weight: 600;
}

/* No photos yet: a dark panel with the logo, so the card still looks intentional. */
.car-card__nophoto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    aspect-ratio: 4 / 3;
    background: var(--c-night); /* pure black, same as the logo's own background, so no square shows */
    color: var(--c-silver-dim) !important;
    font-size: 0.85rem;
    text-decoration: none;
}
.car-card__nophoto img { width: 96px; height: 96px; opacity: 0.9; }

.car-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.1rem 1.1rem 1.2rem;
}

.car-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.car-card__title { margin: 0; font-size: 1.15rem; }
.car-card__title a { color: var(--c-ink); text-decoration: none; }
.car-card__title a:hover { color: var(--c-gold-deep); }
.car-card__year { color: var(--c-muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.car-card__category { margin: 0.15rem 0 0; font-size: 0.875rem; color: var(--c-muted); }

.specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
    margin: 1rem 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: #3C414A;
}
.specs li { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.specs .icon { width: 18px; height: 18px; color: var(--c-gold-deep); }

.car-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--c-line);
}
.car-card__actions { display: flex; gap: 0.5rem; }

.price { margin: 0; color: var(--c-muted); font-size: 0.9rem; }
.price strong {
    font-stretch: 118%;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--c-ink);
    font-variant-numeric: tabular-nums;
}
.price--lg strong { font-size: 2.1rem; }

/* ---------------------------------------------------------- empty state */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--c-white);
    border: 1px dashed #CDD1D6;
    border-radius: var(--radius);
}
.empty-state__title { margin: 0; font-stretch: 118%; font-weight: 700; font-size: 1.2rem; }
.empty-state__text { margin: 0 0 0.75rem; color: var(--c-muted); }
.empty-state__code { margin: 1rem 0 0; font-size: 0.8rem; color: var(--c-muted); }
.empty-state--page { margin-block: 3rem; }

/* ---------------------------------------------------------------- perks */

.perks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.perk { padding-top: 1.25rem; border-top: 2px solid var(--c-ink); }
.perk__icon { display: inline-flex; margin-bottom: 0.9rem; color: var(--c-gold-deep); }
.perk__icon .icon { width: 30px; height: 30px; }
.perk__title { margin: 0 0 0.4rem; font-size: 1.1rem; }
.perk__text { margin: 0; color: var(--c-muted); }
.perk__places { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--c-ink); font-weight: 600; }

@media (max-width: 991.98px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .perks { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------------------------------------------------------------- about */

.about {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 3rem;
}
.about__text p { max-width: 38rem; font-size: 1.05rem; }
.about__insta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 650;
}
.about__quote {
    margin: 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--c-gold);
}
.about__quote p {
    margin: 0;
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.1;
    color: var(--c-ink);
}

@media (max-width: 767.98px) { .about { grid-template-columns: 1fr; gap: 2rem; } }

/* -------------------------------------------------------------- contact */

.contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
    align-items: start;
}

.contact__phone {
    display: inline-block;
    margin: 1.5rem 0;
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(1.9rem, 4.6vw, 3.2rem);
    line-height: 1;
    color: var(--c-gold) !important;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.contact__phone:hover { color: var(--c-gold-hover) !important; }

.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.contact__hours { display: flex; align-items: center; gap: 0.5rem; margin: 1.5rem 0 0; }
.contact__hours .icon { color: var(--c-gold); }
.contact__subtitle { margin: 0 0 1rem; font-size: 1.1rem; }

.places { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line-dark); }
.places__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--c-line-dark);
    text-decoration: none;
    color: var(--c-white);
}
.places__item > .icon { width: 20px; height: 20px; color: var(--c-gold); }
.places__name { flex: 1; font-weight: 600; }
.places__hint { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--c-silver-dim); }
a.places__item:hover .places__hint { color: var(--c-gold); }

@media (max-width: 767.98px) {
    .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact__actions .pbtn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------- footer */

.site-footer { padding-block: 3rem 2rem; border-top: 1px solid var(--c-line-dark); }

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
}
.site-footer__brand { display: flex; align-items: center; gap: 1rem; }
.site-footer__brand img { width: 72px; height: 72px; border-radius: 50%; }
.site-footer__name { margin: 0; font-stretch: 118%; font-weight: 750; color: var(--c-white); }
.site-footer__slogan { margin: 0; color: var(--c-silver-dim); }

.site-footer__heading { margin: 0 0 0.75rem; font-size: 0.95rem; font-stretch: 100%; }
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { display: flex; align-items: center; gap: 0.5rem; padding-block: 0.3rem; }
.site-footer__list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-silver);
    text-decoration: none;
}
.site-footer__list a:hover { color: var(--c-white); }

.site-footer__legal {
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-line-dark);
    font-size: 0.85rem;
    color: var(--c-silver-dim);
}

@media (max-width: 767.98px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ------------------------------------------- phone call / WhatsApp bar */

.action-bar { display: none; }

@media (max-width: 991.98px) {
    .action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        display: flex;
        gap: 0.6rem;
        padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--c-line-dark);
    }
    .action-bar .pbtn { flex: 1; min-height: 48px; }

    /* Room at the bottom so the bar never covers the end of the footer. */
    body.public { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------- detail page */

.detail { padding-block: 1.5rem 4rem; }

.detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    min-height: 44px;
    font-weight: 600;
    text-decoration: none;
    color: var(--c-ink) !important;
}
.detail__back:hover { color: var(--c-gold-deep) !important; }

.detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2.5rem;
    align-items: start;
}

.detail__carousel { border-radius: var(--radius); overflow: hidden; background: var(--c-night-raised); }
.detail__nophoto { border-radius: var(--radius); background: var(--c-night); }
.detail__nophoto > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--c-silver-dim);
}

.detail__thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.public .gallery-thumb {
    width: 84px;
    height: 63px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
}
.public .gallery-thumb.active { outline: 2px solid var(--c-gold-deep); outline-offset: 2px; }

.detail__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.detail__title { margin: 0 0 0.35rem; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.detail__meta { display: flex; gap: 1rem; margin: 0 0 1.25rem; color: var(--c-muted); }
.detail__meta span + span { padding-left: 1rem; border-left: 1px solid var(--c-line); }

.specs--grid { margin: 1.25rem 0 1.5rem; padding: 1rem 0; border-block: 1px solid var(--c-line); font-size: 0.95rem; }

.book-box { display: grid; gap: 0.75rem; }
.book-box__note { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--c-muted); }

.detail__section { margin-top: 3.5rem; }
.detail__heading { margin: 0 0 1.25rem; padding-bottom: 0.6rem; font-size: 1.35rem; border-bottom: 2px solid var(--c-ink); }

.spec-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
    margin: 0;
}
.spec-table > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--c-line);
}
.spec-table dt { font-weight: 400; color: var(--c-muted); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; }

.vehicle-description { max-width: 46rem; font-size: 1.05rem; }

@media (max-width: 991.98px) {
    .detail__grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .detail__aside { position: static; }
}
@media (max-width: 575.98px) {
    .spec-table { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- scroll reveal */
/* Only active once public.js adds .reveal-ready, so nothing is ever hidden
   when JavaScript is off or when the visitor prefers reduced motion. */

.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .pbtn, .car-card, #vehicleResults, .car-card__media .carousel-control-prev,
    .car-card__media .carousel-control-next { transition: none; }
    .car-card:hover { transform: none; }
    .nav-ready .site-nav.is-open { animation: none; }
}
