/*!
 * Haven Home Remodeling Group - shared stylesheet
 * Built on Bootstrap 5.3 utilities. Brand tokens + components only -
 * layout/spacing/grid handled by Bootstrap utility classes in markup.
 */

/* ==========================================================================
   1. Design tokens (brand palette, type, radii, shadows)
   ========================================================================== */
:root {
  /* Brand colors */
  --haven-dark: #1a2332;
  --haven-navy: #1f2d3d;
  --haven-blue: #4a7c9b;
  --haven-blue-50: #ebf4f9;
  --haven-blue-100: #d4e8f2;
  --haven-blue-200: #a8cde0;
  --haven-blue-700: #2d6187;
  --haven-gray-200: #dde1e6;
  --haven-gray-500: #5d6a82;
  --haven-gray-600: #4a5361;
  --haven-gray-700: #3a4250;
  --haven-amber: #fcbb00;
  --haven-green: #00a544;
  --haven-red: #e40014;

  /* Bootstrap overrides */
  --bs-primary: var(--haven-blue);
  --bs-primary-rgb: 74, 124, 155;
  --bs-secondary: var(--haven-dark);
  --bs-secondary-rgb: 26, 35, 50;
  --bs-body-color: var(--haven-gray-500);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-heading-color: var(--haven-dark);
  --bs-link-color: var(--haven-blue);
  --bs-link-hover-color: var(--haven-blue-700);
  --bs-border-radius: 0.625rem;
  --bs-border-radius-lg: 1.25rem;
  --bs-border-color: var(--haven-gray-200);

  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-editorial: "Instrument Serif", ui-serif, Georgia, serif;

  --shadow-card: 0 2px 4px rgba(26, 35, 50, 0.06), 0 1px 2px rgba(26, 35, 50, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(26, 35, 50, 0.1), 0 4px 8px rgba(26, 35, 50, 0.04);
  --shadow-accent: 0 4px 16px rgba(74, 124, 155, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--bs-body-color);
  font-size: 1rem;
  line-height: 1.7;
}

/* Give in-page anchors room under the sticky header */
[id] {
  scroll-margin-top: 116px;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
  color: var(--haven-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.font-editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
}

a {
  text-decoration: none;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--haven-blue);
  margin-bottom: 0.75rem;
}

.text-haven-blue { color: var(--haven-blue) !important; }
.text-haven-blue-200 { color: var(--haven-blue-200) !important; }
.text-haven-dark { color: var(--haven-dark) !important; }
.bg-haven-blue { background-color: var(--haven-blue) !important; }
.bg-haven-blue-50 { background-color: var(--haven-blue-50) !important; }
.bg-haven-dark { background-color: var(--haven-dark) !important; }

/* ==========================================================================
   2. Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: var(--bs-border-radius);
}

.btn-primary {
  --bs-btn-bg: var(--haven-blue);
  --bs-btn-border-color: var(--haven-blue);
  --bs-btn-hover-bg: var(--haven-blue-700);
  --bs-btn-hover-border-color: var(--haven-blue-700);
  --bs-btn-active-bg: var(--haven-blue-700);
  --bs-btn-active-border-color: var(--haven-blue-700);
  box-shadow: var(--shadow-accent);
}

.btn-outline-light-ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn-outline-light-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-dark-outline {
  border: 2px solid var(--haven-dark);
  color: var(--haven-dark);
  background: transparent;
}
.btn-dark-outline:hover {
  background: var(--haven-dark);
  color: #fff;
}

/* ==========================================================================
   3. Header / navigation
   ========================================================================== */
.site-header {
  background-color: var(--haven-dark);
  position: sticky;
  top: 0;
  z-index: 1030;
  height: 100px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--haven-blue);
}
.header-logo-img { height: 70px; width: auto; }
.header-logo-img--mobile { height: 38px; }
.header-logo-img--footer { height: 84px; }


/* Right of the logo: utility row (phone + Free Estimate) stacked above
   the main menu on desktop; on smaller screens only the utility row shows. */
.header-main {
  flex: 1 1 auto;
  margin-left: 1rem;
}
@media (min-width: 992px) {
  .header-main { margin-left: 2.5rem; }
  .header-utility { margin-bottom: 0.35rem; }
  .navbar-haven .navbar-nav .nav-link { padding-bottom: 0.35rem; }
  /* Menu sits right-aligned under the utility row, its last link lining up
     with the Free Estimate button's right edge */
  .header-menu { gap: 0.25rem; }
  .navbar-haven .header-menu .nav-item:last-child .nav-link { padding-right: 0; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .header-main { margin-left: 1.25rem; }
  .header-menu { gap: 0; }
  .navbar-haven .header-menu .nav-link { font-size: 0.84rem; padding-left: 0.38rem; padding-right: 0.38rem; }
}
@media (min-width: 1200px) {
  .header-menu { gap: 0.25rem; }
  .navbar-haven .header-menu .nav-link { font-size: 0.975rem; }
}
@media (min-width: 1400px) {
  .header-menu { gap: 1.5rem; }
  .navbar-haven .header-menu .nav-link { font-size: 1.025rem; }
}

.navbar-haven .btn-sm,
.navbar-haven .btn-primary.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
}

