:root {
  --roof-bg: #f2eee5;
  --roof-surface: #fbfaf6;
  --roof-ink: #1f241f;
  --roof-soft: #555b54;
  --roof-mute: #747a72;
  --roof-line: #d8d3c8;
  --roof-green: #17392d;
  --roof-beige: #e8e3d8;
  --roof-accent: #c9f34b;
  --roof-accent-hover: #b8df43;
}

@media (prefers-color-scheme: dark) {
  :root {
    --roof-bg: #191c19;
    --roof-surface: #232723;
    --roof-ink: #f3efe6;
    --roof-soft: #c9ccc5;
    --roof-mute: #a4a9a2;
    --roof-line: #3b403a;
    --roof-green: #102b22;
    --roof-beige: #30332e;
  }

  .roofing-page .brand img { filter: invert(1); }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body.roofing-page {
  overflow-x: clip;
  background: var(--roof-bg);
  color: var(--roof-ink);
}

.roofing-page .container { max-width: 1280px; }

.roofing-page .nav {
  background: color-mix(in srgb, var(--roof-bg) 94%, transparent);
  border-color: var(--roof-line);
  backdrop-filter: blur(16px);
}

.roofing-page .nav-links { color: var(--roof-soft); }
.roofing-page .nav-links a { border-color: var(--roof-line); white-space: nowrap; }
.roofing-page .nav-links a:hover { color: var(--roof-ink); background: color-mix(in srgb, var(--roof-ink) 4%, transparent); }
.roofing-page .nav-links a.nav-cta { background: var(--roof-accent); color: #1f241f; border-color: var(--roof-accent); }
.roofing-page .nav-links a.nav-cta:hover { background: var(--roof-accent-hover); color: #1f241f; }

.roof-skip {
  position: fixed;
  left: 16px;
  top: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--roof-ink);
  color: var(--roof-bg);
}

.roof-skip:focus { transform: translateY(0); }

.roofing-page :focus-visible {
  outline: 3px solid var(--roof-accent);
  outline-offset: 3px;
}

.roofing-page h1,
.roofing-page h2,
.roofing-page h3 {
  margin: 0;
  color: inherit;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.roofing-page p { color: inherit; }

.roof-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.roof-button span { transition: transform 180ms ease; }
.roof-button:hover span { transform: translate(2px, -2px); }
.roof-button:active { transform: translateY(1px); }
.roof-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.roof-button-accent { background: var(--roof-accent); color: #1f241f; border-color: var(--roof-accent); }
.roof-button-accent:hover { background: var(--roof-accent-hover); color: #1f241f; border-color: var(--roof-accent-hover); }
.roof-button-dark { background: var(--roof-ink); color: var(--roof-bg); border-color: var(--roof-ink); }
.roof-button-dark:hover { background: color-mix(in srgb, var(--roof-ink) 86%, var(--roof-bg)); color: var(--roof-bg); }
.roof-button-secondary { background: transparent; color: var(--roof-ink); border-color: var(--roof-ink); }
.roof-button-secondary:hover { background: var(--roof-ink); color: var(--roof-bg); }

.roof-hero {
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--roof-line);
}

.roof-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  align-items: stretch;
}

.roof-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px) clamp(34px, 5vw, 72px) clamp(30px, 4vw, 54px) 0;
}

.roof-hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--roof-soft);
  font-size: 14px;
  font-weight: 600;
}

.roof-hero-stars {
  color: var(--roof-green);
  letter-spacing: 0.08em;
}

@media (prefers-color-scheme: dark) {
  .roof-hero-stars { color: var(--roof-accent); }
}

.roof-hero h1 {
  max-width: none;
  font-size: clamp(48px, 3.8vw, 58px);
  line-height: 0.98;
}

.roof-hero-lede {
  max-width: 57ch;
  margin: 27px 0 0;
  color: var(--roof-soft) !important;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.52;
}

.roof-hero .roof-button-row {
  margin-top: 32px;
}

.roof-hero-media {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--roof-line);
  background: var(--roof-surface);
}

.roof-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 73% center;
}

.roof-section {
  padding: clamp(82px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--roof-line);
}

.roof-section-heading {
  max-width: 930px;
  margin-bottom: clamp(42px, 6vw, 74px);
}

