/* ==========================================================================
   22 Home Roofing — Global Stylesheet
   ========================================================================== */

:root {
  --orange: #E8621B;
  --orange-dark: #C7530F;
  --black: #1B1B1B;
  --dark: #1B1B1B;
  --white: #FFFFFF;
  --light: #F4F4F2;
  --border: #DDDDDA;
  --text: #111111;
  --muted: #777777;
  --container-width: 1200px;
  --narrow-width: 780px;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 16px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 0;
  border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-orange:hover, .btn-orange:focus-visible { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-black {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-black:hover, .btn-black:focus-visible { background: #000; }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--black); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover, .btn-outline-white:focus-visible { background: var(--white); color: var(--black); }

/* ==========================================================================
   Top utility bar
   ========================================================================== */

.top-bar {
  background: var(--black);
  color: #ccc;
  font-size: 13px;
}
.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 24px;
  gap: 24px;
}
.top-bar-right { display: flex; gap: 24px; }
.top-bar-right a { color: #ccc; }
.top-bar-right a:hover { color: var(--white); }

/* ==========================================================================
   Main header / nav
   ========================================================================== */

.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  transition: box-shadow .25s ease, border-color .25s ease;
  z-index: 100;
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7px;
  padding-bottom: 7px;
  gap: 20px;
  transition: padding .25s ease;
}
.main-header.is-scrolled {
  border-color: rgba(27, 27, 27, .10);
  box-shadow: 0 8px 22px rgba(27, 27, 27, .12);
}
.main-header.is-scrolled .main-header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--black);
  flex-shrink: 0;
}
.logo-mark {
  background: var(--black);
  color: #e8621b;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  border-radius: 0;
}

.main-nav { flex: 1; }
.nav-links {
  display: flex;
  justify-content: center;
  gap: 17px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  padding: 8px 0;
  display: inline-block;
}
.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li.active > a.dropdown-toggle {
  color: var(--orange);
}

.has-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  min-width: 220px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 200;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--light);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: var(--light); color: var(--orange); }

/* A more polished desktop services menu without changing the mobile accordion. */
@media (min-width: 1025px) {
  .has-dropdown .dropdown-menu {
    border: 1px solid #e7e7e3;
    border-radius: 4px;
    box-shadow: 0 16px 30px rgba(27, 27, 27, .16);
    min-width: 250px;
    overflow: hidden;
    padding: 6px 0;
    top: calc(100% + 10px);
  }
  .has-dropdown .dropdown-menu::before {
    background: var(--orange);
    content: "";
    display: block;
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
  }
  .dropdown-menu li a {
    border-bottom-color: #efefec;
    padding: 14px 20px 14px 24px;
    position: relative;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
  }
  .dropdown-menu li a:hover,
  .dropdown-menu li a:focus-visible {
    background: #fff5ee;
    color: var(--orange);
    padding-left: 30px;
  }
  .dropdown-menu li a:hover::before,
  .dropdown-menu li a:focus-visible::before {
    background: var(--orange);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 3px;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}
.header-phone { text-align: left; font-size: 14px; }
.call-label { display: block; font-size: 12px; color: var(--muted); }
.header-phone a { font-weight: 700; color: var(--black); }

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.mobile-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
}

/* ==========================================================================
   Hero (dark)
   ========================================================================== */

