/* ============================================================
   Alpha Roofing — Global Styles
   Palette + type per design-system.md
   Same system as the Alpha Construction build (proven, Lighthouse 97-99),
   with a roofing-specific component block at the end.
   NOTE: this file is inlined into each page's <head> at build time.
   After editing it run: python3 scripts/inline-css.py
   ============================================================ */

@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black Fallback";
  src: local("Arial Bold"), local("Arial");
  size-adjust: 125.17%;
  ascent-override: 70.14%;
  descent-override: 16.78%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 113.03%;
  ascent-override: 85.64%;
  descent-override: 22.21%;
  line-gap-override: 0%;
}

:root {
  --alpha-olive: #6B8E23;
  --alpha-olive-deep: #60801F;
  --alpha-charcoal: #2B313D;
  --alpha-charcoal-deep: #20252F;
  --alpha-ink: #232833;
  --alpha-slate: #5B6472;
  --alpha-mist: #F3F4EF;
  --alpha-tint: #EDF1E0;
  --alpha-white: #FFFFFF;
  --alpha-line: #E3E5DE;
  --on-dark-muted: #B8BEC9;

  /* Roofing-only accent: urgency (storm damage, emergency tarping, 24hr). Use sparingly. */
  --alpha-alert: #C1462B;
  --alpha-alert-deep: #A63A22;

  --font-head: "Archivo Black", "Archivo Black Fallback", sans-serif;
  --font-body: "Montserrat", "Montserrat Fallback", sans-serif;

  --radius-card: 4px;
  --radius-btn: 2px;
  --shadow-card: 0 10px 30px rgba(35, 40, 51, 0.08);
  --shadow-lift: 0 18px 40px rgba(35, 40, 51, 0.16);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--alpha-ink);
  background: var(--alpha-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.12; color: var(--alpha-ink); }
h1 { font-size: clamp(34px, 4.6vw, 56px); text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 24px; }
h4 { font-size: 19px; }

