/* =============================================
   JS Exteriors — Stylesheet
   ============================================= */

/* --- Local Fonts --- */
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  --orange:        #D2673C;
  --orange-warm:   #D2893C;
  --orange-hover:  #B85830;
  --black:         #000000;
  --near-black:    #111111;
  --strip-dark:    #616161;
  --footer-gray:   #616161;
  --mid-gray:      #555555;
  --light-gray:    #f0f0f0;
  --white:         #ffffff;

  --font-heading:  'Poppins', sans-serif;
  --font-nav:      'Poppins', sans-serif;
  --font-contact:  'Poppins', sans-serif;
  --font-body:     'Poppins', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--near-black);
  background: var(--white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }


/* =============================================
   HEADER / NAV
   ============================================= */

.site-header {
  position: relative;
  z-index: 50;
}

/* Top bar: black, full-width, logo + nav links */
.nav-top {
  background: var(--black);
}

.nav-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-nav);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

/* Desktop dropdown — hover reveals children, parent <a> remains clickable */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item--has-dropdown > a {
  display: inline-flex;
  align-items: center;
}

.nav-item--has-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  list-style: none;
  background: var(--black);
  padding: 8px 0;
  margin: 0;
  min-width: 220px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 100;
  /* Hidden by default, shown on hover/focus */
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

/* Bridge gap between parent and dropdown so hover doesn't drop */
.nav-dropdown::before {
  content: '';
  position: absolute;
  inset: -10px 0 auto 0;
  height: 10px;
  background: transparent;
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item--has-dropdown:hover > a::after,
.nav-item--has-dropdown:focus-within > a::after {
  transform: rotate(180deg);
}

.nav-dropdown li {
  display: block;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Staggered slide-in for each child link when dropdown opens */
.nav-item--has-dropdown:hover .nav-dropdown li,
.nav-item--has-dropdown:focus-within .nav-dropdown li {
  opacity: 1;
  transform: translateX(0);
}
.nav-item--has-dropdown:hover .nav-dropdown li:nth-child(1),
.nav-item--has-dropdown:focus-within .nav-dropdown li:nth-child(1) { transition-delay: 0.05s; }
.nav-item--has-dropdown:hover .nav-dropdown li:nth-child(2),
.nav-item--has-dropdown:focus-within .nav-dropdown li:nth-child(2) { transition-delay: 0.10s; }
.nav-item--has-dropdown:hover .nav-dropdown li:nth-child(3),
.nav-item--has-dropdown:focus-within .nav-dropdown li:nth-child(3) { transition-delay: 0.15s; }
.nav-item--has-dropdown:hover .nav-dropdown li:nth-child(4),
.nav-item--has-dropdown:focus-within .nav-dropdown li:nth-child(4) { transition-delay: 0.20s; }
.nav-item--has-dropdown:hover .nav-dropdown li:nth-child(5),
.nav-item--has-dropdown:focus-within .nav-dropdown li:nth-child(5) { transition-delay: 0.25s; }
.nav-item--has-dropdown:hover .nav-dropdown li:nth-child(6),
.nav-item--has-dropdown:focus-within .nav-dropdown li:nth-child(6) { transition-delay: 0.30s; }
.nav-item--has-dropdown:hover .nav-dropdown li:nth-child(7),
.nav-item--has-dropdown:focus-within .nav-dropdown li:nth-child(7) { transition-delay: 0.35s; }
.nav-item--has-dropdown:hover .nav-dropdown li:nth-child(8),
.nav-item--has-dropdown:focus-within .nav-dropdown li:nth-child(8) { transition-delay: 0.40s; }

.nav-dropdown a {
  position: relative;
  display: block;
  padding: 10px 20px;
  font-family: var(--font-nav);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-indent: 0;
  transition: color 0.2s ease, text-indent 0.25s ease;
}

/* Left accent bar slides in vertically on hover */
.nav-dropdown a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange-warm);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-dropdown a:hover {
  color: var(--orange-warm);
  text-indent: 6px;
}
.nav-dropdown a:hover::before { transform: scaleY(1); }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}

.nav-hamburger:hover span { background: var(--orange); }

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav panel — hidden on desktop, overlays content when open.
   When open, panel can grow up to (viewport height - top bar) and scrolls
   internally if content overflows so subpage dropdowns stay reachable. */
.nav-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  background: var(--black);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.nav-mobile.is-open {
  max-height: calc(100vh - 78px);
  overflow-y: auto;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 20px;
}

.nav-mobile nav a {
  font-family: var(--font-nav);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, background 0.2s;
}

.nav-mobile nav a:last-child { border-bottom: none; }
.nav-mobile nav a:hover { color: var(--orange-warm); background: rgba(255,255,255,0.04); }

/* Mobile dropdown: tap parent to expand subpages */
.nav-mobile-item--has-dropdown {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-item--has-dropdown:last-child { border-bottom: none; }

.nav-mobile-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 32px;
  font-family: var(--font-nav);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  text-align: left;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-toggle:hover { color: var(--orange-warm); background: rgba(255,255,255,0.04); }

.nav-mobile-chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.25s ease;
}
.nav-mobile-item--has-dropdown.is-open .nav-mobile-chevron {
  transform: rotate(180deg);
}

.nav-mobile-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 1rem;
  background: rgba(255,255,255,0.04);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.nav-mobile-item--has-dropdown.is-open .nav-mobile-dropdown {
  max-height: 600px;
}