.hero {
  background: var(--dark);
  color: var(--white);
  padding: 100px 0 110px;
}
.hero-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
}
.hero-breadcrumb a { color: #999; }
.hero-breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.hero-eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 780px;
}
.hero p {
  font-size: 17px;
  color: #ccc;
  max-width: 620px;
  margin: 0 0 22px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-proof-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  max-width: 640px;
  margin: 0 0 28px;
}
.hero-proof-points li {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}
.hero-proof-points li::before {
  content: "\2713";
  color: var(--orange);
  display: inline-block;
  font-weight: 800;
  margin-right: 10px;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-split .hero-content { flex: 1; }
.hero-split .hero-media {
  flex: 1;
  background: #2A2A2A;
  min-height: 320px;
  border: 1px solid #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* A short stagger gives the first view energy without slowing the page down. */
.hero .hero-eyebrow,
.hero h1,
.hero .hero-content > p,
.hero .hero-proof-points,
.hero .hero-buttons {
  animation: hero-copy-in .6s both ease-out;
}
.hero .hero-eyebrow { animation-delay: .05s; }
.hero h1 { animation-delay: .12s; }
.hero .hero-content > p { animation-delay: .20s; }
.hero .hero-proof-points { animation-delay: .28s; }
.hero .hero-buttons { animation-delay: .36s; }
.hero > .hero-split > .hero-media {
  aspect-ratio: 16 / 10;
  background: transparent;
  border: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  animation: hero-media-in .8s both cubic-bezier(.22, .61, .36, 1);
  animation-delay: .18s;
}
.hero > .hero-split > .hero-media img {
  transition: transform .6s ease;
}
.hero > .hero-split > .hero-media:hover img { transform: scale(1.035); }

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-media-in {
  from { opacity: 0; transform: translateX(26px) scale(.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ==========================================================================
   Trust bar (home hero strip)
   ========================================================================== */
/* 
.trust-bar {
  background: #f4f4f2;
  border-top: 3px solid var(--black);
  border-bottom: 1px solid var(--border);
  padding: 25px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}
.trust-item {
  flex: 1 1 0;
  color: var(--text);
  padding: 0 10px;
  text-align: center;
}
.trust-item strong,
.trust-item span {
  display: block;
}
.trust-item strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.trust-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}
.trust-item:last-child { border-right: none; } */


/* =========================================================
   TRUST BADGES — Exact 3 x 2 Reference Layout
   ========================================================= */

.trust-bar {
    background: #fafafa;
    border-top: 1px solid #f0f0ed;
    border-bottom: 1px solid #f0f0ed;
    padding: 24px 0;
}

.trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}


/* =========================
   Card
   ========================= */

.trust-item {
    position: relative;

    min-width: 0;
    min-height: 145px;

    padding: 22px 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #fff;

    border: 1px solid #e8e8e5;
    border-radius: 13px;

    color: #111;
    text-align: center;
    text-decoration: none;

    box-shadow: 0 2px 7px rgba(0,0,0,.025);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}


/* =========================
   Standard icon
   ========================= */

.trust-icon {
    width: 30px;
    height: 30px;

    margin: 0 0 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 0;
    border-radius: 0;

    color: #111;
}

.trust-item-bbb .trust-bbb-badge {
    display: block;
    width: 115px;
    height: 44px;
    margin: 0 0 9px;
    object-fit: contain;
}

.trust-icon svg {
    display: block;

    width: 40px;
    height: 35px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   Google Stars
   ========================= */

.trust-stars {
    margin: 0 0 10px;

    color: #9b6b20;

    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 400;

    line-height: .8;
    letter-spacing: 0;
}


/* =========================
   Title
   ========================= */

.trust-item strong {
    display: block;

    margin: 0;

    color: #111;

    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;

    line-height: 1.25;
}


/* =========================
   Subtitle
   ========================= */

.trust-item span {
    display: block;

    margin: 4px 0 0;

    color: #626262;

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;

    line-height: 1.35;
}


/* =========================
   Google card alignment
   ========================= */

.trust-item-google {
    padding-top: 20px;
}


/* =========================
   No old backgrounds / colors
   ========================= */

.trust-item-google,
.trust-item-bbb,
.trust-item-experience,
.trust-item-license,
.trust-item-family,
.trust-item-financing {
    background: #fff;
    border-top: 1px solid #e8e8e5;
}


/* =========================
   Clickable cards
   ========================= */

a.trust-item {
    cursor: pointer;
}

.trust-item:hover,
a.trust-item:focus-visible {
    color: #111;

    transform: translateY(-2px);

    border-color: #d9d9d5;

    box-shadow:
        0 7px 18px rgba(0,0,0,.06);

    outline: none;
}


/* =========================
   Desktop
   ========================= */

@media (min-width: 1025px) {

    .trust-bar-inner {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================
   Tablet
   ========================= */

@media (max-width: 1024px) {

    .trust-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

}


/* =========================
   Mobile
   ========================= */

@media (max-width: 600px) {

    .trust-bar {
        padding: 18px 0;
    }

    .trust-bar-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trust-item {
        min-height: 125px;
        padding: 18px 14px;
    }

    .trust-item strong {
        font-size: 15px;
    }

    .trust-item span {
        font-size: 12px;
    }

    .trust-stars {
        font-size: 24px;
    }

}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-white { background: var(--white); }
.section-dark { background: var(--dark); color: var(--white); }

.section-narrow { max-width: var(--narrow-width); margin: 0 auto; padding: 0 24px; }
.section-narrow .content-block { margin-bottom: 44px; }
.section-narrow .content-block:last-child { margin-bottom: 0; }
.section-narrow h2 { font-size: 26px; font-weight: 700; margin: 0 0 14px; }
.section-narrow p { color: #333; margin: 0 0 8px; }
.section-narrow ul { margin-top: 8px; }
.section-narrow ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: #333;
}
.section-narrow ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.section-header { text-align: center; max-width: 580px; margin: 0 auto 48px; }
.section-header.align-left { text-align: left; margin-left: 0; }
.section-eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.section-header p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card:not(.service-card):hover,
.card:not(.service-card):focus-within {
  border-color: var(--orange);
  box-shadow: 0 14px 28px rgba(27, 27, 27, .09);
  transform: translateY(-5px);
}
.card .why-card-icon { transition: background .25s ease, color .25s ease, transform .25s ease; }
.card:not(.service-card):hover .why-card-icon,
.card:not(.service-card):focus-within .why-card-icon {
  background: var(--orange);
  color: var(--white);
  /* transform: rotate(-4deg) scale(1.06); */
}
.card .icon-placeholder {
  width: 44px;
  height: 44px;
  background: var(--light);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.service-card-media {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #f7f7f5;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  text-align: center;
}
.service-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 22px;
}
.service-card-content .read-more { margin-top: auto; padding-top: 14px; }
.service-card:hover {
  border-color: #c8c8c2;
  box-shadow: 0 14px 28px rgba(27, 27, 27, .10);
  transform: translateY(-5px);
}
.service-card-media img { transition: transform .45s ease; }
.service-card:hover .service-card-media img { transform: scale(1.05); }
.why-card-icon {
  align-items: center;
  background: var(--black);
  color: var(--orange);
  display: flex;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  margin-bottom: 16px;
  width: 44px;
}
.why-card-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
}
.read-more:hover { text-decoration: underline; }

.blog-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  margin-top: 40px;
}

/* ==========================================================================
   Stats bar
   ========================================================================== */

.stats-bar { background: var(--light); padding: 56px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-card {
  background: var(--white);
  padding: 32px 16px;
  border: 1px solid var(--border);
}
.stat-number {
  font-size: 34px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 6px;
}
.stat-label { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { font-size: 30px; font-weight: 600; margin: 0 0 12px; }
.cta-band p { margin: 0 0 28px; font-size: 16px; opacity: .95; }
.cta-band .cta-note {
  margin-top: 18px;
  font-size: 14px;
  opacity: .9;
}
.cta-band .cta-note a { font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   Steps / process
   ========================================================================== */

.steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.step-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
}
.step h4 { font-size: 15px; font-weight: 700; margin: 0; }
.step { border-left: 1px solid var(--border); padding-left: 18px; }
.step:first-child { border-left: none; padding-left: 0; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question .faq-icon {
  color: var(--orange);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform .2s ease;
}
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-answer-inner {
  padding: 0 4px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.filter-btn {
  background: var(--white);
  border: 1px solid var(--black);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;
}
.filter-btn.active, .filter-btn:hover { background: var(--black); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-card {
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.gallery-card.is-hidden { display: none; }
.gallery-card:hover {
  border-color: #c8c8c2;
  box-shadow: 0 12px 24px rgba(27, 27, 27, .08);
  transform: translateY(-4px);
}
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.before-after > div {
  aspect-ratio: 4 / 3;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--border);
}
.gallery-tags { padding: 14px 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: var(--light);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 0;
}
.tag-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.gallery-caption { padding: 12px 16px 16px; font-size: 14px; color: #333; }

.project-photo-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light);
}

.project-video-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
}
.project-video-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--black);
}
.project-video-card figcaption { padding: 20px; }
.project-video-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.project-video-card p { margin: 0; color: #626262; font-size: 14px; }

.project-story-media { margin: 24px 0 0; }
.project-story-media img { display: block; width: 100%; height: auto; }
.project-story-media-portrait { max-width: 440px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Reviews
   ========================================================================== */

.review-card { background: var(--white); border: 1px solid var(--border); padding: 26px; }
.stars { color: var(--orange); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.review-quote { font-size: 15px; color: #333; margin: 0 0 16px; }
.review-author { font-weight: 700; font-size: 14px; }
.review-service { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.review-source { display: inline-block; font-size: 13px; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* Reviews page: equal preview heights, with full text available on request. */
.reviews-grid { align-items: start; }
.reviews-grid .review-card.is-collapsible { display: flex; flex-direction: column; min-width: 0; }
.reviews-grid .is-collapsible .review-service { min-height: 3.2em; }
.reviews-grid .is-collapsible .review-quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  height: 8em;
  line-height: 1.6;
  overflow: hidden;
  margin-bottom: 8px;
}
.reviews-grid .is-collapsible.is-expanded .review-quote {
  display: block;
  height: auto;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.reviews-grid .is-collapsible .review-toggle-row { min-height: 40px; margin-bottom: 12px; }
.reviews-grid .review-toggle {
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reviews-grid .review-toggle[hidden] { display: none; }
.reviews-grid .review-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.reviews-grid .is-collapsible .review-footer { margin-top: auto; }
.reviews-grid .is-collapsible .review-source { min-height: 3.2em; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form-card {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 32px;
}
.contact-form-card h3 { margin: 0 0 22px; font-size: 20px; font-weight: 700; }
.form-message {
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
}
.form-message-success {
  color: #155724;
  background: #eaf7ed;
  border-color: #9bcaa5;
}
.form-message-error {
  color: #842029;
  background: #fff0f1;
  border-color: #e7a2a8;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 2px;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.contact-info h2 { font-size: 24px; font-weight: 800; margin: 0 0 20px; }
.contact-info p { margin: 0 0 10px; font-size: 15px; }
.contact-info strong { display: inline-block; min-width: 70px; }
.map-placeholder {
  margin-top: 24px;
  background: var(--light);
  border: 1px solid var(--border);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}
.service-area-map {
  overflow: hidden;
  padding: 0;
}
.service-area-map iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: 220px;
  width: 100%;
}

/* ==========================================================================
   Two-column feature blocks (image + text)
   ========================================================================== */

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-block .media-placeholder {
  background: var(--light);
  border: 1px solid var(--border);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  /* padding: 20px; */
}
.split-block h3 { font-size: 22px; font-weight: 600; margin: 0 0 14px; }
.split-block p { color: #333; margin: 0 0 20px; }
.split-block h4 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }

/* Financing follows the visual rhythm of the supplied desktop design. */
.financing-section .split-block { gap: 44px; }
.financing-copy { max-width: 560px; }
.financing-copy h3 {
  font-size: 38px;
  line-height: 1.14;
  margin-bottom: 22px;
  max-width: 540px;
}
.financing-copy > p {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 540px;
}
.financing-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.financing-option {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  box-shadow: 0 8px 18px rgba(27, 27, 27, .08);
  display: flex;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.16;
  min-height: 122px;
  padding: 24px;
}
.financing-section .media-placeholder {
  aspect-ratio: 15 / 10;
  min-height: 0;
  padding: 0;
}

/* Keeps the inspection photo secondary to the inspection checklist. */
.inspection-details-copy { max-width: 560px; }
.inspection-details h2 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 22px;
}
.inspection-details .media-placeholder,
.service-feature-media {
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 0;
}

/* Project photos keep one consistent shape regardless of source orientation. */
.project-gallery-grid .media-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--light);
  border: 1px solid rgba(27, 27, 27, .08);
  box-shadow: 0 8px 18px rgba(27, 27, 27, .09);
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}
.project-gallery-grid .media-placeholder img { transition: transform .45s ease; }
.project-gallery-grid .media-placeholder:hover {
  box-shadow: 0 18px 32px rgba(27, 27, 27, .16);
  transform: translateY(-6px);
}
.project-gallery-grid .media-placeholder:hover img { transform: scale(1.045); }

/* ==========================================================================
   Comparison columns (repair vs replace)
   ========================================================================== */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.compare-card { border: 1px solid var(--border); padding: 28px; }
.compare-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.compare-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: #333;
  font-size: 14px;
}
.compare-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.storm-section .section-header { margin-bottom: 32px; }
.storm-section .section-header h2 { max-width: 525px; }
.storm-section-cta {
  margin-top: 28px;
  max-width: 520px;
}
.storm-section-cta p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}
.comparison-section .section-header { margin-bottom: 32px; }
.comparison-section .compare-grid { gap: 0; }
.comparison-section .compare-card { padding: 24px 28px; }
.comparison-section .compare-card + .compare-card { border-left: none; }
.comparison-section .compare-card h3 { margin-bottom: 12px; }
.comparison-section .compare-card ul li {
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  margin: 0;
  padding: 8px 0;
}
.comparison-section .compare-card ul li:last-child { border-bottom: none; }
.comparison-section .compare-card ul li::before { display: none; }
.comparison-section-cta { margin-top: 24px; text-align: center; }
.comparison-section-cta p {
  font-size: 14px;
  font-weight: 700;
  margin: 0 auto 16px;
  max-width: 520px;
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-card { text-align: left; }
.team-photo {
  align-items: center;
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  height: 136px;
  justify-content: center;
  margin-bottom: 0;
  padding: 16px;
  text-align: center;
}
.team-card h3 { font-size: 16px; margin: 8px 5px 2px; }
.team-card p { color: var(--orange); font-size: 13px; font-weight: 700; margin: 0 5px 14px; }
.team-description { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 5px 14px; }

/* ==========================================================================
   Placeholder images (photos dropped into existing media boxes)
   ========================================================================== */

.hero-media img,
.service-card-media img,
.media-placeholder img,
.before-after > div img,
.gallery-card img,
.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Keeps added photos proportionate and gives sections a subtle entrance. */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
.team-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
}
.trust-badges img {
  height: 46px;
  width: auto;
}

/* ==========================================================================
   Service area
   ========================================================================== */

.city-project-grid > * { min-width: 0; }
.city-project-grid .media-placeholder { min-height: 0; overflow: hidden; }

.city-card {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 24px;
  transition: border-color .2s ease;
}
.city-card:hover { border-color: var(--orange); }
.city-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.city-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--black); color: #bbb; padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.site-footer .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px;
  height: 34px;
  /* border: 1px solid #444; */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #ccc;
}
.social-links a:hover { border-color: var(--orange); color: var(--orange); }

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 18px;
}
.footer-col ul li { margin-bottom: 12px; font-size: 14px; }
.footer-col ul:not(.footer-contact) li a {
  display: inline-block;
  padding-bottom: 3px;
  position: relative;
  transition: color .22s ease;
}
.footer-col ul:not(.footer-contact) li a::after {
  background: var(--orange);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  width: 100%;
}
.footer-col ul:not(.footer-contact) li a:hover,
.footer-col ul:not(.footer-contact) li a:focus-visible { color: #FFFFFF; }
.footer-col ul:not(.footer-contact) li a:hover::after,
.footer-col ul:not(.footer-contact) li a:focus-visible::after { transform: scaleX(1); }
.footer-contact li { color: #bbb; }

.footer-bottom { border-top: 1px solid #333; margin-top: 8px; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal a:hover { color: var(--white); }

/* ==========================================================================
   Responsive
   Breakpoints: 1440 (base/reference) → 1366 (laptop) → 1024 (tablet) → 767 (mobile)
   ========================================================================== */

/* ---- Laptop: 1366px and below ---- */
@media (max-width: 1366px) {
  .container { padding: 0 32px; }
  .nav-links { gap: 20px; }
  .nav-links > li > a { font-size: 13px; }
  .header-cta { gap: 14px; }
  .hero h1 { font-size: 40px; }
  .section { padding: 72px 0; }
}

/* ---- Tablet: 1024px and below ---- */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }

  /* Header switches to mobile-style nav so it stays usable at tablet width */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    flex: none;
  }
  .main-nav.open { max-height: 600px; overflow-y: auto; }
  .nav-links { flex-direction: column; padding: 8px 28px; gap: 0; }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--light); }
  .nav-links > li > a { padding: 14px 0; width: 100%; font-size: 14px; }
  .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
    border: none;
    box-shadow: none;
    display: block;
  }
  .has-dropdown.open .dropdown-menu { max-height: 400px; }
  .has-dropdown:hover .dropdown-menu { max-height: 0; }
  .has-dropdown.open:hover .dropdown-menu { max-height: 400px; }

  .header-cta { display: none; }
  .mobile-nav-toggle { display: flex; }

  .hero h1 { font-size: 36px; }
  .hero p { max-width: 100%; }
  .hero-split { gap: 32px; }

  .section { padding: 64px 0; }

  /* 3-column card grids drop to 2 columns at tablet */
  .grid-3, .grid-4, .grid-6, .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Process steps wrap instead of collapsing to a single column */
  .steps-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px 20px;
  }
  .step { border-left: none; padding-left: 0; border-top: 2px solid var(--orange); padding-top: 12px; }

  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .split-block { grid-template-columns: 1fr; gap: 32px; }
  .split-block .media-placeholder { order: -1; }
  .compare-grid { grid-template-columns: 1fr; gap: 24px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---- Mobile: 767px and below ---- */
@media (max-width: 767px) {
  .container { padding: 0 20px; }

  .top-bar-inner { justify-content: center; padding: 6px 20px; }
  .top-bar-right { gap: 14px; font-size: 12px; }

  .main-header-inner {
    min-height: 64px;
    padding-bottom: 10px;
    padding-top: 10px;
  }
  .main-header.is-scrolled .main-header-inner {
    min-height: 60px;
    padding-bottom: 8px;
    padding-top: 8px;
  }
  .logo { font-size: 17px; gap: 9px; }
  .logo-mark { height: 38px; width: 38px; }
  .mobile-nav-toggle {
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 2px;
    gap: 5px;
    height: 42px;
    transition: background .2s ease, border-color .2s ease;
    width: 44px;
  }
  .mobile-nav-toggle span {
    background: var(--black);
    border-radius: 2px;
    transition: opacity .2s ease, transform .25s ease;
    width: 21px;
  }
  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus-visible {
    background: var(--orange);
    border-color: var(--orange);
    outline: none;
  }
  .mobile-nav-toggle:hover span,
  .mobile-nav-toggle:focus-visible span { background: var(--white); }
  .mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(.45); }
  .mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .trust-bar { padding: 14px 0; }
  .trust-bar-inner { flex-wrap: wrap; justify-content: center; }
  .trust-item { flex: 1 1 50%; padding: 8px 14px; border-right: none; }
  .trust-item span { font-size: 11px; }

  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 28px; }
  .hero-split { flex-direction: column; }
  .hero-proof-points { grid-template-columns: 1fr; gap: 8px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; }

  .section { padding: 56px 0; }
  .section-header h2 { font-size: 26px; }
  .section-narrow { padding: 0 20px; }

  .grid-2, .grid-3, .grid-4, .grid-6, .stats-grid, .gallery-grid { grid-template-columns: 1fr; }

  .steps-row { grid-template-columns: 1fr; gap: 20px; }

  .form-row { grid-template-columns: 1fr; }
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .cta-band h2 { font-size: 24px; }
  .cta-band .btn { width: 100%; }

  .gallery-filters { gap: 8px; }
  .filter-btn { padding: 8px 14px; font-size: 13px; }

  .financing-copy h3 { font-size: 30px; }
  .financing-options { grid-template-columns: 1fr; gap: 12px; }
  .financing-option { min-height: 76px; padding: 18px 20px; }
  .inspection-details h2 { font-size: 30px; }
}
/* =========================================================
   WordPress / Hello Elementor - Full Width Footer Fix
   ========================================================= */

body .site-footer {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Footer background full screen,
   only inner content stays inside normal container */
body .site-footer > .container,
body .site-footer .footer-bottom > .container {
    width: 100% !important;
    max-width: var(--container-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Hello Elementor may apply max-width to footer */
body.elementor-page .site-footer,
body[class*="elementor-page"] .site-footer,
#page .site-footer {
    max-width: none !important;
    width: 100% !important;
}
/* WordPress / Elementor footer layout fix */
body.wp-singular footer.site-footer .footer-inner,
body.elementor-page footer.site-footer .footer-inner,
footer.site-footer .footer-inner {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
    gap: 32px !important;
    align-items: start !important;

    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;

    padding-left: 40px !important;
    padding-right: 40px !important;
    padding-bottom: 48px !important;
}

/* Make sure individual footer columns don't inherit Elementor widths */
footer.site-footer .footer-col,
footer.site-footer .footer-brand {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
}

/* Full-width dark footer background */
footer.site-footer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: #1B1B1B !important;
}

/* Bottom bar */
footer.site-footer .footer-bottom {
    width: 100% !important;
    margin-top: 8px !important;
}

footer.site-footer .footer-bottom-inner {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 40px !important;
}
@media (max-width: 1024px) {
    body.wp-singular footer.site-footer .footer-inner,
    body.elementor-page footer.site-footer .footer-inner,
    footer.site-footer .footer-inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 767px) {
    body.wp-singular footer.site-footer .footer-inner,
    body.elementor-page footer.site-footer .footer-inner,
    footer.site-footer .footer-inner {
        grid-template-columns: 1fr !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
.hero-breadcrumbss
{
  color: #e8621b !important;
}

.main-header .logo img {
    height: 85px;
    width: auto;
    display: block;
}

.main-header-home .logo img {
    height: 90px;
}

/* Header logo */
/*.main-header .logos img {*/
/*    width: 180px;*/
/*    height: auto;*/
/*}*/

/* Footer logo */
.site-footer .footer-logo-img {
    width: 85px;
    height: auto;
    padding-bottom: 15px;
}
.site-footer .social-links a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}
/* Tablet */
@media (max-width: 1024px) {
    .main-header .logo img {
        height: 70px;
        width: auto;
    }

    .main-header-home .logo img {
        height: 80px;
    }

    .site-footer .footer-logo-img {
        width: 80px;
        height: auto;
    }

    .site-footer .social-links a img {
        width: 26px;
        height: 26px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .main-header .logo img {
        height: 55px;
        width: auto;
    }

    .main-header-home .logo img {
        height: 62px;
    }

    .site-footer .footer-logo-img {
        width: 70px;
        height: auto;
        padding-bottom: 10px;
    }

    .site-footer .social-links a img {
        width: 24px;
        height: 24px;
    }
}
.site-footer .social-links a:hover img {
    transform: translateY(-4px) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(232, 98, 27, 0.4));
}
