/* ==========================================================================
   ROOFING TEMPLATE — design tokens
   Kept simple and plain, matching the client's reference directly — one
   neutral font, white background, gold + green accents. The hero background
   will be a roofline-shaped b-roll video (added separately) rather than any
   graphic treatment here, so this stays deliberately unstyled behind it.
   ========================================================================== */
:root {
  --paper: #ffffff;
  --paper-alt: #f7f7f7;
  --ink: #1a1a1a;
  --ink-soft: #55595c;
  --line: #e7e7e7;

  --gold: #f2a91f;
  --gold-dark: #d6910f;
  --green: #3a9d3a;
  --dark-bar: #15161a;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ---------------------------------------------------------------------
   Top bar
   --------------------------------------------------------------------- */
.top-bar {
  background: var(--ink);
}
.top-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
  flex-wrap: wrap;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.top-bar-item svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .top-bar-inner { gap: 1.1rem 1.5rem; padding: 0.55rem 1rem; }
  .top-bar-item { font-size: 0.78rem; }
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}
.logo svg { flex-shrink: 0; }

.site-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.site-nav-links a {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7em 1.3em;
  border-radius: 7px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: #2a1c05;
}
.btn-gold:hover { background: var(--gold-dark); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.5rem 7rem;
}

.hero-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.3em;
  color: var(--ink);
}
.hero-title-sub {
  display: block;
  font-weight: 500;
  font-size: 0.55em;
  color: var(--green);
  margin-top: 0.28em;
  letter-spacing: 0;
}

.hero-lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  margin: 0 0 0.5em;
  color: var(--ink);
}
.text-accent { color: var(--green); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}

.hero-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 2.1rem;
}
.hero-stars svg { width: 22px; height: 22px; }

/* Floating trust cards */
.hero-float-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -14px rgba(30, 35, 33, 0.22);
  padding: 1rem 1.15rem;
}
.hero-float-emergency {
  left: max(1.5rem, calc((100% - var(--container)) / 2 + 1.5rem));
  bottom: 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}
.hero-float-emergency .btn { width: 100%; justify-content: center; }
.hero-float-emergency .available-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
  padding-left: 0.1rem;
}

@media (max-width: 1300px) {
  .hero-float-card {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    margin: 1.5rem auto 0;
    max-width: 320px;
  }
  .hero-float-emergency { align-items: center; text-align: center; }
  .hero { padding: 3.5rem 1.5rem 2.5rem; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
  }
  .site-nav-links.is-open { display: flex; }
  .menu-toggle { display: flex; }
}

/* ---------------------------------------------------------------------
   Services grid
   --------------------------------------------------------------------- */
.services {
  padding: 4.5rem 1.5rem;
  background: var(--paper-alt);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
}
.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 1.1rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Reassurance — rotating Q&A dialogue banner
   --------------------------------------------------------------------- */
.reassurance {
  background: var(--dark-bar);
  padding: 3.5rem 1.5rem 3rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  text-align: center;
  margin: 0 0 2rem;
}
.dialogue-banner {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  text-align: center;
}
.voice {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.voice.visible { opacity: 1; }
.voice-left { font-style: italic; color: rgba(255,255,255,0.72); }
.voice-right { font-weight: 600; color: var(--gold); }

/* ---------------------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------------------- */
.faq {
  padding: 4.5rem 1.5rem 5rem;
  background: var(--paper);
}
.faq-inner { max-width: 820px; }
.section-title-dark { color: var(--green); }

.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  padding: 1.25rem 0.1rem;
}
.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.25s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 68ch;
}

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: left;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.faq-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.faq-cta-sub {
  color: var(--ink-soft);
  margin: 0;
}
.faq-cta .btn { flex-shrink: 0; }

@media (max-width: 560px) {
  .faq-cta { text-align: center; justify-content: center; }
}

/* ---------------------------------------------------------------------
   FAQ closing banner — full-bleed, edge to edge
   --------------------------------------------------------------------- */
.faq-banner {
  width: 100%;
  line-height: 0;
}
.faq-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------------------------------------------------------------------
   4-Step Promise — reversed from the reference: white page background,
   light warm-tinted cards (no large outer container box) so the dark
   icons and text stand out against each card.
   --------------------------------------------------------------------- */
.promise {
  padding: 4.5rem 1.5rem 5rem;
  background: var(--paper);
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.promise-card {
  background: #faf3e6;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.promise-step {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin: 0 0 1rem;
}
.promise-icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.promise-icon svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}
.promise-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.promise-card p:last-child {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .promise-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .promise-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Testimonials — "Smiles Under Every Roof"
   --------------------------------------------------------------------- */
.testimonials {
  padding: 4.5rem 1.5rem 5rem;
  background: var(--paper-alt);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.9rem;
}
.testimonial-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.testimonial-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.testimonial-card .testimonial-name {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   "Let's talk" CTA band — big button + infinite scrolling marquee
   --------------------------------------------------------------------- */
.cta-band {
  background: var(--dark-bar);
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}
.cta-band-inner {
  text-align: center;
  margin-bottom: 2.5rem;
}
.btn-lg {
  font-size: 1.25rem;
  padding: 0.95em 2.2em;
}

.marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee-scroll 22s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------------------------------------------------------------------
   Why Not Us? page
   --------------------------------------------------------------------- */
.why-not {
  padding: 4.5rem 1.5rem 5rem;
  background: var(--paper);
}
.why-not-title { margin-bottom: 2.5rem; }

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.reason-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #faf3e6;
  border-radius: var(--radius);
  padding: 1.75rem;
}
.reason-icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reason-icon svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}
.reason-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.reason-text p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .reason-row { flex-direction: column; }
}

.why-not-closing {
  max-width: 680px;
  margin: 3.5rem auto 0;
  text-align: center;
}
.why-not-closing-lede {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.why-not-closing p:not(.why-not-closing-lede) {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------------
   Owner intro — "Hi, I'm John Smith"
   --------------------------------------------------------------------- */
.owner-intro {
  padding: 4.5rem 1.5rem;
  background: var(--paper-alt);
}
.owner-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.owner-intro-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--green);
  margin: 0 0 1rem;
}
.owner-intro-text p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 1.1rem;
}
.owner-intro-media img {
  width: 100%;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .owner-intro-grid { grid-template-columns: 1fr; }
  .owner-intro-media { order: -1; }
}

/* ---------------------------------------------------------------------
   Storm damage split — text left, b-roll video right
   --------------------------------------------------------------------- */
.storm-split {
  padding: 4.5rem 1.5rem;
  background: var(--paper);
}
.storm-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.storm-split-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--green);
  margin: 0 0 1.1rem;
}
.storm-split-text p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 1.1rem;
}
.storm-split-media video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 860px) {
  .storm-split-grid { grid-template-columns: 1fr; }
  .storm-split-media { order: -1; }
}

/* ---------------------------------------------------------------------
   About page banner
   --------------------------------------------------------------------- */
.about-banner {
  background: var(--dark-bar);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.about-banner h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  margin: 0 0 0.9rem;
  line-height: 1.15;
}
.about-banner-services {
  color: var(--gold);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin: 0 0 0.5rem;
}
.about-banner-tag {
  color: rgba(255,255,255,0.8);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  margin: 0;
}
.about-intro { background: var(--paper); }

/* Full-bleed b-roll under the banner (no dark border) */
.reassurance-video {
  margin: 2.5rem -1.5rem -3rem;
  padding: 0;
}
.reassurance-video video {
  width: 100%;
  display: block;
  border-radius: 0;
}
