/* Tooele Insulation Co. — shared stylesheet
   Palette / type tokens are the single source of truth. */

:root {
  --paper: #eef1f1;
  --paper-2: #e3e8e8;
  --ink: #13242c;
  --ink-2: #1c333d;
  --slate: #63757d;
  --seal: #0e6e62;
  --seal-hi: #12897a;
  --thermal-cold: #2b4c8c;
  --thermal-mid: #8a5a86;
  --thermal-hot: #e0a32e;
  --line: #c8d1d1;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --data: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --gap: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--seal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 99; background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 2px;
}

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

/* ---- SIGNATURE: thermal gauge ---- */
.gauge {
  height: 4px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    var(--thermal-cold) 0%,
    var(--thermal-cold) 38%,
    var(--thermal-mid) 58%,
    var(--thermal-hot) 76%,
    var(--thermal-hot) 100%
  );
}
.gauge--short { width: 64px; height: 3px; margin-bottom: 1.1rem; }

/* ---- header ---- */
.hdr {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em; color: var(--paper); text-decoration: none; }
.brand span { color: var(--thermal-hot); }
.hdr__call {
  font-family: var(--data);
  font-size: 0.9rem;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(238,241,241,0.35);
  padding: 0.45rem 0.8rem;
  border-radius: 2px;
  white-space: nowrap;
}
.hdr__call:hover { border-color: var(--thermal-hot); color: var(--thermal-hot); }

/* ---- hero ---- */
.hero { background: var(--ink); color: var(--paper); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.hero__eyebrow { font-family: var(--data); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--thermal-hot); margin-bottom: 0.9rem; }
.hero h1 { color: var(--paper); }
.hero__lede { color: #c5d0d2; font-size: 1.14rem; max-width: 46ch; }
.hero__pts { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.hero__pts li { font-family: var(--data); font-size: 0.85rem; color: #aebbbe; padding-left: 1.1rem; position: relative; }
.hero__pts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 2px; background: var(--thermal-hot); }

/* ---- form ---- */
.form { background: var(--paper); color: var(--ink); border-radius: 3px; padding: 1.5rem; }
.form h2 { font-size: 1.22rem; margin-bottom: 0.15rem; }
.form__sub { font-size: 0.9rem; color: var(--slate); margin-bottom: 1rem; }
.field { display: block; margin-bottom: 0.8rem; }
.field span { display: block; font-family: var(--data); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; padding: 0.6rem 0.7rem;
  border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 78px; }
.btn {
  display: inline-block; width: 100%; text-align: center; cursor: pointer;
  background: var(--seal); color: #fff; border: 0; border-radius: 2px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1rem;
}
.btn:hover { background: var(--seal-hi); }
.form__note { font-size: 0.82rem; color: var(--slate); margin: 0.8rem 0 0; }

/* ---- generic section ---- */
.sec { padding: clamp(2.6rem, 6vw, 4.4rem) 0; }
.sec--band { background: var(--paper-2); }
.sec__hd { max-width: 62ch; margin-bottom: 2rem; }
.sec__hd p { color: var(--slate); }

/* ---- spec index (services) ---- */
.spec { border-top: 1px solid var(--line); }
.spec__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.spec__row::before {
  content: ""; position: absolute; left: -14px; top: 1.15rem; bottom: 1.15rem; width: 3px;
  background: linear-gradient(180deg, var(--thermal-cold), var(--thermal-hot));
  opacity: 0; transition: opacity 0.15s;
}
.spec__row:hover::before, .spec__row:focus-visible::before { opacity: 1; }
.spec__row:hover .spec__name { color: var(--seal); }
.spec__name { font-family: var(--display); font-weight: 600; font-size: 1.16rem; }
.spec__desc { grid-column: 1 / 2; color: var(--slate); font-size: 0.96rem; margin: 0; max-width: 60ch; }
.spec__val {
  grid-row: 1 / 3; align-self: center;
  font-family: var(--data); font-size: 0.78rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 0.3rem 0.55rem; border-radius: 2px; white-space: nowrap;
}
.sec--band .spec__val { background: var(--paper); }

/* ---- climate strip ---- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.strip__item h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.strip__item p { font-size: 0.94rem; color: var(--slate); margin: 0; }

/* ---- faq ---- */
.faq { max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--data); color: var(--seal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.7rem 0 0; color: var(--slate); }

/* ---- footer ---- */
.ftr { background: var(--ink); color: #aebbbe; padding: 2.6rem 0 5.2rem; font-size: 0.92rem; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.ftr h3 { color: var(--paper); font-size: 0.8rem; font-family: var(--data); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.ftr a { color: #aebbbe; text-decoration: none; }
.ftr a:hover { color: var(--thermal-hot); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.ftr__legal { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(238,241,241,0.14); font-size: 0.82rem; color: #7f9195; }

/* ---- sticky mobile call bar ---- */
.callbar { display: none; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; gap: 1.2rem; }
  .ftr__grid { grid-template-columns: 1fr; }
  .hdr__call { display: none; }
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--seal); color: #fff; text-align: center; text-decoration: none;
    font-family: var(--display); font-weight: 600; padding: 0.9rem;
  }
  .spec__row { grid-template-columns: 1fr; }
  .spec__val { grid-row: auto; justify-self: start; }
}
