/* ==========================================================================
   SIDHU MOTORS INC. — inner-page layer
   Sits on top of style.css. Reuses the same tokens + components
   (.eq-card, .process__steps, .faq__*, .cta, .trust, .resources, .section-label)
   and adds the few pieces inner pages need: page hero, breadcrumb, prose,
   split layout, comparison table, callout, checklist.
   ========================================================================== */

/* ---------- Page hero (compact, no canvas) ---------- */
.page-hero {
  position: relative;
  padding: clamp(140px, 22vh, 230px) 0 clamp(56px, 9vh, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 120% at 85% 0%, var(--hero-inner) 0%, var(--bg) 55%);
}
.page-hero__crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(22px, 3.5vh, 34px);
}
.page-hero__crumb a { color: var(--muted); transition: color 0.25s ease; }
.page-hero__crumb a:hover { color: var(--red); }
.page-hero__crumb .sep { color: var(--red); }
.page-hero__crumb [aria-current] { color: var(--text); }
.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: clamp(14px, 2vh, 22px);
}
.page-hero__eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); margin: 0 10px; vertical-align: middle;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 124px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 400;
  max-width: 16ch;
}
.page-hero__title em { color: var(--red); }
.page-hero__sub {
  margin-top: clamp(20px, 3vh, 30px);
  font-size: clamp(15px, 1.45vw, 19px);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}
.page-hero__cta {
  margin-top: clamp(26px, 4vh, 40px);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.page-hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 54px);
  margin-top: clamp(40px, 6vh, 64px);
  padding-top: clamp(26px, 4vh, 38px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.page-hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

/* ---------- Cinematic image hero (.page-hero--shot) ----------
   Full-bleed photo behind the headline. Content is bottom-aligned over a
   guaranteed-dark lower zone, while the top fades to the page bg so the
   transparent nav stays legible in BOTH themes. Reuses .page-hero__* inner
   classes so the JS intro (char cascade, etc.) still fires. */
.page-hero--shot {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(120px, 18vh, 200px) 0 clamp(40px, 7vh, 76px);
  background: var(--bg);
}
.page-hero--shot .container { position: relative; z-index: 2; width: 100%; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  filter: grayscale(0.55) contrast(1.08) brightness(0.82);
}
.page-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(78% 58% at 12% 100%, rgba(216,31,42,0.32) 0%, rgba(216,31,42,0) 60%),
    linear-gradient(180deg,
      rgba(var(--bg-rgb),0.94) 0%, rgba(var(--bg-rgb),0.30) 16%,
      rgba(10,10,11,0.22) 42%, rgba(10,10,11,0.82) 100%);
}
.page-hero--shot .page-hero__title { color: var(--white); max-width: 17ch; }
.page-hero--shot .page-hero__sub { color: rgba(241,242,244,0.86); }
.page-hero--shot .page-hero__eyebrow { color: rgba(241,242,244,0.82); }
.page-hero--shot .page-hero__crumb,
.page-hero--shot .page-hero__crumb a { color: rgba(241,242,244,0.7); }
.page-hero--shot .page-hero__crumb [aria-current] { color: var(--white); }
.page-hero--shot .page-hero__stats {
  color: rgba(241,242,244,0.72);
  border-top-color: rgba(241,242,244,0.22);
}
.page-hero--shot .page-hero__stats strong { color: var(--white); }
.page-hero__scroll {
  position: absolute; right: var(--pad); top: 46%; z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.22em;
  color: rgba(241,242,244,0.7);
  display: flex; align-items: center; gap: 14px;
}
.page-hero__scroll::after {
  content: ''; width: 1px; height: 54px; background: var(--red);
  animation: heroScroll 2s ease-in-out infinite; transform-origin: top;
}
@keyframes heroScroll {
  0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 760px) { .page-hero__scroll { display: none; } }

/* ---------- Image-background hero with a right-column form (service pages) ---------- */
.page-hero--form {
  position: relative;
  overflow: hidden;
  padding: clamp(118px, 16vh, 176px) 0 clamp(48px, 8vh, 88px);
  background: var(--bg);
}
/* form heroes darken more in the content zone (content is centred, not bottom-aligned) */
.page-hero--form .page-hero__scrim {
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb),0.92) 0%, rgba(10,10,11,0.42) 26%, rgba(10,10,11,0.6) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.6) 0%, rgba(10,10,11,0.12) 58%);
}
.page-hero__split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.page-hero__col-form { position: relative; }
.page-hero--form .page-hero__title { color: var(--white); max-width: 15ch; font-size: clamp(34px, 4.6vw, 76px); }
.page-hero--form .page-hero__sub { color: rgba(241,242,244,0.86); }
.page-hero--form .page-hero__eyebrow { color: rgba(241,242,244,0.82); }
.page-hero--form .page-hero__crumb,
.page-hero--form .page-hero__crumb a { color: rgba(241,242,244,0.72); }
.page-hero--form .page-hero__crumb [aria-current] { color: var(--white); }
.page-hero--form .page-hero__stats {
  color: rgba(241,242,244,0.72);
  border-top-color: rgba(241,242,244,0.22);
}
.page-hero--form .page-hero__stats strong { color: var(--white); }
@media (max-width: 940px) {
  .page-hero__split { grid-template-columns: 1fr; gap: clamp(32px, 5vh, 44px); }
  .page-hero--form .page-hero__title { max-width: 18ch; }
}

