/* Brockson Roofing (demo). The navy and taupe are measured from the logo
   (spec 2026-10-07-demo-site-design.md). The widget lives in a shadow root:
   nothing here may reach inside it, and the only rule naming it styles the
   host box from outside. */
/* Inter, self-hosted (latin subset, variable weight), SIL OFL 1.1: fonts/OFL.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0f2e57;
  --navy-deep: #0a2140;
  --taupe: #867c71;
  /* The logo's taupe, darkened only where white text sits on it: #867c71
     gives 4.09:1, short of AA's 4.5:1 for the banner's 14px text. */
  --taupe-text-ground: #7a7066;
  --ink: #16202e;
  --muted: #5b6676;
  --line: #e4e8ee;
  /* The hero's ground: light, so the widget's navy header (the tenant's
     color) stands out instead of sinking into a navy band (owner,
     2026-10-12). Warmed toward the taupe. */
  --stone: #f5f3f0;
  --paper: #ffffff;
  --mist: #f4f6f9;
  --radius: 10px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; display: flex; flex-direction: column; }

a { color: inherit; }

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

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: auto; height: 60px; }

.header-actions { display: flex; align-items: center; gap: 22px; }

/* The menu: a roofer's six items (spec 2026-11-14). Beside the logo on wide
   screens; its own row at 1180px and under (it needs about 1150px beside the
   phone and button), one line that scrolls sideways on a
   phone so every item stays reachable without JavaScript. */
.site-nav { display: flex; gap: 24px; margin-right: auto; margin-left: 24px; }
.site-nav a {
  flex: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--taupe); }
.site-nav a:focus-visible { outline: 3px solid var(--taupe); outline-offset: 3px; }
.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.phone:hover .phone-text { text-decoration: underline; }
.phone-icon { flex: none; }

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease;
}
.button:hover { background: var(--navy-deep); }
.button:focus-visible, .phone:focus-visible, .brand:focus-visible, .site-footer a:focus-visible {
  outline: 3px solid var(--taupe);
  outline-offset: 3px;
}

/* The hero is the page. It grows with the widget (about 110px before a
   lookup, about 950px after), so nothing here clips or fixes its height. */
.hero {
  flex: 1;
  background: var(--stone);
  color: var(--ink);
  padding: 72px 0 88px;
  scroll-margin-top: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 64px;
  align-items: start;
}
.hero-copy { padding-top: 18px; }
.hero-copy::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 26px;
  border-radius: 2px;
  background: var(--taupe);
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.button-large { padding: 15px 26px; font-size: 16px; }
/* On a photo band: a white button, and an outlined one beside it. */
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: var(--stone); }
.button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.button-ghost:hover { background: rgba(255, 255, 255, .12); }

/* A section with a photo behind its text: the homepage's hero, storm and
   contact sections. The navy overlay keeps white text at WCAG AA over the
   photo's lightest part under it (measured: plan Task 5). */
.photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
}
.band-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--band-overlay);
}
.band-copy { padding-top: 96px; padding-bottom: 96px; }
.band-copy > * { max-width: 640px; }
.photo-band h1, .photo-band h2 { color: #fff; }
.photo-band p { margin: 0; font-size: 18px; line-height: 1.6; color: #fff; }
.photo-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.home-hero { --band-overlay: linear-gradient(90deg, rgba(10, 33, 64, .86) 0%, rgba(10, 33, 64, .74) 48%, rgba(10, 33, 64, .3) 76%, rgba(10, 33, 64, .06) 100%); }
.home-hero .band-photo { object-position: 70% 55%; }
.home-hero .band-copy { padding-top: 120px; padding-bottom: 128px; }
.home-hero h1 { max-width: 15em; }
.storm { --band-overlay: linear-gradient(90deg, rgba(10, 33, 64, .80) 0%, rgba(10, 33, 64, .55) 55%, rgba(10, 33, 64, .25) 100%); }
.storm .band-photo { object-position: 50% 72%; }
.contact { --band-overlay: linear-gradient(90deg, rgba(10, 33, 64, .84) 0%, rgba(10, 33, 64, .66) 50%, rgba(10, 33, 64, .2) 100%); }
.contact .band-photo { object-position: 60% 50%; }
.contact .hours { margin-top: 18px; font-size: 15px; color: #dfe6f0; }

/* Three short facts under the hero. */
.strip { background: var(--navy); color: #fff; }
.strip-list {
  list-style: none;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-weight: 600;
  font-size: 15px;
}
.strip-list li { display: flex; align-items: center; gap: 10px; }
.strip-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--taupe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 14px no-repeat;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.services { padding: 80px 0 88px; }
.service-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.service-list li {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding-bottom: 24px;
}
.service-list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 4px solid var(--taupe);
  margin-bottom: 20px;
}
.service-list h3 { margin: 0 22px 8px; font-size: 19px; line-height: 1.3; }
.service-list h3 a { color: var(--navy); text-decoration: none; }
.service-list h3 a:hover { text-decoration: underline; }
.service-list h3 a:focus-visible { outline: 3px solid var(--taupe); outline-offset: 3px; }
.service-list p { margin: 0 22px; color: var(--muted); }

/* How an inspection works: the photo beside three numbered steps. */
.inspection { background: var(--stone); padding: 88px 0; }
.inspection-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.inspection-grid > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15, 46, 87, .14);
}
/* On the hail damage page the section follows the light hero: white, so the
   two do not run together. */
.hero + .inspection { background: var(--paper); }
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.35; padding-top: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* About and the service area, side by side. */
.local { padding: 80px 0; }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; }
.local section { border-top: 4px solid var(--taupe); padding-top: 24px; }
.local p { margin: 0; font-size: 17px; color: var(--muted); max-width: 34em; }