.nav-mobile-dropdown a {
  display: block;
  padding: 12px 32px 12px 56px;
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-dropdown li:last-child a { border-bottom: none; }
.nav-mobile-dropdown a:hover {
  color: var(--orange-warm);
  background: rgba(255,255,255,0.05);
}

/* Contact bar: absolutely positioned over the top of the hero image */
.nav-contact {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 56px;
  /* Transparent — hero image shows through on the left */
  background: transparent;
}

/* The visible gray parallelogram drawn with clip-path.
   calc() keeps the left edge a fixed distance from the phone icon
   regardless of viewport width.
   Content width ≈ 605px from right edge. 2rem (32px) offset + 30px diagonal. */
.nav-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #565656;
  clip-path: polygon(
    calc(100% - 757px) 0,
    100% 0,
    100% 100%,
    calc(100% - 727px) 100%
  );
}

.nav-contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 7vw, 5rem);
  height: 100%;
  padding: 0 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-contact);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
  transition: color 0.2s;
}
.contact-item:hover { color: var(--orange-warm); }
.contact-item svg { flex-shrink: 0; }

/* Contact button in nav (orange with shadow, Poppins Bold) */
.btn-contact {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-family: var(--font-contact);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--orange-warm);
  padding: 0 28px;
  height: 40px;
  line-height: 40px;
  box-shadow: 0 0 5px rgba(0,0,0,0.45);
  white-space: nowrap;
}


/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transform-origin: center;
  animation: hero-ken-burns 14s ease-out forwards;
}

/* Ambient slow zoom on the hero image — fires once on load */
@keyframes hero-ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: none; }
}

/* Gradient darkens right side where text sits */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.72) 65%,
    rgba(0,0,0,0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1620px;
  margin: 0 auto;
  padding: 150px 48px;
  display: flex;
  justify-content: flex-end;
}

.hero-text {
  text-align: left;
  /* one shared step keeps h1, p, and button on the same diagonal */
  --hero-step: clamp(1.75rem, 2.75vw, 2.875rem);
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

/* h1: steps 0, 1, 2, 3 */
.hero-text h1 .hero-accent { color: var(--orange-warm); }

.hero-text h1 span { display: block; }
.hero-text h1 span:nth-child(2) { padding-left: calc(1 * var(--hero-step)); }
.hero-text h1 span:nth-child(3) { padding-left: calc(2 * var(--hero-step)); }
.hero-text h1 span:nth-child(4) { padding-left: calc(3 * var(--hero-step)); }

.hero-text p {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.7vw, 2.25rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.45;
  margin-bottom: 40px;
  padding-left: clamp(2rem, 12vw, 11rem);
}

/* p: same slope as h1, starts from left edge */
.hero-text p span { display: block; }
.hero-text p span:nth-child(2) { padding-left: calc(1 * var(--hero-step)); }
.hero-text p span:nth-child(3) { padding-left: calc(2 * var(--hero-step)); }
.hero-text p span:nth-child(4) { padding-left: calc(3 * var(--hero-step)); }

/* Mobile: hero paragraphs are hidden briefly while a small script in
   base.njk replaces the per-line spans with flat text. Prevents a flash
   of the broken stacked-span layout before the script runs. */
@media (max-width: 768px) {
  .hero-text p,
  .page-hero-text p,
  .strip-right p {
    visibility: hidden;
  }
  .hero-text p.is-hero-ready,
  .page-hero-text p.is-hero-ready,
  .strip-right p.is-hero-ready {
    visibility: visible;
  }
}

/* button: step 4, one past the last p line */
.hero-text .btn-hero {
  display: block;
  width: fit-content;
  margin-left: calc(8 * var(--hero-step));
}

/* Hero entrance: each line of h1, p, and the button slide up + fade in */
@keyframes hero-stagger-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text h1 span,
.hero-text p span,
.hero-text .btn-hero {
  opacity: 0;
  animation: hero-stagger-in 0.55s ease-out forwards;
}

.hero-text h1 span:nth-child(1) { animation-delay: 0.10s; }
.hero-text h1 span:nth-child(2) { animation-delay: 0.18s; }
.hero-text h1 span:nth-child(3) { animation-delay: 0.26s; }
.hero-text h1 span:nth-child(4) { animation-delay: 0.34s; }
.hero-text p span:nth-child(1)  { animation-delay: 0.46s; }
.hero-text p span:nth-child(2)  { animation-delay: 0.54s; }
.hero-text p span:nth-child(3)  { animation-delay: 0.62s; }
.hero-text p span:nth-child(4)  { animation-delay: 0.70s; }
.hero-text .btn-hero            { animation-delay: 0.84s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-text h1 span,
  .hero-text p span,
  .hero-text .btn-hero {
    opacity: 1;
    animation: none;
  }
}

/* Dark button for hero */
.btn-hero {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-family: var(--font-nav);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--black);
  padding: 17px 50px 17px 65px;
}

/* Left-to-right swipe to orange-warm on hover (shared by all dark buttons) */
.btn-slash::before,
.btn-hero::before,
.btn-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-warm);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  z-index: -1;
}
.btn-slash:hover::before,
.btn-hero:hover::before,
.btn-dark:hover::before { transform: scaleX(1); }


/* =============================================
   SERVICES STRIP (diagonal two-panel)
   ============================================= */
.services-strip {
  display: flex;
  align-items: flex-start;
  min-height: 380px;
  overflow: visible;
  position: relative;
  margin-top: -150px;
}

