/* ===================================================================
   IRONPOOL — Design system
   Palette: steel / galvanized greys + brand blue (from logo)
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (specs)
   Signature motif: CAD-style "dimension line" dividers
=================================================================== */

:root{
  --blue-500:#1BA8DA;
  --blue-600:#0F8EBB;
  --blue-700:#0B6C8F;
  --blue-050:#EAF7FC;

  --steel-950:#12171B;
  --steel-900:#1B2227;
  --steel-800:#2A3339;
  --steel-600:#525E66;
  --steel-500:#79858C;
  --steel-300:#B7C0C5;
  --steel-200:#DCE1E4;
  --steel-100:#EDF0F1;
  --steel-050:#F6F7F8;
  --white:#FFFFFF;

  --ink:#1B2227;
  --paper:#F6F7F8;

  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;

  --radius-s:6px;
  --radius-m:10px;
  --container:1200px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.1; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; font-size:inherit; }

:focus-visible{
  outline:2px solid var(--blue-500);
  outline-offset:3px;
}

.container{
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}

.mono{ font-family:var(--font-mono); }

/* ---------- Eyebrow / spec tag ---------- */
.spec-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--blue-700);
  background:var(--blue-050);
  border:1px solid rgba(27,168,218,0.35);
  padding:5px 10px;
  border-radius:100px;
}
.spec-tag::before{
  content:'';
  width:6px;
  height:6px;
  background:var(--blue-500);
  border-radius:50%;
  flex:none;
}
.on-dark .spec-tag{
  background:rgba(27,168,218,0.12);
  color:#7FDAF6;
  border-color:rgba(127,218,246,0.35);
}

/* ---------- Dimension-line divider (signature element) ---------- */
.dim-line{
  display:flex;
  align-items:center;
  gap:14px;
  margin:14px 0 28px;
}
.dim-line .seg{
  flex:1;
  height:1px;
  background:var(--steel-300);
  position:relative;
}
.dim-line .seg::before,
.dim-line .seg::after{
  content:'';
  position:absolute;
  top:-5px;
  width:1px;
  height:11px;
  background:var(--steel-300);
}
.dim-line .seg::before{ left:0; }
.dim-line .seg::after{ right:0; }
.dim-line .label{
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:0.06em;
  color:var(--steel-500);
  white-space:nowrap;
}
.on-dark .dim-line .seg,
.on-dark .dim-line .seg::before,
.on-dark .dim-line .seg::after{ background:rgba(255,255,255,0.22); }
.on-dark .dim-line .label{ color:var(--steel-300); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 26px;
  border-radius:var(--radius-s);
  font-weight:600;
  font-size:15px;
  border:1px solid transparent;
  transition:transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--blue-500); color:var(--white); }
.btn-primary:hover{ background:var(--blue-600); }
.btn-ghost{ background:transparent; color:var(--white); border-color:rgba(255,255,255,0.4); }
.btn-ghost:hover{ border-color:#fff; background:rgba(255,255,255,0.08); }
.btn-outline{ background:transparent; color:var(--steel-900); border-color:var(--steel-300); }
.btn-outline:hover{ border-color:var(--steel-900); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; transform:none; }

/* =========================== HEADER =========================== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(246,247,248,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--steel-200);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-block:12px;
}
.brand{ display:flex; align-items:center; }
.brand img{ height:42px; width:auto; }

.main-nav{ display:flex; align-items:center; gap:6px; }
.main-nav a{
  font-size:14.5px;
  font-weight:600;
  color:var(--steel-800);
  padding:9px 14px;
  border-radius:100px;
  transition:background .15s ease, color .15s ease;
}
.main-nav a:hover{ background:var(--steel-100); }
.main-nav a.is-active{ color:var(--blue-700); background:var(--blue-050); }
.main-nav a.nav-cta{ background:var(--steel-900); color:#fff; }
.main-nav a.nav-cta:hover{ background:var(--blue-600); }

.header-social{ display:flex; align-items:center; gap:10px; }
.social-icon{
  width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--steel-200);
  border-radius:50%;
  color:var(--steel-700);
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.social-icon:hover{ border-color:var(--blue-500); color:var(--blue-600); background:var(--blue-050); }
.social-icon svg{ width:17px; height:17px; }

.nav-toggle{
  display:none;
  width:42px; height:42px;
  border-radius:var(--radius-s);
  border:1px solid var(--steel-200);
  background:var(--white);
  align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:''; display:block; width:18px; height:2px; background:var(--steel-900); position:relative;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

/* =========================== HERO =========================== */
.hero{
  position:relative;
  min-height:88vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:#fff;
  overflow:hidden;
}
.hero-media{
  position:absolute; inset:0;
}
.hero-media img{
  width:100%; height:100%; object-fit:cover;
  transform:scale(1.02);
}
.hero-media::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(18,23,27,0.35) 0%, rgba(18,23,27,0.35) 35%, rgba(18,23,27,0.92) 100%);
}
.hero-inner{
  position:relative;
  z-index:2;
  padding-block:64px 72px;
  max-width:760px;
}
.hero h1{
  font-size:clamp(2.4rem, 5vw, 4rem);
  font-weight:700;
  margin-top:18px;
}
.hero h1 em{ font-style:normal; color:var(--blue-500); }
.hero p.lead{
  margin-top:20px;
  font-size:18px;
  color:var(--steel-200);
  max-width:560px;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }

