/* ===================================================================
   TruTop Roof — shared styles (layered on Bootstrap 5.3.x)
   Brand palette derived from the TruTop Roof logo.
=================================================================== */

:root {
  /* Core brand */
  --navy:        #213d4f;  /* logo wordmark — primary dark */
  --navy-deep:   #162c3a;  /* darker shade for overlays/footer */
  --navy-soft:   #2f536a;  /* hover / secondary navy */
  --cream:       #f7f3ea;  /* logo background — light sections */
  --cream-deep:  #efe8d8;  /* alt light band */
  --ink:         #1b2a33;  /* body text on light */
  --muted:       #5c6b74;  /* secondary text */

  /* Sunset gradient (logo roof peak) */
  --g1: #f5973f;  /* orange  */
  --g2: #c83f8e;  /* magenta */
  --g2-ink: #b83380;  /* darker magenta — AA text contrast on cream/white (WCAG 1.4.3) */
  --g3: #6a3fa0;  /* purple  */
  --brand-gradient: linear-gradient(100deg, var(--g1) 0%, var(--g2) 52%, var(--g3) 100%);

  /* Accent used for CTAs / highlights */
  --accent:      #e2683f;  /* warm orange-red pulled from gradient */
  --accent-ink:  #ffffff;

  /* Effects */
  --radius:      16px;
  --radius-sm:   10px;
  --shadow-sm:   0 4px 14px rgba(20, 40, 55, .08);
  --shadow-md:   0 12px 30px rgba(20, 40, 55, .12);
  --shadow-lg:   0 24px 60px rgba(20, 40, 55, .18);
  --ease:        cubic-bezier(.22, .61, .36, 1);

  /* Bootstrap overrides */
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 33, 61, 79;
}

/* ----------------------------- Base ----------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-body-font-family);
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4 {
  font-family: "Poppins", var(--bs-body-font-family);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-cream { background: var(--cream); }
.section-cream-deep { background: var(--cream-deep); }
.section-navy { background: var(--navy); color: #eaf1f5; }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g2-ink);
  margin-bottom: .75rem;
}
.section-navy .eyebrow { color: #ffb27a; }

.section-title { font-size: clamp(1.9rem, 4vw, 2.85rem); line-height: 1.12; }
.section-lead  { color: var(--muted); font-size: 1.08rem; max-width: 46rem; }
.section-navy .section-lead { color: #c4d3dc; }

.divider-gradient { height: 4px; width: 72px; border-radius: 4px; background: var(--brand-gradient); }
.mx-auto.divider-gradient { margin-left: auto; margin-right: auto; }

/* --------------------------- Buttons ---------------------------- */
.btn { font-family: "Poppins", sans-serif; font-weight: 600; border-radius: 999px; padding: .7rem 1.5rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); }
.btn-lg { padding: .9rem 1.9rem; }

.btn-brand {
  background: var(--brand-gradient);
  background-size: 160% 160%;
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(200, 63, 142, .28);
}
.btn-brand:hover, .btn-brand:focus-visible { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 32px rgba(200, 63, 142, .36); }