/* Filter on wrapper so drop-shadow is not clipped by the child's clip-path */
.strip-left-wrap {
  flex: 0 0 max(50%, calc(63.29vw - 496px));
  position: relative;
  z-index: 2;
  margin-top: 60px;
  filter: drop-shadow(0 0 14px rgba(0,0,0,0.85));
}

.strip-left {
  background: var(--strip-dark);
  display: flex;
  align-items: center;
  padding: 52px calc(1% + 64px) 52px max(48px, calc((100vw - 1400px) / 2 + 48px));
  /* Diagonal right edge */
  clip-path: polygon(0 0, 79% 0, 97% 100%, 0 100%);
}

.strip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.strip-list li {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.strip-bullet {
  flex-shrink: 0;
}

.strip-list li a {
  color: var(--white);
  background-image: linear-gradient(to right, var(--orange-warm) 50%, var(--white) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
}
.strip-list li a:hover { background-position: 0 0; }

/* Filter on wrapper so drop-shadow is not clipped by the child's clip-path */
.strip-right-wrap {
  position: absolute;
  left: -186px;
  right: 0;
  top: 110px;
  z-index: 1;
  filter: drop-shadow(0 0 14px rgba(0,0,0,0.85));
}

.strip-right {
  background: var(--black);
  display: flex;
  align-items: center;
  padding: 60px max(18px, calc((100vw - 1400px) / 2 + 18px)) 60px 54%;
  /* Diagonal left edge — percentages match strip-left's diagonal right edge:
     top: 79%×42%=33%, bottom: 97%×42%=41% of the full section width */
  clip-path: polygon(calc(33% + 100px) 0, 100% 0, 100% 100%, calc(41% + 100px) 100%);
}

.strip-right p {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
  max-width: 600px;
}

.strip-right p span {
  display: inline-block;
}
.strip-right p span:nth-child(2) {
  padding-left: 1ch;
}
.strip-right p span:nth-child(3) {
  padding-left: 2ch;
}
.strip-right p span:nth-child(4) {
  padding-left: 3ch;
}


/* =============================================
   OUR SERVICES
   ============================================= */
.our-services {
  background: var(--white);
  overflow: hidden;
  margin-top: -35px;
}

.our-services-inner {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: stretch;
  min-height: 535px;
}

.our-services-text {
  padding: 5rem 64px 5rem max(48px, calc((100vw - 1400px) / 2 + 48px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Orange uppercase label used in multiple sections */
.section-label {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
  line-height: 1.2;
}

.our-services-text p {
  font-size: clamp(1.25rem, 1.4vw, 1.75rem);
  color: var(--black);
  line-height: 1.72;
  margin-bottom: 18px;
}
.our-services-text p:last-child { margin-bottom: 0; }

/* Diagonal clip on image: cuts in from the left */
.our-services-image {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 35% 100%);
}

.our-services-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* =============================================
   SERVICE CATEGORIES (Roofing / Siding)
   ============================================= */
.service-section {
  padding: 5rem 0;
}

.service-section--dark  { background: var(--black); padding-top: 0; }
.service-section--light { background: var(--white);  padding-top: 0; }

.service-section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Orange tab header with right diagonal cut */
.category-header {
  margin-bottom: 36px;
}

/* Gap below header before the card grid */
.service-section .category-header {
  margin-bottom: 48px;
}

.category-header h2 {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--white);
  background: var(--orange-warm);
  padding: 20px 88px 20px 32px;
  clip-path: polygon(0 0, 87% 0, 100% 100%, 0 100%);
}

/* Pull the h2 up to straddle the boundary with the section above */
.service-section .category-header h2 {
  position: relative;
  z-index: 2;
  margin-top: -43px;
}

/* Card grid: 4 columns, cards fill available rows */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 3.5rem 0 3.5rem 0;
}

.service-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 11 / 10;
  background: #222;
}

/* White card border for dark section (roofing) */
.service-section--dark .service-card {
  border: 2px solid white;
  box-shadow: none;
}

/* Black card border for light section (siding) */
.service-section--light .service-card {
  border: 2px solid black;
  box-shadow: none;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.06);
  opacity: 1;
}

/* Label bar at bottom of card */
.service-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  padding: 0 40px 0 16px;
  height: 68px;
  display: flex;
  align-items: center;
}

.service-card-label span {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.25;
}

/* Orange arrow: rectangle with right-pointing triangular notch cut from the left.
   Notch apex at ~72% width, ~53% height — matches SVG path from Figma exactly. */
.service-card-label::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  background: var(--orange-warm);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 72% 53%);
}

/* Siding section: text + contact below the grid */
.siding-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 36px;
}

.siding-cta-row p {
  font-size: clamp(1.25rem, 1.2vw, 1.75rem);
  color: var(--black);
  line-height: 1.7;
}

/* Dark CTA button for siding row and CTA bar */
.btn-dark {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-family: var(--font-nav);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--black);
  white-space: nowrap;
}


/* =============================================
   WHY USE US
   ============================================= */
.why-us {
  background: var(--black);
  overflow: hidden;
}

.why-us-inner {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 760px;
}