.hero-specs{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-top:1px solid rgba(255,255,255,0.18);
}
.hero-specs div{
  padding:18px 24px;
  border-right:1px solid rgba(255,255,255,0.18);
}
.hero-specs div:last-child{ border-right:none; }
.hero-specs .num{ font-family:var(--font-mono); font-size:22px; color:var(--blue-500); }
.hero-specs .cap{ font-size:12.5px; color:var(--steel-300); margin-top:4px; }

/* =========================== SECTIONS =========================== */
.section{ padding-block:96px; }
.section-tight{ padding-block:64px; }
.section.on-dark{ background:var(--steel-950); color:#fff; }
.section.on-steel{ background:var(--steel-100); }

.section-head{ max-width:680px; margin-bottom:40px; }
.section-head h2{ font-size:clamp(1.7rem,3vw,2.4rem); margin-top:14px; }
.section-head p{ color:var(--steel-600); margin-top:14px; font-size:16.5px; }
.on-dark .section-head p{ color:var(--steel-300); }

.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:1fr 1fr; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-5{ grid-template-columns:repeat(5,1fr); }

.split{ display:grid; grid-template-columns:1.1fr 1fr; gap:56px; align-items:center; }
.split.reverse{ grid-template-columns:1fr 1.1fr; }
.split.reverse .split-media{ order:2; }
.split-media img{ border-radius:var(--radius-m); width:100%; }
.split-body ul{ margin-top:20px; display:flex; flex-direction:column; gap:12px; }
.split-body li{
  display:flex; gap:12px; align-items:flex-start;
  font-size:15.5px; color:var(--steel-700);
}
.on-dark .split-body li{ color:var(--steel-200); }
.split-body li .tick{
  flex:none; width:18px; height:18px; margin-top:2px;
  border-radius:4px;
  background:var(--blue-050);
  color:var(--blue-600);
  display:flex; align-items:center; justify-content:center;
}
.on-dark .split-body li .tick{ background:rgba(27,168,218,0.15); color:var(--blue-500); }
.split-body li .tick svg{ width:11px; height:11px; }

.media-frame{ position:relative; border-radius:var(--radius-m); overflow:hidden; }
.media-frame img{ width:100%; height:100%; object-fit:cover; }

/* Property / feature cards */
.card{
  background:var(--white);
  border:1px solid var(--steel-200);
  border-radius:var(--radius-m);
  padding:26px;
}
.card .idx{ font-family:var(--font-mono); font-size:12px; color:var(--blue-600); }
.card h3{ font-size:17px; margin-top:12px; }
.card p{ margin-top:10px; font-size:14.5px; color:var(--steel-600); }
.on-dark .card{ background:var(--steel-900); border-color:rgba(255,255,255,0.1); }
.on-dark .card p{ color:var(--steel-300); }

/* Format / size cards */
.format-card{
  background:var(--white);
  border:1px solid var(--steel-200);
  border-radius:var(--radius-m);
  overflow:hidden;
}
.format-card .thumb{ aspect-ratio:4/3; overflow:hidden; background:var(--steel-100); }
.format-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.format-card .body{ padding:20px; }
.format-card .dims{ font-family:var(--font-mono); font-size:22px; color:var(--steel-900); }
.format-card .name{ font-size:13px; color:var(--blue-600); text-transform:uppercase; letter-spacing:.06em; margin-top:4px; }
.format-card p{ margin-top:10px; font-size:14px; color:var(--steel-600); }

/* Colour swatches */
.swatch-row{ display:flex; gap:16px; flex-wrap:wrap; }
.swatch{
  width:120px;
}
.swatch img{ width:120px; height:120px; object-fit:cover; border-radius:var(--radius-s); border:1px solid var(--steel-200); }
.swatch .name{ margin-top:10px; font-weight:700; font-size:14.5px; }
.swatch .desc{ font-size:12.5px; color:var(--steel-500); }

/* Coating gallery */
.coat-gallery{ display:grid; grid-template-columns:1.2fr 1fr; gap:20px; }
.coat-gallery img{ border-radius:var(--radius-m); width:100%; height:100%; object-fit:cover; }

/* CTA band */
.cta-band{
  background:linear-gradient(120deg, var(--steel-950), var(--steel-800));
  color:#fff;
  border-radius:var(--radius-m);
  padding:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.cta-band h2{ font-size:clamp(1.5rem,3vw,2.1rem); max-width:480px; }
.cta-band p{ color:var(--steel-300); margin-top:10px; max-width:420px; }

/* =========================== FOOTER =========================== */
.site-footer{ background:var(--steel-950); color:var(--steel-300); padding-block:64px 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
.footer-brand img{ height:38px; }
.footer-brand p{ margin-top:16px; font-size:14px; color:var(--steel-500); max-width:280px; }
.footer-col h4{ font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--steel-500); margin-bottom:16px; }
.footer-col a{ display:block; padding:6px 0; font-size:14.5px; color:var(--steel-300); }
.footer-col a:hover{ color:var(--blue-500); }
.footer-social{ display:flex; gap:10px; margin-top:16px; }
.footer-social .social-icon{ border-color:rgba(255,255,255,0.15); color:var(--steel-300); }
.footer-social .social-icon:hover{ color:var(--blue-500); border-color:var(--blue-500); background:rgba(27,168,218,0.08); }
.footer-bottom{
  margin-top:52px; padding-top:24px;
  border-top:1px solid rgba(255,255,255,0.1);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:13px; color:var(--steel-600);
}

/* =========================== FORMS =========================== */
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:8px; color:var(--steel-800); }
.field .hint{ font-size:12.5px; color:var(--steel-500); margin-top:6px; }
.field input,
.field textarea{
  width:100%;
  padding:13px 15px;
  border:1px solid var(--steel-200);
  border-radius:var(--radius-s);
  background:var(--white);
  font-size:15px;
  color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus{
  border-color:var(--blue-500);
  box-shadow:0 0 0 3px rgba(27,168,218,0.15);
  outline:none;
}
.field textarea{ min-height:150px; resize:vertical; }
.field.has-error input,
.field.has-error textarea{ border-color:#D64545; }
.error-msg{ font-size:12.5px; color:#D64545; margin-top:6px; display:none; }
.field.has-error .error-msg{ display:block; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }

.form-status{
  margin-top:18px;
  padding:14px 16px;
  border-radius:var(--radius-s);
  font-size:14px;
  display:none;
}
.form-status.show{ display:block; }
.form-status.ok{ background:var(--blue-050); color:var(--blue-700); border:1px solid rgba(27,168,218,0.3); }
.form-status.err{ background:#FBEAEA; color:#B23131; border:1px solid rgba(178,49,49,0.25); }

/* =========================== CONFIGURATOR (Preventivo) =========================== */
.configurator{ display:grid; grid-template-columns:1fr 360px; gap:44px; align-items:flex-start; }
.config-step{ margin-bottom:52px; }
.config-step-head{ display:flex; align-items:baseline; gap:12px; margin-bottom:6px; }
.config-step-head .step-no{ font-family:var(--font-mono); color:var(--blue-600); font-size:13px; }
.config-step-head h3{ font-size:19px; }
.config-step-sub{ color:var(--steel-600); font-size:14.5px; margin-bottom:20px; }

.option-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.option-grid.cols-2{ grid-template-columns:repeat(2,1fr); }

.opt-card{
  position:relative;
  border:1.5px solid var(--steel-200);
  border-radius:var(--radius-m);
  background:var(--white);
  padding:16px;
  cursor:pointer;
  text-align:left;
  transition:border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.opt-card:hover{ border-color:var(--steel-500); }
.opt-card.is-selected{
  border-color:var(--blue-500);
  box-shadow:0 0 0 3px rgba(27,168,218,0.15);
}
.opt-card .thumb{ aspect-ratio:4/3; border-radius:6px; overflow:hidden; background:var(--steel-100); margin-bottom:12px; }
.opt-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.opt-card .swatch-block{ width:100%; height:100%; }
.opt-card .opt-title{ display:block; font-weight:700; font-size:15px; overflow-wrap:break-word; word-break:break-word; }
.opt-card .opt-title .opt-height{ font-weight:400; font-size:0.72em; color:var(--steel-500); }
.opt-card .opt-sub{ display:block; font-size:12.5px; color:var(--steel-500); margin-top:2px; overflow-wrap:break-word; word-break:break-word; }
.opt-card .opt-desc{ font-size:12.5px; color:var(--steel-600); margin-top:8px; }
.opt-card .check{
  position:absolute; top:12px; right:12px;
  width:22px; height:22px; border-radius:50%;
  background:var(--white); border:1.5px solid var(--steel-300);
  display:flex; align-items:center; justify-content:center;
}
.opt-card.is-selected .check{ background:var(--blue-500); border-color:var(--blue-500); }
.opt-card .check svg{ width:12px; height:12px; opacity:0; color:#fff; }
.opt-card.is-selected .check svg{ opacity:1; }

.opt-toggle-row{ display:flex; gap:14px; }
.opt-toggle{
  flex:1;
  border:1.5px solid var(--steel-200);
  border-radius:var(--radius-m);
  padding:18px;
  background:var(--white);
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.opt-toggle.is-selected{ border-color:var(--blue-500); box-shadow:0 0 0 3px rgba(27,168,218,0.15); }
.opt-toggle .opt-title{ font-weight:700; font-size:15px; display:flex; align-items:center; justify-content:space-between; }
.opt-toggle .opt-desc{ font-size:12.5px; color:var(--steel-600); margin-top:6px; }

/* Summary panel */
.summary-panel{
  position:sticky; top:96px;
  background:var(--steel-950); color:#fff;
  border-radius:var(--radius-m);
  padding:28px;
}
.summary-panel h3{ font-size:16px; }
.summary-panel .dim-line{ margin:14px 0 18px; }
.summary-list{ display:flex; flex-direction:column; gap:0; }
.summary-list .row{
  display:flex; justify-content:space-between; gap:10px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,0.1);
  font-size:13.5px;
}
.summary-list .row .k{ color:var(--steel-400); color:var(--steel-300); }
.summary-list .row .v{ font-weight:600; text-align:right; }
.summary-list .row .v.muted{ color:var(--steel-500); font-weight:400; font-style:italic; }
.summary-panel .btn{ margin-top:22px; }
.summary-note{ font-size:12px; color:var(--steel-500); margin-top:14px; line-height:1.5; }

/* =========================== UTILITIES =========================== */
.text-center{ text-align:center; }
.mt-8{ margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-40{margin-top:40px;}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 980px){
  .main-nav{
    position:fixed; inset:64px 16px auto 16px;
    background:var(--white);
    border:1px solid var(--steel-200);
    border-radius:var(--radius-m);
    flex-direction:column; align-items:stretch;
    padding:10px;
    box-shadow:0 20px 40px rgba(0,0,0,0.12);
    display:none;
  }
  .main-nav.is-open{ display:flex; }
  .main-nav a{ padding:12px 14px; }
  .nav-toggle{ display:flex; }
  .header-social{ display:none; }

  .hero-specs{ grid-template-columns:repeat(2,1fr); }
  .hero-specs div:nth-child(2){ border-right:none; }

  .split, .split.reverse{ grid-template-columns:1fr; }
  .split.reverse .split-media{ order:0; }

  .grid-2{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr 1fr; }
  .grid-4{ grid-template-columns:1fr 1fr; }
  .grid-5{ grid-template-columns:1fr 1fr; }

  .coat-gallery{ grid-template-columns:1fr; }

  .configurator{ grid-template-columns:1fr; }
  .summary-panel{ position:static; }
  .option-grid{ grid-template-columns:repeat(2,1fr); }
  .opt-toggle-row{ flex-direction:column; }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 560px){
  .grid-3, .grid-4, .grid-5{ grid-template-columns:1fr 1fr; }
  .option-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ padding:32px; }
  .footer-grid{ grid-template-columns:1fr; }
  .hero-inner{ padding-block:40px 48px; }
}

/* ============ MODAL ============ */
.modal-overlay{
  display:none;
  position:fixed; inset:0;
  background:rgba(18,23,27,0.6);
  z-index:200;
  align-items:center; justify-content:center;
  padding:20px;
}
.modal-overlay.is-open{ display:flex; }
.modal-box{
  position:relative;
  width:100%; max-width:440px;
  max-height:90vh; overflow-y:auto;
  background:var(--white);
  border-radius:var(--radius-m);
  padding:32px;
  box-shadow:0 20px 60px rgba(0,0,0,0.25);
}
.modal-close{
  position:absolute; top:18px; right:18px;
  width:32px; height:32px;
  border:none; background:transparent;
  color:var(--steel-500); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  border-radius:var(--radius-s);
}
.modal-close:hover{ background:var(--steel-100); color:var(--steel-900); }
.modal-close svg{ width:18px; height:18px; }
.modal-box h3{ font-size:19px; padding-right:28px; }
.modal-box .modal-sub{ font-size:14px; color:var(--steel-600); margin-top:8px; margin-bottom:24px; }
.modal-actions{ display:flex; gap:12px; margin-top:8px; }
.modal-actions .btn{ flex:1; }

@media (max-width: 560px){
  .modal-box{ padding:24px; }
}