.navbar-haven .nav-link {
  color: #e5e9ef;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.navbar-haven .nav-link:hover,
.navbar-haven .nav-link.active,
.navbar-haven .nav-link:focus {
  color: #fff;
}
.navbar-haven .nav-link:hover,
.navbar-haven .nav-link:focus,
.navbar-haven .nav-link:focus-visible {
  box-shadow: none;
}
.navbar-haven .nav-link:hover {
  border-bottom-color: var(--haven-blue);
}
.navbar-haven .dropdown-toggle::after {
  transition: transform 0.2s ease;
}
.navbar-haven .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.navbar-haven .dropdown-menu {
  background-color: var(--haven-dark);
  border: none;
  border-radius: var(--bs-border-radius);
  box-shadow: 0 16px 40px rgba(10, 14, 23, 0.4);
  padding: 0.5rem 0;
  margin-top: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.navbar-haven .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.navbar-haven .dropdown-item {
  color: #e5e9ef;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.navbar-haven .dropdown-item:hover,
.navbar-haven .dropdown-item:focus {
  color: #fff;
  transform: translateX(2px);
}

.navbar-haven .dropdown-menu-mega {
  width: 500px;
  max-width: calc(100vw - 2rem);
  padding: 1.1rem;
}
.navbar-haven .dropdown-menu-mega .row {
  --bs-gutter-x: 0.75rem;
}
.navbar-haven .dropdown-menu-mega-sm {
  width: 250px;
}
.navbar-haven .mega-menu-col + .mega-menu-col {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 1.1rem;
}
.navbar-haven .mega-menu-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: var(--bs-border-radius);
  margin-bottom: 0.25rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.navbar-haven .mega-menu-title i {
  color: var(--haven-blue-200);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.navbar-haven .mega-menu-title:hover,
.navbar-haven .mega-menu-title:focus {
  color: var(--haven-blue-200);
  transform: translateX(2px);
}
.navbar-haven .mega-menu-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-haven .mega-menu-sublink {
  display: block;
  color: #b7c0cc;
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem 0.4rem 1.9rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.navbar-haven .mega-menu-sublink:hover,
.navbar-haven .mega-menu-sublink:focus {
  color: #fff;
  transform: translateX(2px);
}

.navbar-haven .mega-menu-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  color: #e5e9ef;
  transition: color 0.15s ease, transform 0.15s ease;
}
.navbar-haven .mega-menu-feature:hover,
.navbar-haven .mega-menu-feature:focus {
  color: #fff;
  transform: translateX(2px);
}
.navbar-haven .mega-menu-feature-icon {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: rgba(74, 124, 155, 0.2);
  color: var(--haven-blue-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.navbar-haven .mega-menu-feature:hover .mega-menu-feature-icon,
.navbar-haven .mega-menu-feature:focus .mega-menu-feature-icon {
  background-color: var(--haven-blue);
  color: #fff;
}
.navbar-haven .mega-menu-feature-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.navbar-haven .mega-menu-feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.83rem;
  color: #fff;
}
.navbar-haven .mega-menu-feature-desc {
  font-size: 0.72rem;
  color: #9aa5b3;
}

.navbar-haven .phone-link,
.navbar-haven .btn { white-space: nowrap; }
.navbar-haven .phone-link {
  color: #e5e9ef;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}
.navbar-haven .phone-link:hover { color: #fff; }
.navbar-haven .phone-link-lg {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
}
.navbar-haven .phone-link-lg:hover { color: var(--haven-blue-200); }

.offcanvas-haven {
  background-color: var(--haven-dark);
  color: #e5e9ef;
}
.offcanvas-haven .nav-link {
  color: #e5e9ef;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.offcanvas-haven .btn-close { filter: invert(1); }

/* --------------------------------------------------------------------------
   Mega menus (desktop). Each top link opens a full-width panel on hover or
   keyboard focus; script.js adds .is-open for taps and Escape handling.
   -------------------------------------------------------------------------- */
.mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--haven-blue);
  box-shadow: 0 24px 48px rgba(26, 35, 50, 0.22);
  color: var(--haven-gray-500);
  text-align: left;
}
/* Invisible bridge over the gap between the link and the panel so the
   pointer can travel down without the menu closing */
.mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 24px;
}
@media (min-width: 992px) {
  .has-mega:focus-within > .mega-panel,
  .has-mega.is-open > .mega-panel {
    display: block;
    animation: megaIn 0.22s ease-out;
  }
  .has-mega.is-open > .nav-link { color: #fff; border-bottom-color: var(--haven-blue); }
}
/* Hover-to-open only where hover is real; touch browsers keep a "sticky"
   hover on the last tapped element, which would pin a panel open */
@media (min-width: 992px) and (hover: hover) {
  .has-mega:hover > .mega-panel {
    display: block;
    animation: megaIn 0.22s ease-out;
  }
  .has-mega:hover > .nav-link { color: #fff; border-bottom-color: var(--haven-blue); }
}
.site-header.mega-dismissed .has-mega > .mega-panel { display: none !important; }
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .has-mega > .mega-panel { animation: none !important; }
}

.mega-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 2fr minmax(210px, 0.9fr);
  gap: 2rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

/* Photo card */
.mega-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--haven-dark);
  isolation: isolate;
}
.mega-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}
.mega-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.05) 0%, rgba(26, 35, 50, 0.55) 45%, rgba(26, 35, 50, 0.94) 100%);
}
.mega-feature:hover { color: #fff; }
.mega-feature:hover img { transform: scale(1.06); }
.mega-feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem;
}
.mega-eyebrow {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--haven-dark);
  background: var(--haven-amber);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.mega-feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
}
.mega-feature-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.mega-feature-cta {
  margin-top: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--haven-blue-200);
}
.mega-feature-cta .bi { display: inline-block; transition: transform 0.2s ease; }
.mega-feature:hover .mega-feature-cta .bi { transform: translateX(4px); }

.mega-heading {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--haven-blue-700);
  margin: 0 0 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--haven-gray-200);
}

/* Icon tiles */
.mega-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.mega-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.mega-tile:hover,
.mega-tile:focus-visible {
  background: var(--haven-blue-50);
  border-color: var(--haven-blue-100);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.mega-tile-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--haven-blue) 0%, var(--haven-blue-700) 100%);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 6px 14px rgba(45, 97, 135, 0.28);
  transition: transform 0.18s ease;
}
.mega-tile:hover .mega-tile-icon { transform: scale(1.08) rotate(-4deg); }
.mega-tile-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.mega-tile-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--haven-dark);
}
.mega-tile-desc { font-size: 0.8rem; line-height: 1.4; color: var(--haven-gray-500); }

/* Guides / quick links */
.mega-col-links { border-left: 1px solid var(--haven-gray-200); padding-left: 1.75rem; }
.mega-links { list-style: none; margin: 0; padding: 0; }
.mega-links a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--haven-gray-700);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.mega-links a .bi { color: var(--haven-blue); font-size: 1rem; }
.mega-links a:hover { color: var(--haven-blue-700); transform: translateX(3px); }
.mega-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.mega-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--haven-blue-50);
  color: var(--haven-blue-700);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mega-social a:hover { background: var(--haven-blue); color: #fff; }

/* Bottom strip */
.mega-strip {
  background: var(--haven-blue-50);
  border-top: 1px solid var(--haven-blue-100);
  padding: 0.7rem 0;
  font-size: 0.82rem;
}
.mega-strip-note { color: var(--haven-gray-600); }
.mega-strip-note .bi { color: var(--haven-green); margin-right: 0.45rem; }
.mega-strip-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--haven-dark);
  text-decoration: none;
  white-space: nowrap;
}
.mega-strip-phone .bi { color: var(--haven-blue); margin-right: 0.4rem; }
.mega-strip-phone:hover { color: var(--haven-blue-700); }

