/* ==========================================================================
   Eagle — interior pages and secondary components
   ==========================================================================

   Everything the homepage does not use: page heads, the fleet listing, vehicle
   detail, about, services, contact, chauffeur, airport transfer, corporate and
   locations, plus the shortcode sections that are available in admin but not
   currently placed on the homepage.

   Rebuilt on the same two-theme tokens as everything else, so these pages are
   correct in light and dark today rather than waiting for their own phase.
   Every one of them is scheduled for a proper redesign; this is the shared
   component vocabulary they render against in the meantime.
   ========================================================================== */

/* ── Page head ───────────────────────────────────────────────────────────── */

.elc-crumbs { padding-block: .85rem; border-bottom: 1px solid var(--e-line); font-size: .8rem; }
.elc-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.elc-crumbs a { color: var(--e-text-muted); text-decoration: none; }
.elc-crumbs a:hover { color: var(--e-brand-text); }
.elc-crumbs li[aria-current] { color: var(--e-text); font-weight: 500; }
.elc-crumbs li + li::before { content: '/'; margin-inline-end: .45rem; color: var(--e-text-faint); }

.elc-pagehead { padding-block: clamp(2.75rem,5vw,4.5rem) clamp(1.75rem,3vw,2.5rem); border-bottom: 1px solid var(--e-line); }
.elc-pagehead__title { font-size: clamp(2.1rem,4.6vw,3.6rem); max-width: 20ch; }
.elc-pagehead__lead { margin-top: 1.15rem; }

/* With a photograph the head becomes a petrol band in both themes, so the
   scrim only ever has to work against one set of text colours. */
.elc-pagehead--image { position: relative; display: flex; align-items: flex-end; min-height: min(52vh,440px); overflow: hidden; border-bottom: 0; padding-block: clamp(4rem,8vw,6rem) clamp(1.75rem,3vw,2.5rem); }
.elc-pagehead--image, .elc-pagehead--image .elc-pagehead__title { color: var(--e-text-on-ink); }
.elc-pagehead__media { position: absolute; inset: 0; z-index: 0; }
.elc-pagehead__media img, .elc-pagehead__media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.elc-pagehead__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--e-scrim-strong) 0%, var(--e-scrim) 62%, rgba(9,20,27,.45) 100%); }
.elc-pagehead__inner { position: relative; z-index: 2; width: 100%; }
.elc-pagehead--image .elc-pagehead__lead, .elc-pagehead--image .elc-lead { color: var(--e-text-on-ink-muted); }
.elc-pagehead--image .elc-eyebrow, .elc-pagehead--image .e-eyebrow { color: #d9b372; }

/* ── Shared blocks ───────────────────────────────────────────────────────── */

.elc-split { display: grid; gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
@media (min-width: 62rem) { .elc-split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.elc-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--e-brand-text); text-decoration: none; padding-bottom: .25rem; border-bottom: 1px solid var(--e-line-strong); transition: border-color var(--e-fast) var(--e-ease), gap var(--e-fast) var(--e-ease); }
.elc-link:hover { border-bottom-color: currentColor; gap: .7rem; }
.elc-link__arrow { line-height: 1; }

.elc-empty { padding: clamp(2.5rem,5vw,4rem) clamp(1.5rem,3vw,2.5rem); border: 1px dashed var(--e-line-strong); border-radius: var(--e-radius-lg); text-align: center; }
.elc-empty__title { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 .7rem; }
.elc-empty p { color: var(--e-text-muted); max-width: 46ch; margin: 0 auto 1.5rem; }

.elc-note, .elc-note--light { margin: 1.75rem 0 0; font-size: .87rem; line-height: 1.6; color: var(--e-text-muted); max-width: 62ch; }
.elc-fleetpage, .elc-cardetail { display: block; }
.elc-fleet-grid, .e-fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,21rem),1fr)); gap: clamp(1rem,1.8vw,1.5rem); }

/* Vehicle specification strip, used on the detail page. */
.elc-plate { display: flex; flex-wrap: wrap; border-block: 1px solid var(--e-line); margin: 0; padding: 0; list-style: none; }
.elc-plate > * { flex: 1 1 0; min-width: 5.5rem; padding: .9rem 1.1rem .9rem 0; border-inline-end: 1px solid var(--e-line); }
.elc-plate > *:last-child { border-inline-end: 0; }
.elc-plate > * + * { padding-inline-start: 1.1rem; }
.elc-plate dt { font-family: var(--e-mono); font-size: .54rem; letter-spacing: .16em; text-transform: uppercase; color: var(--e-text-faint); margin-bottom: .3rem; }
.elc-plate dd { margin: 0; font-family: var(--e-mono); font-size: .88rem; font-weight: 500; color: var(--e-text); }