.roof-section-heading h2 {
  max-width: 14ch;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
}

.roof-bookings {
  background: var(--roof-surface);
}

.roof-bookings .roof-section-heading,
.roof-growth .roof-section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.roof-bookings .roof-section-heading h2,
.roof-growth .roof-section-heading h2 {
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.roof-bookings .roof-section-heading h2 {
  font-size: clamp(38px, 4vw, 54px);
}

.roof-proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(54px, 8vw, 118px);
}

.roof-site-showcase {
  display: flex;
  min-height: 720px;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: clamp(44px, 6vw, 76px) clamp(34px, 5vw, 66px) 0;
  overflow: hidden;
  border: 1px solid var(--roof-line);
  background: #e8e3d8;
}

.roof-site-screen {
  width: min(100%, 420px);
  max-height: 655px;
  overflow: hidden;
  border: 10px solid var(--roof-surface);
  box-shadow: 0 28px 60px rgb(23 57 45 / 0.14);
}

.roof-site-screen img {
  width: 100%;
  height: auto;
}

.roof-proof-list {
  border-top: 1px solid var(--roof-line);
}

.roof-proof-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--roof-line);
}

.roof-proof-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--roof-line);
  background: var(--roof-bg);
  color: var(--roof-green);
}

.roof-proof-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.roof-proof-list h3,
.roof-growth-card h3 {
  max-width: 16ch;
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.03;
}

.roof-proof-list p,
.roof-growth-card p {
  max-width: 44ch;
  margin: 16px 0 0;
  color: var(--roof-soft);
  font-size: 15px;
  line-height: 1.62;
}

.roof-growth {
  background: var(--roof-surface);
}

.roof-growth-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

.roof-growth-card {
  min-width: 0;
  border: 1px solid var(--roof-line);
  background: var(--roof-bg);
}

.roof-growth-seo {
  display: grid;
  grid-column: 1 / 13;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  min-height: 520px;
  gap: clamp(20px, 2.5vw, 34px);
  padding: clamp(22px, 3vw, 38px);
  border-color: var(--roof-green);
  background: var(--roof-green);
  color: #f4f1e8;
}

.roof-growth-seo > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 48px);
}

.roof-growth-seo p {
  color: rgba(255,255,255,0.7);
}

.roof-growth-seo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: left center;
}

.roof-growth-card > div > span {
  display: block;
  margin-bottom: 18px;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
}

.roof-growth-booking,
.roof-growth-current {
  display: grid;
  grid-column: span 6;
  grid-template-rows: 260px 340px;
  height: 600px;
  overflow: hidden;
}

.roof-growth-booking {
  background: var(--roof-beige);
  color: var(--roof-ink);
}

.roof-growth-booking p {
  color: var(--roof-soft);
}

.roof-growth-current {
  background: var(--roof-bg);
}

.roof-growth-booking > div,
.roof-growth-current > div {
  padding: clamp(28px, 3vw, 38px);
}

.roof-growth-booking img,
.roof-growth-current img {
  width: 100%;
  height: 340px;
  align-self: end;
  object-fit: cover;
  object-position: center;
}

.roof-addon-services {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  margin-top: clamp(34px, 4vw, 56px);
  border: 1px solid var(--roof-line);
  background: var(--roof-bg);
}

.roof-addon-services-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.5vw, 44px);
}

.roof-addon-services h3 {
  margin: 0;
  max-width: 9ch;
  color: var(--roof-ink);
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.roof-addon-services h3 span {
  white-space: nowrap;
}

.roof-addon-services-intro p {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--roof-soft);
  font-size: 14px;
  line-height: 1.55;
}

.roof-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--roof-line);
}

.roof-addon-grid article {
  display: flex;
  min-height: 224px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(26px, 3vw, 38px);
  background: var(--roof-surface);
}

.roof-addon-grid article:nth-child(even) {
  border-left: 1px solid var(--roof-line);
}

.roof-addon-grid article:nth-child(n + 3) {
  border-top: 1px solid var(--roof-line);
}

.roof-addon-grid svg {
  width: 27px;
  height: 27px;
  margin-bottom: auto;
  color: var(--roof-green);
  stroke-width: 1.7;
}

