/* Well Roofing — wellroofing.ca
   Clean & trustworthy design system. No frameworks, no dependencies. */

:root {
  --navy: #0f2c4c;
  --navy-dark: #0a1f38;
  --blue: #1e6fb8;
  --blue-light: #eaf3fb;
  --sky: #58a6dd;
  --ink: #22303e;
  --gray: #5a6b7c;
  --line: #dde5ec;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(15, 44, 76, 0.08);
  --shadow-lg: 0 8px 30px rgba(15, 44, 76, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfe0ef;
  font-size: 14px;
  padding: 7px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.topbar a { color: #ffffff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .badge-velux { letter-spacing: 0.02em; }

header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy);
  display: grid; place-items: center;
  color: var(--white); font-weight: 800; font-size: 19px;
}
.logo .name { font-weight: 800; font-size: 21px; color: var(--navy); letter-spacing: -0.02em; }
.logo .name span { color: var(--blue); }

nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--blue); }
nav.main a.active { color: var(--blue); border-bottom-color: var(--blue); }
nav.main .btn { border-bottom: none; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border-radius: 8px; padding: 13px 26px; font-size: 16px;
  transition: background 0.15s, transform 0.15s;
  border: none; cursor: pointer; font-family: var(--font);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #185c99; }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy); padding: 11px 24px;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--blue-light); }
.btn-lg { padding: 16px 34px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #16406b 60%, var(--blue) 130%);
  color: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -140px; top: -60px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(88,166,221,0.25), transparent 65%);
}
.hero .container { position: relative; z-index: 1; max-width: 820px; }
.hero .kicker {
  display: inline-block; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px; padding: 6px 16px;
  font-size: 14px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 800;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 19px; color: #d8e6f3; max-width: 640px; margin-bottom: 32px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #16406b 100%);
  color: var(--white); padding: 60px 0;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; margin-bottom: 10px; }
.page-hero p { color: #d8e6f3; font-size: 18px; max-width: 640px; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust .container {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.trust .item { display: flex; align-items: center; gap: 12px; }
.trust .item svg { width: 30px; height: 30px; color: var(--blue); flex: none; }
.trust .item strong { display: block; color: var(--navy); font-size: 16px; line-height: 1.3; }
.trust .item small { color: var(--gray); font-size: 13.5px; }

/* ---------- Sections ---------- */
section.block { padding: 76px 0; }
section.block.soft { background: var(--bg-soft); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .eyebrow {
  color: var(--blue); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 13.5px; margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px); color: var(--navy);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px;
}
.section-head p { color: var(--gray); font-size: 17.5px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 27px; height: 27px; }
.card h3 { color: var(--navy); font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--gray); font-size: 15.5px; flex: 1; }
.card .link {
  margin-top: 16px; color: var(--blue); font-weight: 700;
  text-decoration: none; font-size: 15.5px;
}
.card .link:hover { text-decoration: underline; }

/* ---------- Checklist / features ---------- */
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.checks li svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 3px; }
.checks li strong { color: var(--navy); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.step .num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.step h3 { color: var(--navy); font-size: 17.5px; margin-bottom: 6px; }
.step p { color: var(--gray); font-size: 15px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .n { font-size: 42px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.stat .n span { color: var(--blue); }
.stat .l { color: var(--gray); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #16406b 100%);
  color: var(--white); border-radius: 14px;
  padding: 52px 48px; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; letter-spacing: -0.02em; }
.cta-band p { color: #d8e6f3; margin-bottom: 26px; font-size: 17.5px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px; background: var(--white);
}
details.faq summary {
  font-weight: 700; color: var(--navy); cursor: pointer; font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--gray); margin-top: 10px; font-size: 15.5px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

form.lead-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: var(--font);
  border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,111,184,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13.5px; color: var(--gray); margin-top: 12px; }

.contact-info .card { margin-bottom: 18px; }
.contact-info a { color: var(--blue); font-weight: 700; text-decoration: none; font-size: 18px; }
.contact-info a:hover { text-decoration: underline; }

/* ---------- Photos / gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.gallery img, img.photo { width: 100%; height: 320px; object-fit: cover; display: block; }
.gallery figcaption { padding: 12px 16px; font-size: 14.5px; color: var(--gray); background: var(--white); border-top: 1px solid var(--line); }
img.photo { border-radius: var(--radius); box-shadow: var(--shadow-lg); height: auto; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } .gallery img { height: 260px; } }

.footer-logo { max-width: 220px; margin-top: 6px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-dark); color: #b9cbdd; padding: 56px 0 28px;
  font-size: 15px;
}
footer.site .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px;
}
footer.site h4 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
footer.site ul { list-style: none; display: grid; gap: 9px; }
footer.site a { color: #b9cbdd; text-decoration: none; }
footer.site a:hover { color: var(--white); text-decoration: underline; }
footer.site .brand p { max-width: 300px; margin-top: 10px; }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid.cols-3, .grid.cols-2, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .topbar .badge-velux { display: none; }

  .nav-toggle { display: grid; place-items: center; }
  nav.main {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 20px; box-shadow: var(--shadow-lg);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  nav.main a.active { border-bottom-color: var(--line); }
  nav.main .btn { margin-top: 14px; text-align: center; }

  .hero { padding: 60px 0 68px; }
  section.block { padding: 56px 0; }
  .cta-band { padding: 40px 24px; }
}