/* ── Services page ───────────────────────────────────────────────────────── */

.elc-servicedoc { border-top: 1px solid var(--e-line); }
.elc-servicedoc__item { display: grid; gap: 1rem; padding-block: clamp(2.25rem,4vw,3.5rem); border-bottom: 1px solid var(--e-line); }
@media (min-width: 48rem) { .elc-servicedoc__item { grid-template-columns: 4.5rem minmax(0,1fr); gap: 2.25rem; } }
.elc-servicedoc__aside, .elc-servicedoc__body { min-width: 0; }
.elc-servicedoc__n { font-family: var(--e-mono); font-size: .66rem; letter-spacing: .16em; color: var(--e-accent); }
.elc-servicedoc__name { font-size: clamp(1.4rem,2.6vw,2rem); font-weight: 600; letter-spacing: -.025em; margin: 0 0 1rem; }
.elc-servicedoc__copy { color: var(--e-text-muted); max-width: 62ch; margin: 0 0 1.4rem; line-height: 1.7; }

.elc-ticks { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem 1.6rem; }
.elc-ticks li { position: relative; padding-inline-start: 1.05rem; font-family: var(--e-mono); font-size: .76rem; color: var(--e-text-muted); }
.elc-ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--e-accent-fill); }

/* ── Use cases (chauffeur, corporate) ────────────────────────────────────── */

.elc-usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,16rem),1fr)); border-top: 1px solid var(--e-line); }
.elc-usecases--two { grid-template-columns: repeat(auto-fit, minmax(min(100%,22rem),1fr)); }
.elc-usecase { padding: 1.85rem 1.5rem 1.85rem 0; border-bottom: 1px solid var(--e-line); }
@media (min-width: 48rem) { .elc-usecase { border-inline-end: 1px solid var(--e-line); padding-inline-start: 1.5rem; } .elc-usecase:first-child { padding-inline-start: 0; } }
.elc-usecase__title { font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; }
.elc-usecase__copy { margin: 0; color: var(--e-text-muted); font-size: .9rem; line-height: 1.6; }

/* ── Airport routes ──────────────────────────────────────────────────────── */

.elc-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,20rem),1fr)); border-top: 1px solid var(--e-line); }
.elc-route { padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--e-line); }
@media (min-width: 48rem) { .elc-route { border-inline-end: 1px solid var(--e-line); padding-inline-start: 1.5rem; } .elc-route:nth-child(3n+1) { padding-inline-start: 0; } .elc-route:nth-child(3n) { border-inline-end: 0; } }
.elc-route__note { display: block; font-family: var(--e-mono); font-size: .54rem; letter-spacing: .16em; text-transform: uppercase; color: var(--e-accent); margin-bottom: .5rem; }
.elc-route__pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.015em; color: var(--e-text); }
.elc-route__arrow { color: var(--e-accent); }

/* ── Locations ───────────────────────────────────────────────────────────── */

.elc-arealist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,16rem),1fr)); gap: clamp(1.75rem,3.5vw,3rem); }
.elc-areagroup { min-width: 0; }
.elc-areagroup__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 .5rem; padding-bottom: .85rem; border-bottom: 1px solid var(--e-line); }
.elc-areagroup__copy { color: var(--e-text-muted); font-size: .9rem; margin: .9rem 0 1.15rem; line-height: 1.6; }
.elc-areagroup__items { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.elc-areagroup__items li { font-family: var(--e-mono); font-size: .78rem; color: var(--e-text-muted); }

.elc-maprow { display: grid; gap: 2.25rem; align-items: start; }
@media (min-width: 62rem) { .elc-maprow { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 3rem; } }
.elc-maprow__detail address { font-style: normal; font-size: .95rem; line-height: 1.8; margin-bottom: 1.5rem; color: var(--e-text-muted); }
.elc-maprow__map { aspect-ratio: 16/10; border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); overflow: hidden; background: var(--e-surface-2); }
.elc-maprow__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.elc-maprow__map--tall { aspect-ratio: 4/3; margin-block: 1.25rem; }

