/* Desert Line Auto Glass: inner pages (service + location). Loaded after homepage.css, which holds the shared
   section components (sec, panes, why grid, steps, cost board, FAQ, closing band). This file: the page hero,
   breadcrumb, section tones, text sections, the process timeline, call card and dial plate. */

.inner main { margin-top: calc(-1 * var(--hdr)); }
.t0 { background: var(--g0); }
.t1 { background: var(--g1); }

/* ======================= PAGE HERO ======================= */
.phero {
  --strip: 120px;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: min(900px, max(700px, 100svh)); padding-top: var(--hdr); color: var(--mist);
  background: linear-gradient(180deg, #02040a 0%, #060c20 30%, #0d1a4a 58%, #1a2f6d 80%, #22377a 100%);
}
.phero .hero-sky { inset: 0 0 var(--strip) 0; }
.phero-scene {
  position: absolute; left: 0; right: 0; bottom: var(--strip); height: clamp(240px, 44vh, 440px); z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 46% at 74% 52%, rgba(255, 118, 36, .5), rgba(255, 118, 36, 0) 72%),
    radial-gradient(70% 60% at 66% 66%, rgba(255, 176, 104, .2), rgba(255, 176, 104, 0) 70%),
    linear-gradient(180deg, rgba(36, 57, 124, 0) 0%, rgba(98, 82, 140, .26) 60%, rgba(240, 132, 74, .5) 100%);
}
.crumbs { padding-top: clamp(14px, 2.4vh, 26px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.4; color: var(--mist3); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: rgba(237, 242, 251, .3); }
.crumbs a { color: var(--mist2); text-decoration: none; }
.crumbs [aria-current] { color: var(--e3); }
@media (hover: hover) { .crumbs a:hover { color: var(--mist); } }

.phero-grid {
  position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "copy media";
  align-items: center; gap: clamp(32px, 4.5vw, 76px); padding-top: clamp(16px, 3vh, 40px); padding-bottom: clamp(48px, 8vh, 96px);
}
.phero-copy { grid-area: copy; max-width: 640px; }
.phero-media { grid-area: media; }
.phero-media .pane-img { object-position: 50% 30%; }
.h1--page .h1-main {
  display: block; font-stretch: 125%; font-size: clamp(36px, 4.5vw, 66px); line-height: .98; letter-spacing: -.035em; padding-bottom: .06em;
  background: linear-gradient(180deg, #fff 0%, #e6ecfb 46%, var(--e3) 70%, var(--e1) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; animation: fadeUp 1s var(--ease) .1s forwards;
}
.h1--page .h1-rest { margin-top: .5em; }
.phero .acts { align-items: center; gap: 14px 26px; opacity: 0; animation: fadeUp .95s var(--ease) .72s forwards; }
.call-link { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--mist); text-decoration: none; font-stretch: 106%; font-weight: 640; font-size: 17px; font-variant-numeric: tabular-nums; }
.call-link .ico { width: 19px; height: 19px; color: var(--e3); }
.call-link span { background-image: linear-gradient(var(--e2), var(--e2)); background-size: 100% 1.5px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 3px; }
@media (hover: hover) { .call-link:hover span { color: var(--e4); } }
.phero .hl-strip { min-height: var(--strip); }
.hl-in--solo { grid-template-columns: minmax(0, 1fr); }
.hl--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hl--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }

/* ======================= TEXT SECTIONS ======================= */
.txt-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px clamp(36px, 6vw, 100px); align-items: start; }
.copy > p:not(.eyebrow) { color: var(--ink2); }
.copy > * + * { margin-top: 16px; }
.copy .sub { margin-top: 0; }
.copy > .h2 + * , .copy > .eyebrow + .h2 { margin-top: 0; }
.mob-copy > .sub, .cost-head > .sub, .ins-head > .sub { margin-top: 20px; }
.sub--lg { font-stretch: 103%; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; color: var(--ink); font-weight: 460; }
.copy .btn { margin-top: 30px; }
.after { margin-top: clamp(28px, 3vw, 40px); max-width: 780px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 14px; height: 8px; border-left: 2px solid var(--e1); border-bottom: 2px solid var(--e1); transform: rotate(-45deg); }
.mob-grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* ======================= PROCESS: the line fills as the steps are read ======================= */
.proc-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.proc-head { position: sticky; top: calc(var(--hdr) + 40px); }
.tl { --fill: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(22px, 2.6vw, 34px); }
.tl::before, .tl::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; }
.tl::before { background: var(--nline); }
.tl::after { background: linear-gradient(180deg, var(--e1), var(--e3)); box-shadow: 0 0 14px rgba(255, 138, 43, .55); transform: scaleY(var(--fill)); transform-origin: top; }
.tl-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; align-items: start; }
.tl-node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--nline); background: var(--n1);
  transition: border-color .5s var(--ease), box-shadow .6s var(--ease); }
.tl-node b { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--mist3); transition: color .5s var(--ease); }
.tl-step.is-lit .tl-node { border-color: var(--e2); box-shadow: 0 0 0 6px rgba(255, 138, 43, .12), 0 0 26px rgba(255, 138, 43, .35); }
.tl-step.is-lit .tl-node b { color: var(--e3); }
.tl-body { padding: 14px 0 0; }
.tl-body p { color: var(--mist2); font-size: 16.5px; line-height: 1.7; }
.tl-body p + p { margin-top: 10px; }
.tl-body b { display: block; margin-bottom: 4px; font-stretch: 108%; font-weight: 650; font-size: clamp(18px, 1.45vw, 20.5px); letter-spacing: -.01em; color: var(--mist); }
.tl-body .h3 { color: var(--mist); margin-bottom: 6px; }
.night .after p { color: var(--mist2); }