.btn-navy { background: var(--navy); color: #fff; border: none; }
.btn-navy:hover, .btn-navy:focus-visible { background: var(--navy-soft); color: #fff; transform: translateY(-2px); }

.btn-outline-light-2 { border: 2px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light-2:hover, .btn-outline-light-2:focus-visible { background: #fff; color: var(--navy); transform: translateY(-2px); }

.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover, .btn-outline-navy:focus-visible { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* Visible focus everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .nav-link:focus-visible {
  outline: 3px solid var(--g2);
  outline-offset: 2px;
}

/* --------------------- Top utility bar -------------------------- */
.utility-bar {
  background: var(--navy-deep);
  color: #d7e2ea;
  font-size: .85rem;
}
.utility-bar a { color: #d7e2ea; text-decoration: none; }
.utility-bar a:hover { color: #fff; }
.utility-bar .util-item { display: inline-flex; align-items: center; gap: .4rem; }
.utility-bar .util-cta {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: .15rem .8rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
}
.utility-bar .util-cta:hover, .utility-bar .util-cta:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; }

/* ----------------------------- Nav ------------------------------ */
.site-nav {
  background: rgba(247, 243, 234, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(33, 61, 79, .08);
  transition: padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  padding-top: .3rem;
  padding-bottom: .3rem;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 26px rgba(20, 40, 55, .10);
  padding-top: .15rem;
  padding-bottom: .15rem;
}
/* Zero the brand's own padding so the oversized logo doesn't grow the bar */
.site-nav .navbar-brand { padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
.site-nav .navbar-brand img { height: 140px; width: auto; transition: height .3s var(--ease); }
.site-nav.scrolled .navbar-brand img { height: 112px; }
@media (max-width: 575.98px) {
  .site-nav .navbar-brand img { height: 100px; }
  .site-nav.scrolled .navbar-brand img { height: 80px; }
}

.site-nav .nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  margin: 0 .15rem;
}
.site-nav .nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem;
  height: 2px; background: var(--brand-gradient); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav .nav-link:hover::after, .site-nav .nav-link:focus-visible::after { transform: scaleX(1); }
.site-nav .dropdown-menu { border: none; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: .4rem; }
.site-nav .dropdown-item { border-radius: 8px; font-weight: 500; }
.site-nav .dropdown-item:active { background: var(--navy); }
.site-nav .nav-call { white-space: nowrap; }
/* Open the Roof Replacement dropdown on hover (desktop only) */
@media (min-width: 992px) {
  .site-nav .nav-item.dropdown { position: relative; }
  .site-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    top: 100%;
    left: 0;
    margin-top: 0;
  }
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 860px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22,44,58,.55) 0%, rgba(22,44,58,.35) 40%, rgba(22,44,58,.78) 100%),
    linear-gradient(105deg, rgba(106,63,160,.40) 0%, rgba(200,63,142,.18) 45%, rgba(0,0,0,0) 75%);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero .hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #eaf1f5; max-width: 40rem; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: .82rem; font-weight: 600;
  padding: .4rem .85rem; border-radius: 999px;
}
.hero-badge svg { width: 16px; height: 16px; }


/* Hero lead-capture form (video hero) */
.hero-form-card {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ink);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-form-title { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); font-size: 1.5rem; margin: 0 0 .25rem; text-shadow: none; }
.hero-form-sub { color: var(--muted); font-size: .92rem; margin: 0 0 1.1rem; text-shadow: none; }
.hero-form-card .form-label { font-weight: 600; color: var(--navy); font-size: .85rem; margin-bottom: .25rem; text-shadow: none; }
.hero-form-card .form-control { border-radius: var(--radius-sm); }
.hero-form-fine { font-size: .76rem; color: var(--muted); text-align: center; margin: .85rem 0 0; text-shadow: none; }
.hero-form-card .form-success { text-align: center; }

/* Portfolio grid + cards */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.portfolio-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.portfolio-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.portfolio-card .pc-media { aspect-ratio: 4 / 3; overflow: hidden; }
.portfolio-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.portfolio-card:hover .pc-media img { transform: scale(1.06); }
.portfolio-card .pc-body { padding: 1.1rem 1.2rem 1.3rem; }
.portfolio-card .pc-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.portfolio-card h3 { font-size: 1.15rem; margin: .3rem 0 .2rem; color: var(--navy); }
.portfolio-card .pc-city { color: var(--muted); font-size: .9rem; }
.portfolio-card.is-hidden { display: none; }

/* Project detail facts */
.proj-facts { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.proj-facts dl { margin: 0; }
.proj-facts dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 1rem; }
.proj-facts dt:first-of-type { margin-top: 0; }
.proj-facts dd { margin: .1rem 0 0; font-weight: 600; color: var(--navy); }

/* Interior page sub-hero */
.subhero { position: relative; color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; overflow: hidden; isolation: isolate; }
.subhero__media { position: absolute; inset: 0; z-index: -2; }
.subhero__media img { width: 100%; height: 100%; object-fit: cover; }
.subhero__overlay { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,44,58,.74) 0%, rgba(22,44,58,.80) 60%, rgba(22,44,58,.88) 100%),
              linear-gradient(105deg, rgba(106,63,160,.35) 0%, rgba(200,63,142,.12) 50%, rgba(0,0,0,0) 80%); }
.subhero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.06; }
.subhero .section-lead { color: #eaf1f5; }
.crumb { font-size: .85rem; color: rgba(234,241,245,.85); margin-bottom: 1rem; }
.crumb a { color: rgba(234,241,245,.85); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb .sep { margin: 0 .5rem; opacity: .6; }

/* CTA band */
.cta-band { background: var(--brand-gradient); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.95); }

/* FAQ (details/summary) */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: .8rem; background: #fff; }
.faq-item summary { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { margin-bottom: .7rem; }
.faq-item p { margin: 0; color: var(--ink); }

/* Thank-you page */
.thanks { text-align: center; max-width: 42rem; margin: 0 auto; }
.thanks-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; margin: 0 auto 1.5rem; box-shadow: var(--shadow-md); }
.thanks-icon svg { width: 40px; height: 40px; }

/* Legal / policy pages */
.page-head { background: var(--navy); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.page-head .updated { color: rgba(234,241,245,.85); font-size: .9rem; margin-top: .5rem; }
.legal { max-width: 60rem; margin: 0 auto; }
.legal h2 { color: var(--navy); margin-top: 2.4rem; font-size: 1.45rem; }
.legal h3 { color: var(--navy); margin-top: 1.5rem; font-size: 1.08rem; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal .lead-p { font-size: 1.05rem; }

/* From the Owner */
.owner-card { max-width: 60rem; margin: 0 auto; text-align: center; }
.owner-quote { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.6; color: var(--navy); font-weight: 500; }
.owner-sign { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 0; }
.section-navy .owner-quote { color: #eaf1f5; }
.section-navy .owner-sign { color: #ffb27a; }

/* Ken Burns (image hero only) */
.kenburns { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

/* --------------------- Trust badge bar (below hero) -------------------- */
/* Thin strip of award / certification badges sitting directly under the
   homepage banner. Badges are normalised by height so mixed aspect ratios
   (square award, landscape GAF and women-owned) read as one even row. */
.badge-bar {
  background: #fff;
  border-bottom: 1px solid rgba(20,40,55,.10);
  padding: clamp(1rem, 2.5vw, 1.6rem) 0;
}
.badge-bar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);

  @media (max-width: 768px) {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    align-items: center;
    gap: 1rem 2rem;
  }
}
.badge-bar__item {
  display: inline-block; line-height: 0;
  transition: transform .25s var(--ease);
}
.badge-bar__item img {
  width: auto; height: 120px;
  filter: drop-shadow(0 3px 10px rgba(20,40,55,.16));

  @media (max-width: 768px) {
    height: 70px;
  }
}
.badge-bar__item:hover, .badge-bar__item:focus-visible { transform: translateY(-3px) scale(1.03); }

/* ----------------------------- Cards ---------------------------- */
.feature-card, .material-card, .step-card, .info-card {
  background: #fff;
  border: 1px solid rgba(33, 61, 79, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  height: 100%;
}
.feature-card:hover, .material-card:hover, .info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 63, 142, .25);
}

.feature-card { padding: 1.6rem; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(245,151,63,.16), rgba(106,63,160,.16));
  color: var(--g2); margin-bottom: 1rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Material cards */
.material-card { overflow: hidden; display: flex; flex-direction: column; }
.material-card .material-media { aspect-ratio: 4 / 3; overflow: hidden; }
.material-card .material-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.material-card:hover .material-media img { transform: scale(1.07); }
.material-card .material-body { padding: 1.25rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.material-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.material-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.material-link { font-family: "Poppins", sans-serif; font-weight: 600; font-size: .9rem; color: var(--g2); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; }
.material-link:hover { color: var(--g3); gap: .55rem; }

/* ----------------------- The TruTop Difference ------------------ */
.difference-img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.check-list .check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff; display: grid; place-items: center; margin-top: 2px;
}
.check-list .check svg { width: 15px; height: 15px; }
.check-list h4 { font-size: 1.02rem; margin-bottom: .15rem; }
.check-list p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ----------------------------- Process -------------------------- */
.timeline { position: relative; }
.timeline-step { position: relative; padding: 1.6rem 1.4rem; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff;
  display: grid; place-items: center; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.2rem;
  margin-bottom: .9rem; box-shadow: 0 8px 20px rgba(200,63,142,.3);
}
.step-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.step-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.step-card { padding: 1.5rem 1.4rem; }

/* ----------------------------- Financing ------------------------ */
.financing-card {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #eaf1f5; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-md); height: 100%;
}
.financing-card h3 { color: #fff; }
.financing-card .badge-zero {
  display: inline-block; background: var(--brand-gradient); color: #fff;
  font-family: "Poppins", sans-serif; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1rem;
}
.financing-card ul { color: #c4d3dc; }

/* ----------------------------- Gallery -------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.filter-btn {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: .9rem;
  border: 1px solid rgba(33,61,79,.18); background: #fff; color: var(--navy);
  padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--g2); color: var(--g2); }
.filter-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
/* Three-up variant: stays 3 columns and centered on wide screens */
.gallery-grid.gallery-3 { max-width: 1040px; margin-inline: auto; }
@media (min-width: 1200px) { .gallery-grid.gallery-3 { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .3s var(--ease);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: rgba(22,44,58,.78); color: #fff; font-size: .72rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: 999px; text-transform: capitalize;
}
.gallery-item.is-hidden { display: none; }
.gallery-item.is-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(22,44,58,.28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='12' r='11' fill='rgba(0,0,0,0.45)'/%3E%3Cpath d='M10 8l6 4-6 4z'/%3E%3C/svg%3E") center / 56px no-repeat;
}

/* --------------------------- Testimonials ----------------------- */
.testimonial-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.8rem; height: 100%; border: 1px solid rgba(33,61,79,.07); }
.testimonial-card .stars { color: #f5a623; margin-bottom: .8rem; letter-spacing: 2px; }
.testimonial-card p { color: #33454f; font-style: italic; }
.testimonial-card .who { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--navy); margin-top: 1rem; }
.featured-story {
  background: var(--brand-gradient);
  border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); color: #fff; box-shadow: var(--shadow-md);
}
.featured-story.section-navy{background: #213d4f;}
.featured-story h3 { color: #fff; }
.featured-story p { color: rgba(255,255,255,.95); }

/* ----------------------- Testimonial slider --------------------- */
.t-slider { position: relative; }
.t-track {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: .5rem 0 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.t-track::-webkit-scrollbar { display: none; }
.t-slide { flex: 0 0 100%; scroll-snap-align: start; }
.t-slide .testimonial-card { height: 100%; }
@media (min-width: 768px) { .t-slide { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (min-width: 992px) { .t-slide { flex-basis: calc((100% - 3rem) / 3); } }

.t-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  z-index: 4; width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(33,61,79,.1);
  background: #fff; color: var(--navy);
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: background .2s var(--ease), opacity .2s var(--ease), transform .2s var(--ease);
}
.t-arrow:hover { background: var(--cream); transform: translateY(-50%) scale(1.06); }
.t-arrow svg { width: 22px; height: 22px; }
.t-prev { left: -12px; }
.t-next { right: -12px; }
.t-arrow[disabled] { opacity: 0; pointer-events: none; }

.t-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.t-dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%;
  background: rgba(33,61,79,.18); cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.t-dot.is-active { background: var(--accent); transform: scale(1.3); }

@media (max-width: 767.98px) { .t-arrow { display: none; } }

/* --------------------------- Service area ----------------------- */
.county-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 576px) { .county-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .county-grid { grid-template-columns: repeat(5, 1fr); } }
.county-chip {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm); padding: .65rem .8rem; font-weight: 500; color: #eaf1f5; font-size: .92rem;
}
.county-chip svg { width: 16px; height: 16px; color: #ffb27a; flex: 0 0 auto; }
a.county-chip { text-decoration: none; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
a.county-chip:hover, a.county-chip:focus-visible { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; transform: translateY(-2px); }
/* Center a lone last city chip on its row */
@media (min-width: 992px) {
  .county-grid > .county-chip:last-child:nth-child(5n - 4) { grid-column: 1 / -1; justify-self: center; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .county-grid > .county-chip:last-child:nth-child(3n - 2) { grid-column: 1 / -1; justify-self: center; }
}

/* -------------------------- Certifications ---------------------- */
.cert-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; border: 1px solid rgba(33,61,79,.08); }
.cert-card img { border-radius: var(--radius-sm); width: 100%; height: auto; }

/* ----------------------------- Contact -------------------------- */
.contact-form-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.5rem, 4vw, 2.6rem); }
.form-control, .form-select { border-radius: var(--radius-sm); padding: .7rem .9rem; border: 1px solid rgba(33,61,79,.2); }
.form-control:focus, .form-select:focus { border-color: var(--g2); box-shadow: 0 0 0 .2rem rgba(200,63,142,.15); }
.form-label { font-weight: 600; color: var(--navy); font-size: .9rem; }
.required-star { color: var(--accent); }
.form-success {
  display: none; background: linear-gradient(135deg, rgba(245,151,63,.12), rgba(106,63,160,.12));
  border: 1px solid rgba(200,63,142,.3); border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.form-success.show { display: block; }
.form-success .success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; }

.contact-info-card { background: var(--navy); color: #eaf1f5; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); height: 100%; }
.contact-info-card a { color: #eaf1f5; text-decoration: none; }
.contact-info-card a:hover { color: #fff; text-decoration: underline; }
.contact-info-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contact-info-item .ci-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #ffb27a; }
.contact-info-item .ci-icon svg { width: 20px; height: 20px; }
.contact-info-item .ci-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #9fb4c0; }

/* ----------------------------- Footer --------------------------- */
.site-footer { background: var(--navy-deep); color: #b8c8d2; padding-top: 3.5rem; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer a { color: #b8c8d2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo { height: 64px; width: auto; background: var(--cream); border-radius: 12px; padding: 6px; }
.footer-social { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: all .25s var(--ease); }
.footer-social a:hover { background: var(--brand-gradient); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; margin-top: 2.5rem; font-size: .85rem; }
.footer-credit { text-align: center; padding: 0 0 1.4rem; font-size: .82rem; color: #8aa0ad; }
.footer-credit a { color: #b8c8d2; font-weight: 600; }
.footer-credit a:hover { color: #fff; }

/* Back-to-top button */
.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1039;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent); color: #fff; }
.back-to-top svg { width: 22px; height: 22px; }
@media (max-width: 991.98px) { .back-to-top { bottom: 5.25rem; } }

/* Floating mobile call button */
.float-call {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1040;
  width: 58px; height: 58px; border-radius: 50%; background: var(--brand-gradient);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .25s var(--ease);
}
.float-call:hover { transform: scale(1.08); color: #fff; }
.float-call svg { width: 26px; height: 26px; }
@media (min-width: 992px) { .float-call { display: none; } }

/* --------------------- Scroll-reveal animation ------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* --- Prevent g-5 row gutters from overflowing the container on mobile --- */
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* ---------------------- Reduced motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .kenburns { animation: none; }
}

/* ------------------------ reCAPTCHA ----------------------------- */
/* Hide the floating Google reCAPTCHA v3 badge. The required
   "protected by reCAPTCHA" notice is shown below each form instead,
   per Google's terms. */
.grecaptcha-badge { visibility: hidden; }