.elc-deflist { margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.elc-deflist > div { display: grid; gap: .2rem; }
.elc-deflist dt { font-family: var(--e-mono); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--e-accent); }
.elc-deflist dd { margin: 0; font-size: 1rem; font-weight: 500; color: var(--e-text); }
.elc-deflist dd a { color: inherit; text-decoration: none; }
.elc-deflist dd a:hover { color: var(--e-brand-text); }

/* ── Contact ─────────────────────────────────────────────────────────────── */

.elc-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,14rem),1fr)); border-top: 1px solid var(--e-line); }
.elc-channel { display: block; padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--e-line); text-decoration: none; color: var(--e-text); }
@media (min-width: 48rem) { .elc-channel { border-inline-end: 1px solid var(--e-line); padding-inline-start: 1.5rem; } .elc-channel:first-child { padding-inline-start: 0; } .elc-channel:last-child { border-inline-end: 0; } }
.elc-channel__label { display: block; font-family: var(--e-mono); font-size: .54rem; letter-spacing: .16em; text-transform: uppercase; color: var(--e-accent); margin-bottom: .5rem; }
.elc-channel__value { display: block; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .25rem; }
.elc-channel__note { display: block; font-size: .82rem; color: var(--e-text-muted); }
.elc-channel:hover .elc-channel__value { color: var(--e-brand-text); }

.elc-contactgrid { display: grid; gap: clamp(2.25rem,4.5vw,4rem); align-items: start; }
@media (min-width: 62rem) { .elc-contactgrid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); } }
.elc-contactaside { padding: clamp(1.5rem,2.5vw,2.25rem); border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); background: var(--e-surface); }
.elc-contactaside__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 1rem; }
.elc-contactaside address { font-style: normal; line-height: 1.8; color: var(--e-text-muted); }

.elc-formwrap .elc-field, .elc-formwrap .form-group { margin-bottom: 1.15rem; }
.elc-formwrap .elc-label, .elc-formwrap label { display: block; font-family: var(--e-mono); font-size: .56rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--e-text-muted); margin-bottom: .45rem; }

/* ── CMS prose (legal pages, editor content) ─────────────────────────────── */

.elc-cms { color: var(--e-text-muted); font-size: 1rem; line-height: 1.78; }
.elc-cms h2, .elc-cms h3 { color: var(--e-text); margin: 2.4rem 0 1rem; }
.elc-cms p { margin-bottom: 1.2rem; }
.elc-cms ul, .elc-cms ol { margin: 0 0 1.25rem 1.15rem; }
.elc-cms li { margin-bottom: .45rem; }
.elc-cms strong { color: var(--e-text); font-weight: 600; }
.elc-cms a { color: var(--e-brand-text); }

/* ── Legacy FAQ accordion (interior pages) ───────────────────────────────── */

.elc-faq { border-top: 1px solid var(--e-line-strong); }
.elc-faq__item { border-bottom: 1px solid var(--e-line); }
.elc-faq__item > h3 { margin: 0; font-size: inherit; }
.elc-faq__item button { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%; padding: 1.15rem 0; border: 0; background: none; font-family: var(--e-sans); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -.012em; color: var(--e-text); text-align: start; cursor: pointer; }
.elc-faq__item button:hover, .elc-faq__item button[aria-expanded='true'] { color: var(--e-brand-text); }
.elc-faq__panel { padding: 0 clamp(1rem,3vw,2.5rem) 1.35rem 0; }
.elc-faq__panel p { margin: 0; font-size: .94rem; line-height: 1.7; color: var(--e-text-muted); max-width: 68ch; }
.elc-faq__sign { position: relative; width: 13px; height: 13px; flex-shrink: 0; }
.elc-faq__sign::before, .elc-faq__sign::after { content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 13px; height: 1.5px; background: var(--e-accent); transform: translateY(-50%); transition: transform var(--e-fast) var(--e-ease); }
.elc-faq__sign::after { transform: translateY(-50%) rotate(90deg); }
[aria-expanded='true'] .elc-faq__sign::after { transform: translateY(-50%) rotate(0deg); }

/* ==========================================================================
   SHORTCODE SECTIONS AVAILABLE IN ADMIN
   Not on the homepage today, but registered and placeable on any page, so they
   are styled rather than left to render unstyled the first time someone adds
   one.
   ========================================================================== */

