/* ============================================================
   TORO ROOFING — shared stylesheet
   ============================================================ */
:root {
  --blue: #1877ff;
  --blue-dark: #0f5ad6;
  --navy: #0a1a2f;
  --navy-soft: #13294a;
  --ink: #1a2433;
  --muted: #5b6b7c;
  --bg: #f5f8fc;
  --white: #ffffff;
  --line: #e4ebf5;
  --amber: #ffb020;
  --amber-dark: #f5a400;
  --shadow-lg: 0 24px 60px -20px rgba(10, 26, 47, 0.35);
  --shadow-md: 0 12px 32px -12px rgba(10, 26, 47, 0.22);
  --shadow-sm: 0 6px 18px -8px rgba(10, 26, 47, 0.2);
  --radius: 16px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  line-height: 1.06;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; font-size: 18px;
  padding: 14px 26px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -6px rgba(24,119,255,.55); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--navy); box-shadow: 0 8px 20px -6px rgba(255,176,32,.55); }
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; font-size: 20px; padding: 17px; }
.btn-lg { font-size: 20px; padding: 17px 34px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 50px; width: auto; }
.brand .name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px;
  color: var(--navy); text-transform: uppercase; letter-spacing: 1px; line-height: 1;
}
.brand .name span { color: var(--blue); }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link, .main-nav .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15.5px; color: var(--navy);
  padding: 10px 16px; border-radius: 10px; background: none; border: none; cursor: pointer;
  font-family: inherit; transition: color .15s, background .15s;
}
.main-nav a.nav-link:hover, .main-nav .nav-toggle:hover,
.main-nav a.nav-link.active { color: var(--blue); background: rgba(24,119,255,.08); }
.caret { width: 12px; height: 12px; transition: transform .2s; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background .15s, color .15s;
}
.dropdown a:hover { background: rgba(24,119,255,.08); color: var(--blue); }
.dropdown a .di {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(24,119,255,.1); display: grid; place-items: center;
}
.dropdown a .di svg { width: 18px; height: 18px; }