.roof-addon-grid h4 {
  margin: 34px 0 0;
  color: var(--roof-ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.roof-addon-grid p {
  max-width: 34ch;
  margin: 10px 0 0;
  color: var(--roof-soft);
  font-size: 14px;
  line-height: 1.5;
}

.roof-testimonials {
  background: var(--roof-bg);
}

.roof-video-stories {
  background: var(--roof-bg);
}

.roofing-page .vstories-card {
  --bg-card: var(--roof-surface);
  --line: var(--roof-line);
  --ink: var(--roof-ink);
  --ink-soft: var(--roof-soft);
  --ink-mute: var(--roof-mute);
  --accent: var(--roof-accent);
  background: var(--roof-surface);
  border-color: var(--roof-line);
}

.roofing-page .vstories-head h2 {
  color: var(--roof-ink);
  font-weight: 500;
}

.roofing-page .vstories-tabs,
.roofing-page .vstories-head,
.roofing-page .vs-tab {
  border-color: var(--roof-line);
}

.roofing-page .vs-tab:hover {
  background: color-mix(in srgb, var(--roof-ink) 4%, transparent);
}

.roofing-page .vs-tab.active {
  background: color-mix(in srgb, var(--roof-accent) 12%, transparent);
}

.roof-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--roof-line);
  border-bottom: 1px solid var(--roof-line);
}

.roof-testimonial {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 300px;
  margin: 0;
  padding: clamp(26px, 3vw, 38px);
}

.roof-testimonial + .roof-testimonial {
  border-left: 1px solid var(--roof-line);
}

.roof-testimonial > p {
  max-width: none;
  margin: 0;
  color: var(--roof-ink);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.roof-testimonial footer {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 36px;
}

.roof-avatar {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.roof-testimonial footer div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.roof-testimonial footer strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roof-testimonial footer span {
  color: var(--roof-mute);
  font-size: 12px;
}

.roof-client-logo {
  width: auto;
  max-width: 82px;
  height: auto;
  max-height: 30px;
  opacity: 0.62;
  filter: grayscale(1);
}

@media (prefers-color-scheme: dark) {
  .roof-client-logo { filter: grayscale(1) invert(1); }
  .roof-site-showcase { background: #2c302c; }
}

.roof-audit-banner h2,
.roof-faq h2 {
  font-size: clamp(40px, 4.9vw, 68px);
  line-height: 1;
}

.roof-audit-banner {
  background: var(--roof-green);
  color: #f4f1e8;
  border-color: rgba(255,255,255,0.18);
}

.roof-audit-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(44px, 8vw, 120px);
}

.roof-audit-banner h2 { max-width: 12ch; }

.roof-audit-banner p {
  max-width: 58ch;
  margin: 28px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.6;
}

.roof-audit-banner .roof-button-dark {
  background: var(--roof-accent);
  color: #1f241f;
  border-color: var(--roof-accent);
}

.roof-audit-banner .roof-button-dark:hover {
  background: var(--roof-accent-hover);
  color: #1f241f;
  border-color: var(--roof-accent-hover);
}

.roof-audit-banner .roof-button-secondary {
  color: #f4f1e8;
  border-color: rgba(255,255,255,0.68);
}

.roof-audit-banner .roof-button-secondary:hover {
  background: #f4f1e8;
  color: var(--roof-green);
  border-color: #f4f1e8;
}

.roof-faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(56px, 10vw, 140px);
}

.roof-faq {
  background: var(--roof-surface);
}

.roof-faq h2 { max-width: 8ch; }

.roof-question-list {
  border-top: 1px solid var(--roof-line);
}

.roof-question-list details {
  border-bottom: 1px solid var(--roof-line);
}

.roof-question-list summary {
  position: relative;
  padding: 26px 46px 26px 0;
  cursor: pointer;
  color: var(--roof-ink);
  font-size: 18px;
  font-weight: 500;
  list-style: none;
}

.roof-question-list summary::-webkit-details-marker { display: none; }

.roof-question-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 24px;
  color: var(--roof-mute);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 20px;
  font-weight: 400;
}

.roof-question-list details[open] summary::after { content: "−"; }

.roof-question-list p {
  max-width: 55ch;
  margin: -3px 0 26px;
  color: var(--roof-soft);
  font-size: 15px;
  line-height: 1.65;
}