/* ── Body-type index ─────────────────────────────────────────────────────── */

.e-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.e-cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; min-height: 8rem; padding: 1.1rem; border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); background: var(--e-surface); color: var(--e-text); text-decoration: none; transition: border-color var(--e-fast) var(--e-ease), transform var(--e-fast) var(--e-ease); }
.e-cat:hover { border-color: var(--e-line-strong); transform: translateY(-2px); }
.e-cat__icon { color: var(--e-accent); margin-bottom: auto; }
.e-cat__name { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.e-cat__n { font-family: var(--e-mono); font-size: .62rem; color: var(--e-text-faint); }

/* ── Occasions ───────────────────────────────────────────────────────────── */

.e-occasions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0; border-top: 1px solid var(--e-line); }
.e-occasion { position: relative; display: block; padding: 1.5rem 2.5rem 1.5rem 0; border-bottom: 1px solid var(--e-line); color: var(--e-text); text-decoration: none; }
@media (min-width: 48rem) { .e-occasion { border-inline-end: 1px solid var(--e-line); padding-inline-start: 1.5rem; } .e-occasion:nth-child(3n+1) { padding-inline-start: 0; } .e-occasion:nth-child(3n) { border-inline-end: 0; } }
.e-occasion:hover .e-occasion__name { color: var(--e-brand-text); }
.e-occasion__icon { display: inline-flex; color: var(--e-accent); margin-bottom: .7rem; }
.e-occasion__name { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 .4rem; }
.e-occasion__copy { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--e-text-muted); }
.e-occasion__go { position: absolute; top: 1.5rem; inset-inline-end: 1rem; color: var(--e-accent); }

/* ── Reviews ─────────────────────────────────────────────────────────────── */

.e-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: clamp(1rem, 1.6vw, 1.35rem); }
.e-review { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.25rem, 2vw, 1.7rem); border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); background: var(--e-surface); }
.e-review__body { margin: 0; font-size: .95rem; line-height: 1.7; color: var(--e-text); }
.e-review__who { display: grid; gap: .15rem; margin: auto 0 0; padding-top: .9rem; border-top: 1px solid var(--e-line); font-family: var(--e-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--e-text-muted); }
.e-review__name { color: var(--e-text); font-weight: 500; }
.e-review__context { color: var(--e-text-faint); font-size: .6rem; }
.e-reviews__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.e-reviews__cta--only { align-items: center; text-align: center; margin-top: 0; }
.e-reviews__cta--only .e-lead { margin-inline: auto; }

/* ── Video wall ──────────────────────────────────────────────────────────── */