@media (min-width: 992px) and (max-width: 1199.98px) {
  .mega-grid { grid-template-columns: 1fr 2fr; }
  .mega-col-links { display: none; }
  .mega-strip-note { display: none; }
  .mega-strip .container { justify-content: flex-end !important; }
}

/* Mobile off-canvas: expandable sections */
.mnav-group { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mnav-row { display: flex; align-items: center; justify-content: space-between; }
.offcanvas-haven .mnav .nav-link { border-bottom: 0; flex: 1 1 auto; }
.mnav-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 0.5rem;
  color: #e5e9ef;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mnav-toggle .bi { transition: transform 0.2s ease; }
.mnav-toggle:not(.collapsed) .bi { transform: rotate(180deg); }
.mnav-sub { display: grid; gap: 0.15rem; padding: 0 0 0.75rem 0.25rem; }
.mnav-sublink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: rgba(229, 233, 239, 0.8);
  text-decoration: none;
}
.mnav-sublink .bi { color: var(--haven-blue-200); }
.mnav-sublink:hover { color: #fff; }

/* Shadow appears once page is scrolled (toggled via JS) */
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   4. Hero sections
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--haven-dark);
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.75) 0%, rgba(26, 35, 50, 0.92) 100%);
}

/* Homepage hero: lighter brand-blue wash instead of the near-black overlay used on page headers */
.hero-home {
  background-color: var(--haven-blue-700);
}
.hero-home .hero-media img {
  opacity: 0.4;
}
.hero-home .hero-media::after {
  background: linear-gradient(180deg, rgba(74, 124, 155, 0.82) 0%, rgba(45, 97, 135, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Homepage hero CTA buttons: solid dark navy instead of the brand-blue /
   ghost styles used elsewhere, scoped to this section only. */
.hero-home .btn-primary:not(.estimate-form .btn-primary) {
  --bs-btn-bg: #1a2332;
  --bs-btn-border-color: #1a2332;
  --bs-btn-hover-bg: #263449;
  --bs-btn-hover-border-color: #263449;
  --bs-btn-active-bg: #263449;
  --bs-btn-active-border-color: #263449;
}
.hero-home .btn-outline-light-ghost {
  background-color: #1a2332;
  border-color: #1a2332;
}
.hero-home .btn-outline-light-ghost:hover {
  background-color: #263449;
}

.hero-breadcrumb,
.breadcrumb-haven {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--haven-blue-200);
}
.breadcrumb-haven a { color: var(--haven-blue-200); }
.breadcrumb-haven a:hover { color: #fff; }

.license-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-licenses { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1rem; }
.footer-licenses .license-badges { gap: 0.4rem; flex-wrap: wrap; }
.footer-licenses .license-badges span { white-space: nowrap; font-size: 0.72rem; }
.footer-social { display: flex; gap: 0.75rem; flex: none; }
@media (max-width: 991.98px) {
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
  .footer-social { align-self: center; }
}
.footer-licenses .license-badges span {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
}

/* Homepage hero slider */
.home-slider {
  position: relative;
  background-color: var(--haven-dark);
}
.home-slider .carousel-item {
  position: relative;
  /* Leave the next section peeking in below the fold (100px = header) */
  height: calc(100vh - 100px - 9rem);
  height: calc(100svh - 100px - 9rem);
  min-height: 440px;
  max-height: 660px;
}
.home-slider .carousel-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-slider .home-slide-overlay {
  position: absolute;
  inset: 0;
  /* Darkest behind the left-aligned text, fading out to the right */
  background: linear-gradient(90deg, rgba(10, 14, 23, 0.85) 0%, rgba(10, 14, 23, 0.6) 40%, rgba(10, 14, 23, 0.15) 75%, rgba(10, 14, 23, 0.05) 100%);
}
.home-slider .home-slide-content {
  /* Left-aligned, vertically centered in the slide */
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}
/* Desktop/tablet: shift the photo right so the house sits beside the
   left-aligned text, and fade its left edge into the navy background */
@media (min-width: 768px) {
  .home-slider .carousel-item img {
    left: auto;
    width: 78%;
    object-position: 60% 55%;
  }
  .home-slider .home-slide-overlay {
    background: linear-gradient(90deg, var(--haven-dark) 0%, var(--haven-dark) 22%, rgba(26, 35, 50, 0.75) 36%, rgba(26, 35, 50, 0.2) 55%, rgba(26, 35, 50, 0) 70%);
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .home-slider .carousel-item img { width: 62%; }
  .home-slider .home-slide-overlay {
    background: linear-gradient(90deg, var(--haven-dark) 0%, var(--haven-dark) 38%, rgba(26, 35, 50, 0.6) 48%, rgba(26, 35, 50, 0) 62%);
  }
  .home-slider .home-slide-content .lead { max-width: 24rem !important; }
}
.home-slider .home-slide-content .lead {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 1px 12px rgba(10, 14, 23, 0.6);
}
.home-slider .accent-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.home-slider .accent-rule {
  width: 3.5rem;
  height: 4px;
  background: var(--haven-amber);
  display: inline-block;
  flex: none;
}
.home-slider .home-slide-title {
  font-size: 4.5rem;
  line-height: 1.08;
}
@media (max-width: 991.98px) {
  .home-slider .home-slide-title {
    font-size: 2.5rem;
  }
}
.home-slider .carousel-indicators {
  margin-bottom: 1.5rem;
}
.home-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  opacity: 1;
}
.home-slider .carousel-indicators .active {
  background-color: var(--haven-amber);
}
@media (max-width: 991.98px) {
  .home-slider .carousel-item {
    height: calc(100svh - 80px - 9rem);
    min-height: 460px;
    max-height: 620px;
  }
}

/* Phones: the desktop "photo with overlaid text" treatment gets cramped and
   crops the photo awkwardly, so phones get their own stacked layout instead -
   a normal-flow photo up top (no overlay/scrim needed) followed by the text
   in a plain solid block underneath. */
@media (max-width: 767.98px) {
  .home-slider .carousel-item {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .home-slider .carousel-item img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .home-slider .home-slide-overlay {
    display: none;
  }
  .home-slider .home-slide-content {
    position: static;
    transform: none;
    padding-top: 2rem;
    padding-bottom: 2.75rem;
  }
  .home-slider .home-slide-title {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   5. Cards & components
   ========================================================================== */
.card-haven {
  background: #fff;
  border: 1px solid var(--haven-gray-200);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-haven:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.icon-tile {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--haven-blue-50);
  color: var(--haven-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card ul li {
  font-size: 0.9rem;
  color: var(--haven-gray-500);
}
.service-card ul li::marker {
  color: var(--haven-blue);
}

/* Homepage "Every project. One standard." - bento grid of photo tiles */
.svc-section {
  position: relative;
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgba(74, 124, 155, 0.14), transparent 70%),
    radial-gradient(40rem 24rem at 0% 100%, rgba(252, 187, 0, 0.08), transparent 70%),
    linear-gradient(180deg, var(--haven-blue-50) 0%, #fff 60%);
  overflow: hidden;
}
.svc-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.svc-accent {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--haven-blue);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 1.25rem;
}
.svc-a { grid-column: 1 / span 7; grid-row: span 2; }
.svc-b { grid-column: 8 / span 5; }
.svc-c { grid-column: 8 / span 5; }
.svc-d { grid-column: 1 / span 6; }
.svc-e { grid-column: 7 / span 6; }

.svc-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 1.5rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  background: var(--haven-dark);
  box-shadow: 0 18px 40px rgba(26, 35, 50, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.svc-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.05) 15%, rgba(10, 14, 23, 0.6) 48%, rgba(10, 14, 23, 0.92) 100%);
  transition: background 0.35s ease;
}
.svc-tile:hover,
.svc-tile:focus-visible {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(26, 35, 50, 0.24);
}
.svc-tile:hover img,
.svc-tile:focus-visible img { transform: scale(1.07); }
.svc-tile:hover::after,
.svc-tile:focus-visible::after {
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.1) 10%, rgba(10, 14, 23, 0.65) 50%, rgba(10, 14, 23, 0.94) 100%);
}
.svc-num {
  position: absolute;
  top: 1.1rem;
  left: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(26, 35, 50, 0.45);
  backdrop-filter: blur(6px);
}
.svc-go {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--haven-dark);
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(10, 14, 23, 0.25);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.svc-tile:hover .svc-go,
.svc-tile:focus-visible .svc-go {
  background: var(--haven-amber);
  transform: rotate(45deg);
}
.svc-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.6rem 1.6rem 1.5rem;
  max-width: 34rem;
}
.svc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--haven-amber);
  text-shadow: 0 1px 8px rgba(10, 14, 23, 0.7);
}
.svc-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.1;
}
.svc-a .svc-title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.svc-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
.svc-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.svc-pills span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}
/* Smaller tiles: keep the short description hidden until hover/focus */
@media (min-width: 992px) {
  .svc-tile:not(.svc-a) .svc-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }
  .svc-tile:not(.svc-a):hover .svc-desc,
  .svc-tile:not(.svc-a):focus-visible .svc-desc { max-height: 5rem; opacity: 1; }
}
@media (hover: none) {
  .svc-tile .svc-desc { max-height: none !important; opacity: 1 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-tile, .svc-tile img, .svc-go { transition: none; }
  .svc-tile:hover img { transform: none; }
}
@media (max-width: 991.98px) {
  .svc-head { grid-template-columns: 1fr; gap: 1rem; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 320px; }
  .svc-a { grid-column: 1 / -1; grid-row: auto; }
  .svc-b, .svc-c, .svc-d, .svc-e { grid-column: auto; }
}
@media (max-width: 575.98px) {
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: 340px; gap: 1rem; }
}