.why-us-text {
  padding: 5rem 64px 5rem max(48px, calc((100vw - 1400px) / 2 + 48px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-us-text .section-label {
  color: var(--orange-warm);
}

.why-us-text p {
  font-size: clamp(1.25rem, 1.4vw, 1.75rem);
  color: var(--white);
  line-height: 1.75;
  margin-bottom: 20px;
}
.why-us-text p:last-of-type { margin-bottom: 40px; }

/* Orange button for "Read More" */
.btn-orange {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-family: var(--font-nav);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--orange-warm);
  padding: 17px 50px 17px 50px;
  align-self: flex-start;
}

/* Left-to-right swipe to black on hover (shared by orange buttons) */
.btn-orange::before,
.btn-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  z-index: -1;
}
.btn-orange:hover::before,
.btn-contact:hover::before { transform: scaleX(1); }

/* Slanted-left parallelogram button */
.btn-slash {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-family: var(--font-nav);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 17px 50px 17px 65px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 13% 100%);
  white-space: nowrap;
}

.why-us-image {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 35% 100%);
}

.why-us-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* =============================================
   GOOGLE REVIEWS SLIDER
   ============================================= */
.reviews {
  background: rgba(0, 0, 0, 0.06);
  padding: 5rem 0;
}

.reviews-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
}

.reviews-header .section-label { color: var(--orange-warm); }

.reviews-header p {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: var(--mid-gray);
  max-width: 520px;
}

/* Horizontal scroll-snap track. Negative side-margins + matching padding
   let cards fade off-screen at viewport edges instead of clipping at the
   max-width container. */
.reviews-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 48px 20px;
  margin: 0 -48px;
  scroll-padding-left: 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-warm) rgba(0, 0, 0, 0.1);
}
.reviews-track::-webkit-scrollbar { height: 8px; }
.reviews-track::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
.reviews-track::-webkit-scrollbar-thumb { background: var(--orange-warm); }

.review-card {
  flex: 0 0 calc((100% / 3) - (24px * 2 / 3));
  scroll-snap-align: start;
  background: var(--white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--orange-warm);
  margin-bottom: 16px;
}

.review-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--near-black);
  margin-bottom: 24px;
  flex: 1;
}

.review-meta {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 14px;
}

.review-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--near-black);
}

.reviews-cta {
  margin-top: 32px;
  text-align: right;
}

.reviews-cta a {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange-warm);
  transition: color 0.2s;
}
.reviews-cta a:hover { color: var(--orange-hover); }


/* =============================================
   CTA BAR
   ============================================= */
.cta-bar {
  background: var(--white);
  border-top: 1px solid #ddd;
  padding: 5rem 0;
}

.cta-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-bar p {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.3vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--near-black);
  line-height: 1.2;
}


/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--footer-gray);
  padding-top: 56px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.9;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange-warm); }

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
  display: flex;
}
.social-links a:hover { color: var(--orange-warm); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}


/* =============================================
   PAGE HERO (shared — interior pages)
   ============================================= */
.page-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px;
  display: flex;
  justify-content: center;
}

.page-hero-text {
  text-align: left;
  padding-left: 30%;
  /* one shared step keeps h1, p lines, and button on the same diagonal */
  --page-hero-step: clamp(1.75rem, 2.75vw, 2.875rem);
}

.page-hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--near-black);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero-text p {
  font-size: clamp(1.1rem, 1.6vw, 1.75rem);
  color: var(--near-black);
  line-height: 1.5;
  margin-bottom: 32px;
}

/* p lines: step 1, 2, 3, ... — each visible line indented further right */
.page-hero-text p span { display: block; }
.page-hero-text p span:nth-child(1) { padding-left: calc(1 * var(--page-hero-step)); }
.page-hero-text p span:nth-child(2) { padding-left: calc(2 * var(--page-hero-step)); }
.page-hero-text p span:nth-child(3) { padding-left: calc(3 * var(--page-hero-step)); }
.page-hero-text p span:nth-child(4) { padding-left: calc(4 * var(--page-hero-step)); }

/* button: one step past the last visible p line */
.page-hero-text .btn-slash {
  display: block;
  width: fit-content;
  margin-left: calc(3 * var(--page-hero-step));
}

/* Interior Hero Button with only one line of p */
.commercial-roofing-services .page-hero-text .btn-slash,
.storm-damaged-siding .page-hero-text .btn-slash {
  margin-left: calc(2 * var(--page-hero-step));
}


/* =============================================
   TAGLINE STRIP (shared — interior pages)
   ============================================= */
.tagline-strip {
  background: var(--strip-dark);
}

.tagline-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 48px;
  display: flex;
  align-items: center;
}

.tagline-strip p {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}


/* =============================================
   PAGE INTRO (shared — interior pages)
   ============================================= */
.page-intro {
  background: var(--white);
  overflow: hidden;
}

.page-intro-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: stretch;
  min-height: 600px;
}

