/* W Contracting Roof Repair Regina — Bluebird wireframe, roofing/construction brand.
   Palette sampled from the real W Contracting logo: brand red #C00018, black outline,
   white. Charcoal (#17181C) stands in for the logo's black on large surfaces.
   Token names kept from the base build; only the VALUES are re-pointed to brand.
   Montserrat headings + Inter body. */

:root {
  --navy: #17181c;   /* charcoal (logo black) — headings, dark sections, footer */
  --navy-2: #26282f;
  --orange: #c00018; /* W Contracting brand red — CTAs, kickers, icons, accents */
  --orange-2: #99000f;
  --sky: #ff5a68;    /* light red — accents on dark backgrounds */
  --ink: #1e2126;
  --muted: #626b74;
  --line: #e6e8ec;
  --tint: #f6f5f3;   /* warm neutral tint */
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 24, 28, 0.12);
  --shadow-sm: 0 4px 14px rgba(23, 24, 28, 0.09);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); line-height: 1.65; background: var(--white); font-size: 16.5px; }
img, svg, iframe { max-width: 100%; }
a { color: var(--navy-2); }

h1, h2, h3, .btn, .logo { font-family: var(--font-head); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.18; font-weight: 800; color: var(--navy); letter-spacing: -0.3px; margin-bottom: 0.6em; }
h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 840px; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child, .prose .kicker + h2 { margin-top: 0; }
.prose p { margin-bottom: 1.05em; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.section { padding: 78px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); }
.section-dark h2, .section-dark p { color: var(--white); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 14px; z-index: 99; }

.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 10px;
}
.section-dark .kicker { color: var(--sky); }

/* icons */
.ic { width: 22px; height: 22px; flex: 0 0 auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-cta { background: var(--orange); color: var(--white); }
.btn-cta:hover { background: var(--orange-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.hero .btn-ghost, .page-head .btn-ghost { border-color: rgba(255, 255, 255, 0.65); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 26px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.logo b { color: var(--orange); font-weight: 800; }
.logo-ic { width: 30px; height: 30px; color: var(--orange); }
.logo-img { display: block; height: 48px; width: auto; }
.logo-chip { background: var(--white); padding: 8px 12px; border-radius: 10px; }
.logo-chip .logo-img { height: 42px; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav a { display: block; padding: 10px 13px; text-decoration: none; font-weight: 600; font-size: 0.94rem; color: var(--navy); border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--tint); color: var(--orange-2); }
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 0.7em; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; display: none !important; flex-direction: column; gap: 0;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex !important; }
.sub a { padding: 9px 12px; font-weight: 500; }

.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; font-size: 0.95rem; }
.header-phone .ic { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(192, 0, 24, 0.34), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 62%, #3a1518 100%);
  padding: 84px 0 92px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-copy h1 { color: var(--white); margin: 6px 0 18px; }
.hero-sub { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); max-width: 56ch; }
.page-head .hero-sub, .page-head h1 { color: inherit; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.badge-row li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.badge-row .ic { width: 17px; height: 17px; color: var(--sky); }
.badge-dark li { color: var(--navy); }
.badge-dark .ic { color: var(--orange); }

/* estimate form card */
.form-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 28px 26px; border-top: 5px solid var(--orange);
}
.form-kicker { font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.form-title { font-size: 1.45rem; margin: 4px 0 16px; }
.form-rating { display: flex; align-items: center; gap: 8px; margin: -8px 0 14px; font-weight: 600; font-size: 0.92rem; }
.form-rating b { font-size: 1rem; }
.form-rating .stars { display: inline-flex; gap: 2px; }
.form-rating .stars .ic { width: 17px; height: 17px; color: #f5b301; fill: #f5b301; }
.form-card label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.form-card input, .form-card textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 13px; font: inherit;
  border: 1.5px solid var(--line); border-radius: 9px; background: #fbfdfe;
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------------- page head (interior heroes) ---------------- */
.page-head {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(192, 0, 24, 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  padding: 72px 0;
}
.page-head h1 { color: var(--white); margin: 6px 0 14px; }
.page-head .hero-sub { color: rgba(255, 255, 255, 0.85); }

/* breadcrumbs */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }

/* ---------------- cards ---------------- */
.card-grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.svc-card, .benefit-card, .offer-card, .team-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky); }
.svc-card .ic, .benefit-card .ic { width: 40px; height: 40px; color: var(--orange); margin-bottom: 14px; }
.svc-card h3, .benefit-card h3 { margin-bottom: 8px; }
.svc-card p, .benefit-card p, .offer-card p { font-size: 0.92rem; color: var(--muted); }
.link-more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.88rem; color: var(--orange-2); }

/* ---------------- why / two-col ---------------- */
.why-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center; }
.why-list { list-style: none; display: grid; gap: 20px; margin-top: 22px; }
.why-list li { display: flex; gap: 14px; }
.why-list .ic { color: var(--orange); margin-top: 4px; }
.why-list p { color: var(--muted); font-size: 0.94rem; }

.check-list { list-style: none; display: grid; gap: 12px; margin: 18px 0; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-weight: 500; }
.check-list .ic { color: var(--orange); margin-top: 3px; width: 19px; height: 19px; }