.stat-tile {
  text-align: center;
  height: 100%;
  background: #fff;
  border: 1px solid var(--haven-gray-200);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-tile:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.stat-tile .icon-tile {
  margin-left: auto;
  margin-right: auto;
}
.stat-tile .stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--haven-blue);
  line-height: 1;
}
.stat-tile .stat-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--haven-dark);
  margin-top: 0.4rem;
}
.stat-tile .stat-desc {
  font-size: 0.85rem;
  color: var(--haven-gray-500);
}

.process-step {
  position: relative;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.75rem 1.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.process-step:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}
.process-step .step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--haven-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  flex-shrink: 0;
}

.quote-card {
  border-left: 3px solid var(--haven-blue);
  background: var(--haven-blue-50);
  border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--haven-dark);
}
.quote-card cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--haven-blue);
}

/* Standalone prominent quote (e.g. "Built Into Every Membership") */
.standalone-quote {
  max-width: 42rem;
}
.standalone-quote::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0 auto 1.5rem;
  background: var(--haven-blue);
}
.standalone-quote p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.25rem);
  line-height: 1.35;
  color: var(--haven-dark);
}

.benefits-section {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%234a7c9b' fill-opacity='0.22'/%3E%3C/svg%3E"),
    radial-gradient(1100px 500px at 50% -8%, var(--haven-blue-50), #fff 65%);
  background-repeat: repeat, no-repeat;
}

/* Distinct, subtle background treatments for the membership story sections.
   Each pattern is a self-contained SVG data URI so it needs no separate
   image asset. Both read as modern architectural geometry (layered roof
   pitches vs. a faceted low-poly mesh) rendered in low-opacity brand blues
   so they stay low-contrast enough not to fight the section's own text. */
.bg-parallax {
  background-attachment: fixed;
}
.section-pattern-swirl {
  /* Full-bleed low-poly facet mesh (the "faceted paper" look), recolored
     into a tight band of near-black-navy tones so it reads as a subtle
     crystalline texture on top of this section's own dark background
     rather than a competing graphic - every facet is close enough in
     value to --haven-dark that text contrast is unaffected. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Cpolygon points='-20,-15 290,25 10,210' fill='%23263a52'/%3E%3Cpolygon points='290,25 320,250 10,210' fill='%2324384f'/%3E%3Cpolygon points='290,25 610,-10 320,250' fill='%23223046'/%3E%3Cpolygon points='610,-10 580,215 320,250' fill='%23263a52'/%3E%3Cpolygon points='610,-10 880,20 580,215' fill='%2324384f'/%3E%3Cpolygon points='880,20 910,245 580,215' fill='%23223046'/%3E%3Cpolygon points='880,20 1220,-5 910,245' fill='%23263a52'/%3E%3Cpolygon points='1220,-5 1190,225 910,245' fill='%2324384f'/%3E%3Cpolygon points='10,210 320,250 -15,480' fill='%231f2b3d'/%3E%3Cpolygon points='320,250 305,440 -15,480' fill='%231c2838'/%3E%3Cpolygon points='320,250 580,215 305,440' fill='%23223046'/%3E%3Cpolygon points='580,215 615,475 305,440' fill='%231f2b3d'/%3E%3Cpolygon points='580,215 910,245 615,475' fill='%231c2838'/%3E%3Cpolygon points='910,245 890,450 615,475' fill='%23223046'/%3E%3Cpolygon points='910,245 1190,225 890,450' fill='%231f2b3d'/%3E%3Cpolygon points='1190,225 1210,470 890,450' fill='%231c2838'/%3E%3Cpolygon points='-15,480 305,440 10,705' fill='%231a2332'/%3E%3Cpolygon points='305,440 300,690 10,705' fill='%23172029'/%3E%3Cpolygon points='305,440 615,475 300,690' fill='%231c2838'/%3E%3Cpolygon points='615,475 600,710 300,690' fill='%231a2332'/%3E%3Cpolygon points='615,475 890,450 600,710' fill='%23172029'/%3E%3Cpolygon points='890,450 900,695 600,710' fill='%231c2838'/%3E%3Cpolygon points='890,450 1210,470 900,695' fill='%231a2332'/%3E%3Cpolygon points='1210,470 1200,705 900,695' fill='%23172029'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.section-pattern-lines {
  /* Faceted low-poly tile: a rectangle split on the diagonal into two
     triangles of slightly different tone, repeated into a subtle
     parquet-like mesh. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpolygon points='0,0 80,0 0,80' fill='%234a7c9b' fill-opacity='0.07'/%3E%3Cpolygon points='80,0 80,80 0,80' fill='%232d6187' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.section-gradient-process {
  /* Subtle premium gradient built from the section's own dark navy, with a
     soft brand-blue glow in one corner and a slightly deeper tone in the
     opposite corner for depth - no separate pattern or image. */
  background-image:
    radial-gradient(1100px 550px at 12% -10%, rgba(74, 124, 155, 0.20), transparent 60%),
    linear-gradient(160deg, var(--haven-dark) 0%, #1f2b3d 45%, #141b26 100%);
}

.benefit-card {
  position: relative;
  height: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid var(--haven-gray-200);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 1.75rem 1.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--haven-blue), var(--haven-blue-200));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.benefit-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
  border-color: var(--haven-blue-100);
}
.benefit-card:hover::before {
  transform: scaleX(1);
}
.benefit-card .benefit-number {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--haven-blue-50);
  line-height: 1;
}
.benefit-card .benefit-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, var(--haven-blue-50), var(--haven-blue-100));
  color: var(--haven-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.benefit-card:hover .benefit-icon {
  background: var(--haven-blue);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}
.benefit-card h3 {
  margin-bottom: 0.6rem;
}
.benefit-card p {
  color: var(--haven-gray-500);
}

.checklist-dark {
  margin: 0;
  padding: 0;
}
.checklist-dark li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}
.checklist-dark li:last-child {
  border-bottom: none;
}
.checklist-dark li i {
  color: var(--haven-blue-200);
  font-size: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Eyebrow accent needs to lighten on dark section backgrounds for contrast */
.bg-haven-dark .eyebrow {
  color: var(--haven-blue-200);
}

.table-haven {
  --bs-table-bg: transparent;
  border-collapse: separate;
  border-spacing: 0;
}
.table-haven thead th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background-color: var(--haven-dark);
  border: none;
  padding: 0.9rem 1rem;
}
.table-haven thead th:first-child { border-radius: 0.75rem 0 0 0; }
.table-haven thead th:last-child { border-radius: 0 0.75rem 0 0; }
.table-haven tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--haven-gray-200);
  font-size: 0.9rem;
}
.table-haven tbody tr:last-child td { border-bottom: none; }