.page-intro-text {
  padding: 5rem 64px 5rem max(48px, calc((100vw - 1400px) / 2 + 48px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-intro-text p {
  font-size: clamp(1.25rem, 1.3vw, 1.75rem);
  color: var(--near-black);
  line-height: 1.4;
  margin-bottom: 20px;
}
.page-intro-text p:last-of-type { margin-bottom: 0; }

.page-intro-text .btn-orange {
  margin-top: 36px;
  align-self: flex-start;
}

.page-intro-image {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 42% 100%);
}

.page-intro-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* =============================================
   SERVICE BLOCK (shared — image + multi-topic text)
   Used on roofing-services, siding-services, and similar
   interior pages. Alternates light/dark and image-left/right.
   ============================================= */
.service-block {
  padding: 5rem 0;
}
.service-block--dark  { background: var(--black); }
.service-block--light { background: var(--white); }

.service-block-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Default: image on the left, content on the right */
.service-block-image   { order: 1; }
.service-block-content { order: 2; }

/* Image-right modifier flips the visual order */
.service-block--image-right .service-block-image   { order: 2; }
.service-block--image-right .service-block-content { order: 1; }

.service-block-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.service-block-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 600;
  color: var(--orange-warm);
  line-height: 1.25;
  margin-bottom: 16px;
}

.service-block-content h3:not(:first-child) {
  margin-top: 36px;
}

.service-block-content p {
  font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  line-height: 1.7;
}

.service-block--dark  .service-block-content p { color: var(--white); }
.service-block--light .service-block-content p { color: var(--near-black); }

.service-block-content ul {
  margin: 16px 0 16px 24px;
  padding: 0;
}

.service-block-content ul li {
  font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: 8px;
}

.service-block--dark  .service-block-content ul li { color: var(--white); }
.service-block--light .service-block-content ul li { color: var(--near-black); }

.service-block-content p + p,
.service-block-content ul + p,
.service-block-content p + ul {
  margin-top: 16px;
}


/* =============================================
   SPLIT BLOCK (shared — two text columns, no image)
   Used for compare-and-contrast sections like
   "What's Covered" / "Best Practices" on Insurance Claims.
   ============================================= */
.split-block {
  padding: 5rem 0;
}
.split-block--dark  { background: var(--black); }
.split-block--light { background: var(--white); }

.split-block-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  position: relative;
}

/* Vertical divider between the two columns */
.split-block-inner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
}
.split-block--light .split-block-inner::before {
  background: rgba(0, 0, 0, 0.25);
}
.split-block--no-divider .split-block-inner::before {
  display: none;
}

.split-block-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 600;
  color: var(--orange-warm);
  line-height: 1.25;
  margin-bottom: 16px;
}

.split-block-content h3:not(:first-child) {
  margin-top: 36px;
}

.split-block-content p {
  font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  line-height: 1.7;
}

.split-block-content p + p { margin-top: 16px; }

.split-block--dark  .split-block-content p { color: var(--white); }
.split-block--light .split-block-content p { color: var(--near-black); }

.split-block-content .btn-orange { margin-top: 32px; }


/* =============================================
   CONTACT FORM SECTION
   ============================================= */
.contact-form-section {
  background: rgba(0, 0, 0, 0.06);
  padding: 5rem 0;
}

.contact-form-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form-inner > * { min-width: 0; }
.contact-form-side iframe { width: 100%; max-width: 100%; border: 0; display: block; }

/* Defensive: keep everything inside the form column from forcing it wider
   than the viewport (autocomplete shadow DOM, Turnstile iframe, etc.). */
.contact-form,
.contact-form > *,
.contact-form .field > *,
.contact-form .cf-turnstile { max-width: 100%; min-width: 0; }
.contact-form .cf-turnstile { overflow: hidden; }
.contact-form input,
.contact-form textarea,
.contact-form gmp-place-autocomplete { box-sizing: border-box; max-width: 100%; }

/* Anchor target lives on the form itself; this adds breathing room above
   so #contact-form scroll lands at the top of the section, not flush against
   the form. Mobile reduces to match smaller section padding. */
.contact-form { scroll-margin-top: 5rem; }

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 600;
  color: var(--orange-warm);
  line-height: 1.25;
  margin-bottom: 28px;
}

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 500;
  color: var(--near-black);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #c4c4c4;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--near-black);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange-warm);
}

/* Default: autocomplete is hidden so the plain <input> serves as fallback.
   When Maps JS loads and the element registers, :defined fires and we swap. */
.contact-form gmp-place-autocomplete { display: none; }

.contact-form gmp-place-autocomplete:defined {
  display: block;
  width: 100%;
  color-scheme: light;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  border: 1px solid #c4c4c4;
  border-radius: 0;
  /* Material Design tokens the element honors for theming */
  --gmp-color-base-surface: var(--white);
  --gmp-color-base-on-surface: var(--near-black);
  --gmp-color-base-outline: #c4c4c4;
  --gmp-place-autocomplete-input-border-radius: 0;
}

.contact-form .field:has(gmp-place-autocomplete:defined) > input#address {
  display: none;
}