.e-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: clamp(1rem, 1.6vw, 1.35rem); }
.e-video { position: relative; display: block; aspect-ratio: 16 / 10; border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); background: var(--e-surface-2); overflow: hidden; text-decoration: none; }
.e-video:hover { border-color: var(--e-line-strong); }
.e-video__media { position: absolute; inset: 0; }
.e-video__media img { width: 100%; height: 100%; object-fit: cover; }
.e-video__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--e-scrim-strong) 8%, transparent 60%); }
.e-video__play { position: absolute; z-index: 2; top: 50%; inset-inline-start: 50%; transform: translate(-50%,-50%); display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--e-accent-fill); color: #0e1c26; }
.e-video__title { position: absolute; z-index: 2; inset-inline: 1rem; bottom: .9rem; margin: 0; font-size: 1rem; font-weight: 600; color: var(--e-text-on-ink); }
.e-video__meta { position: absolute; z-index: 2; top: .8rem; inset-inline-end: .8rem; padding: .25rem .5rem; border-radius: 2px; background: var(--e-scrim-strong); font-family: var(--e-mono); font-size: .56rem; color: var(--e-text-on-ink); }
.e-video--empty { display: flex; align-items: center; justify-content: center; border-style: dashed; border-color: var(--e-line-strong); color: var(--e-text-faint); font-family: var(--e-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 1.5rem; }

/* ── Editorial fleet showcase (used on interior pages) ───────────────────── */

.e-feature { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }
@media (min-width: 62rem) {
    .e-feature--editorial { grid-template-columns: repeat(6, minmax(0,1fr)); }
    .e-feature--editorial > * { grid-column: span 2; }
    .e-feature--editorial > .e-fcar--lead { grid-column: span 6; }
}
@media (min-width: 82rem) {
    .e-feature--editorial > .e-fcar--lead { grid-column: span 3; }
    .e-feature--editorial > .e-fcar--lead + * { grid-column: span 3; }
}
.e-fcar { position: relative; display: flex; flex-direction: column; min-width: 0; }
.e-fcar__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--e-line); border-radius: var(--e-radius-lg); background: var(--e-surface-2); margin-bottom: 1rem; }
.e-fcar--lead .e-fcar__media { aspect-ratio: 16 / 10; }
.e-fcar__media img, .e-fcar__media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.e-fcar__lot { position: absolute; z-index: 2; top: .75rem; inset-inline-start: .75rem; padding: .25rem .5rem; border-radius: 2px; background: var(--e-surface); font-family: var(--e-mono); font-size: .56rem; letter-spacing: .1em; color: var(--e-accent); }
.e-fcar__cat { position: absolute; z-index: 2; bottom: 0; inset-inline-start: 0; padding: .3rem .55rem; background: var(--e-surface); border-start-end-radius: var(--e-radius); font-family: var(--e-mono); font-size: .54rem; letter-spacing: .14em; text-transform: uppercase; color: var(--e-text-muted); }
.e-fcar__marque { font-family: var(--e-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--e-accent); margin: 0 0 .35rem; }
.e-fcar__name { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 600; line-height: 1.2; letter-spacing: -.022em; margin: 0 0 .6rem; }
.e-fcar__name a { color: inherit; text-decoration: none; }
.e-fcar__name a::after { content: ''; position: absolute; inset: 0; }
.e-fcar__name a:hover { color: var(--e-brand-text); }
.e-fcar__specs { display: flex; flex-wrap: wrap; gap: .25rem .8rem; list-style: none; margin: 0 0 .9rem; padding: 0; font-family: var(--e-mono); font-size: .72rem; color: var(--e-text-muted); }
.e-fcar__specs li + li::before { content: '·'; margin-inline-end: .8rem; color: var(--e-text-faint); }
.e-fcar__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--e-line); }
.e-fcar__price { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.03em; color: var(--e-text); line-height: 1.1; }
.e-fcar__price small { display: block; font-family: var(--e-mono); font-size: .54rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--e-text-faint); margin-top: .25rem; }
.e-fcar__go { position: relative; z-index: 2; font-size: .82rem; font-weight: 600; color: var(--e-brand-text); text-decoration: none; white-space: nowrap; }

/* ── Odds and ends the markup still references ───────────────────────────── */

.e-head--center { justify-items: center; text-align: center; }
.e-head--center .e-lead { max-width: 58ch; margin-inline: auto; }
.e-step__icon { display: none; }
.e-mega__col--wide { min-width: 0; }
.elc-nav__link--flag { color: var(--e-brand-text); font-weight: 600; }
.elc-drawer__toggle { font-family: var(--e-display); }
.e-plate--0, .e-plate--1, .e-plate--2 { /* tonal variants share the base plate */ }

/* ==========================================================================
   BOOTSTRAP AND CORE WIDGET CORRECTIONS
   Botble core emits Bootstrap markup this theme never styles — toasts, the
   newsletter form, pagination. These keep it legible on both grounds.
   ========================================================================== */