/* FAQ accordion */
.accordion-haven .accordion-item {
  border: 1px solid var(--haven-gray-200);
  border-radius: var(--bs-border-radius-lg) !important;
  overflow: hidden;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-card);
}
.accordion-haven .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--haven-dark);
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
}
.accordion-haven .accordion-button:not(.collapsed) {
  background-color: #fff;
  color: var(--haven-dark);
  box-shadow: none;
}
.accordion-haven .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(74, 124, 155, 0.25);
}
.accordion-haven .accordion-button::after {
  filter: invert(48%) sepia(15%) saturate(1252%) hue-rotate(160deg) brightness(90%);
}
.accordion-haven .accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--haven-gray-500);
}

/* Blog cards */
.blog-card .blog-card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
}
.blog-card .category-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--haven-blue);
}

/* Article typography (blog posts) */
.article-body h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}
.article-body h3 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; }

.toc-card {
  background: var(--haven-blue-50);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.5rem;
}
.toc-card a {
  display: block;
  padding: 0.35rem 0;
  color: var(--haven-gray-600);
  font-size: 0.9rem;
}
.toc-card a:hover { color: var(--haven-blue-700); }

.author-box {
  background: var(--haven-blue-50);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.75rem;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--haven-blue-200);
  color: var(--haven-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.share-icons a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--haven-gray-200);
  color: var(--haven-gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.share-icons a:hover {
  background: var(--haven-blue);
  border-color: var(--haven-blue);
  color: #fff;
}

/* CTA banner */
.cta-banner {
  background-image:
    linear-gradient(120deg, rgba(26, 35, 50, 0.93) 0%, rgba(31, 45, 61, 0.88) 100%),
    url("/assets/images/core/hero-roofing.webp");
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  border-radius: var(--bs-border-radius-lg);
  position: relative;
  overflow: hidden;
}

/* Social icon circles (footer + about) */
.social-circle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
a.social-circle { text-decoration: none; transition: background-color .15s, color .15s; }
a.social-circle:hover { background: var(--haven-blue); border-color: var(--haven-blue); color: #fff; }
.social-circle.disabled { cursor: not-allowed; }
.social-circle-light {
  background: var(--haven-blue-50);
  border-color: var(--haven-blue-100);
  color: var(--haven-blue-700);
}

/* ==========================================================================
   6. Forms
   ========================================================================== */
/* Light gray example text in form fields */
.form-control::placeholder,
.form-select::placeholder {
  color: #b3bac5;
  opacity: 1;
}
.estimate-form {
  background: #fff;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 20px 50px rgba(26, 35, 50, 0.18);
  padding: 2rem;
}
.estimate-form .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--haven-gray-700);
}
.estimate-form .form-control,
.estimate-form .form-select {
  border-color: var(--haven-gray-200);
  border-radius: var(--bs-border-radius);
  padding: 0.65rem 0.9rem;
}
.estimate-form .form-control:focus,
.estimate-form .form-select:focus {
  border-color: var(--haven-blue);
  box-shadow: 0 0 0 0.2rem rgba(74, 124, 155, 0.2);
}