.contact-form .field.is-invalid input { border-color: #c0392b; }
.contact-form .phone-error {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #c0392b;
  line-height: 1.4;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-disclaimer {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  color: var(--near-black);
  line-height: 1.6;
  margin: 24px 0 28px;
}

.contact-form .cf-turnstile { margin-bottom: 28px; }

.contact-form-success,
.contact-form-error { display: none; }
.contact-form.is-sent > :not(.contact-form-success) { display: none; }
.contact-form.is-sent .contact-form-success { display: block; }
.contact-form.has-error .contact-form-error { display: block; }

.contact-form-error {
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #fdecea;
  border-left: 4px solid #c0392b;
  color: #842018;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}
.contact-form-error a { color: inherit; text-decoration: underline; }

.contact-form-success p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  color: var(--near-black);
  line-height: 1.6;
}

.contact-form button[type="submit"] {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--orange-warm);
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button[type="submit"]:hover { background: var(--orange-hover); }

/* Map / social feed placeholder block */
.contact-form-side {
  min-height: 480px;
  padding: 36px 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}


/* =============================================
   ABOUT — TEAM SECTION
   ============================================= */
.about-team {
  background: var(--black);
  padding: 5rem 0;
}

.about-team-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.about-team-image {
    height: 100%;
}

.about-team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-team-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  font-weight: 600;
  color: var(--orange-warm);
  line-height: 1.35;
  margin-bottom: 24px;
}

.about-team-content p {
  font-size: clamp(1.25rem, 1.3vw, 1.75rem);
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-team-content ul {
  margin: 0 0 20px 24px;
}

.about-team-content ul li {
  font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 12px;
}

.about-team-closing {
  font-weight: 700;
  margin-bottom: 0 !important;
}


/* =============================================
   PAGE: Roofing Replacement
   ============================================= */


/* =============================================
   PAGE: Roofing Replacement
   ============================================= */
   .roofing-repair .page-hero-bg img {
    object-position: 20%;
   }


/* =============================================
   PAGE: Storm Damage
   ============================================= */
   .storm-damage .page-hero-bg img {
    object-position: 10%;
   }


/* =============================================
   PAGE: Siding Installations
   ============================================= */
   .siding-installations .page-hero-bg img {
    object-position: 5%;
   }


/* =============================================
   BLOG INDEX
   ============================================= */
.blog .page-hero-text {
    padding-left: revert;
}

.blog-list-section {
  padding: 5rem 0;
  background: var(--white);
}

.blog-list-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}

/* Posts without a featured image collapse to a single column */
.blog-list-item:not(:has(.blog-list-item-image)) {
  grid-template-columns: 1fr;
}

.blog-list-item-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #222;
}

.blog-list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-list-item-image:hover img { transform: scale(1.04); }

.blog-list-item-body { display: flex; flex-direction: column; }

.blog-list-item-meta {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-warm);
  margin-bottom: 10px;
}

.blog-list-item h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--near-black);
  line-height: 1.25;
  margin-bottom: 12px;
}

.blog-list-item h2 a {
  color: inherit;
  transition: color 0.2s;
}
.blog-list-item h2 a:hover { color: var(--orange-warm); }

.blog-list-item-excerpt {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--near-black);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-list-item-readmore {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-warm);
  align-self: flex-start;
  transition: color 0.2s;
}
.blog-list-item-readmore:hover { color: var(--orange-hover); }

.blog-empty {
  font-size: clamp(1.1rem, 1.3vw, 1.4rem);
  color: var(--near-black);
  text-align: center;
}

/* Pagination */
.blog-pagination {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blog-pagination-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-warm);
  transition: color 0.2s;
}
.blog-pagination-link:hover { color: var(--orange-hover); }
.blog-pagination-link.is-disabled {
  color: #bbb;
  pointer-events: none;
}

.blog-pagination-status {
  font-size: 0.95rem;
  color: var(--mid-gray);
}


/* =============================================
   POST PAGE
   ============================================= */
/* Hero variant for posts with no featured image — solid dark bg + light text */
.post-hero--no-image {
  background: var(--near-black);
}
.post-hero--no-image .page-hero-text h1,
.post-hero--no-image .page-hero-text p {
  color: var(--white);
}

.page-hero-text.post-hero-text h1 {
  text-transform: capitalize;
  line-height: 1.3;
}

/* When a post DOES have an image, ensure the hero text stays readable
   regardless of what the image looks like by adding a soft scrim. */
.post-hero .page-hero-bg::after,
.category-archive .page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.post-hero--no-image .page-hero-bg::after { display: none; }

.category-archive .page-hero-text,
.post-hero .page-hero-text {
  padding-left: 0;
}

.post-hero--no-image .page-hero-text {
  padding-left: 0;
}

/* Breadcrumbs sit between the hero and the post body */
.breadcrumbs {
  background: var(--white);
  padding: 2rem 0 0;
}

.breadcrumbs--floating {
  padding: 1rem 0 0;
  position: absolute;
}
.breadcrumbs--floating .breadcrumbs-inner {
  padding-left: max(48px, calc((100vw - 1400px) / 2 + 48px));
}

.breadcrumbs-inner {
  max-width: 63rem;
  margin: 0 auto;
  padding: 0 48px;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--mid-gray);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: '';
  width: 2px;
  height: 0.9em;
  background: var(--mid-gray);
  margin: 0 12px 0 3px;
  transform: skewX(20deg);
  flex-shrink: 0;
}

.breadcrumbs a {
  color: var(--orange-warm);
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--orange-hover); }

.breadcrumbs li[aria-current="page"] {
  color: var(--near-black);
  font-weight: 600;
}

.breadcrumbs-date {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid-gray);
}

.post-content {
  background: var(--white);
  padding: 2.5rem 0 5rem;
}

.post-content-inner {
  max-width: 63rem;
  margin: 0 auto;
  padding: 0 48px;
  font-size: clamp(1.1rem, 1.25vw, 1.25rem);
  line-height: 1.75;
  color: var(--near-black);
}

.post-content-inner > * + * { margin-top: 1.25em; }

.post-content-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--near-black);
  line-height: 1.25;
  margin-top: 2.25em;
  margin-bottom: 0.5em;
}

.post-content-inner h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 700;
  color: var(--near-black);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.post-content-inner a {
  color: var(--orange-warm);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.post-content-inner a:hover { color: var(--orange-hover); }

.post-content-inner ul,
.post-content-inner ol { padding-left: 1.4em; }

.post-content-inner li { margin-bottom: 0.4em; }

.post-content-inner blockquote {
  border-left: 4px solid var(--orange-warm);
  padding: 0.25em 0 0.25em 1.25em;
  color: var(--mid-gray);
  font-style: italic;
}

.post-content-inner img {
  width: 100%;
  height: auto;
  margin: 1.5em 0;
}

.post-content-inner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #f3f3f3;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.post-content-inner pre {
  background: #f3f3f3;
  padding: 1em 1.25em;
  overflow-x: auto;
  font-size: 0.95em;
  line-height: 1.55;
}
.post-content-inner pre code {
  background: none;
  padding: 0;
}

