/* Texas Fuego Trailer Rentals: inner pages (Services, Gallery, Service areas, town pages, 404). Loaded after base.css.
   The page template (docs/partials/page-template.html) uses .page-hero and .crumbs from here. Page builders add their
   page-specific rules below the "page sections" line. */

/* inner pages have a sticky header: anchors and focused fields land below it */
html { scroll-padding-top: calc(var(--head-h) + 16px); }

/* ---------- page hero: a still from the ride behind the H1 ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(420px, 62vh, 620px);
  display: flex; align-items: flex-end;
  padding: clamp(28px, 5vw, 48px) 0 clamp(40px, 6vw, 72px);
  background: var(--ink);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.page-hero::before { /* darken for text: strong on the left/bottom where the words sit */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(6, 6, 8, 0.97) 0%, rgba(6, 6, 8, 0.74) 34%, rgba(6, 6, 8, 0.12) 68%, rgba(6, 6, 8, 0.4) 100%),
    linear-gradient(90deg, rgba(6, 6, 8, 0.8) 0%, rgba(6, 6, 8, 0.28) 52%, rgba(6, 6, 8, 0) 75%);
}
/* the night pickup scene (Gallery, 404) is the darkest still: brighter, so the house, porch lights and trailer read
   (the scrim above keeps the words AA) */
.page-hero-bg img[src*="pickup-"] { filter: brightness(1.35) saturate(1.08); }
.page-hero::after { /* hot seam at the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--fire) 25%, var(--spark) 50%, var(--fire) 75%, transparent);
  box-shadow: 0 0 24px 4px rgba(225, 20, 28, 0.55);
}
.page-hero-in { position: relative; z-index: 3; }
.page-hero-in > * + * { margin-top: 16px; }
.page-hero h1 {
  font-weight: 900; text-transform: uppercase; color: var(--chrome);
  font-size: clamp(2.6rem, 8.5vw, 5.4rem); max-width: 16ch; overflow-wrap: break-word;
  text-shadow: 0 0 30px rgba(225, 20, 28, 0.45), 0 2px 0 #000;
}
.page-hero .lead { color: #e2e3e7; text-shadow: 0 1px 8px #000; }
.page-hero .kicker { text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, 0.85); } /* stays AA over the floodlights */
.page-hero .btns { margin-top: 24px; }
@media (max-width: 700px) {
  .page-hero { min-height: clamp(460px, 78vh, 640px); }
  .page-hero-bg img { object-position: 50% 40%; }
}
/* phones on their side: the whole H1 (town name included) fits above the bottom bar on the first screen, with a
   tighter rhythm and a wider lead (fewer lines) */
@media (max-height: 500px) and (orientation: landscape) {
  .page-hero { min-height: 0; padding-top: 6px; padding-bottom: 28px; }
  .page-hero h1 { font-size: clamp(1.9rem, 10.5vh, 2.8rem); max-width: 24ch; }
  .page-hero .lead { max-width: 64ch; }
  .page-hero-in > * + * { margin-top: 6px; }
  .page-hero .btns { margin-top: 10px; }
}
/* ... and where the bottom bar is fixed (touch), the hero's own Call + Request pair (`.btns-dup`, the same two actions
   as the bar) is left out: otherwise it ends half under the bar on short heroes (Gallery at 740x360) or peeks over it
   (Services at 932x430). The 404's "Back to the home page" pair stays. */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .page-hero .btns-dup { display: none; }
  /* the fact pills only peeked over the bar there, sliced through; the price plate below repeats them */
  .page-hero .chips { display: none; }
}

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 0.95rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--steel); }
.crumbs li + li::before { content: "/"; color: var(--flare); font-weight: 700; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--chrome); text-decoration: underline; text-decoration-color: rgba(255, 42, 42, 0.7); text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current="page"] { color: var(--steel); }

/* ---------- two-column content: text + aside (stacks on phones) ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split.flip > :first-child { order: 2; }
}

/* ======================= page sections (page builders add below) ======================= */