/* Honeypot field - hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success,
.form-error {
  display: none;
  border-radius: var(--bs-border-radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}
.form-success { background: #e6f7ec; color: #0a6b2e; }
.form-error { background: #fdecee; color: #a3101f; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--haven-dark);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: #fff; }
.site-footer h3, .site-footer h4, .site-footer p.footer-heading {
  color: #fff;
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
@media (min-width: 1200px), (max-width: 575.98px) {
  .footer-heading-long { white-space: nowrap; }
}
.footer-contact { font-size: 1.1rem; line-height: 1.5; }
.footer-contact li { margin-bottom: 0.6rem; }
.footer-links li {
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}
.footer-links a > span { color: rgba(74, 124, 155, 0.6); margin-right: 0.35rem; }
.footer-links a:hover > span { color: var(--haven-blue); }

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--haven-blue);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  z-index: 1040;
  border: none;
}
.back-to-top:hover { background: var(--haven-blue-700); color: #fff; }

/* ==========================================================================
   8. Utilities
   ========================================================================== */
.section-py { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.bg-soft-blue { background-color: var(--haven-blue-50); }
.rounded-haven { border-radius: var(--bs-border-radius-lg) !important; }
/* Article figure photos: cap the rendered height so a wide viewport can't
   stretch a 16:9 source past a comfortable size, cropping (not squishing)
   to keep the subject centered. */
.figure-img-capped { width: 100%; height: auto; max-height: 500px; object-fit: cover; }
.fs-90 { font-size: 0.9rem; }
.fs-80 { font-size: 0.8rem; }
.ls-wide { letter-spacing: 0.08em; }
.lead-haven { font-size: 1.15rem; color: var(--haven-gray-500); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--haven-dark);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
}

/* On phones the container fills the screen, so a g-5 row's 1.5rem negative
   side margins stick out past its 0.75rem padding and cause a sideways
   scroll. Narrow just the horizontal gutter; the vertical spacing stays. */
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 991.98px) {
  .site-header { height: 80px; }
  .header-logo-img { height: 58px; }
}

/* ==========================================================================
   Window style guide pages (/impact-windows/<style>)
   Calm, editorial layout: light hero, generous spacing, few words per block.
   ========================================================================== */
.ws-page {
  --ws-sand: #f7f4ef;
  --ws-ink: var(--haven-dark);
  color: var(--haven-gray-600);
}
.ws-page em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--haven-blue);
  letter-spacing: 0;
}
.ws-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.ws-hero + .ws-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.ws-page a:not(.btn):not(.ws-style):not(.ws-estimate-phone) { color: var(--haven-blue-700); }
.ws-page a:not(.btn):not(.ws-style):not(.ws-estimate-phone):hover { color: var(--haven-blue); }
.ws-page a[href^="tel:"] { white-space: nowrap; }
.ws-page .ws-estimate-phone { color: #fff; }
.ws-sand { background: var(--ws-sand); }
.ws-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--haven-blue);
  margin-bottom: 0.9rem;
}
.ws-h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--ws-ink);
  margin-bottom: 1.5rem;
}
.ws-h2 em { font-size: 1.12em; }
.ws-body { font-size: 1.05rem; line-height: 1.75; }

/* Hero */
.ws-hero {
  background: linear-gradient(180deg, var(--ws-sand) 0%, #fff 100%);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.ws-crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
  color: var(--haven-gray-500);
}
.ws-crumbs a { color: var(--haven-gray-500); text-decoration: none; }
.ws-crumbs a:hover { color: var(--haven-blue-700); }
.ws-crumbs .bi { font-size: 0.7rem; }
.ws-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ws-ink);
  margin-bottom: 1.5rem;
}
.ws-title em { display: block; font-size: 1.08em; letter-spacing: -0.01em; }
.ws-lead { font-size: 1.2rem; line-height: 1.65; max-width: 34rem; margin: 0; }
.ws-btn-ghost {
  border: 1px solid var(--haven-gray-200);
  background: #fff;
  color: var(--ws-ink);
}
.ws-btn-ghost:hover { border-color: var(--haven-blue); color: var(--haven-blue-700); background: #fff; }
.ws-hero-media { position: relative; }
.ws-hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px rgba(26, 35, 50, 0.18);
}
.ws-hero-badge {
  position: absolute;
  left: -1.25rem;
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(26, 35, 50, 0.16);
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--haven-gray-600);
}
.ws-hero-badge .bi { font-size: 1.6rem; color: var(--haven-green); }
.ws-hero-badge strong { color: var(--ws-ink); }
.ws-glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--haven-gray-200);
}
.ws-glance-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.5rem 0 0;
}
.ws-glance-item + .ws-glance-item { padding-left: 1.5rem; border-left: 1px solid var(--haven-gray-200); }
.ws-glance-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--haven-gray-500);
}
.ws-glance-value { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--ws-ink); }

/* How it works */
.ws-diagram {
  background: radial-gradient(circle at 30% 20%, #fff 0%, var(--haven-blue-50) 70%);
  border-radius: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.window-diagram { display: block; width: 100%; height: auto; max-width: 440px; margin: 0 auto; }
.ws-how { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.ws-how li { display: flex; gap: 1.1rem; align-items: flex-start; }
.ws-how p { margin: 0; font-size: 1.05rem; line-height: 1.65; }
.ws-how strong { color: var(--ws-ink); }
.ws-how-num {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--haven-blue-700);
  background: var(--haven-blue-50);
  border: 1px solid var(--haven-blue-100);
}

/* Diagram motion (gentle, loops) */
.dg-anim { transform-box: fill-box; }
.dg-slide-up { animation: dgSlideUp 4s ease-in-out infinite; }
.dg-slide-left { animation: dgSlideLeft 4.5s ease-in-out infinite; }
.dg-swing { transform-origin: left center; animation: dgSwing 4s ease-in-out infinite; }
.dg-swing-r { transform-origin: right center; animation: dgSwing 4s ease-in-out infinite; }
.dg-pulse { transform-origin: center; animation: dgPulse 2.6s ease-in-out infinite; }
@keyframes dgSlideUp { 0%, 15%, 100% { transform: translateY(0); } 45%, 70% { transform: translateY(-46px); } }
@keyframes dgSlideLeft { 0%, 15%, 100% { transform: translateX(0); } 45%, 70% { transform: translateX(-72px); } }
@keyframes dgSwing { 0%, 15%, 100% { transform: scaleX(0.12); } 45%, 70% { transform: scaleX(1); } }
@keyframes dgPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .dg-anim { animation: none !important; }
  .dg-swing, .dg-swing-r { transform: none; }
}

/* Why you'll love it */
.ws-love { text-align: center; padding: 0 0.5rem; }
.ws-love-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  background: #fff;
  color: var(--haven-blue);
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(26, 35, 50, 0.08);
  margin-bottom: 1.4rem;
}
.ws-love h3 { font-family: var(--font-heading); font-weight: 700; color: var(--ws-ink); }
.ws-love p { font-size: 1rem; line-height: 1.7; margin: 0; }