.post-content-inner hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5em 0;
}

.post-footer {
  background: var(--light-gray);
  padding: 4rem 0;
}

.post-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: center;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1400px) {
  .hero-bg img { object-position: 50%; }
}

/* Roofing section has 6 cards — show 2 rows of 3 on desktop instead of 4+2.
   Scoped to the dark section so the siding grid keeps its single row of 4. */
@media (min-width: 1201px) {
  .service-section--dark .service-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1200px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Nav contact: once content hits max-width, anchor the diagonal to the center
   instead of the viewport edge, so it stays locked to the centered content. */
@media (min-width: 1400px) {
  .nav-contact::before {
    clip-path: polygon(
      calc(50% - 57px) 0,
      100% 0,
      100% 100%,
      calc(50% - 27px) 100%
    );
  }
}

/* Nav contact: widen the gray bar as viewport shrinks */
@media (max-width: 1100px) {
  .nav-contact::before {
    clip-path: polygon(
      calc(100% - 733px) 0,
      100% 0,
      100% 100%,
      calc(100% - 703px) 100%
    );
  }
  .hero-bg img { object-position: 70%; }

  /* Reviews: 2 cards visible on tablet */
  .review-card { flex: 0 0 calc((100% / 2) - (24px / 2)); }
}

@media (max-width: 900px) {
  .nav-contact::before {
    clip-path: polygon(
      calc(100% - 659px) 0,
      100% 0,
      100% 100%,
      calc(100% - 629px) 100%
    );
  }
  .nav-contact-inner { padding: 0 32px; }
  .contact-item { font-size: 0.82rem; }
}

@media (max-width: 960px) {
  /* Our Services: stack text above image */
  .our-services-inner {
    grid-template-columns: 1fr;
  }
  .our-services-image {
    clip-path: none;
    height: 320px;
    position: relative;
  }
  .our-services-image img {
    position: static;
    width: 100%;
    height: 320px;
    object-fit: cover;
  }

  /* Why Us: stack text above image */
  .why-us-inner {
    grid-template-columns: 1fr;
  }
  .why-us-image {
    clip-path: none;
    position: relative;
    height: 380px;
  }
  .why-us-image img {
    position: static;
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center top;
  }

  .footer-inner { flex-wrap: wrap; }
  .footer-col { flex: 0 0 calc(50% - 24px); }

  /* Page intro: stack vertically */
  .page-intro-inner { grid-template-columns: 1fr; }
  .page-intro-image {
    clip-path: none;
    height: 320px;
    position: relative;
  }
  .page-intro-image img {
    position: static;
    width: 100%;
    height: 320px;
    object-fit: cover;
  }

  /* About team: stack vertically */
  .about-team-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-team-image { max-width: 360px; }

  /* Service block: stack image above content; keep image-right modifier
     showing image first on mobile too */
  .service-block-inner { grid-template-columns: 1fr; gap: 40px; }
  .service-block-image,
  .service-block--image-right .service-block-image { order: 1; }
  .service-block-content,
  .service-block--image-right .service-block-content { order: 2; }
}

/* Mobile nav appears at 900px so subpage dropdowns have room */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
}