/* The widget's host box, from outside only. A drop shadow follows what is
   drawn, so a refused key (which draws nothing) leaves no empty frame. */
.hero-widget { min-width: 0; scroll-margin-top: 20px; }
.hero-widget hail-receipt { filter: drop-shadow(0 22px 44px rgba(15, 46, 87, .16)); }
.hero-widget .demo-note { margin: 28px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

.site-footer { background: var(--mist); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
/* A roofer's footer: blurb, services, company, contact; then the demo's
   own line (R302, R303). */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
  font-size: 15px;
}
.footer-grid h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid p { margin: 12px 0 0; max-width: 22em; }
.footer-logo { display: block; width: auto; height: 52px; }
.footer-row { border-top: 1px solid var(--line); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.footer-row p { margin: 0; }
.site-footer a { color: var(--navy); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
/* "Demo site by" and the HailReceipt logo, 18px high beside 14px text
   (owner, 2026-10-12). */
.site-footer .by { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .by img { display: block; height: 18px; width: auto; }

@media (max-width: 1180px) {
  .header-row { flex-wrap: wrap; row-gap: 4px; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  /* The wide gradient fades to 0.18 by 72% of the width, and below 1180px
     the hero's copy reaches past that, over bright sky: one flat overlay
     instead (measured by scripts/shoot-layout.mjs at each width). */
  .home-hero, .storm, .contact { --band-overlay: rgba(10, 33, 64, .74); }
}

@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { padding: 56px 0 64px; }
  .inspection { padding: 60px 0; }
  .inspection-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .inspection-grid > img { max-width: 560px; }
  .local { padding: 56px 0; }
  .local-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-copy, .home-hero .band-copy { padding-top: 72px; padding-bottom: 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { padding-top: 0; }
  .hero-widget { max-width: 560px; }
}


@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-row { min-height: 68px; }
  .brand img { height: 42px; }
  /* The phone stays in the header as an icon, its number read to screen
     readers; logo, phone and button fit a 360px row. */
  .phone {
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .phone-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  /* Logo, phone and button on one row at 360px; the menu below. */
  .header-row { column-gap: 8px; }
  .header-actions .button { padding: 10px 12px; font-size: 13.5px; }
  .header-actions { gap: 8px; }
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .band-copy, .home-hero .band-copy { padding-top: 56px; padding-bottom: 60px; }
  .photo-band p { font-size: 16.5px; }
  .strip-list { flex-direction: column; }
  .button { padding: 10px 14px; font-size: 14px; }
  .hero { padding: 36px 0 44px; }
  .hero-copy::before { margin-bottom: 18px; }
  .lede { font-size: 16.5px; }
}

/* The demo notice (owner, 2026-11-15): a tag under the logo on every page,
   and R298 at the end of the contact section. No bar: it competed with the
   widget's site bar. */
.brand-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.brand-wrap .brand img { height: 50px; }
.demo-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1.5px solid var(--taupe);
  border-radius: 999px;
  color: var(--taupe-text-ground);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.contact .demo-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: 14px;
  color: #dfe6f0;
  max-width: 34em;
}
@media (max-width: 560px) {
  .brand-wrap { gap: 3px; }
  .demo-tag { padding: 2px 7px; font-size: 9.5px; }
  .brand-wrap .brand img { height: 36px; }
}