.roof-footer {
  padding: 30px 0;
  background: var(--roof-ink);
  color: var(--roof-bg);
}

.roof-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.roof-footer .brand img { filter: invert(1); }

.roof-footer p,
.roof-footer a {
  margin: 0;
  color: color-mix(in srgb, var(--roof-bg) 74%, transparent);
  font-size: 13px;
}

.roof-footer a:hover { color: var(--roof-bg); }

.roof-enter {
  animation: roof-enter 520ms ease-out both;
}

.roof-hero-media.roof-enter { animation-delay: 90ms; }

.roof-reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.roof-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes roof-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .roof-hero { padding: 48px 0 0; }
  .roof-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .roof-hero-copy { padding: 30px 0 56px; }
  .roof-hero-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-top: 1px solid var(--roof-line);
    border-left: 0;
  }

  .roof-proof-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .roof-site-showcase {
    min-height: 650px;
  }

  .roof-proof-list {
    max-width: 720px;
    margin: 0 auto;
  }

  .roof-growth-seo {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .roof-growth-seo img {
    height: auto;
    min-height: 0;
  }

  .roof-growth-seo > div { min-height: 280px; }

  .roof-growth-booking,
  .roof-growth-current {
    grid-template-rows: 280px 340px;
    height: 620px;
  }

  .roof-addon-services {
    grid-template-columns: 1fr;
  }

  .roof-addon-grid {
    border-top: 1px solid var(--roof-line);
    border-left: 0;
  }

  .roof-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .roof-testimonial {
    min-height: 0;
  }

  .roof-testimonial + .roof-testimonial {
    border-top: 1px solid var(--roof-line);
    border-left: 0;
  }

  .roof-audit-banner-inner,
  .roof-faq-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .roof-audit-banner .roof-button { justify-self: start; }
  .roof-faq > .container > div:first-child { max-width: 620px; }
}

@media (max-width: 720px) {
  .roofing-page .container { padding-left: 20px; padding-right: 20px; }

  .roof-hero { padding-top: 28px; }
  .roof-hero-copy { padding: 28px 0 44px; }

  .roof-hero-proof {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 22px;
  }

  .roof-hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 56px);
    line-height: 0.96;
  }

  .roof-hero-lede {
    max-width: 34ch;
    margin-top: 20px;
    font-size: 16px;
  }

  .roof-hero .roof-button-row { margin-top: 25px; }

  .roof-hero-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .roof-button-row { align-items: stretch; }

  .roof-section { padding: 78px 0; }

  .roof-section-heading { margin-bottom: 40px; }

  .roof-section-heading h2 {
    max-width: 100%;
    font-size: clamp(39px, 10.6vw, 54px);
  }

  .roof-bookings .roof-section-heading h2 {
    font-size: clamp(34px, 9.2vw, 44px);
  }

  .roof-site-showcase {
    min-height: 530px;
    padding: 34px 24px 0;
  }

  .roof-site-screen {
    max-height: 485px;
    border-width: 7px;
  }

  .roof-proof-list article { padding: 30px 0; }

  .roof-growth-seo,
  .roof-growth-booking,
  .roof-growth-current {
    grid-column: 1 / 13;
    min-height: 0;
  }

  .roof-growth-bento { gap: 18px; }
  .roof-growth-seo { padding: 18px; gap: 0; }
  .roof-growth-seo > div { min-height: 280px; }
  .roof-growth-booking,
  .roof-growth-current { grid-template-rows: auto 280px; height: auto; }
  .roof-growth-booking img,
  .roof-growth-current img { height: 280px; }

  .roof-addon-services h3 { max-width: none; }
  .roof-addon-grid { grid-template-columns: 1fr; }
  .roof-addon-grid article { min-height: 210px; }
  .roof-addon-grid article:nth-child(even) { border-left: 0; }
  .roof-addon-grid article + article { border-top: 1px solid var(--roof-line); }

  .roof-testimonial { padding: 28px 0; }

  .roof-testimonial footer {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .roof-client-logo { display: none; }

  .roof-footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roof-enter { animation: none; }
  .roof-reveal { opacity: 1; transform: none; transition: none; }
  .roof-button,
  .roof-button span { transition: none; }
}