/* ---------- hero extras: fact chips under the lead ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; min-height: 34px; padding: 5px 13px; border-radius: 999px;
  background: rgba(6, 6, 8, 0.62); border: 1px solid rgba(244, 244, 246, 0.22);
  color: var(--chrome); font-weight: 650; font-size: 0.95rem; line-height: 1.25;
}
.chips li.hot { background: rgba(225, 20, 28, 0.24); border-color: rgba(255, 42, 42, 0.75); }
.chips li strong { color: #fff; margin-left: 0.3em; }
.page-hero .chips { margin-top: 20px; }

/* ---------- reflective trailer tape (red/white, like the conspicuity tape on the trailer) ---------- */
.tape {
  height: 7px; border-radius: 2px; border: 0; margin: 0;
  background: repeating-linear-gradient(90deg, var(--fire) 0 46px, #e9e9ec 46px 74px);
  box-shadow: 0 0 16px rgba(225, 20, 28, 0.45);
}

/* ---------- section jump links (Services) ---------- */
.jump { border-bottom: 1px solid var(--line); background: var(--night); }
.jump ul { list-style: none; margin: 0; padding: 6px 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  font-family: var(--head); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1rem;
  color: var(--steel); text-decoration: none;
}
.jump a:hover { color: #fff; background: rgba(225, 20, 28, 0.14); }
@media (max-width: 899.98px) { /* phones: one row that scrolls sideways inside itself */
  .jump ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .jump ul::-webkit-scrollbar { display: none; }
  .jump li { flex: none; }
  .jump li:last-child { padding-right: 32px; }
}

/* ---------- price plate (Services: the rate, the opening deal, a few totals) ---------- */
.plate {
  position: relative; overflow: hidden; border-radius: 20px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(225, 20, 28, 0.32), transparent 60%),
    linear-gradient(160deg, #1f1b22 0%, #0f0d12 60%, #140406 100%);
  border: 1px solid var(--line-hot);
  box-shadow: 0 50px 90px -50px rgba(225, 20, 28, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.6) inset;
}
.plate .tape { border-radius: 0; }
.plate-in { display: grid; gap: 28px; padding: clamp(22px, 4vw, 44px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .plate-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } }
.plate-rate { display: grid; gap: 6px; }
.plate-label { font-family: var(--head); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--flare); }
.plate-num {
  font-family: var(--head); font-weight: 900; line-height: 0.82; letter-spacing: -0.01em;
  font-size: clamp(5.5rem, 22vw, 10rem);
  background: linear-gradient(180deg, #ffffff 0%, #e9eaee 38%, #9aa0aa 54%, #f4f4f6 66%, #c9ccd2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(225, 20, 28, 0.35));
}
.plate-num sup { font-size: 0.42em; vertical-align: 0.9em; margin-right: 0.04em; }
.plate-num small { font-size: 0.3em; letter-spacing: 0.06em; margin-left: 0.08em; }
.stamp {
  display: inline-grid; gap: 2px; justify-items: start; padding: 12px 18px; border-radius: 12px;
  border: 2px solid var(--flare); background: rgba(225, 20, 28, 0.16); transform: rotate(-2deg);
  box-shadow: 0 0 30px -6px rgba(255, 42, 42, 0.6);
}
.stamp b { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: #ffd9d2; font-size: 0.95rem; }
.stamp span { font-family: var(--head); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3rem); line-height: 0.95; color: #fff; text-transform: uppercase; }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates caption { text-align: left; color: var(--steel); font-size: 0.95rem; padding-bottom: 8px; }
.rates th, .rates td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.rates thead th { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--steel); font-size: 0.98rem; }
.rates tbody th { font-weight: 700; color: var(--chrome); }
.rates td { color: var(--chrome); font-weight: 650; }
.rates td.deal { color: #ffd9d2; }
.plate-note { color: var(--steel); }
.plate-note strong { color: var(--chrome); }

/* ---------- steps laid out like a road on wide screens ---------- */
@media (min-width: 1100px) {
  .steps.road { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; padding-top: 6px; }
  .steps.road::before { /* dashed lane line behind the numerals */
    content: ""; position: absolute; left: 0; right: 0; top: 32px; height: 3px; z-index: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 179, 71, 0.55) 0 26px, transparent 26px 46px);
  }
  .steps.road > li { grid-template-columns: minmax(0, 1fr); position: relative; z-index: 1; }
  .steps.road > li::before { grid-row: auto; justify-self: start; background: var(--ink); padding-right: 12px; }
}

/* ---------- rules: three signs (OK / not allowed / load it right) ---------- */
.rule { padding-top: 0; }
.rule-h {
  display: flex; align-items: center; gap: 12px; margin: 0 calc(-1 * clamp(20px, 3vw, 30px)) 18px;
  padding: 14px clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--line);
  font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; letter-spacing: 0.04em;
}
.rule-h svg { width: 30px; height: 30px; flex: none; }
.rule-ok .rule-h { background: linear-gradient(90deg, rgba(244, 244, 246, 0.1), transparent); color: var(--chrome); }
.rule-no .rule-h { background: linear-gradient(90deg, rgba(225, 20, 28, 0.32), transparent); color: #fff; }
.rule-load .rule-h { background: linear-gradient(90deg, rgba(255, 179, 71, 0.18), transparent); color: #ffe2b8; }
.rule-ok .rule-h svg { fill: var(--chrome); } .rule-no .rule-h svg { fill: var(--flare); } .rule-load .rule-h svg { fill: var(--spark); }
.callout {
  display: grid; gap: 14px; align-items: center; margin-top: clamp(18px, 3vw, 28px);
  padding: clamp(18px, 3vw, 26px); border-radius: var(--radius);
  border: 1px dashed rgba(255, 179, 71, 0.55); background: rgba(255, 179, 71, 0.06);
}
.callout p { color: var(--steel); }
.callout strong { color: var(--chrome); }
@media (min-width: 860px) { .callout { grid-template-columns: minmax(0, 1fr) auto; } }

/* small "need-to-know" lines inside cards */
.card .kv { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.card .kv p { color: var(--steel); }
.card .kv strong { color: var(--chrome); }
.big-price { font-family: var(--head); font-weight: 900; font-size: clamp(3.2rem, 9vw, 4.4rem); line-height: 0.9; color: var(--chrome); text-transform: uppercase; }
.big-price small { font-size: 0.42em; color: var(--steel); letter-spacing: 0.06em; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--chrome); text-decoration: underline; text-decoration-color: var(--flare); text-underline-offset: 4px; }
.more:hover { color: #fff; }
.more svg { width: 18px; height: 18px; fill: var(--flare); }

/* ---------- pickup block: big address ---------- */
.addr { font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 0.95; color: var(--chrome); }
.addr span { display: block; color: var(--flare); font-size: 0.55em; letter-spacing: 0.08em; margin-top: 6px; }

/* (the area map's styles live in base.css: home uses it too) */

/* ---------- distance gauge (town pages) ---------- */
.dist { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; }
.dist-num { font-family: var(--head); font-weight: 900; line-height: 0.8; font-size: clamp(6rem, 20vw, 9.5rem); color: var(--chrome); text-shadow: 0 0 40px rgba(225, 20, 28, 0.55), 0 4px 0 #000; }
.dist-num small { font-size: 0.32em; color: var(--flare); letter-spacing: 0.06em; margin-left: 0.06em; text-transform: uppercase; }
.dist-word { font-size: clamp(4rem, 13vw, 6.5rem); text-transform: uppercase; }
.dist-side { display: grid; gap: 2px; padding-bottom: 6px; }
.dist-side b { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--flare); }
.dist-side span { color: var(--steel); }
.roads { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: rgba(244, 244, 246, 0.04); border: 1px solid var(--line); }
.roads svg { width: 30px; height: 30px; flex: none; fill: var(--spark); margin-top: 2px; }
.roads p { color: var(--steel); }
.roads strong { color: var(--chrome); }

/* drawing frame (a ride still used as an illustration) */
.drawing { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--coal); }
.drawing img { width: 100%; height: auto; max-height: min(75vh, 560px); object-fit: cover; object-position: 50% 60%; }
.drawing figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(0deg, rgba(6, 6, 8, 0.92), transparent);
  color: var(--steel); font-size: 0.92rem;
}

/* ---------- town link cards (Areas page + "nearby towns") ---------- */
.town-card {
  display: grid; gap: 8px; text-decoration: none; color: inherit; min-height: 44px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.town-card:hover { transform: translateY(-3px); border-color: var(--line-hot); box-shadow: 0 0 0 1px rgba(225, 20, 28, 0.25), 0 30px 60px -36px rgba(225, 20, 28, 0.8); }
.town-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.town-mi { flex: none; font-family: var(--head); font-weight: 900; font-size: 1.6rem; color: var(--flare); line-height: 1; }
.town-mi small { font-size: 0.6em; color: var(--steel); letter-spacing: 0.08em; }
.town-card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--chrome); }
.town-card .go svg { width: 18px; height: 18px; fill: var(--flare); transition: transform 0.2s ease; }
.town-card:hover .go svg { transform: translateX(4px); }
.town-card.is-home { border-color: var(--line-hot); }
/* Areas page: the Haltom City (pickup) card runs full width, the other 9 fill a 3 x 3 grid */
@media (min-width: 680px) { .town-grid .is-home { grid-column: 1 / -1; } }
/* Areas page: the map gets the wider column */
@media (min-width: 900px) { .split.split-map { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; } }

