/* =====================================================================
   Robust Roofing — shared stylesheet
   Clean, Elementor-free. Brand tokens match the spec exactly.
   Single stylesheet shared by every page.
   ===================================================================== */

:root {
  --gold: rgba(195, 164, 56, 1);
  --gold-dim: rgba(195, 164, 56, 0.85);
  --gold-border: rgba(195, 164, 56, 0.28);
  --gold-glow: rgba(195, 164, 56, 0.1);
  --bg: #0a0a09;
  --bg-elev: #14140f;
  --text: #ffffff;
  --text2: #d8d8d2;
  --text3: #a8a89e;
  --text4: #6f6f66;
  --red: #ff6b6b;
  --green: #7ec97e;
  --border-md: rgba(255, 255, 255, 0.08);

  --maxw: 1180px;
  --radius: 14px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dim); }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { color: var(--text2); margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }

/* eyebrow label above headings */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--text2); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- canonical CTA button (matches site Elementor button) ----------
   gold bg / black text, 15px radius, Outfit 600, right-arrow icon,
   hover flips to solid black with white text + a subtle "grow". */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #000 !important;
  padding: 16px 26px;
  border-radius: 15px;
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { background: #000; color: #fff !important; transform: scale(1.06); }
.btn--ghost {
  background: transparent;
  color: var(--gold) !important;
  border: 1px solid var(--gold-border);
  box-shadow: none;
}
.btn--ghost:hover { background: #000; color: #fff !important; border-color: #000; }
.btn--lg { padding: 22px 30px; font-size: 1.35rem; border-radius: 15px; }
.btn--arrow::after { content: "\2192"; font-weight: 600; line-height: 1; }

/* ---------- before / after comparison slider ---------- */
.ba-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}
.ba {
  position: relative; overflow: hidden; line-height: 0;
  border: 2px solid var(--gold); border-radius: 6px;
  user-select: none; touch-action: none;
}
.ba img { width: 100%; display: block; }
.ba .ba-after {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.ba .ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: var(--gold); transform: translateX(-1px); pointer-events: none;
}
.ba .ba-handle {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); border: 2px solid #000; color: #000;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; pointer-events: none;
}
.ba .ba-label {
  position: absolute; bottom: 12px; line-height: 1.2;
  padding: 5px 11px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.62); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; pointer-events: none;
}
.ba .ba-label.before { left: 12px; }
.ba .ba-label.after { right: 12px; }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 9, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-md);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--text2); font-weight: 600; font-size: .96rem; letter-spacing: -0.01em;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 96px;
  background:
    radial-gradient(1100px 520px at 70% -10%, var(--gold-glow), transparent 60%),
    linear-gradient(180deg, var(--bg-elev), var(--bg));
  border-bottom: 1px solid var(--border-md);
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 6px; margin-bottom: 30px; }

/* full-bleed photo hero (homepage) */
.hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 130px 0 120px;
}
.hero--bg::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,9,.45) 0%, rgba(10,10,9,.72) 100%);
}
.hero--bg .container { position: relative; z-index: 1; }
.hero--bg h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero--bg .lead { margin-left: auto; margin-right: auto; }

/* ---------- accordion (why us / FAQ) ---------- */
.accordion { max-width: 820px; margin: 0 auto; }
.acc-item {
  border: 1px solid var(--border-md);
  border-radius: 12px;
  background: var(--bg-elev);
  margin-bottom: 12px;
  overflow: hidden;
}
.acc-item > summary {
  list-style: none; cursor: pointer;
  padding: 20px 22px;
  font-weight: 700; font-size: 1.06rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-item > summary::after {
  content: "+"; color: var(--gold); font-weight: 800; font-size: 1.4rem; line-height: 1;
  transition: transform .2s ease;
}
.acc-item[open] > summary::after { transform: rotate(45deg); }
.acc-item .acc-body { padding: 0 22px 20px; color: var(--text2); }

/* ---------- gallery ---------- */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.gallery figure {
  margin: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-md); background: var(--bg-elev);
}
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- process steps ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step {
  background: var(--bg-elev); border: 1px solid var(--border-md);
  border-radius: 14px; padding: 26px;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold-glow); border: 1px solid var(--gold-border);
  color: var(--gold); font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text3); margin: 0; font-size: .96rem; }

/* ---------- video grid (testimonials) ---------- */
.videos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.video {
  position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-md);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.placeholder-note {
  text-align: center; color: var(--text4); font-style: italic;
  border: 1px dashed var(--border-md); border-radius: 12px; padding: 40px 20px;
}

/* ---------- forms ---------- */
.form { max-width: 640px; }
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--text2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border-md); color: var(--text);
  font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-border); box-shadow: 0 0 0 3px var(--gold-glow);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { color: var(--text4); font-size: .82rem; margin-top: 4px; }

/* ---------- two-column blocks ---------- */
.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: 16px; border: 1px solid var(--border-md); }

/* ---------- cards (contractor) ---------- */
.card {
  background: var(--bg-elev); border: 1px solid var(--border-md);
  border-radius: 16px; padding: 40px; max-width: 560px; margin: 0 auto; text-align: center;
}
.card .btn { margin: 6px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-elev); border-top: 1px solid var(--border-md);
  padding: 64px 0 28px;
}
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1.2fr; }
.site-footer img.logo { height: 52px; margin-bottom: 16px; }
.site-footer p { color: var(--text3); font-size: .95rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { color: var(--text2); margin-bottom: 8px; }
.footer-badge { height: 90px; width: auto; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border-md);
  color: var(--text4); font-size: .85rem; text-align: center;
}
.footer-bottom a { color: var(--text4); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-elev);
    border-bottom: 1px solid var(--border-md); padding: 8px 0;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 24px; }
  .nav__cta { margin: 12px 24px; }
  .nav__toggle { display: block; }
  .split { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