/* ---------- Generic section rhythm ---------- */
.section { padding: clamp(80px, 13vh, 160px) 0; }
.section--surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tight { padding: clamp(60px, 9vh, 110px) 0; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 92px);
  line-height: 0.96;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.section__title em { color: var(--red); }
.section__title--mb0 { margin-bottom: 0; }

/* ---------- Lede (lead paragraph) ---------- */
.lede {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.012em;
  max-width: 1120px;
}
.lede em { color: var(--red); }

/* ---------- Split: main content + sticky aside ---------- */
.split {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}
.aside-card {
  border: 1px solid var(--line);
  padding: clamp(24px, 2.4vw, 36px);
  position: sticky;
  top: 100px;
  background: var(--bg-surface);
}
.aside-card h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 18px;
}
.aside-card dl { display: grid; grid-template-columns: 1fr; gap: 0; }
.aside-card .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--line);
  font-size: 14px;
}
.aside-card .row:first-child { border-top: 0; }
.aside-card dt { color: var(--muted); }
.aside-card dd { color: var(--text); text-align: right; font-weight: 500; }
.aside-card .btn { margin-top: 22px; width: 100%; justify-content: center; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

/* ---------- Prose (rich body copy) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 22px; }
.prose p { font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.75; color: var(--text); }
.prose p.muted { color: var(--muted); }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: 0.02em;
  margin-top: 44px;
}
.prose h4 {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin-top: 36px;
}
.prose strong { font-weight: 600; }
.prose a { color: var(--text); border-bottom: 1px solid var(--red); transition: color 0.2s ease; }
.prose a:hover { color: var(--red); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul li, .prose ol li {
  position: relative; padding-left: 26px; margin-top: 12px;
  font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; color: var(--text);
}
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; background: var(--red);
}
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: 12px; color: var(--red);
}

/* ---------- Checklist (icon list) ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li {
  position: relative; padding-left: 34px;
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  font-family: var(--font-mono); font-weight: 600; color: var(--red);
}
.checklist--no li::before { content: '✕'; color: var(--muted); }

/* ---------- Comparison / spec table ---------- */
.ctable-wrap { overflow-x: auto; }
.ctable { width: 100%; border-collapse: collapse; min-width: 520px; }
.ctable caption {
  text-align: left; font-family: var(--font-mono); font-size: 14px;
  letter-spacing: 0.14em; color: var(--muted); padding-bottom: 16px;
}
.ctable th, .ctable td {
  text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; vertical-align: top;
}
.ctable thead th {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
.ctable tbody th {
  font-weight: 600; color: var(--text); width: 30%;
}
.ctable td { color: var(--muted); }
.ctable tr:last-child th, .ctable tr:last-child td { border-bottom: 0; }

/* ---------- Callout / pull-quote ---------- */
.callout {
  border-left: 3px solid var(--red);
  background: var(--bg-surface);
  padding: clamp(28px, 3vw, 44px);
  max-width: 880px;
}
.callout__q {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(20px, 2.3vw, 30px); line-height: 1.4; letter-spacing: -0.01em;
}
.callout__q em { color: var(--red); }
.callout__cite {
  display: block; margin-top: 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted);
}

/* ---------- Related pages (reuses .resources__grid feel) ---------- */
.related__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px);
}
.link-card {
  border: 1px solid var(--line); padding: clamp(24px, 2.4vw, 34px);
  display: flex; flex-direction: column; min-height: 180px;
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.link-card:hover { border-color: var(--red); transform: translateY(-6px); }
.link-card__tag {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.16em; color: var(--red);
}
.link-card__name {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em;
  font-size: clamp(22px, 2vw, 30px); margin: 14px 0 auto; text-transform: uppercase;
}
.link-card__meta { display: flex; justify-content: flex-end; margin-top: 24px; }
.link-card__arrow { font-size: 20px; color: var(--muted); transition: transform 0.3s ease, color 0.3s ease; }
.link-card:hover .link-card__arrow { transform: translate(5px, -5px); color: var(--red); }
@media (max-width: 880px) { .related__grid { grid-template-columns: 1fr; } }

/* ---------- Two-up media + copy ---------- */
.media-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.media-split__img {
  height: clamp(280px, 44vh, 520px); object-fit: cover;
  filter: grayscale(0.25) contrast(1.05); width: 100%;
}
.media-split--rev .media-split__copy { order: 2; }
@media (max-width: 820px) {
  .media-split { grid-template-columns: 1fr; }
  .media-split--rev .media-split__copy { order: 0; }
}

/* ---------- Inline note ---------- */
.note {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em;
  color: var(--muted); opacity: 0.8; margin-top: 22px;
}

/* ---------- Contact / quote two-column ---------- */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start;
}
.contact-list { list-style: none; display: grid; gap: 0; }
.contact-list li { border-top: 1px solid var(--line); padding: 20px 0; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em;
  color: var(--red); display: block; margin-bottom: 8px;
}
.contact-list .v { font-size: clamp(17px, 1.6vw, 22px); }
.contact-list .v a { border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.contact-list .v a:hover { border-bottom-color: var(--red); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Full-bleed image banner (inner pages) ---------- */
.page-banner {
  position: relative;
  height: clamp(320px, 52vh, 580px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-banner__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
  filter: grayscale(0.25) contrast(1.06) brightness(0.84);
}
.page-banner__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,10,11,0.82) 0%, rgba(10,10,11,0.04) 56%),
    linear-gradient(90deg, rgba(10,10,11,0.48) 0%, rgba(10,10,11,0) 55%);
}
.page-banner__caption {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 4.5vh, 50px);
  display: flex; flex-direction: column; gap: 12px; color: var(--white);
}
.page-banner__label {
  font-family: var(--font-mono); font-size: clamp(11px, 1.1vw, 13px); letter-spacing: 0.2em;
}
.page-banner__big {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.5vw, 124px); line-height: 0.9; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(241,242,244,0.62);
}