.elc .card, .elc .modal-content, .elc .dropdown-menu { background: var(--e-surface); color: var(--e-text); border-color: var(--e-line); }
.elc .form-control, .elc .form-select { background: var(--e-surface); border-color: var(--e-line-strong); color: var(--e-text); }
.elc .form-control:focus, .elc .form-select:focus { background: var(--e-surface); color: var(--e-text); border-color: var(--e-brand-text); box-shadow: 0 0 0 3px var(--e-accent-wash); }
.elc .text-muted { color: var(--e-text-muted) !important; }
.elc .btn-primary { background: var(--e-brand); border-color: var(--e-brand); color: var(--e-paper); }
[data-theme='dark'] .elc .btn-primary { color: #0e1c26; }
.elc .page-link { background: var(--e-surface); border-color: var(--e-line); color: var(--e-text); }
.elc .page-item.active .page-link { background: var(--e-brand); border-color: var(--e-brand); color: var(--e-paper); }
[data-theme='dark'] .elc .page-item.active .page-link { color: #0e1c26; }

/* ==========================================================================
   INTERIOR PAGES — black & gold pass
   Brings every interior surface onto the same language as the homepage.
   ========================================================================== */

/* ── Page head ───────────────────────────────────────────────────────────── */

.elc-crumbs {
    padding-block: .7rem;
    background: #050505;
    border-bottom: 1px solid rgba(212,175,55,.18);
    font-size: .78rem;
}
.elc-crumbs a { color: var(--e-text-muted); }
.elc-crumbs a:hover { color: var(--e-accent); }
.elc-crumbs li[aria-current] { color: var(--e-text); }

.elc-pagehead {
    position: relative;
    background: #0a0a0a;
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    border-bottom: 0;
    overflow: hidden;
}
/* The same gold bloom the homepage hero uses, so the two read as one system. */
.elc-pagehead::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(46% 60% at 12% 88%, rgba(212,175,55,.16), transparent 68%);
}
.elc-pagehead::after {
    content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.5) 35%, rgba(212,175,55,.5) 65%, transparent);
}
.elc-pagehead__inner { position: relative; z-index: 1; }
.elc-pagehead__title { font-family: var(--e-display); font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.026em; line-height: 1.04; max-width: 20ch; color: #fff; }
.elc-pagehead__lead { margin-top: 1.1rem; max-width: 54ch; }
.elc-pagehead__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }

.elc-pagehead--image { display: flex; align-items: flex-end; min-height: min(46vh, 400px); padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(1.75rem, 3vw, 2.5rem); }
.elc-pagehead--image .elc-pagehead__scrim {
    background: linear-gradient(to top, rgba(4,4,4,.94) 0%, rgba(4,4,4,.6) 55%, rgba(4,4,4,.7) 100%);
}

/* ── Shared interior components on the new palette ───────────────────────── */

.elc-servicedoc__name, .elc-areagroup__title, .elc-usecase__title,
.elc-channel__value, .elc-contactaside__title, .elc-empty__title {
    font-family: var(--e-display); font-weight: 700; letter-spacing: -.02em;
}
.elc-servicedoc__n, .elc-route__note, .elc-channel__label, .elc-deflist dt { color: var(--e-accent); }
.elc-ticks li::before { background: var(--e-gold-metal-soft); }
.elc-link { color: var(--e-accent); border-bottom-color: var(--e-accent-line); }
.elc-link:hover { border-bottom-color: var(--e-gold); }
.elc-step__n { color: var(--e-accent); font-family: var(--e-display); font-weight: 700; }
.elc-route__arrow { color: var(--e-accent); }

/* The embedded map is a bright rectangle on a dark page; this settles it into
   the design instead of letting it glare. */
.elc-maprow__map { border-color: var(--e-line); }
[data-theme='dark'] .elc-maprow__map iframe { filter: invert(92%) hue-rotate(180deg) contrast(.88) saturate(.85); }

/* ── Vehicle detail: the rate ladder ─────────────────────────────────────── */