.header-cta { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.header-phone small { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.header-phone .num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; color: var(--navy); }

/* Mobile toggle */
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative; color: #fff; padding: 72px 0;
  background: linear-gradient(180deg, rgba(10,26,47,.88), rgba(10,26,47,.78)), var(--navy);
  background-size: cover; background-position: center;
}
.page-hero.with-photo { background: linear-gradient(180deg, rgba(10,26,47,.82), rgba(10,26,47,.8)), url('../assets/roofer-work.jpg') center 35% / cover; }
.breadcrumb { font-size: 13.5px; color: #a9bdd6; margin-bottom: 14px; letter-spacing: .3px; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: #dce6f2; max-width: 620px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; color: #fff; padding: 76px 0 84px;
  background: linear-gradient(180deg, rgba(10,26,47,.86), rgba(10,26,47,.72) 45%, rgba(10,26,47,.85)),
              url('../assets/hero.jpg') center 30% / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(24,119,255,.18); border: 1px solid rgba(24,119,255,.5); color: #cfe2ff;
  font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 100px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.hero h1 { font-size: clamp(42px, 5.2vw, 66px); font-weight: 800; margin-bottom: 20px; }
.hero h1 .accent { color: var(--amber); }
.hero .lede { font-size: 19px; color: #dce6f2; max-width: 560px; margin-bottom: 28px; }
.hero-points { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: #eaf1fa; }
.check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.check svg { width: 15px; height: 15px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.block { padding: 84px 0; }
section.block.alt { background: var(--bg); }
.section-head { max-width: 660px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-block; color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Service 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; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(24,119,255,.3); }
.card .ic { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 30px; height: 30px; }
.card h3 { font-size: 23px; color: var(--navy); margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.card .more { font-family: 'Barlow Condensed'; font-weight: 700; letter-spacing: .5px; color: var(--blue); text-transform: uppercase; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 16px; height: 16px; transition: transform .15s; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Feature rows (two-column content + image) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; max-height: 460px; }
.feature h2 { font-size: clamp(30px, 3.6vw, 42px); color: var(--navy); font-weight: 800; margin-bottom: 16px; }
.feature p { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 20px 0 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); font-weight: 500; }
.ticks .tk { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(24,119,255,.12); display: grid; place-items: center; margin-top: 2px; }
.ticks .tk svg { width: 14px; height: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; }
.stat .num { font-family: 'Barlow Condensed'; font-size: 52px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 6px; }
.stat.on-dark .num { color: var(--amber); }
.stat h4 { font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.stat.on-dark h4 { color: #fff; }
.stat p { font-size: 14px; color: var(--muted); }
.stat.on-dark p { color: #b7c6db; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .badge { width: 52px; height: 52px; border-radius: 50%; background: rgba(24,119,255,.1); color: var(--blue); font-family: 'Barlow Condensed'; font-weight: 800; font-size: 26px; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 21px; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Trust bar ---------- */
.trust { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.trust-item .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(24,119,255,.1); display: grid; place-items: center; }
.trust-item .ic svg { width: 24px; height: 24px; }
.trust-item .tx strong { display: block; font-family: 'Barlow Condensed'; font-size: 19px; color: var(--navy); letter-spacing: .5px; line-height: 1.1; }
.trust-item .tx span { font-size: 12.5px; color: var(--muted); }

/* ---------- Dark section ---------- */
.dark { background: var(--navy); color: #fff; }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #b7c6db; }

/* ---------- Service area chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 10px 20px; font-weight: 600; font-size: 15px; color: var(--navy); }
.dark .chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #eaf1fa; }

/* ---------- Before / After slider ---------- */
.ba-slider {
  position: relative; width: 100%; max-width: 960px; margin: 0 auto;
  aspect-ratio: 1400 / 974; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); user-select: none; touch-action: none; cursor: ew-resize;
  background: var(--bg);
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after-img { z-index: 1; }
.ba-before-img { z-index: 2; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-label {
  position: absolute; top: 16px; z-index: 3; padding: 7px 16px; border-radius: 100px;
  font-family: 'Barlow Condensed'; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  font-size: 14px; color: #fff; backdrop-filter: blur(4px);
}
.ba-label.before { left: 16px; background: rgba(10,26,47,.72); }
.ba-label.after { right: 16px; background: rgba(24,119,255,.85); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; z-index: 4; left: var(--pos, 50%);
  width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 12px rgba(0,0,0,.35);
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: ew-resize;
}
.ba-handle svg { width: 26px; height: 26px; color: var(--blue); }
.ba-range {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.ba-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- Reviews ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.stars { color: var(--amber); font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.review p { color: var(--ink); font-size: 15.5px; margin-bottom: 18px; font-style: italic; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; display: grid; place-items: center; font-family: 'Barlow Condensed'; font-weight: 700; font-size: 20px; }
.review .who strong { display: block; color: var(--navy); font-size: 15px; }
.review .who span { color: var(--muted); font-size: 13px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.form-head { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; padding: 24px 28px; text-align: center; }
.form-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.form-head p { font-size: 14px; color: #dce9ff; text-transform: none; font-family: 'Inter'; letter-spacing: 0; }
.form-body { padding: 26px 28px 30px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: #f7fafd; border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(24,119,255,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ---------- Contact info blocks ---------- */
.info-list { list-style: none; display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ic { flex: none; width: 50px; height: 50px; border-radius: 12px; background: rgba(24,119,255,.1); display: grid; place-items: center; }
.info-item .ic svg { width: 24px; height: 24px; }
.info-item h4 { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--muted); font-size: 15.5px; }
.info-item a:hover { color: var(--blue); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; text-align: center; padding: 66px 0; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { font-size: 18px; color: #e2edff; max-width: 580px; margin: 0 auto 28px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.cta-phone { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 34px; color: #fff; display: inline-flex; align-items: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb2c9; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 66px; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; letter-spacing: 1px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a, .site-footer ul li { font-size: 14.5px; color: #9fb2c9; transition: color .15s; }
.site-footer ul a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---------- Mobile call bar ---------- */
.mobile-call { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--amber); color: var(--navy); text-align: center; padding: 15px; font-family: 'Barlow Condensed'; font-weight: 800; font-size: 21px; letter-spacing: 1px; box-shadow: 0 -6px 20px rgba(0,0,0,.2); }

/* ---------- Utility ---------- */
.lede-block { max-width: 760px; }
.mt-0 { margin-top: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .stats, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .menu-btn { display: block; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed; inset: 82px 0 0 auto; width: min(340px, 86vw);
    background: #fff; border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(10,26,47,.15);
    flex-direction: column; align-items: stretch; gap: 0; padding: 18px;
    transform: translateX(105%); transition: transform .28s ease; overflow-y: auto; margin-left: 0;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .main-nav a.nav-link, .main-nav .nav-toggle { width: 100%; justify-content: space-between; font-size: 17px; padding: 14px 14px; }
  .has-dropdown { position: static; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; min-width: 0; padding: 0 0 8px 10px;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .has-dropdown.open .dropdown { max-height: 500px; }
  .has-dropdown:hover .caret { transform: none; }
  .has-dropdown.open .caret { transform: rotate(180deg); }
  .header-cta .btn { display: none; }
  .main-nav .btn.mobile-quote { display: inline-flex; margin-top: 12px; width: 100%; }
}
@media (min-width: 1001px) { .main-nav .btn.mobile-quote { display: none; } }

@media (max-width: 620px) {
  .header-inner { height: 68px; }
  .brand img { height: 40px; }
  .brand .name { font-size: 20px; }
  .main-nav { inset: 68px 0 0 auto; }
  .grid-3, .grid-2, .grid-4, .steps, .stats, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  .page-hero { padding: 52px 0; }
  .field-row { grid-template-columns: 1fr; }
  .mobile-call { display: block; }
  body { padding-bottom: 56px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Body offset so fixed mobile bar doesn't cover footer already handled above */