/* Photo band */
.ws-band { position: relative; height: clamp(320px, 45vw, 520px); overflow: hidden; }
.ws-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ws-band-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(26, 35, 50, 0) 35%, rgba(26, 35, 50, 0.78) 100%);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.ws-band-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.3;
  color: #fff;
  max-width: 44rem;
  margin: 0;
}

/* Perfect for */
.ws-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.75rem; }
.ws-chip {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--haven-blue-50);
  color: var(--haven-blue-700);
  font-weight: 600;
  font-size: 0.92rem;
}
.ws-note {
  position: relative;
  background: var(--ws-sand);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem 2rem;
  line-height: 1.7;
}
.ws-note-icon {
  position: absolute;
  top: -1.25rem;
  left: 2rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--haven-amber);
  color: var(--haven-dark);
  font-size: 1.2rem;
}
.ws-note-title { font-family: var(--font-heading); font-weight: 700; color: var(--ws-ink); margin-bottom: 0.5rem; }

/* Compare */
.ws-compare { max-width: 900px; margin-left: auto; margin-right: auto; }
.ws-compare-card {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  border: 1px solid var(--haven-gray-200);
}
.ws-compare-card.is-featured { border: 2px solid var(--haven-blue); box-shadow: 0 20px 40px rgba(45, 97, 135, 0.12); }
.ws-compare-card h3 { font-family: var(--font-heading); font-weight: 700; color: var(--ws-ink); }
.ws-compare-tag {
  position: absolute;
  top: -0.8rem;
  left: 2rem;
  background: var(--haven-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.ws-compare-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.8rem; }
.ws-compare-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.ws-compare-list .bi { color: var(--haven-blue); font-size: 1.15rem; line-height: 1.4; }
.ws-compare-link { font-weight: 600; text-decoration: none; }

/* FAQ */
.ws-faq .accordion-item { border: 0; border-bottom: 1px solid var(--haven-gray-200); background: transparent; }
.ws-faq .accordion-button { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; padding: 1.4rem 0; background: transparent; box-shadow: none; color: var(--ws-ink); }
.ws-faq .accordion-body { padding: 0 0 1.5rem; line-height: 1.75; }

/* Estimate */
.ws-estimate-wrap { padding-top: 0; }
.ws-estimate {
  background: var(--haven-dark);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(26, 35, 50, 0.2);
}
.ws-estimate-intro { padding: clamp(2rem, 5vw, 3.5rem); }
.ws-estimate-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.7rem; color: #e5e9ef; }
.ws-estimate-points .bi { color: var(--haven-blue-200); margin-right: 0.6rem; }
.ws-estimate-phone { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: #fff; text-decoration: none; }
.ws-estimate-phone:hover { color: var(--haven-blue-200); }
.ws-form { margin: clamp(1rem, 3vw, 1.75rem); border-radius: 1.5rem; }

/* More styles */
.ws-styles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.ws-style {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--ws-sand);
  text-decoration: none;
  color: var(--haven-gray-600);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.ws-style svg {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.6rem;
  fill: none;
  stroke: var(--haven-blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ws-style-name { font-family: var(--font-heading); font-weight: 700; color: var(--ws-ink); }
.ws-style-desc { font-size: 0.85rem; line-height: 1.45; }
.ws-style:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(26, 35, 50, 0.1); }
.ws-style.is-current { background: var(--haven-dark); color: rgba(255, 255, 255, 0.7); }
.ws-style.is-current .ws-style-name { color: #fff; }
.ws-style.is-current svg { stroke: var(--haven-blue-200); }
.ws-disclaimer { font-size: 0.8rem; color: var(--haven-gray-500); margin: 3rem 0 0; max-width: 52rem; }

@media (max-width: 1199.98px) {
  .ws-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .ws-hero-badge { left: 1rem; }
  .ws-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
  .ws-glance .ws-glance-item { padding: 1.25rem 0 0; border-left: 0; }
}
@media (max-width: 575.98px) {
  .ws-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Homepage sections (graphical refresh, matches the Our Services bento)
   ========================================================================== */
.hp-accent {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--haven-blue-200);
}
/* Keep an accent phrase together on its own line (wraps normally on phones) */
.hp-oneline { display: block; white-space: nowrap; }
@media (max-width: 575.98px) { .hp-oneline { white-space: normal; } }
.hp-lede { font-size: 1.15rem; line-height: 1.65; color: rgba(255, 255, 255, 0.82); }

/* Estimate intro: stat chips */
.hp-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hp-chip {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  min-width: 9rem;
}
.hp-chip-num { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: #fff; }
.hp-chip-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); }

/* Story: dark with a photo collage */
.hp-story {
  background:
    radial-gradient(50rem 30rem at 0% 0%, rgba(74, 124, 155, 0.28), transparent 70%),
    var(--haven-dark);
  color: #fff;
  overflow: hidden;
}
.hp-collage { position: relative; padding: 0 3rem 3.5rem 0; }
.hp-collage-main {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.hp-collage-inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 6px solid var(--haven-dark);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.hp-collage-badge {
  position: absolute;
  left: -1rem;
  top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: 1rem;
  background: #fff;
  color: var(--haven-gray-600);
  font-size: 0.85rem;
  line-height: 1.35;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}
.hp-collage-badge strong { color: var(--haven-dark); }
.hp-collage-badge-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--haven-amber);
  color: var(--haven-dark);
  font-size: 1.25rem;
}

/* Benefits */
.hp-benefits {
  background:
    radial-gradient(40rem 26rem at 100% 100%, rgba(74, 124, 155, 0.12), transparent 70%),
    #fff;
}
.hp-benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.hp-benefit {
  position: relative;
  padding: 2rem 1.6rem 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #fff 0%, var(--haven-blue-50) 100%);
  border: 1px solid var(--haven-blue-100);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hp-benefit::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--haven-blue), var(--haven-amber));
  transition: width 0.4s ease;
}
.hp-benefit:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(26, 35, 50, 0.14); border-color: transparent; }
.hp-benefit:hover::after { width: 100%; }
.hp-benefit-num {
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--haven-blue-200);
  opacity: 0.7;
}
.hp-benefit-icon {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--haven-blue) 0%, var(--haven-dark) 100%);
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 24px rgba(45, 97, 135, 0.3);
}
.hp-benefit h3 { font-family: var(--font-heading); font-weight: 700; color: var(--haven-dark); }
.hp-benefit p { font-size: 0.92rem; line-height: 1.65; margin: 0; }

