/* Foster Refrigerators USA — Quote Builder
   Design direction: Apple selling a walk-in freezer.
   Big type. Tons of whitespace. Cinematic stages. Real product photography.
   Mobile-first.
*/

:root {
  /* Foster Refrigerators USA brand — navy #00235a + orange #ff5e14 (since 1946, US Navy supplier) */
  --ink:        #0A0A0B;
  --ink-soft:   #1B1B1E;
  --paper:      #FFFFFF;
  --paper-2:    #F2F4F8;
  --paper-3:    #E6E9F0;
  --rule:       rgba(10,10,11,.10);
  --rule-soft:  rgba(10,10,11,.06);
  --muted:      #5C6370;
  --muted-2:    #8B9099;
  --navy:       #00235a;
  --navy-deep:  #09316F;
  --orange:     #FF5E14;
  --orange-warm:#F86B24;
  /* Accent maps to Foster orange (replaces AWIC red); keep --red alias for any inherited rule. */
  --accent:     #FF5E14;
  --accent-2:   #F86B24;
  --red:        #FF5E14;
}

html, body { background: var(--paper); color: var(--ink); }
body { font-family: "Inter", -apple-system, "Segoe UI", sans-serif; font-weight: 400; }

::selection { background: var(--ink); color: var(--paper); }

/* Nav rules are handled by site.css `.site-nav` — topnav rules removed */

/* ═══════════════════════════════════════════════════════════════════
   STAGE — base
═══════════════════════════════════════════════════════════════════ */
.stage {
  padding: 96px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .stage { padding: 140px 48px; }
}
@media (min-width: 1100px) {
  .stage { padding: 180px 80px; }
}

.hero-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-eyebrow.centered { text-align: center; }

.stage-h2 {
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 24px;
}
.stage-h2 em {
  font-style: normal;
  color: var(--muted);
}
.stage-h2.centered { text-align: center; }

.stage-p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 40px;
  font-weight: 400;
}
.stage-p.centered {
  text-align: center;
  margin-left: auto; margin-right: auto;
}
@media (min-width: 760px) {
  .stage-p { font-size: 21px; }
}

/* Hero rules are handled by site.css `.page-hero` — old stage-hero kept off here */
.hero-scroll {
  display: flex; align-items: center; gap: 20px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-scroll-line {
  display: inline-block;
  width: 80px; height: 1px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: ""; position: absolute; left: -30px; top: 0;
  width: 30px; height: 1px;
  background: var(--accent);
  animation: slide-line 2.4s ease-in-out infinite;
}
@keyframes slide-line {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(80px); }
}

/* ═══════════════════════════════════════════════════════════════════
   BUILDER SPLIT — canvas left · configurator right
═══════════════════════════════════════════════════════════════════ */
.builder-split {
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* On desktop: side-by-side */
@media (min-width: 900px) {
  .builder-split {
    flex-direction: row;
    height: 100vh; /* the outer container is viewport height */
    overflow: hidden; /* children handle their own scroll */
  }
}

/* ── Left: sticky canvas ── */
.bs-canvas-wrap {
  position: relative;
  background: radial-gradient(ellipse 90% 70% at 50% 100%, #DDE3F0 0%, #F2F4F8 60%);
  height: 60vw;
  min-height: 320px;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .bs-canvas-wrap {
    position: sticky;
    top: 0;
    width: 55%;
    height: 100vh;
    min-height: unset;
  }
}

#fc-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  touch-action: pan-y;  /* let vertical page scroll through; orbit needs 2-finger touch */
}

.builder-label {
  position: absolute;
  bottom: 20px; left: 20px;
  display: flex; flex-direction: column; gap: 3px;
  pointer-events: none;
  z-index: 5;
  max-width: 70%;
}
.bl-tag {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bl-name {
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.8vw, 28px);
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.05;
  margin: 0;
}
.bl-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .06em;
  margin-top: 2px;
}
.bl-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 6px;
  letter-spacing: -.01em;
}

/* remove old builder-price / configure-btn */
.builder-price, .builder-configure-btn { display: none; }
.bp-from {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* ── Right: scrollable panel ── */
.bs-panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  background: var(--paper);
}
@media (min-width: 900px) {
  .bs-panel {
    width: 45%;
    height: 100vh;
    overflow-y: auto;
  }
}

.bp-section {
  padding: 28px 24px;
  border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 760px) {
  .bp-section { padding: 32px 36px; }
}

.bp-section-label {
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--fc-orange);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fc-navy-ink);
  position: relative;
  display: block;
}
.bp-section-label::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 32px; height: 2px;
  background: var(--fc-orange);
}

/* ── Type grid (compact 4-up) ── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.type-tile {
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 8px 12px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  transition: all .18s ease;
}
.type-tile:hover { background: var(--paper-3); }
.type-tile.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.tt-temp {
  font-family: "Yantramanav", sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.02em;
  color: inherit;
}
.type-tile.is-active .tt-temp { color: var(--accent); }
.tt-name {
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.01em;
}
.tt-desc {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.2;
}
.type-tile.is-active .tt-desc { color: rgba(255,255,255,.55); }

/* ── Size controls (no card background in panel — already in section) ── */

.size-controls {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.dim-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.dim-row:last-of-type { border-bottom: none; }
.dim-row label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.dim-row input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  outline: none; cursor: pointer;
}
.dim-row input[type=range]::-webkit-slider-runnable-track {
  height: 2px; background: var(--rule); border-radius: 2px;
}
.dim-row input[type=range]::-moz-range-track {
  height: 2px; background: var(--rule); border-radius: 2px;
}
.dim-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  margin-top: -10px;
  border: 3px solid var(--paper-2);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: transform .12s ease;
}
.dim-row input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); background: var(--accent); }
.dim-row input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--paper-2);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  cursor: pointer;
}
.dim-row .value {
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-align: right;
  letter-spacing: -.01em;
}