/* ---------------- photo & widget placeholders ---------------- */
.photo-ph, .map-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(192, 0, 24, 0.06) 0 14px, rgba(192, 0, 24, 0.12) 14px 28px),
    linear-gradient(160deg, #f2efec, #e6e2de);
  border: 2px dashed rgba(23, 24, 28, 0.25); border-radius: var(--radius);
  color: var(--navy); font-weight: 700; font-family: var(--font-head); text-align: center;
  min-height: 300px; padding: 24px;
}
.photo-ph small, .map-ph small { font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.ph-ic { width: 42px; height: 42px; opacity: 0.55; }
.map-ph { min-height: 260px; }
.why-photo { min-height: 360px; }

/* real photos */
.media-img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.media-img.why-photo { min-height: 360px; height: 100%; max-height: 460px; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--tint); }
.gallery-item img { display: block; width: 100%; height: 280px; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------------- reviews (real testimonials) ---------------- */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 10px; }
.review-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 90, 104, 0.3);
  border-radius: var(--radius); padding: 26px 24px;
}
.review-card .stars { display: inline-flex; gap: 3px; margin-bottom: 12px; }
.review-card .stars .ic { color: #f5b301; fill: #f5b301; width: 20px; height: 20px; }
.review-card blockquote { color: rgba(255, 255, 255, 0.92); font-size: 1rem; line-height: 1.6; }
.review-card figcaption { margin-top: 14px; font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 0.92rem; }
.review-card figcaption .muted { color: rgba(255, 255, 255, 0.55); font-weight: 500; }
.review-cta { text-align: center; margin-top: 30px; }

/* ---------------- areas ---------------- */
.areas-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: stretch; margin-top: 10px; }
.area-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.area-card {
  display: flex; align-items: center; gap: 10px; padding: 15px 17px; background: var(--white);
  border: 1px solid var(--line); border-radius: 11px; text-decoration: none; font-weight: 700;
  color: var(--navy); box-shadow: var(--shadow-sm);
}
.area-card:hover { border-color: var(--sky); color: var(--orange-2); }
.area-card .ic { color: var(--orange); }
.area-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }
.areas-grid .media-img { height: 100%; min-height: 320px; object-fit: cover; }
.contact-map iframe { width: 100%; min-height: 300px; border: 0; border-radius: var(--radius); }
/* Driving-directions cards (town pages) — 3-up desktop, stacked on mobile. */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 22px; }
.dir-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.dir-card .area-map iframe { min-height: 190px; }
.dir-card .btn { margin-top: 12px; }
@media (max-width: 860px) { .dir-grid { grid-template-columns: 1fr; gap: 20px; } }
.gallery-preview { grid-template-columns: repeat(3, 1fr); }

/* ---------------- process steps ---------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; margin-top: 12px; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.step-no { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--sky); margin-bottom: 8px; }
.steps h3 { margin-bottom: 7px; }
.steps p { font-size: 0.92rem; color: var(--muted); }

/* ---------------- FAQ ---------------- */
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-head);
  font-weight: 700; color: var(--navy); position: relative; padding-right: 46px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--orange); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 22px 20px; color: var(--muted); }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%); padding: 54px 0; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band p { opacity: 0.92; margin-top: 6px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn-cta { background: var(--navy); }
.cta-band .btn-cta:hover { background: var(--navy-2); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1.1fr; gap: 36px; padding-bottom: 46px; }
.f-col h2 { font-size: 0.95rem; color: var(--sky); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.f-col ul { list-style: none; display: grid; gap: 8px; }
.f-col a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 0.93rem; }
.f-col a:hover { color: var(--sky); }
.f-brand p { font-size: 0.93rem; margin-top: 12px; }
.nap { line-height: 1.8; }
.license { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 22px; font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }

/* mobile sticky call bar */
.mobile-call {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  align-items: center; justify-content: center; gap: 10px;
  background: var(--orange); color: var(--white); font-family: var(--font-head); font-weight: 700;
  padding: 15px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 24px rgba(11, 36, 50, 0.35);
}

/* ---------------- responsive ---------------- */
@media (max-width: 1020px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .header-phone { display: none; }
}
@media (max-width: 860px) {
  .hero-grid, .why-grid, .contact-grid, .areas-grid { grid-template-columns: 1fr; gap: 36px; }
  .cols-3, .review-grid { grid-template-columns: 1fr; }
  /* backdrop-filter makes the header a containing block for the fixed nav,
     which collapses the mobile overlay — drop it and use a solid header. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--white); padding: 18px 22px 110px; display: none; overflow-y: auto; z-index: 55; }
  body.nav-open .nav { display: block; }
  body.nav-open { overflow: hidden; }
  .nav ul { flex-direction: column; }
  .sub { position: static; display: flex !important; box-shadow: none; border: 0; padding-left: 16px; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .mobile-call { display: flex; }
  .site-footer { padding-bottom: 76px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
}
@media (max-width: 560px) {
  .cols-4, .footer-grid, .steps, .area-cards { grid-template-columns: 1fr; }
  /* keep the home "recent work" teaser as 3 compact square thumbnails, not tall slivers */
  .gallery-preview { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gallery-preview .gallery-item img { height: 96px; }
}

/* ---- Answer-first block (AI/GEO layer, 2026 launch standard) ----
   Sits directly under the H1 inside .hero / .page-head (both dark surfaces). */
.answer-first {
  margin: 14px 0 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 62ch;
}
.answer-first p { color: rgba(255, 255, 255, 0.92); font-size: 0.98rem; }
.answer-first .page-meta {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