.lead { color: var(--alpha-slate); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--alpha-tint);
  color: var(--alpha-olive-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-btn);
  margin-bottom: 18px;
}
.kicker--on-dark { background: rgba(107, 142, 35, 0.18); color: #A8C566; }
.kicker--alert { background: rgba(193, 70, 43, 0.12); color: var(--alpha-alert-deep); }

.highlight { color: var(--alpha-olive); }

.hero .highlight {
  background: linear-gradient(100deg, #8FB33E 0%, var(--alpha-olive) 55%, var(--alpha-olive-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 15px;
}
.btn--primary {
  background: var(--alpha-olive);
  color: #fff;
  border-bottom: 2px solid var(--alpha-olive-deep);
}
.btn--primary:hover { background: var(--alpha-olive-deep); transform: translateY(-1px); }
.btn--dark {
  background: var(--alpha-charcoal);
  color: #fff;
  border-bottom: 2px solid var(--alpha-charcoal-deep);
}
.btn--dark:hover { background: var(--alpha-charcoal-deep); transform: translateY(-1px); }
.btn--dark .btn-arrow { background: rgba(107, 142, 35, 0.35); }
.btn--light {
  background: #fff;
  color: var(--alpha-ink);
  border-bottom: 2px solid var(--alpha-line);
}
.btn--light .btn-arrow { background: var(--alpha-tint); color: var(--alpha-olive-deep); }
.btn--light:hover { background: var(--alpha-mist); transform: translateY(-1px); }
/* Emergency / storm CTAs only — never the default action button */
.btn--alert {
  background: var(--alpha-alert);
  color: #fff;
  border-bottom: 2px solid var(--alpha-alert-deep);
}
.btn--alert:hover { background: var(--alpha-alert-deep); transform: translateY(-1px); }

/* ---------- Topbar ---------- */

.topbar {
  background: var(--alpha-charcoal-deep);
  color: var(--on-dark-muted);
  font-size: 13px;
  padding: 9px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; stroke: var(--alpha-olive); flex-shrink: 0; }
.topbar-social { display: flex; align-items: center; gap: 10px; }
.topbar-social span { margin-right: 2px; }
.topbar-social a {
  display: inline-flex;
  width: 24px; height: 24px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background 0.2s ease;
}
.topbar-social a:hover { background: var(--alpha-olive); }
.topbar-social svg { width: 12px; height: 12px; fill: #fff; }

/* ---------- Navbar ---------- */

.navbar {
  background: var(--alpha-charcoal);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.navbar .container { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark img { height: 100%; width: auto; }
.brand-name { font-family: var(--font-head); color: #fff; font-size: 19px; line-height: 1.1; letter-spacing: 0.02em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: 0.28em; color: var(--alpha-olive); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > li { position: relative; }
.nav-links a { color: #E8EAEE; font-weight: 600; font-size: 15px; transition: color 0.2s ease; display: inline-flex; align-items: center; gap: 5px; }
.nav-links a:hover, .nav-links a.active { color: var(--alpha-olive); }
.nav-links a.active { color: #A8C566; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  min-width: 260px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.nav-links li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.dropdown-menu a { display: block; padding: 9px 20px; color: var(--alpha-ink); font-size: 14px; }
.dropdown-menu a:hover { background: var(--alpha-mist); color: var(--alpha-olive-deep); }

.nav-phone { display: flex; align-items: center; gap: 10px; color: #fff; }
.nav-phone svg { width: 34px; height: 34px; padding: 8px; background: rgba(107, 142, 35, 0.25); border-radius: 50%; stroke: #A8C566; }
.nav-phone small { display: block; font-size: 11px; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.nav-phone strong { font-size: 15px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; stroke: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(32, 37, 47, 0.94) 0%, rgba(32, 37, 47, 0.78) 45%, rgba(43, 49, 61, 0.55) 100%),
    url("/images/hero-roof-replacement.webp") center/cover no-repeat;
  color: #fff;
  padding: 88px 0 120px;
}
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-sub { color: var(--on-dark-muted); max-width: 54ch; margin-bottom: 32px; font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-call { display: flex; align-items: center; gap: 12px; }
.hero-call svg { width: 46px; height: 46px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; stroke: #A8C566; }
.hero-call small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.hero-call strong { font-size: 17px; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 16px 24px;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #DDE1E8;
}
.trust-strip svg { width: 16px; height: 16px; stroke: var(--alpha-olive); fill: none; flex-shrink: 0; }

/* Quote form card */

.quote-card {
  background: var(--alpha-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 4px solid var(--alpha-olive);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 30px 28px;
}
.quote-card h3 { color: #fff; margin-bottom: 6px; }
.quote-card p { color: var(--on-dark-muted); font-size: 14px; margin-bottom: 20px; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form input, .quote-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--alpha-ink);
  background: #fff;
  border: 1px solid var(--alpha-line);
  border-radius: var(--radius-btn);
  padding: 13px 14px;
}
.quote-form select { color: var(--alpha-slate); }
.quote-form input::placeholder { color: var(--alpha-slate); }
.quote-form .full { grid-column: 1 / -1; }
.quote-form .btn { justify-content: center; }
.quote-note { grid-column: 1 / -1; font-size: 12px; color: var(--on-dark-muted); text-align: center; margin-top: 2px; }

/* Overlap card below hero */

.hero-overlap { position: relative; margin-top: -64px; z-index: 5; }
.overlap-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--alpha-line);
  box-shadow: var(--shadow-lift);
  padding: 26px 34px;
}
.overlap-card .flag { font-size: 34px; }
.overlap-card h3 { margin-bottom: 4px; }
.overlap-card p { color: var(--alpha-slate); font-size: 15px; max-width: 62ch; }
.overlap-card .btn { margin-left: auto; }

/* ---------- Section scaffolding ---------- */

.section { padding: 96px 0; }
.section--mist { background: var(--alpha-mist); }
.section--dark { background: var(--alpha-charcoal); color: #fff; }
.section--dark h2 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 52px; }
.section-head .lead { max-width: 46ch; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-photos { position: relative; }
.about-photos .photo-main { border-radius: var(--radius-card); box-shadow: var(--shadow-card); width: 86%; }
.about-photos .photo-inset {
  position: absolute;
  right: 0;
  top: 18%;
  width: 52%;
  border-radius: var(--radius-card);
  border: 6px solid #fff;
  box-shadow: var(--shadow-lift);
}
.about-badge {
  position: absolute;
  left: 6%;
  bottom: -26px;
  background: var(--alpha-olive);
  color: #fff;
  border-radius: var(--radius-card);
  border-bottom: 3px solid var(--alpha-olive-deep);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lift);
}
.about-badge svg { width: 34px; height: 34px; stroke: #fff; }
.about-badge strong { font-family: var(--font-head); font-size: 20px; display: block; line-height: 1.1; }
.about-badge span { font-size: 13px; font-weight: 600; }

.about-copy h2 { margin: 0 0 18px; }
.about-copy > p { color: var(--alpha-slate); margin-bottom: 24px; }
.checklist { display: grid; gap: 12px; margin-bottom: 30px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.checklist svg { width: 20px; height: 20px; stroke: var(--alpha-olive); flex-shrink: 0; margin-top: 3px; }

.stat-row { display: flex; gap: 48px; border-top: 1px solid var(--alpha-line); padding-top: 26px; margin-bottom: 32px; }
.stat strong { font-family: var(--font-head); font-size: clamp(30px, 3vw, 42px); color: var(--alpha-olive); display: block; line-height: 1; }
.stat span { color: var(--alpha-slate); font-size: 14px; font-weight: 600; }

/* ---------- Marquee ---------- */

.marquee {
  background: var(--alpha-olive);
  border-block: 3px solid var(--alpha-olive-deep);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span::after { content: "✦"; font-size: 16px; color: rgba(255, 255, 255, 0.65); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff;
  border: 1px solid var(--alpha-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-media { position: relative; }
.service-media img { height: 220px; width: 100%; object-fit: cover; }
.service-icon {
  position: absolute;
  right: 18px;
  bottom: -22px;
  width: 48px; height: 48px;
  background: var(--alpha-olive);
  border-bottom: 3px solid var(--alpha-olive-deep);
  border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 24px; height: 24px; stroke: #fff; }
.service-body { padding: 30px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-body p { color: var(--alpha-slate); font-size: 14.5px; flex: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--alpha-olive-deep);
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.service-link:hover { color: var(--alpha-ink); }

/* ---------- Process ---------- */

.section--dark { position: relative; overflow: hidden; }
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.section--dark .container { position: relative; }
.process-intro { text-align: center; max-width: 60ch; margin: 0 auto 56px; }
.process-intro .lead { color: var(--on-dark-muted); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 26px 24px 28px;
  position: relative;
}
.process-num {
  font-family: var(--font-head);
  font-size: 44px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--alpha-olive);
  display: block;
  text-align: right;
  margin-bottom: 14px;
}
.process-card .rule { width: 52px; height: 3px; background: var(--alpha-olive); margin-bottom: 18px; }
.process-icon {
  width: 48px; height: 48px;
  background: var(--alpha-tint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.process-icon svg { width: 24px; height: 24px; stroke: var(--alpha-olive-deep); }
.process-card h4 { margin-bottom: 6px; }
.process-card p { font-size: 13.5px; color: var(--alpha-slate); }

/* ---------- Projects ---------- */

.projects-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
.projects-col { display: grid; gap: 24px; }
.projects-col--split { grid-template-columns: 1fr 1fr; align-content: start; }
.project-tile { position: relative; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.project-tile img { width: 100%; height: 100%; object-fit: cover; }
.project-tile--tall img { min-height: 460px; }
.project-tile--wide img { height: 250px; }
.project-tile--sq img { height: 250px; }
.project-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: var(--shadow-card);
}
.project-caption small { color: var(--alpha-slate); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; display: block; }
.project-caption h4 { font-size: 16px; }
.project-caption .go {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--alpha-olive);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.quote-banner {
  margin-top: 28px;
  background:
    linear-gradient(90deg, rgba(43, 49, 61, 0.93), rgba(43, 49, 61, 0.82)),
    url("/images/quote-roof-crew.webp") center/cover;
  border-radius: var(--radius-card);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.quote-banner h3 { color: #fff; font-size: clamp(20px, 2.4vw, 28px); }

/* ---------- Why choose ---------- */

.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.why-photo { position: relative; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.why-photo img { height: 100%; min-height: 480px; object-fit: cover; }
.why-photo-note {
  position: absolute;
  left: 20px; bottom: 20px; right: 20px;
  background: rgba(32, 37, 47, 0.88);
  border-radius: var(--radius-card);
  color: #fff;
  padding: 20px 22px;
}
.why-photo-note h4 { color: #fff; margin-bottom: 4px; }
.why-photo-note p { color: var(--on-dark-muted); font-size: 13.5px; margin-bottom: 14px; }
.why-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.why-tile {
  background: #fff;
  border: 1px solid var(--alpha-line);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.why-tile .why-icon {
  width: 52px; height: 52px;
  background: var(--alpha-olive);
  border-bottom: 3px solid var(--alpha-olive-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.why-tile svg { width: 26px; height: 26px; stroke: #fff; }
.why-tile h4 { margin-bottom: 6px; }
.why-tile p { color: var(--alpha-slate); font-size: 13.5px; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(100deg, rgba(32, 37, 47, 0.95) 10%, rgba(43, 49, 61, 0.72)),
    url("/images/cta-roof-aerial.webp") center/cover;
  color: #fff;
  padding: 96px 0;
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-copy h2 { color: #fff; margin-bottom: 16px; }
.cta-copy p { color: var(--on-dark-muted); margin-bottom: 30px; }
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-card { background: #fff; border-radius: var(--radius-card); padding: 28px 24px; color: var(--alpha-ink); }
.cta-card .service-iconish {
  width: 50px; height: 50px;
  background: var(--alpha-olive);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: -53px 0 16px;
  border: 4px solid var(--alpha-charcoal);
}
.cta-card svg { width: 24px; height: 24px; stroke: #fff; }
.cta-card h4 { margin-bottom: 8px; }
.cta-card p { font-size: 13.5px; color: var(--alpha-slate); }

/* ---------- Footer ---------- */

.footer { background: var(--alpha-charcoal-deep); color: var(--on-dark-muted); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-about p { font-size: 14px; margin: 18px 0 22px; max-width: 34ch; }
.footer ul { display: grid; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--alpha-olive); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact a { overflow-wrap: anywhere; }
.footer ul a { display: inline-block; padding: 4px 0; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--alpha-olive); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--alpha-olive); }

/* ---------- Interior page hero ---------- */

.page-hero {
  background: linear-gradient(rgba(32, 37, 47, 0.82), rgba(43, 49, 61, 0.88)),
    url("/images/page-hero-roofline.webp") center/cover;
  padding: 88px 0 84px;
  color: #fff;
}
.page-hero h1 { color: #fff; margin: 14px 0 16px; font-size: clamp(32px, 4.4vw, 48px); }
.page-hero .lead { color: var(--on-dark-muted); max-width: 62ch; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 10px; }
.breadcrumb a { color: #A8C566; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Service detail layout ---------- */

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.detail-copy h2 { margin: 34px 0 14px; font-size: clamp(24px, 2.6vw, 32px); }
.detail-copy h2:first-child { margin-top: 0; }
.detail-copy h3 { margin: 26px 0 10px; }
.detail-copy p { color: var(--alpha-slate); margin-bottom: 16px; }
.detail-copy .checklist { margin: 20px 0 26px; }
.detail-photo { border-radius: var(--radius-card); box-shadow: var(--shadow-card); width: 100%; object-fit: cover; margin: 10px 0 26px; }

.detail-sidebar { display: grid; gap: 24px; position: sticky; top: 96px; }
.sidebar-card {
  background: var(--alpha-charcoal);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  color: #fff;
  box-shadow: var(--shadow-card);
}
.sidebar-card h3 { color: #fff; margin-bottom: 8px; }
.sidebar-card p { color: var(--on-dark-muted); font-size: 14px; margin-bottom: 18px; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.sidebar-card .hero-call { color: #fff; }
.sidebar-links { background: #fff; border: 1px solid var(--alpha-line); border-radius: var(--radius-card); padding: 24px 26px; box-shadow: var(--shadow-card); }
.sidebar-links h4 { margin-bottom: 14px; }
.sidebar-links ul { display: grid; gap: 2px; }
.sidebar-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 14px; color: var(--alpha-ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-links a:hover, .sidebar-links a.active { background: var(--alpha-tint); color: var(--alpha-olive-deep); }

/* Feature tiles reused on service pages */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0 6px; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 14px; max-width: 820px; }
.faq-item { background: #fff; border: 1px solid var(--alpha-line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--alpha-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-head); font-size: 20px; color: var(--alpha-olive); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--alpha-slate); font-size: 15px; }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info-card {
  background: var(--alpha-charcoal); border-radius: var(--radius-card); padding: 36px 32px; color: #fff; box-shadow: var(--shadow-card);
}
.contact-info-card h3 { color: #fff; margin-bottom: 8px; }
.contact-info-card > p { color: var(--on-dark-muted); font-size: 14.5px; margin-bottom: 24px; }
.contact-lines { display: grid; gap: 18px; margin-bottom: 26px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line svg { width: 38px; height: 38px; padding: 9px; background: rgba(107, 142, 35, 0.25); border-radius: 50%; stroke: #A8C566; flex-shrink: 0; fill: none; stroke-width: 2; }
.contact-line small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.contact-line strong, .contact-line a { font-size: 15px; color: #fff; overflow-wrap: anywhere; }
.contact-line > div { min-width: 0; }
.contact-line a:hover { color: #A8C566; }
.contact-form-card { background: #fff; border: 1px solid var(--alpha-line); border-radius: var(--radius-card); padding: 36px 32px; box-shadow: var(--shadow-card); }
.contact-form-card h3 { margin-bottom: 6px; }
.contact-form-card > p { color: var(--alpha-slate); font-size: 14.5px; margin-bottom: 22px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--alpha-mist); border: 1px solid var(--alpha-line); border-radius: var(--radius-btn);
  padding: 13px 15px; font-family: var(--font-body); font-size: 16px; color: var(--alpha-ink); width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .btn { justify-content: center; }
.map-embed { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); margin-top: 56px; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ============================================================
   ROOFING-SPECIFIC COMPONENTS
   Everything above is shared with the construction build.
   Everything below exists only because roofing sells differently:
   storm urgency, insurance claims, warranties, material brands.
   ============================================================ */

/* ---------- Storm / emergency banner (sits above topbar, opt-in) ---------- */

.storm-banner {
  background: var(--alpha-alert);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 0;
}
.storm-banner .container { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.storm-banner svg { width: 18px; height: 18px; stroke: #fff; fill: none; flex-shrink: 0; }
.storm-banner a {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55); padding-bottom: 1px;
}
.storm-banner a:hover { border-bottom-color: #fff; }

/* ---------- Damage signs grid ("Do you need a new roof?") ---------- */

.signs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sign-card {
  background: #fff;
  border: 1px solid var(--alpha-line);
  border-left: 3px solid var(--alpha-olive);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.sign-card--urgent { border-left-color: var(--alpha-alert); }
.sign-card svg { width: 28px; height: 28px; stroke: var(--alpha-olive-deep); fill: none; flex-shrink: 0; margin-top: 2px; }
.sign-card--urgent svg { stroke: var(--alpha-alert); }
.sign-card h4 { font-size: 17px; margin-bottom: 4px; }
.sign-card p { color: var(--alpha-slate); font-size: 13.5px; }

/* ---------- Insurance claim band (charcoal, numbered rail) ---------- */

.claim-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.claim-steps { display: grid; gap: 0; }
.claim-step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.claim-step:last-child { border-bottom: 0; }
.claim-step .num {
  font-family: var(--font-head);
  font-size: 18px;
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(107, 142, 35, 0.2);
  border: 1px solid rgba(107, 142, 35, 0.45);
  border-radius: var(--radius-btn);
  color: #A8C566;
}
.claim-step h4 { color: #fff; margin-bottom: 4px; }
.claim-step p { color: var(--on-dark-muted); font-size: 14px; }
.claim-note {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--alpha-olive);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  color: var(--on-dark-muted);
  font-size: 13.5px;
  margin-top: 28px;
}
.claim-note strong { color: #fff; }

/* ---------- Material / manufacturer strip ---------- */

.material-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 48px;
  padding: 30px 32px;
  background: #fff;
  border: 1px solid var(--alpha-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.material-strip img { height: 38px; width: auto; opacity: 0.7; filter: grayscale(1); transition: opacity 0.2s ease, filter 0.2s ease; }
.material-strip img:hover { opacity: 1; filter: none; }
.material-strip .strip-label {
  font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--alpha-slate); width: 100%; text-align: center;
}

/* ---------- Roof system / material comparison cards ---------- */

.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.system-card {
  background: #fff;
  border: 1px solid var(--alpha-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.system-card--featured { border-color: var(--alpha-olive); border-top: 4px solid var(--alpha-olive); }
.system-card img { height: 190px; width: 100%; object-fit: cover; }
.system-card .system-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.system-card h4 { margin-bottom: 2px; }
.system-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.system-meta span {
  background: var(--alpha-tint);
  color: var(--alpha-olive-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-btn);
}
.system-card p { color: var(--alpha-slate); font-size: 14px; flex: 1; }

/* ---------- Warranty / guarantee callout ---------- */

.warranty-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--alpha-tint);
  border: 1px solid #DCE4C6;
  border-left: 4px solid var(--alpha-olive);
  border-radius: var(--radius-card);
  padding: 28px 32px;
}
.warranty-seal {
  width: 76px; height: 76px; flex-shrink: 0;
  background: var(--alpha-olive);
  border-bottom: 3px solid var(--alpha-olive-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.warranty-seal svg { width: 38px; height: 38px; stroke: #fff; fill: none; }
.warranty-card h3 { margin-bottom: 6px; }
.warranty-card p { color: var(--alpha-slate); font-size: 14.5px; max-width: 70ch; }

/* ---------- Before / after pair ---------- */

.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba-frame { position: relative; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.ba-frame img { width: 100%; height: 320px; object-fit: cover; }
.ba-frame .ba-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--alpha-charcoal-deep);
  color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
}
.ba-frame--after .ba-tag { background: var(--alpha-olive); }

/* ---------- Service-area column list ---------- */

.area-list { columns: 4; column-gap: 32px; }
.area-list li {
  break-inside: avoid;
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600;
  padding: 7px 0;
}
.area-list svg { width: 15px; height: 15px; stroke: var(--alpha-olive); fill: none; flex-shrink: 0; }
.area-list a:hover { color: var(--alpha-olive-deep); }

/* ---------- Review cards ---------- */

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: #fff;
  border: 1px solid var(--alpha-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars { display: flex; gap: 3px; color: var(--alpha-olive); font-size: 15px; letter-spacing: 0.1em; }
.review-card p { color: var(--alpha-slate); font-size: 14.5px; flex: 1; }
.review-who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--alpha-line); padding-top: 16px; }
.review-who .initial {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--alpha-tint);
  color: var(--alpha-olive-deep);
  border-radius: 50%;
  font-family: var(--font-head); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.review-who strong { display: block; font-size: 14.5px; }
.review-who small { color: var(--alpha-slate); font-size: 12.5px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid, .about-grid, .why-grid, .cta-grid, .claim-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 100px; }
  .quote-card { max-width: 560px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .about-photos { margin-bottom: 44px; }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .signs-grid, .system-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .area-list { columns: 3; }
}

/* ---------- Mobile navigation ---------- */

@media (max-width: 1024px) {
  .navbar .container { gap: 16px; }
  .brand { flex-shrink: 0; }
  .brand-mark { height: 48px; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
  }
  .navbar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--alpha-charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-lift);
    padding: 8px 24px 20px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .navbar.nav-open nav { display: block; }
  .navbar.nav-open .nav-links { display: grid; gap: 0; align-items: start; }
  .navbar.nav-open .nav-links a { display: flex; align-items: center; min-height: 48px; padding: 4px 0; }
  .navbar.nav-open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 6px 16px;
  }
  .navbar.nav-open .dropdown-menu a { color: #C7CBD3; font-size: 14px; padding: 4px 0; min-height: 44px; display: flex; align-items: center; }
  .navbar.nav-open .dropdown-menu a:hover { background: transparent; color: #A8C566; }
  .topbar-social a { width: 40px; height: 40px; }
  .topbar-social svg { width: 15px; height: 15px; }
  .contact-grid > *, .detail-grid > * { min-width: 0; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .footer ul a { padding: 8px 0; }
  .navbar .btn { padding: 13px 14px; font-size: 13px; }
  .navbar .btn .btn-arrow { display: none; }
  .hero {
    background:
      linear-gradient(100deg, rgba(32, 37, 47, 0.94) 0%, rgba(32, 37, 47, 0.78) 45%, rgba(43, 49, 61, 0.55) 100%),
      url("/images/hero-roof-replacement-mobile.webp") center/cover no-repeat;
  }
  .page-hero {
    background: linear-gradient(rgba(32, 37, 47, 0.82), rgba(43, 49, 61, 0.88)),
      url("/images/page-hero-roofline-mobile.webp") center/cover;
  }
  .cta-band {
    background:
      linear-gradient(100deg, rgba(32, 37, 47, 0.95) 10%, rgba(43, 49, 61, 0.72)),
      url("/images/cta-roof-aerial-mobile.webp") center/cover;
  }
  .quote-banner {
    background:
      linear-gradient(90deg, rgba(43, 49, 61, 0.93), rgba(43, 49, 61, 0.82)),
      url("/images/quote-roof-crew-mobile.webp") center/cover;
  }
  .services-grid, .process-grid, .why-tiles, .cta-cards, .footer-grid, .quote-form,
  .signs-grid, .system-grid, .review-grid, .beforeafter { grid-template-columns: 1fr; }
  .overlap-card { flex-direction: column; text-align: center; }
  .overlap-card .btn { margin-left: 0; }
  .quote-banner { flex-direction: column; text-align: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .topbar .container { justify-content: center; }
  .topbar-right { display: none; }
  .projects-col--split { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; gap: 24px; }
  .feature-row, .contact-form { grid-template-columns: 1fr; }
  .page-hero { padding: 64px 0; }
  .area-list { columns: 2; column-gap: 20px; }
  .warranty-card { flex-direction: column; text-align: center; }
  .material-strip { gap: 18px 28px; padding: 24px 20px; }
  .material-strip img { height: 30px; }
}

/* ---------- Book Now popup ---------- */

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.book-modal[hidden] { display: none; }
.book-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 28, 0.72);
}
.book-modal .quote-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  animation: book-modal-in 0.25s ease;
}
@keyframes book-modal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.book-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--on-dark-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.book-modal__close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.book-modal .quote-form[hidden] { display: none; }
.book-modal__success { text-align: center; padding: 18px 0 10px; }
.book-modal__success svg {
  width: 48px;
  height: 48px;
  stroke: var(--alpha-olive);
  fill: none;
  margin: 0 auto 12px;
}
.book-modal__success h4 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.book-modal__success p { color: var(--on-dark-muted); font-size: 14px; margin-bottom: 0; }
body.book-modal-open { overflow: hidden; }

/* ---------- Motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