@media (max-width: 768px) {
  .breadcrumbs--floating { position: relative; }
  .breadcrumbs--floating .breadcrumbs-inner { padding-left: 24px; }

  .hero-text h1 .hero-accent { color: var(--black); }

  /* Full-width bar on mobile, no angle — stays absolute over the hero */
  .nav-contact::before { clip-path: none; }
  .nav-contact-inner {
    justify-content: space-between;
    padding: 0 24px;
    flex-wrap: wrap;
  }

  .btn-orange {
    padding: 10px 30px;
  }

  .btn-slash {
    padding: 10px 30px 10px 45px;
  }

  .hero-bg img { object-position: 0; }

  .hero-content {
    justify-content: center;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-text h1 span:nth-child(2) { padding-left: 0; }
  .hero-text h1 span:nth-child(3) { padding-left: 0; }
  .hero-text h1 span:nth-child(4) { padding-left: 0; }

  .hero-text p {padding-left: 0;}

  /* p: same slope as h1, starts from left edge */
  .hero-text p span:nth-child(2) { padding-left: 0; }
  .hero-text p span:nth-child(3) { padding-left: 0; }
  .hero-text p span:nth-child(4) { padding-left: 0; }

  /* button: step 4, one past the last p line */
  .hero-text .btn-hero {
    margin-left: 0;
  }

  /* Mobile: disable the hero stagger-in animation */
  .hero-text h1 span,
  .hero-text p span,
  .hero-text .btn-hero {
    opacity: 1;
    animation: none;
  }

  /* Mobile: restyle hero CTA to match .btn-orange */
  .hero-text .btn-hero {
    background: var(--orange-warm);
    clip-path: none;
    padding: 10px 30px;
  }
  .hero-text .btn-hero::before {
    background: var(--black);
  }


  /* =============================================
   PAGE: James Hardie Siding
   ============================================= */
   .james-hardie .page-hero-bg img {
    object-position: 5%;
   }


  /* =============================================
   PAGE: Commercial Siding
   ============================================= */
   .commercial-siding .page-hero-bg img {
    object-position: 5%;
   }


   /* =============================================
   PAGE: Storm Damaged Siding
   ============================================= */
   .storm-damaged-siding .page-hero-bg img {
    object-position: 5%;
   }



  /* Light-gray scrim over the hero image on mobile so the dark hero text
     stays readable regardless of what's behind it. */
  .hero-bg::after,
  .page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(220, 220, 220, 0.7);
    pointer-events: none;
  }

  .page-hero-text {
    padding-left: 0;
  }

  .page-hero-text p span:nth-child(1) { padding-left: 0; }
  .page-hero-text p span:nth-child(2) { padding-left: 0; }
  .page-hero-text p span:nth-child(3) { padding-left: 0; }
  .page-hero-text p span:nth-child(4) { padding-left: 0; }

  .page-hero-text .btn-slash,
   .commercial-roofing-services .page-hero-text .btn-slash,
   .storm-damaged-siding .page-hero-text .btn-slash {
    margin-left: auto;
    margin-right: auto;
  }

  /* Orange tab header with right diagonal cut */
  .category-header {
    margin-bottom: 0;
  }

  /* Gap below header before the card grid */
  .service-section .category-header {
    margin-bottom: 0;
  }

  .service-section .category-header h2 {
    margin-top: 0;
  }

  /* Stack the services strip vertically */
  .services-strip { flex-direction: column; margin-top: 0; overflow: hidden; min-height: 0; }
  .strip-left-wrap {
    flex: none;
    width: 100%;
    position: static;
    z-index: auto;
    margin-top: 0;
    filter: none;
  }
  .strip-left {
    clip-path: none;
    padding: 36px 32px;
  }
  .strip-right-wrap {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    filter: none;
    width: 100%;
  }
  .strip-right {
    clip-path: none;
    padding: 36px 32px;
    margin-top: 0;
  }
  .strip-right p span:nth-child(2) { padding-left: 0; }
  .strip-right p span:nth-child(3) { padding-left: 0; }
  .strip-right p span:nth-child(4) { padding-left: 0; }
  
  .our-services {
    margin-top: 0;
  }

  /* 2-column service grid on mobile */
  .service-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stack siding CTA row */
  .siding-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Stack main CTA bar */
  .cta-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Reviews: full-bleed mobile slider with 1 card visible + peek of next */
  .reviews { padding: 3rem 0; }
  .reviews-inner { padding: 0 24px; }
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .reviews-track {
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scroll-padding-left: 24px;
  }
  .review-card {
    flex: 0 0 85%;
    padding: 24px;
  }
  .reviews-cta { text-align: center; }

  /* Stack footer columns */
  .footer-inner { flex-direction: column; }
  .footer-col { flex: none; width: 100%; }

  /* Reduce padding — uniform 3rem top/bottom on mobile */
  .our-services-text { padding: 3rem 32px; }
  .why-us-text { padding: 3rem 32px; }
  .service-section { padding: 3rem 0; }
  .service-section-inner { padding: 0 24px; }
  .nav-top-inner { padding-left: 24px; padding-right: 24px; }
  .cta-bar { padding: 3rem 0; }
  .cta-bar-inner { padding: 0 24px; }
  .footer-inner { padding: 0 24px 48px; }

  /* Page hero: center text on mobile */
  .page-hero-content { justify-content: center; padding: 48px 24px; }
  .page-hero-text { max-width: 100%; text-align: center; }

  /* Tagline strip */
  .tagline-strip-inner { padding: 28px 24px; }

  /* Page intro */
  .page-intro-text { padding: 3rem 24px; }

  /* About team */
  .about-team { padding: 3rem 0; }
  .about-team-inner { padding: 0 24px; gap: 32px; }

  /* Service block */
  .service-block { padding: 3rem 0; }
  .service-block-inner { padding: 0 24px; gap: 32px; }

  /* Split block: stack to single column, drop the vertical divider */
  .split-block { padding: 3rem 0; }
  .split-block-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 40px;
  }
  .split-block-inner::before { display: none; }

  /* Contact form: stack form above side block */
  .contact-form-section { padding: 3rem 0; }
  .contact-form-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }
  .contact-form { scroll-margin-top: 3rem; }
  .contact-form-side { min-height: 320px; }

  /* Blog index: stack image above text */
  .blog-list-section { padding: 3rem 0; }
  .blog-list-section-inner { padding: 0 24px; }
  .blog-list { gap: 40px; }
  .blog-list-item { grid-template-columns: 1fr; gap: 16px; }
  .blog-pagination { flex-wrap: wrap; gap: 16px; justify-content: center; text-align: center; }

  /* Post page */
  .breadcrumbs { padding: 1.5rem 0 0; }
  .breadcrumbs-inner { padding: 0 24px; }
  .post-content { padding: 1.75rem 0 3rem; }
  .post-content-inner { padding: 0 24px; }
  .post-footer { padding: 2.5rem 0; }
  .post-footer-inner { padding: 0 24px; }
}

@media (max-width: 660px) {
  .nav-contact .btn-contact { display: none; }
}

@media (max-width: 480px) {
  .nav-contact { height: auto; }
  .nav-contact-inner { padding: 1rem 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 64px 24px; padding-top: 100px; }
  .hero-text { max-width: 100%; text-align: left; }
}

@media (max-width: 390px) {
  .hero-content { padding-top: 120px; }
}