/* ======================= FAQ list (questions are H3s) ======================= */
.faq-list { border-top: 2px solid var(--ink); }
.qa summary .qa-q { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }
.callcard { display: grid; gap: 12px; margin-top: 34px; padding: 22px; border: 1px solid var(--g2); border-radius: 16px; background: var(--white); max-width: 360px; }
.callcard-tel { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-stretch: 112%; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.callcard-tel .ico { width: 22px; height: 22px; color: var(--eink); }
.callcard .btn { width: 100%; }

/* ======================= CLOSING: the dial plate ======================= */
.cta-grid--dial { align-items: center; }
.cta .h2 { text-wrap: balance; }
.cta .sub a.tel { color: var(--e3); font-weight: 650; text-decoration: underline; text-decoration-color: rgba(255, 178, 94, .5); text-underline-offset: 4px; }
.dial {
  position: relative; display: grid; justify-items: center; gap: 10px; padding: clamp(36px, 5vw, 64px) 24px; text-align: center;
  border: 1px solid var(--nline); border-radius: 24px; background: radial-gradient(80% 90% at 50% 100%, rgba(255, 122, 40, .16), rgba(255, 122, 40, 0) 70%), rgba(7, 11, 22, .55);
  overflow: hidden;
}
.dial-ring { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 138, 43, .35); animation: ring 3.6s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.dial-k { position: relative; font-stretch: 125%; font-size: 11px; font-weight: 650; letter-spacing: .24em; text-transform: uppercase; color: var(--e3); }
.dial-k--b { color: var(--mist3); letter-spacing: .18em; }
.dial-tel { position: relative; font-stretch: 118%; font-weight: 750; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-decoration: none;
  background: linear-gradient(180deg, #fff 10%, var(--e4) 55%, var(--e2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1180px) { .hl--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .phero { min-height: 0; }
  .phero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "copy"; padding-top: 18px; padding-bottom: 0; gap: 30px; }
  .phero-media { max-width: 640px; transform: none; }
  .phero-copy { max-width: 680px; }
  .phero-scene { position: relative; bottom: auto; order: 3; height: 170px; margin-top: 26px; }
  .phero .hl-strip { order: 4; }
  .phero .hero-sky { inset: 0; }
  .txt-grid, .proc-grid { grid-template-columns: minmax(0, 1fr); }
  .proc-head { position: static; }
}
@media (max-width: 860px) { .hl--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } }
@media (max-width: 760px) { .hl--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .hl--4, .hl--6 { grid-template-columns: minmax(0, 1fr); }
  .tl-step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .tl-node { width: 44px; height: 44px; }
  .tl::before, .tl::after { left: 21px; top: 22px; bottom: 22px; }
  .tl-body { padding-top: 8px; }
  .callcard { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .h1--page .h1-main, .phero .acts { opacity: 1; }
  .dial-ring { display: none; }
}

/* ======================= TEXT PAGES: compact hero, legal contents + prose ======================= */
.phero--plain { --strip: 40px; min-height: 0; }
.phero--plain .phero-scene { height: clamp(150px, 26vh, 260px); }
.phero-plain { position: relative; padding-top: clamp(28px, 6vh, 64px); padding-bottom: clamp(120px, 20vh, 210px); max-width: 980px; margin-left: 0; }
.phero-plain { margin-inline: auto; max-width: var(--max); }
.h1--plain .h1-main { font-size: clamp(34px, 4.4vw, 62px); max-width: 20ch; }
.phero-plain .lede { max-width: 70ch; }
.hl-strip--line { min-height: 40px; padding: 0; }
.legal-grid { display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + 32px); }
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: tc; border-top: 1px solid var(--line); }
.toc-list li { counter-increment: tc; }
.toc-list a { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line2); color: var(--ink2); text-decoration: none; font-size: 15px; line-height: 1.4; transition: color .2s ease, padding-left .35s var(--ease); }
.toc-list a::before { content: counter(tc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--eink); }
@media (hover: hover) { .toc-list a:hover { color: var(--ink); padding-left: 6px; } }
.prose { max-width: 760px; }
.prose-sec { scroll-margin-top: calc(var(--hdr) + 24px); }
.prose-sec + .prose-sec { margin-top: clamp(40px, 5vw, 60px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }
.h2--prose { font-size: clamp(26px, 2.6vw, 36px); max-width: none; margin-bottom: 18px; }
.prose p, .prose li { color: var(--ink2); }
.prose > section > * + * { margin-top: 14px; }
.prose .h3 { margin-top: 26px; }
.prose a { color: var(--ink); text-decoration-color: var(--e2); text-underline-offset: 3px; }
@media (max-width: 980px) { .legal-grid { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

/* ======================= HTML SITEMAP ======================= */
.smap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px) clamp(32px, 6vw, 96px); }
.smap-h { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.smap-n { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--eink); }
.smap-list { list-style: none; margin: 14px 0 0; padding: 0; }
.smap-list--2 { columns: 2; column-gap: 28px; }
.smap-list li { break-inside: avoid; }
.smap-list a { display: block; padding: 7px 0; color: var(--ink2); text-decoration: none; font-size: 15.5px; }
@media (hover: hover) { .smap-list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--e2); text-underline-offset: 4px; } }
@media (max-width: 760px) { .smap { grid-template-columns: minmax(0, 1fr); } }

/* a hero without a checklist strip ends on the horizon line itself */
.phero--nostrip { --strip: 40px; }
