/* ========================================================================
   IRONWORKS AI — HOMEPAGE V2 (2026-10 redesign)
   Loads AFTER style.css. Adds only the new homepage layouts; every token,
   card, button, kicker, forge, flywheel, agents-feed, ROI and FAQ rule
   comes from style.css unchanged. Namespaced so nothing leaks to other pages.
   ======================================================================== */

/* ---------- Hero v2: headline + CTA panel left, forge bracket right ---------- */
.hero--v2 { padding: 88px var(--gutter-x) 120px; }
.hero--v2 .hero__grid { grid-template-columns: 1.15fr 1fr; }
.hero--v2 .hero__title { font-size: clamp(48px, 6.6vw, 92px); }
.hero--v2 .hero__subtitle { margin-bottom: 36px; }

.hero-cta {
  position: relative;
  max-width: 620px;
  padding: 28px 30px;
  border: 1px solid rgba(193,120,41,.25);
  background: rgba(193,120,41,.04);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: center;
}
.hero-cta__kicker {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--copper-light);
  text-transform: uppercase;
}
.hero-cta .btn { padding: 18px 28px; font-size: 15px; }
.hero-cta__alt { display: flex; flex-direction: column; gap: 6px; }
.hero-cta__tel {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--off);
  letter-spacing: .5px;
}
.hero-cta__tel:hover { color: var(--copper-light); }
.hero-cta__note { font-size: 13px; line-height: 1.45; color: rgba(250,250,250,.6); }

@media (max-width: 980px) {
  .hero--v2 .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-cta { grid-template-columns: 1fr; padding: 22px 20px; }
  .hero-cta .btn { justify-content: center; }
}

/* ---------- Section header helper: title + lead paragraph ---------- */
.sec-lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(250,250,250,.72);
  max-width: 720px;
  margin-top: 20px;
}
.sec-sublabel {
  display: block;
  margin: 48px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(232,184,122,.75);
  text-transform: uppercase;
}

/* ---------- Our work, proven: metrics + credentials in one band ---------- */
.proof .proof-metrics__grid { margin-top: 48px; }
.proof .creds__grid { margin-top: 16px; }

/* ---------- What we do: flywheel panel + automation panel ---------- */
.wwd {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.wwd-panel {
  position: relative;
  padding: 36px;
  border: 1px solid rgba(193,120,41,.25);
  background: rgba(255,255,255,.02);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.wwd-panel__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.wwd-panel__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--off);
}
/* Flywheel stacks inside its half-width panel */
.wwd-panel .flywheel {
  margin-top: 0;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
}
.wwd-panel .flywheel__detail { max-width: 460px; width: 100%; }
/* Agents feed fills the panel; machinery cells sit under it */
.wwd-panel .agents-feed { box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.wwd-panel .agents-feed__scroll { height: 380px; }
.wwd-panel .machinery__grid { margin-top: auto; }

@media (max-width: 1180px) {
  .wwd { grid-template-columns: 1fr; }
}
/* Flywheel mobile scaling lives in style.css (sitewide fix). */
@media (max-width: 520px) {
  .wwd-panel { padding: 28px 0; border-left: 0; border-right: 0; background: none; }
  .wwd-panel .corner-ticks { display: none; }
  .wwd-panel .agents-feed__scroll { height: 300px; }
  .wwd-panel .machinery__grid { grid-template-columns: 1fr; }
}

/* ---------- Services: eight cards, 4 × 2 ---------- */
.services.services--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services--8 .service-card { padding: 28px; min-height: 320px; }
.services--8 .service-card__name { font-size: 28px; line-height: 1.08; }
.services--8 .service-card__body { font-size: 13.5px; }
@media (max-width: 1180px) {
  .services.services--8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .services.services--8 { grid-template-columns: 1fr; }
  .services--8 .service-card { min-height: 0; }
}

/* ---------- Industries: spacing under the new title + lead ---------- */
.industries .industries-grid { margin-top: 48px; }

/* ---------- Savings calculator + FAQ side by side ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
}
.split .section-title { font-size: clamp(30px, 3.6vw, 44px); }
.split .faq { margin-top: 32px; max-width: none; }
.split .faq details:first-child { padding-top: 8px; }
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 72px; }
}

/* Expandable ROI: the result shows first; sliders open on demand.
   Every data-roi-* hook is unchanged, so main.js drives it as-is. */
.roi.roi--expandable {
  margin-top: 32px;
  grid-template-columns: 1fr;
  gap: 24px;
  border-color: rgba(193,120,41,.3);
}
.roi--expandable .roi__total { font-size: 64px; }
.roi__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(193,120,41,.35);
  border-radius: var(--radius-sm);
  background: rgba(193,120,41,.06);
  color: var(--copper-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .15s, border-color .15s;
}
.roi__toggle:hover { background: rgba(193,120,41,.12); border-color: var(--copper); }
.roi__toggle-icon { font-size: 20px; line-height: 1; color: var(--copper); transition: transform .25s ease; }
.roi--expandable.is-open .roi__toggle-icon { transform: rotate(45deg); }
.roi__drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.roi__drawer > .roi__controls { overflow: hidden; min-height: 0; }
.roi--expandable.is-open .roi__drawer { grid-template-rows: 1fr; }
.roi--expandable .roi__controls { gap: 22px; }
.roi--expandable.is-open .roi__controls { padding-top: 4px; }
.roi--expandable .btn { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  .roi__drawer, .roi__toggle-icon { transition: none; }
}
@media (max-width: 520px) {
  .roi--expandable .roi__total { font-size: 46px; }
}