/* ---------- Image gallery (captioned grid) ---------- */
.img-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.5vw, 20px);
}
.img-figure { position: relative; overflow: hidden; margin: 0; }
.img-figure img {
  display: block; width: 100%; height: clamp(210px, 26vw, 320px); object-fit: cover;
  filter: grayscale(0.32) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1), filter 0.4s ease;
}
.img-figure:hover img { transform: scale(1.06); filter: grayscale(0) contrast(1.08); }
.img-figure::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(10,10,11,0.66) 0%, rgba(10,10,11,0) 50%);
}
.img-figure figcaption {
  position: absolute; left: 15px; bottom: 13px; z-index: 1;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--white);
}
@media (max-width: 900px) { .img-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .img-grid { grid-template-columns: 1fr; } }

/* ---------- Photo variant of the related link-card ---------- */
.link-card--photo { position: relative; overflow: hidden; isolation: isolate; }
.link-card--photo::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: var(--card-img); background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.1) brightness(0.45);
  opacity: 0; transform: scale(1.08);
  transition: opacity 0.5s ease, transform 0.7s ease;
}
.link-card--photo:hover::before { opacity: 1; transform: scale(1); }
.link-card--photo:hover .link-card__name,
.link-card--photo:hover .link-card__tag,
.link-card--photo:hover .link-card__arrow { color: var(--white); }

/* form on a non-red surface (Contact / Quote pages) */
.form-panel {
  background: var(--red); color: var(--white);
  padding: clamp(28px, 3.5vw, 52px);
}
.form-panel .qf-field label { color: rgba(241,242,244,0.8); }
.form-panel .qf-field input,
.form-panel .qf-field select,
.form-panel .qf-field textarea {
  color: var(--white); border-bottom-color: rgba(241,242,244,0.45);
}
.form-panel .qf-field input::placeholder,
.form-panel .qf-field textarea::placeholder { color: rgba(241,242,244,0.6); }
.form-panel .qf-field select:invalid { color: rgba(241,242,244,0.7); }
.form-panel .qf-field select option { color: #111; }
.form-panel .qf-field input:focus,
.form-panel .qf-field select:focus,
.form-panel .qf-field textarea:focus { border-bottom-color: var(--white); }
.form-panel .quote-form__submit { background: var(--black); }
.form-panel .quote-form__submit::before { background: var(--white); }
.form-panel .quote-form__note { color: rgba(241,242,244,0.8); }
.form-panel .quote-form__success-title { color: var(--white); }
.form-panel .quote-form__success-link { color: var(--white); border-bottom-color: var(--white); }
