/* ============================================================
   Atlas Parking Lot Solutions — service landing pages.
   Extends the Glass design system (glass.css). Every color comes
   from the glass.css theme tokens so dark and light both work.
   Components: breadcrumbs, hero photo card, trust row, tabs, asphalt
   cross-section, self-check, bar chart, haul builder, material swatches,
   coverage calculator, E-E-A-T panels, checklists.
   ============================================================ */

/* ---------- breadcrumbs + hero ---------- */
.gl-crumbs{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:12px; color:var(--content-faint); margin:0 0 10px; padding:0; list-style:none; }
.gl-crumbs li{ display:inline-flex; align-items:center; gap:6px; }
.gl-crumbs li+li::before{ content:"/"; color:var(--content-faint); }
.gl-crumbs a{ color:var(--content-muted); text-decoration:none; }
.gl-crumbs a:hover{ color:var(--accent); }
.gl-crumbs [aria-current]{ color:var(--content); }

.gl-hero{ padding:40px 0 0; position:relative; }
.gl-hero h1{
  font-size:clamp(34px,4.2vw,54px); line-height:1.07; font-weight:800; letter-spacing:-.02em;
  margin:14px 0 16px; color:var(--content); text-shadow:0 2px 22px rgba(0,0,0,.35);
}
[data-theme="light"] .gl-hero h1{ text-shadow:0 1px 14px rgba(255,255,255,.55); }
.gl-hero .g-sub{ font-size:15.5px; line-height:1.6; color:var(--content-muted); margin:0 0 22px; max-width:56ch; }
.gl-trust-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.gl-trust-row .g-chip-badge{ text-decoration:none; }
.gl-trust-row a.g-chip-badge:hover{ background:var(--accent); color:#fff; border-color:var(--accent); }

.gl-hero-card{
  margin:0; border-radius:var(--r-lg); overflow:hidden; position:relative;
  border:1px solid var(--stroke-strong); background:var(--glass-overlay); box-shadow:var(--shadow);
}
.gl-hero-card img{ display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.gl-hero-card figcaption{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 14px; font-size:12px; color:var(--content-muted);
}
.gl-hero-card figcaption strong{ color:var(--content); font-weight:600; }
.gl-tag{
  font-size:10.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--accent);
  border:1px solid var(--accent-stroke); background:var(--accent-subtle); padding:4px 9px; border-radius:var(--r-full); white-space:nowrap;
}
.gl-hero-card .gl-tag{ position:absolute; top:12px; left:12px; backdrop-filter:blur(8px); }

.gl-metrics{
  display:grid; grid-template-columns:repeat(4,1fr); margin-top:40px;
  border:1px solid var(--stroke); border-radius:var(--r-lg); background:var(--glass-panel); overflow:hidden;
  backdrop-filter:blur(15px);
}
.gl-metric{ padding:18px 22px 20px; border-left:1px solid var(--stroke); }
.gl-metric:first-child{ border-left:0; }
.gl-metric .l{ font-size:11.5px; color:var(--content-muted); margin-bottom:5px; display:block; }
.gl-metric .v{ font-size:26px; font-weight:700; letter-spacing:-.01em; color:var(--content); line-height:1.05; display:block; }
.gl-metric .s{ font-size:11px; color:var(--content-faint); margin-top:4px; display:block; }

/* ---------- section headers (Figma Section Header) ---------- */
.gl-head{ margin-bottom:28px; max-width:760px; }
.gl-head .g-lede{ max-width:68ch; font-size:14px; }
.gl-word{
  display:inline-block; opacity:0; filter:blur(8px); transform:translateY(6px);
  transition:opacity .5s ease, filter .5s ease, transform .5s ease;
}
.gl-reveal-title.in .gl-word{ opacity:1; filter:none; transform:none; }
.gl-fade{ opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease; }
.gl-fade.in{ opacity:1; transform:none; }
.gl-band-soft{ background:var(--selection-subtle); border-top:1px solid var(--stroke); border-bottom:1px solid var(--stroke); }

/* ---------- glass card primitives ---------- */
.gl-card{
  background:var(--glass-panel); border:1px solid var(--stroke); border-radius:var(--r-lg);
  box-shadow:var(--shadow); backdrop-filter:blur(15px); padding:22px;
}
.gl-card h3{ font-size:16px; font-weight:600; margin:0 0 8px; color:var(--content); }
.gl-card p{ font-size:13px; line-height:1.65; color:var(--content-muted); margin:0 0 10px; }
.gl-card p:last-child{ margin-bottom:0; }
.gl-grid-2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.gl-grid-3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.gl-grid-4{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.gl-split{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:24px; align-items:start; }
.gl-prose p{ font-size:14px; line-height:1.75; color:var(--content-muted); margin:0 0 14px; max-width:66ch; }
.gl-prose strong{ color:var(--content); }
.gl-prose a, .gl-link{ color:var(--accent); font-weight:600; text-decoration:none; }
.gl-prose a:hover, .gl-link:hover{ text-decoration:underline; }
.gl-ic{
  width:34px; height:34px; border-radius:9px; background:var(--accent-subtle); color:var(--accent);
  display:inline-flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.gl-ic svg{ width:18px; height:18px; }
a.g-svc{ text-decoration:none; color:inherit; transition:transform .18s ease, border-color .18s ease; }
a.g-svc:hover{ transform:translateY(-3px); border-color:var(--stroke-strong); }
a.g-svc .more{ margin-top:auto; padding-top:6px; font-size:12.5px; font-weight:600; color:var(--accent); }

/* ---------- tabs ---------- */
.gl-tablist{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px; }
.gl-tab{
  appearance:none; cursor:pointer; padding:9px 14px; border-radius:var(--r-full);
  background:var(--selection-subtle); border:1px solid var(--stroke); color:var(--content-muted);
  font-size:12.5px; font-weight:500; display:inline-flex; align-items:center; gap:8px;
}
.gl-tab:hover{ border-color:var(--stroke-strong); color:var(--content); }
.gl-tab[aria-selected="true"]{ background:var(--accent-subtle); border-color:var(--accent-stroke); color:var(--accent); font-weight:600; }
.gl-tab .n{
  font-family:var(--font-mono); font-size:10.5px; width:20px; height:20px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center; background:var(--selection); color:var(--content);
}
.gl-tab:focus-visible, .gl-opt:focus-within, .g-btn:focus-visible, .gl-choice:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.gl-tabpanel h3{ font-size:20px; margin:0 0 8px; color:var(--content); letter-spacing:-.01em; }
.gl-tabpanel p{ font-size:13.5px; line-height:1.7; color:var(--content-muted); margin:0 0 12px; }
.gl-need{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:12px; color:var(--content-muted); margin-top:14px; }
.gl-need b{ color:var(--content); font-weight:600; }

/* ---------- asphalt cross-section ---------- */
.gl-figure{ background:var(--glass-panel-solid); border:1px solid var(--stroke); border-radius:var(--r-md); overflow:hidden; }
[data-theme="light"] .gl-figure{ background:#fff; }
.gl-figure svg{ display:block; width:100%; height:auto; }
.gl-stages{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.gl-stages img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transform:scale(1.03); transition:opacity .5s ease, transform .8s ease; }
.gl-stages img.on{ opacity:1; transform:none; }
.gl-figure figcaption{ padding:10px 14px; font-size:11.5px; color:var(--content-faint); border-top:1px solid var(--stroke); }
.gl-x{ opacity:0; transition:opacity .45s ease; }
.gl-x.on{ opacity:1; }
.gl-drop{ animation:gl-fall 1.6s ease-in infinite; }
.gl-drop:nth-child(2){ animation-delay:.35s; } .gl-drop:nth-child(3){ animation-delay:.7s; }
@keyframes gl-fall{ 0%{ transform:translateY(-14px); opacity:0; } 25%{ opacity:1; } 100%{ transform:translateY(46px); opacity:0; } }

/* ---------- self-check ---------- */
.gl-q{ border:0; margin:0 0 16px; padding:0; min-width:0; }
.gl-q legend{ font-size:13px; font-weight:600; color:var(--content); padding:0; margin-bottom:8px; }
.gl-opts{ display:flex; flex-wrap:wrap; gap:8px; }
.gl-opt{ position:relative; }
.gl-opt input{ position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.gl-opt span{
  display:inline-flex; align-items:center; padding:9px 13px; border-radius:var(--r-md);
  border:1px solid var(--stroke-strong); background:var(--selection-subtle); color:var(--content-muted);
  font-size:12.5px; line-height:1.3;
}
.gl-opt input:checked + span{ background:var(--accent-subtle); border-color:var(--accent-stroke); color:var(--accent); font-weight:600; }
.gl-opt input:focus-visible + span{ outline:2px solid var(--accent); outline-offset:2px; }
.gl-meter{
  --fill:0%; height:8px; border-radius:var(--r-full); border:1px solid var(--stroke);
  background:linear-gradient(90deg, var(--ok), #f3c969 55%, var(--danger));
  overflow:hidden; margin:4px 0 14px; position:relative;
}
.gl-meter::before{
  content:""; position:absolute; top:0; bottom:0; right:0; left:var(--fill);
  background:var(--glass-panel-solid); opacity:.92; transition:left .45s ease;
}
.gl-meter-scale{ display:flex; justify-content:space-between; font-size:10.5px; color:var(--content-faint); margin:-8px 0 14px; }
.gl-result{ border:1px solid var(--stroke-strong); border-radius:var(--r-md); padding:18px; background:var(--selection-subtle); }
.gl-result[data-tone="ok"]{ border-color:var(--ok); }
.gl-result[data-tone="warn"]{ border-color:#f3c969; }
.gl-result[data-tone="bad"]{ border-color:var(--danger); }
.gl-result h3{ font-size:17px; margin:0 0 6px; color:var(--content); }
.gl-result p{ font-size:13px; line-height:1.65; color:var(--content-muted); margin:0 0 10px; }
.gl-result ul{ margin:0 0 12px; padding-left:18px; }
.gl-result li{ font-size:13px; line-height:1.6; color:var(--content-muted); margin:3px 0; }
.gl-result li::marker{ color:var(--accent); }
.gl-result-hint{ margin:0; }
.gl-result-note{ font-size:11.5px!important; color:var(--content-faint)!important; }

/* ---------- bar chart ---------- */
.gl-bars{ display:grid; gap:18px; }
.gl-bar-row .lab{ display:flex; justify-content:space-between; gap:12px; font-size:12.5px; color:var(--content-muted); margin-bottom:7px; }
.gl-bar-row .lab b{ color:var(--content); font-weight:600; }
.gl-track{ position:relative; height:26px; border-radius:var(--r-sm); background:var(--selection); border:1px solid var(--stroke); overflow:hidden; }
.gl-fill{
  position:absolute; top:0; bottom:0; border-radius:var(--r-sm); transform-origin:left center; transform:scaleX(0);
  transition:transform .9s cubic-bezier(.2,.7,.2,1);
  display:flex; align-items:center; justify-content:flex-end; padding-right:10px; font-size:11.5px; font-weight:700; color:#fff;
}
.gl-bars.in .gl-fill{ transform:scaleX(1); }
.gl-fill.a{ left:0; background:linear-gradient(90deg, rgba(255,138,138,.55), rgba(255,138,138,.85)); }
[data-theme="light"] .gl-fill.a{ background:linear-gradient(90deg, rgba(198,47,59,.45), rgba(198,47,59,.8)); }
.gl-fill.b{ left:0; background:linear-gradient(90deg, rgba(66,153,247,.55), var(--accent)); }
.gl-axis{ display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:10.5px; color:var(--content-faint); margin-top:8px; }

/* ---------- junk removal: haul builder ---------- */
.gl-tool{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:18px; align-items:start; }
.gl-tool .gl-card h3{ font-size:15px; }
.gl-label{ display:block; font-size:12px; font-weight:500; color:var(--content-muted); margin:0 0 8px; }
.gl-tool .g-seg{ flex-wrap:wrap; }
.gl-tool .g-seg button{ flex:1; padding:9px 10px; font-size:12px; }
.gl-two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.gl-summary{ list-style:none; margin:0 0 16px; padding:0; display:grid; gap:8px; }
.gl-summary li{
  font-size:12.5px; line-height:1.5; color:var(--content); padding:9px 12px; border-radius:var(--r-md);
  background:var(--selection-subtle); border:1px solid var(--stroke);
}
.gl-sticky{ position:sticky; top:96px; }
[data-gl-send][data-empty]{ opacity:.55; }

/* ---------- material swatches + calculator ---------- */
.gl-mat{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:22px; align-items:center; }
.gl-swatch{ border-radius:var(--r-md); overflow:hidden; border:1px solid var(--stroke-strong); aspect-ratio:4/3; position:relative; box-shadow:var(--shadow); }
.gl-swatch svg, .gl-swatch img{ display:block; width:100%; height:100%; object-fit:cover; }
.gl-kv{ display:grid; grid-template-columns:auto 1fr; gap:8px 14px; margin:14px 0 0; font-size:12.5px; }
.gl-kv dt{ color:var(--content-faint); }
.gl-kv dd{ margin:0; color:var(--content); font-weight:500; }

.gl-calc{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; }
.gl-calc .g-field{ margin-bottom:14px; }
.gl-calc input[type="range"]{ width:100%; accent-color:var(--accent); }
.gl-range-row{ display:flex; align-items:center; gap:12px; }
.gl-range-row output{ font-family:var(--font-mono); font-size:12px; color:var(--content); min-width:44px; text-align:right; }
.gl-check{ display:flex; gap:9px; align-items:center; font-size:12.5px; color:var(--content-muted); cursor:pointer; }
.gl-check input{ accent-color:var(--accent); width:16px; height:16px; }
.gl-result-big{ text-align:center; padding:8px 0 4px; }
.gl-result-big .num{ font-size:56px; line-height:1; font-weight:800; letter-spacing:-.03em; color:var(--content); }
.gl-result-big .unit{ font-size:13px; color:var(--content-muted); display:block; margin-top:6px; }
.gl-result-big .area{ font-family:var(--font-mono); font-size:11.5px; color:var(--content-faint); margin-top:4px; display:block; }
.gl-slab{
  --h:30%; height:84px; border-radius:var(--r-md); border:1px solid var(--stroke-strong); background:var(--selection-subtle);
  position:relative; overflow:hidden; margin:16px 0;
}
.gl-slab::before{
  content:""; position:absolute; left:0; right:0; bottom:0; height:var(--h);
  background:repeating-linear-gradient(135deg, var(--accent-stroke) 0 6px, var(--accent-subtle) 6px 12px);
  border-top:2px solid var(--accent); transition:height .3s ease;
}
.gl-slab span{ position:absolute; left:10px; top:8px; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--content-faint); }
.gl-table{ width:100%; border-collapse:collapse; font-size:13px; }
.gl-table th, .gl-table td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--stroke); color:var(--content-muted); }
.gl-table th{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--content-faint); font-weight:600; }
.gl-table td:first-child{ color:var(--content); font-weight:600; }

/* ---------- checklists ---------- */
.gl-checklist{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.gl-checklist label{
  display:flex; gap:10px; align-items:flex-start; cursor:pointer; padding:11px 13px; border-radius:var(--r-md);
  border:1px solid var(--stroke); background:var(--selection-subtle); font-size:13px; line-height:1.5; color:var(--content-muted);
}
.gl-checklist input{ margin-top:2px; accent-color:var(--accent); width:16px; height:16px; flex-shrink:0; }
.gl-checklist input:checked + span{ color:var(--content); text-decoration:line-through; text-decoration-color:var(--accent); }
.gl-count{ font-family:var(--font-mono); font-size:11.5px; color:var(--accent); margin:0 0 12px; display:block; }

/* ---------- photos ---------- */
.gl-duo{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.gl-photo{ margin:0; border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--stroke); background:var(--glass-panel); box-shadow:var(--shadow); }
.gl-photo img{ display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; }
.gl-photo figcaption{ padding:11px 14px; font-size:12px; color:var(--content-muted); }
.gl-photo figcaption strong{ display:block; color:var(--content); font-size:12.5px; }

/* ---------- E-E-A-T ---------- */
.gl-eeat{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.gl-eeat .gl-card{ padding:20px; }
.gl-eeat .k{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); display:block; margin-bottom:6px; }
.gl-byline{
  display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:16px; padding:16px 18px;
  border:1px solid var(--stroke); border-radius:var(--r-lg); background:var(--glass-panel);
}
.gl-byline img{ width:46px; height:46px; border-radius:50%; object-fit:cover; background:var(--selection); border:1px solid var(--stroke-strong); }
.gl-byline p{ margin:0; font-size:12.5px; line-height:1.55; color:var(--content-muted); }
.gl-byline strong{ color:var(--content); }
.gl-byline .sp{ flex:1; min-width:180px; }
.gl-sources{ margin:0; padding-left:18px; }
.gl-sources li{ font-size:13px; line-height:1.65; color:var(--content-muted); margin:5px 0; }
.gl-sources li::marker{ color:var(--accent); }
.gl-sources a{ color:var(--accent); font-weight:600; text-decoration:none; }
.gl-sources a:hover{ text-decoration:underline; }
.gl-disclaimer{ font-size:11.5px; color:var(--content-faint); margin-top:14px; }
.gl-card .gl-byline{ padding:0 0 16px; border:0; border-bottom:1px solid var(--stroke); border-radius:0; background:none; }
.gl-points{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.gl-points li{ position:relative; padding-left:22px; font-size:14px; line-height:1.65; color:var(--content-muted); }
.gl-points li::before{ content:""; position:absolute; left:2px; top:.6em; width:8px; height:8px; border-radius:50%; background:var(--accent); }
.gl-points strong{ color:var(--content); }

.gl-photo-card{ padding:0; overflow:hidden; }
.gl-photo-card img{ display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; }
.gl-photo-card .g-svc-top{ padding:18px 20px 0; }
.gl-photo-card .g-svc-top h3{ margin:0; }
.gl-photo-card p{ padding:0 20px 20px; margin:8px 0 0; }

.g-header-in > .g-header-actions:last-child{ margin-left:auto; }

.gl-foot{ padding-top:36px; padding-bottom:22px; display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px 40px; }
.gl-foot .g-footer-blurb{ margin:4px 0; flex:1; min-width:220px; }

/* ---------- responsive ---------- */
@media (max-width:1120px){
  .gl-grid-4, .gl-eeat{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gl-grid-3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:920px){
  .gl-metrics{ grid-template-columns:repeat(2,1fr); }
  .gl-metric{ border-top:1px solid var(--stroke); }
  .gl-split, .gl-tool, .gl-calc, .gl-mat{ grid-template-columns:1fr; }
  .gl-sticky{ position:static; }
}
@media (max-width:640px){
  .gl-grid-2, .gl-grid-3, .gl-grid-4, .gl-eeat, .gl-duo, .gl-two{ grid-template-columns:1fr; }
  .gl-hero{ padding-top:24px; }
  .gl-result-big .num{ font-size:46px; }
  .gl-card{ padding:18px; }
}
@media (prefers-reduced-motion:reduce){
  .gl-word, .gl-fade, .gl-fill, .gl-x, .gl-stages img, .gl-slab::before, .gl-meter::before{ transition:none; }
  .gl-drop{ animation:none; }
  .gl-fade, .gl-word{ opacity:1; filter:none; transform:none; }
}
