/* ============================================
   TRANSFORM ROOFING — Brand System
   Ironsand / Zinc / Hi-Vis Orange
   ============================================ */

:root {
  --ironsand: #1b1c1f;
  --ironsand-deep: #101114;
  --zinc: #e8e7e3;
  --zinc-light: #f4f3f0;
  --hivis: #1192dc;
  --hivis-hover: #0d7cbd;
  --steel: #8b8f98;
  --white: #ffffff;
  --ink: #232220;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--zinc-light);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  background: var(--ironsand-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--hivis);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.logo span { color: var(--hivis); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--zinc);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--hivis); border-color: var(--hivis); }
.nav-cta {
  background: var(--hivis);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 4px;
  border-bottom: none !important;
  font-weight: 700;
}
.nav-cta:hover { background: var(--hivis-hover); color: var(--white) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Corrugated divider (signature) ---------- */
.corrugate {
  display: block;
  width: 100%;
  height: 28px;
}
.corrugate.flip { transform: scaleY(-1); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(16,17,20,.84), rgba(16,17,20,.9)),
    repeating-linear-gradient(90deg, #26272b 0 6px, #1b1c1f 6px 12px);
  color: var(--white);
  padding: 96px 24px 110px;
  text-align: left;
}
.hero-inner { max-width: 1120px; margin: 0 auto; }
.hero .eyebrow {
  color: var(--hivis);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 16px;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); color: var(--white); max-width: 800px; }
.hero h1 em { font-style: normal; color: var(--hivis); }
.hero p {
  margin-top: 22px;
  max-width: 560px;
  font-size: 19px;
  color: var(--zinc);
}
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 19px;
  padding: 15px 32px;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--hivis); color: var(--white); }
.btn-primary:hover { background: var(--hivis-hover); }
.btn-ghost { border-color: var(--zinc); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--hivis); color: var(--hivis); }
.btn-dark { background: var(--ironsand); color: var(--white); }
.btn-dark:hover { background: var(--ironsand-deep); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { margin-bottom: 44px; }
.section-head .eyebrow {
  color: var(--hivis);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 15px;
}
.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); margin-top: 6px; }

.dark { background: var(--ironsand); color: var(--zinc); }
.dark h2, .dark h3 { color: var(--white); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border-radius: 6px;
  padding: 30px 26px;
  border-top: 4px solid var(--hivis);
  box-shadow: 0 1px 4px rgba(35,34,32,.08);
}
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: #55534e; font-size: 16px; }

.dark .card { background: var(--ironsand-deep); border-top-color: var(--hivis); }
.dark .card p { color: var(--steel); }

/* ---------- Steps strip ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 8px 0; }
.step .step-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--hivis);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.step h3 { font-size: 24px; margin: 6px 0 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--hivis);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); color: var(--white); }
.cta-band p { margin: 12px auto 28px; max-width: 520px; font-size: 18px; }
.cta-band .btn { background: var(--ironsand-deep); color: var(--white); }
.cta-band .btn:hover { background: var(--ink); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 2px 12px rgba(35,34,32,.1);
  border-top: 5px solid var(--hivis);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ironsand);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #cfcdc7;
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  background: var(--zinc-light);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--hivis);
  outline-offset: 0;
  border-color: var(--hivis);
  background: var(--white);
}
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 16px;
}
.form-status.ok { display: block; background: #e5f4e5; color: #1e6b1e; }
.form-status.err { display: block; background: #fdecea; color: #a02020; }

/* ---------- Contact info ---------- */
.contact-info h3 { font-size: 26px; margin-bottom: 6px; }
.contact-line { display: flex; gap: 12px; align-items: baseline; margin-bottom: 18px; }
.contact-line .tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hivis);
  font-size: 16px;
  min-width: 72px;
  letter-spacing: 0.08em;
}
.contact-line a { text-decoration: none; font-weight: 600; }
.contact-line a:hover { color: var(--hivis); }

/* ---------- Calculator page ---------- */
.calc-frame-wrap {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(35,34,32,.1);
  border-top: 5px solid var(--hivis);
  overflow: hidden;
}
.calc-frame-wrap iframe {
  width: 100%;
  height: 1200px;
  border: 0;
  display: block;
}

/* ---------- About ---------- */
.about-lead { font-size: 20px; max-width: 760px; }
.credential {
  display: inline-block;
  background: var(--ironsand);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 4px;
  margin: 6px 8px 0 0;
}
.credential.orange { background: var(--hivis); }

/* ---------- Footer ---------- */
footer {
  background: var(--ironsand-deep);
  color: var(--steel);
  padding: 56px 24px 32px;
  border-top: 3px solid var(--hivis);
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  font-size: 19px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--steel); text-decoration: none; }
.footer-grid a:hover { color: var(--hivis); }
.footer-bottom {
  max-width: 1120px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #26272b;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ironsand-deep);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 3px solid var(--hivis);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 64px 24px 80px; }
  .calc-frame-wrap iframe { height: 1400px; }
}

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

/* ---------- Logo image ---------- */
.logo-img { height: 52px; width: auto; display: block; }
@media (max-width: 860px) { .logo-img { height: 44px; } }

/* ---------- Google Reviews ---------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid #dddbd5;
  padding: 16px 24px;
  text-align: center;
}
.trust-bar a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}
.trust-bar .stars { color: #fbbc04; letter-spacing: 2px; font-size: 19px; }
.trust-bar .g { color: #1192dc; font-weight: 700; }

.reviews-grid { columns: 3; column-gap: 22px; }
.review-card {
  background: var(--white);
  border-radius: 6px;
  padding: 24px 22px;
  box-shadow: 0 1px 4px rgba(16,17,20,.08);
  border-top: 4px solid #fbbc04;
  break-inside: avoid;
  margin-bottom: 22px;
}
.review-card .stars { color: #fbbc04; letter-spacing: 2px; font-size: 17px; }
.review-card p { font-size: 15px; color: #44423e; margin-top: 10px; }
.review-card .who {
  margin-top: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 16px;
  color: var(--ironsand-deep);
}
.review-card .via { font-size: 13px; color: #8b8f98; }
.reviews-cta { text-align: center; margin-top: 28px; }
.reviews-badge {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.reviews-badge .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 56px; line-height: 1; color: var(--ironsand-deep);
}
.reviews-badge .meta { text-align: left; }
.reviews-badge .stars { color: #fbbc04; font-size: 22px; letter-spacing: 3px; }
.reviews-badge .count { font-size: 15px; color: #55534e; font-weight: 600; }
@media (max-width: 1000px) { .reviews-grid { columns: 2; } }
@media (max-width: 640px) { .reviews-grid { columns: 1; } }