/* Full-bleed photo band (Designed For) */
.hp-photo-band { position: relative; overflow: hidden; background: var(--haven-dark); color: #fff; }
.hp-photo-band-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(26, 35, 50, 0.95) 0%, rgba(26, 35, 50, 0.85) 45%, rgba(26, 35, 50, 0.6) 100%);
}
.hp-photo-band > .container { z-index: 2; }
.hp-glass-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.hp-glass-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 500;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.hp-glass-list li:hover { background: rgba(255, 255, 255, 0.16); transform: translateX(6px); }
.hp-glass-list li span {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--haven-amber);
  color: var(--haven-dark);
  font-size: 1.1rem;
}

/* Community giveback */
.hp-giveback { background: linear-gradient(180deg, #fff 0%, var(--haven-blue-50) 100%); }
.hp-giveback-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: 2rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(26, 35, 50, 0.12);
}
.hp-giveback-media { position: relative; min-height: 380px; }
.hp-giveback-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-giveback-body { padding: clamp(2rem, 5vw, 3.5rem); }
.hp-giveback-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fde8e8;
  color: #d9484f;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.hp-quote {
  margin: 1.75rem 0 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--haven-amber);
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--haven-dark);
}

/* Process timeline */
.hp-process {
  background:
    radial-gradient(40rem 26rem at 50% 0%, rgba(74, 124, 155, 0.3), transparent 70%),
    var(--haven-dark);
  color: #fff;
}
.hp-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.hp-steps::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, rgba(168, 205, 224, 0.1), var(--haven-blue-200), rgba(168, 205, 224, 0.1));
}
.hp-step { position: relative; text-align: center; padding: 0 0.5rem; }
.hp-step-dot {
  position: relative;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--haven-blue) 0%, var(--haven-blue-700) 100%);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 0 0 8px var(--haven-dark), 0 0 0 9px rgba(168, 205, 224, 0.35), 0 16px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.hp-step:hover .hp-step-dot { transform: scale(1.08); background: var(--haven-amber); color: var(--haven-dark); }
.hp-step-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--haven-amber);
  margin-bottom: 0.35rem;
}
.hp-step-sub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--haven-blue-200);
  margin-bottom: 0.6rem;
}

/* About */
.hp-about-media { position: relative; padding: 1.5rem 0 1.5rem 1.5rem; }
.hp-about-media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px rgba(26, 35, 50, 0.18);
}
.hp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.15rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 36px rgba(26, 35, 50, 0.18);
  line-height: 1.2;
}
.hp-float i {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--haven-blue) 0%, var(--haven-dark) 100%);
  color: #fff;
  font-size: 1.2rem;
}
.hp-float span { display: flex; flex-direction: column; }
.hp-float strong { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--haven-dark); }
.hp-float small { font-size: 0.75rem; color: var(--haven-gray-500); }
.hp-float-a { left: 0; top: 0; }
.hp-float-b { right: -0.5rem; bottom: 0; }
.hp-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.5rem 0 1.75rem; }
.hp-mini-grid > div {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--haven-blue-50);
  border: 1px solid var(--haven-blue-100);
}
.hp-mini-grid i { color: var(--haven-blue); font-size: 1.3rem; }
.hp-mini-grid span { display: flex; flex-direction: column; font-size: 0.85rem; }
.hp-mini-grid strong { color: var(--haven-dark); }

/* Recent work bento */
.hp-work {
  background:
    radial-gradient(40rem 26rem at 100% 0%, rgba(74, 124, 155, 0.25), transparent 70%),
    var(--haven-dark);
  color: #fff;
}
.hp-work .svc-head .lead-haven { color: rgba(255, 255, 255, 0.65); }
.hp-work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 1.25rem;
}
.hp-work-a { grid-column: 1 / span 5; grid-row: span 2; }
.hp-work-b { grid-column: 6 / span 4; }
.hp-work-c { grid-column: 10 / span 3; grid-row: span 2; }
.hp-work-d { grid-column: 6 / span 4; }
.hp-work-tile {
  position: relative;
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.hp-work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hp-work-tile:hover img { transform: scale(1.07); }
.hp-work-tile figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(26, 35, 50, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.hp-work-type { font-family: var(--font-heading); font-weight: 700; }
.hp-work-loc { font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.hp-work-loc .bi { color: var(--haven-amber); margin-right: 0.3rem; }

/* Blog tiles (reuse the service tile look) */
.hp-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hp-blog-tile { min-height: 420px; }
.hp-blog-tile .svc-title { font-size: 1.25rem; line-height: 1.25; }

/* CTA with photo */
.hp-cta {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--haven-dark);
  box-shadow: 0 30px 60px rgba(26, 35, 50, 0.2);
}
.hp-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(26, 35, 50, 0.96) 0%, rgba(26, 35, 50, 0.85) 50%, rgba(45, 97, 135, 0.6) 100%);
}
.hp-cta-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .hp-benefit, .hp-benefit::after, .hp-glass-list li, .hp-step-dot, .hp-work-tile img { transition: none; }
}
@media (max-width: 1199.98px) {
  .hp-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .hp-steps::before { display: none; }
  .hp-giveback-card { grid-template-columns: 1fr; }
  .hp-giveback-media { min-height: 260px; }
  .hp-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
  .hp-work-a, .hp-work-b, .hp-work-c, .hp-work-d { grid-column: auto; grid-row: auto; }
  .hp-blog-grid { grid-template-columns: 1fr; }
  .hp-blog-tile { min-height: 340px; }
  .hp-cta-body { flex-direction: column; align-items: flex-start; }
  .hp-collage { padding-right: 2rem; }
}
@media (max-width: 575.98px) {
  .hp-benefit-grid, .hp-steps, .hp-mini-grid { grid-template-columns: 1fr; }
  .hp-work-grid { grid-template-columns: 1fr; }
  .hp-collage { padding: 0 0 2.5rem; }
  .hp-collage-inset { width: 55%; }
  .hp-collage-badge { left: 0.75rem; top: 0.75rem; }
  .hp-about-media { padding: 2.25rem 0 2.5rem; }
  .hp-float-b { right: 0; }
  .hp-chip { min-width: 0; flex: 1 1 8rem; }
}

/* Phone numbers: plain text on desktop, tap-to-call on mobile/tablet */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  a[href^="tel:"] { pointer-events: none; cursor: text; }
}