.e-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .6rem; margin: 1.5rem 0; }
.e-rate {
    padding: .95rem 1.05rem;
    border: 1px solid var(--e-line); border-radius: var(--e-radius-lg);
    background: var(--e-surface);
}
.e-rate--best { border-color: var(--e-accent-line); background: var(--e-accent-wash); }
.e-rate__label { display: block; font-family: var(--e-mono); font-size: .54rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--e-text-faint); margin-bottom: .3rem; }
.e-rate__value { display: block; font-family: var(--e-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.028em; color: var(--e-text); font-variant-numeric: tabular-nums; }
.e-rate__note { display: block; margin-top: .2rem; font-size: .74rem; color: var(--e-accent); }

/* ── Interior responsive ─────────────────────────────────────────────────── */

@media (max-width: 48rem) {
    .elc-pagehead { padding-block: 1.75rem; }
    .elc-pagehead--image { min-height: 40vh; }
    .elc-pagehead__title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
    .elc-pagehead__lead { font-size: .95rem; }
    .elc-crumbs { font-size: .72rem; }
    .elc-crumbs ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .elc-crumbs ol::-webkit-scrollbar { display: none; }
    .elc-crumbs li { white-space: nowrap; }

    .elc-split, .elc-contactgrid, .elc-maprow, .elc-arealist { grid-template-columns: 1fr; gap: 1.5rem; }
    .elc-servicedoc__item { grid-template-columns: 1fr; gap: .75rem; }
    .elc-usecase, .elc-route, .elc-channel, .elc-step {
        padding-inline: 0 !important;
        border-inline-end: 0 !important;
    }
    .elc-plate { flex-direction: column; }
    .elc-plate > * { border-inline-end: 0; border-bottom: 1px solid var(--e-line); padding-inline-start: 0 !important; }
    .elc-plate > *:last-child { border-bottom: 0; }
    .elc-maprow__map { aspect-ratio: 1 / 1; }
    .e-rates { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FLOATING WHATSAPP — mark only on mobile
   No plate, no border, no shadow behind it. The logo is a recognisable shape
   with its own green; wrapping it in a surface only competes with it.
   ========================================================================== */

@media (max-width: 48rem) {
    .elc-wa {
        width: auto; height: auto;
        padding: 0; border: 0; border-radius: 0;
        background: none; box-shadow: none;
    }
    .elc-wa:hover { background: none; border: 0; }
    .elc-wa__mark {
        width: 58px; height: 58px;
        /* The mark carries its own lift, since there is no plate to cast one. */
        filter: drop-shadow(0 4px 12px rgba(0,0,0,.45));
    }
    .elc-wa__label { display: none; }
}

/* ==========================================================================
   INTERIOR PAGE HEAD — no photograph
   Every breadcrumb background was a Carento placeholder plate. The head is now
   always the designed black panel, so it is consistent across every page and
   never waiting on artwork that does not exist.
   ========================================================================== */

.elc-pagehead--image { min-height: 0; display: block; }
.elc-pagehead__media, .elc-pagehead__scrim { display: none; }
.elc-pagehead { padding-block: clamp(2.25rem, 4vw, 3.5rem); }

/* ==========================================================================
   INTERIOR PAGE SPACING
   The interior pages were carrying the old rhythm, so sections stacked their
   own padding on top of the head and on each other. One scale, matching the
   homepage.
   ========================================================================== */

.elc-section { padding-block: var(--e-section); }
.elc-section--tight { padding-block: var(--e-section-tight); }
.elc-section + .elc-section { padding-top: 0; }
.elc-pagehead + .elc-section,
.elc-pagehead + .e-section { padding-top: var(--e-section); }

.elc-servicedoc__item { padding-block: clamp(1.75rem, 3vw, 2.75rem); }
.elc-usecase, .elc-route, .elc-channel { padding-block: clamp(1.15rem, 2vw, 1.6rem); }
.elc-arealist { gap: clamp(1.5rem, 3vw, 2.5rem); }
.elc-maprow { gap: clamp(1.5rem, 3vw, 2.5rem); }
.elc-contactgrid { gap: clamp(1.75rem, 3.5vw, 3rem); }
.elc-cms > :first-child { margin-top: 0; }
.elc-cms h2:first-child, .elc-cms h3:first-child { margin-top: 0; }

@media (max-width: 48rem) {
    .elc-pagehead { padding-block: 1.5rem; }
    .elc-servicedoc__item { padding-block: 1.25rem; }
    .elc-usecase, .elc-route, .elc-channel { padding-block: 1rem; }
}

/* ==========================================================================
   FLEET PAGE — aligned to the homepage
   The listing uses the same card, the same filter toolbar and the same section
   rhythm as the homepage fleet section, so the two are one component seen at
   two sizes rather than two designs.
   ========================================================================== */

.elc-fleetpage .e-cars,
.elc-fleet-grid,
.e-fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
    gap: clamp(1rem, 1.8vw, 1.5rem);
}
@media (max-width: 48rem) {
    .elc-fleetpage .e-cars, .elc-fleet-grid, .e-fleet-grid { grid-template-columns: 1fr; }
}

/* The count line above the grid reads as a caption, not a heading. */
.elc-fleetpage__count {
    font-family: var(--e-mono); font-size: .68rem; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--e-text-faint);
    margin: 0 0 clamp(1rem, 2vw, 1.5rem);
}

/* ==========================================================================
   BREADCRUMB — clearance under the header
   The bar sat flush against the header, so the trail read as part of the
   navigation rather than as the start of the page.
   ========================================================================== */

.elc-crumbs { padding-block: 1.15rem .85rem; }
@media (max-width: 48rem) { .elc-crumbs { padding-block: .9rem .7rem; } }

/* The head that follows keeps its own top padding, so the two read as one
   black block with the trail inside it rather than sitting on top of it. */
.elc-crumbs + .elc-pagehead { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