.preset-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
}
.preset-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.preset-chip:hover { border-color: var(--ink); }
.preset-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.opt-block { margin-bottom: 20px; }
.opt-block .opt-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip i {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}
.chip.is-active i { color: rgba(255,255,255,.55); }

/* ═══════════════════════════════════════════════════════════════════
   THERMAL — inline panel version
═══════════════════════════════════════════════════════════════════ */
.thermal-grid-inline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.th-card-sm {
  background: var(--paper-2);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.th-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.th-val {
  font-family: "Yantramanav", sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.th-unit {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 4px;
}

.thermal-bars {
  text-align: left;
}
.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 72px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12px;
}
.bar-row:last-of-type { border-bottom: none; }
.bar-row .lbl { color: var(--muted); }
.bar-track {
  background: var(--paper-3);
  height: 5px;
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 6px;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.bar-row .val { color: var(--ink); font-weight: 500; text-align: right; font-size: 11px; }

/* ═══════════════════════════════════════════════════════════════════
   QUOTE BOX — panel version (full-width, no max-width cap)
═══════════════════════════════════════════════════════════════════ */
.bp-section-quote {
  border-bottom: none;
  padding-bottom: 48px;
}

.quote-box {
  width: 100%;
  background: var(--navy);
  color: var(--paper);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.quote-box::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}
@media (min-width: 760px) {
  .quote-box { padding: 32px 28px; }
}

.qb-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #FFB3B8;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.qb-name {
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 32px);
  letter-spacing: -.015em;
  margin-bottom: 32px;
  line-height: 1.1;
}

.qb-line {
  display: flex; justify-content: space-between;
  font-size: 14px;
  padding: 12px 0;
  color: rgba(255,255,255,.7);
}
.qb-line .fc-mono { color: var(--paper); }
.qb-divider { height: 1px; background: rgba(255,255,255,.10); margin: 8px 0; }

.qb-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
}
.qb-total > span:first-child {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.qb-amount {
  font-family: "Yantramanav", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
}

.qb-finance {
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.qb-finance strong { color: var(--accent); font-weight: 700; }
.qb-finance select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--paper);
  padding: 4px 8px;
  border-radius: 6px;
  font: inherit;
}

.qb-cta {
  margin-top: 32px;
  display: grid; gap: 10px;
}

.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  letter-spacing: .01em;
  min-height: 52px;
}
.btn-primary {
  background: var(--accent);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--paper);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }

.qb-foot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-align: center;
  letter-spacing: .04em;
}
.qb-foot a { color: #FF6478; text-decoration: none; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   STAGE 8 — TRUSTED
═══════════════════════════════════════════════════════════════════ */
.stage-trust {
  text-align: center;
  padding-top: 80px; padding-bottom: 120px;
}
.trust-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.trust-marks {
  display: flex; flex-wrap: wrap; gap: 32px;
  align-items: center; justify-content: center;
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 2vw, 22px);
  color: var(--ink);
  letter-spacing: -.005em;
  margin-bottom: 56px;
}
.trust-marks span {
  position: relative;
}
.trust-marks span:not(:last-child)::after {
  content: "·";
  margin-left: 32px;
  color: var(--muted-2);
  font-weight: 400;
}
@media (max-width: 600px) {
  .trust-marks { gap: 12px 24px; }
  .trust-marks span:not(:last-child)::after { display: none; }
}

.trust-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
}

/* ═══════════════════════════════════════════════════════════════════
   INDUSTRIES — 4-column rail
═══════════════════════════════════════════════════════════════════ */
.stage-industries {
  text-align: center;
}
.ind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 64px auto 0;
  text-align: left;
}
@media (min-width: 760px) {
  .ind-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}
.ind-col-label {
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.ind-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.ind-col li {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SPECS DEEP-DIVE — split with photo
═══════════════════════════════════════════════════════════════════ */
.stage-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .stage-specs { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.specs-photo {
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}
.specs-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.specs-list {
  margin: 32px 0 0;
  padding: 0;
}
.specs-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 600px) {
  .specs-list > div {
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: baseline;
  }
}
.specs-list dt {
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.specs-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════
   HERITAGE — full-bleed Navy photo with overlay quote
═══════════════════════════════════════════════════════════════════ */
.stage-heritage {
  position: relative;
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--navy);
}
.heritage-photo {
  position: absolute; inset: 0;
  z-index: 0;
}
.heritage-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .55;
}
.heritage-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,35,90,.92) 0%,
    rgba(0,35,90,.62) 50%,
    rgba(0,35,90,.30) 100%
  );
}
.heritage-overlay {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 880px;
  color: var(--paper);
}
@media (min-width: 760px) {
  .heritage-overlay { padding: 120px 80px; }
}
.heritage-overlay .hero-eyebrow {
  color: var(--accent);
}
.heritage-quote {
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 32px;
  color: var(--paper);
}
.heritage-quote em {
  font-style: normal;
  color: var(--accent);
}
.heritage-meta {
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.65);
}

/* ═══════════════════════════════════════════════════════════════════
   FC MONO HELPER (token override for Apple-style numerics)
═══════════════════════════════════════════════════════════════════ */
.fc-mono { font-family: "JetBrains Mono", monospace; font-feature-settings: "tnum" 1; }