/* ---------- gallery ---------- */
.gal { display: grid; gap: clamp(12px, 2vw, 20px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; } }
.gal > * { min-width: 0; }
.gal .ph-photo { aspect-ratio: auto; align-self: stretch; min-height: 230px; } /* the grid row sets the height */
@media (max-width: 639.98px) { .gal .ph-photo { aspect-ratio: 16 / 9; min-height: 0; } }
.gal-feature { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-hot); background: #000; box-shadow: 0 40px 80px -50px rgba(225, 20, 28, 0.8); }
.gal-feature img { width: 100%; height: auto; }
.gal-feature figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent); color: var(--chrome); font-weight: 600; }
@media (min-width: 640px) { .gal-feature { grid-column: span 2; } }


/* sideways reel of the ride drawings (scrolls inside itself, never the page) */
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 0 18px;
  scrollbar-color: var(--fire) var(--coal);
}
@media (min-width: 760px) { .reel { grid-auto-columns: minmax(300px, 44%); } }
@media (min-width: 1000px) { .reel { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }
.reel:focus-visible { outline-offset: 6px; }
.reel figure { margin: 0; scroll-snap-align: start; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--coal); }
.reel img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.reel figcaption { padding: 12px 14px 14px; display: grid; gap: 2px; }
.reel figcaption b { font-family: var(--head); font-weight: 900; font-size: 1.35rem; text-transform: uppercase; color: var(--chrome); }
.reel figcaption span { color: var(--steel); font-size: 0.95rem; }
.reel-n { color: var(--flare); margin-right: 6px; }

/* ---------- request form section on inner pages ---------- */
.req-sec { background: radial-gradient(70% 50% at 50% 0%, rgba(122, 10, 14, 0.28), transparent 70%), var(--night); }
.req-sec .smoke { opacity: 0.8; }

/* ---------- 404 ---------- */
.nf .page-hero { min-height: calc(100vh - var(--head-h) - var(--bar-h)); min-height: calc(100svh - var(--head-h) - var(--bar-h)); align-items: center; }
.nf-code {
  position: absolute; right: -0.04em; top: 50%; transform: translateY(-50%); z-index: -1; pointer-events: none;
  font-family: var(--head); font-weight: 900; line-height: 0.8; font-size: clamp(10rem, 42vw, 34rem);
  color: transparent; -webkit-text-stroke: 2px rgba(255, 42, 42, 0.35);
}
.nf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nf-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--chrome); font-weight: 700; text-decoration: underline; text-decoration-color: var(--flare); text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .town-card, .town-card .go svg { transition: none; }
  .town-card:hover { transform: none; }
}
@media (min-width: 1100px) { .steps.road > li { align-content: start; } }
