/* =====================================================================
   CBYD Site Development — custom.css
   ---------------------------------------------------------------------
   Version: v15.6.70 — Canon Restoration (Final)
   Date: 2025-10-20

   Canon Rules:
   • No duplicate systems
   • No accidental overrides
   • No experimental styles
   • Behavior-preserving cleanup only

   Authoritative Canon Owner: Meg Askey
===================================================================== */

/* =========================================================
   BASE COLORS AND TYPOGRAPHY
========================================================= */
body {
  background-color: #f9f9f9;
  color: #2b2b2b;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: #669900;
}

a:hover,
a:focus {
  color: #669900;
  text-decoration: none;
}

/* =========================================================
   HERO SLIDESHOW (LOCKED / HOME ONLY)
   Scope: #cbydHero — DOES NOT AFFECT HUB HEADERS
========================================================= */
#cbydHero {
  position: relative;
  margin-bottom: 0;
}

.hero-slide {
  position: relative;
  height: 475px;
  overflow: hidden;
}

.hero-slide img {
  object-fit: cover;
  height: 475px;
}

.slide-overlay {
  background-color: rgba(17, 22, 19, 0.1);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.carousel-caption {
  bottom: 2rem;
  z-index: 2;
}

.carousel-caption h1 {
  font-size: 5rem;
  font-weight: 700;
  text-transform: none;
}

.carousel-caption p {
  font-size: 1.25rem;
  font-weight: 300;
}

@media (max-width: 575.98px) {
  .carousel-caption h1 {
    font-size: 3rem;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100% 100%;
  filter: invert(100%) brightness(200%);
}

/* Darker overlays for slides 3 & 4 */
#cbydHero .carousel-item:nth-child(3) .slide-overlay,
#cbydHero .carousel-item:nth-child(4) .slide-overlay {
  background-color: rgba(17, 22, 19, 0.3);
}

/* CTA Button (Slide 3) */
.btn-outline-light {
  color: #fff;
  border-color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: #fff;
  color: #111;
}

/* Slide card stackers */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.card-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-card {
  background: #fff;
  color: #111;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 400px;
}

.cta-card i {
  font-size: 1.5rem;
  color: #669900;
}

.cta-card:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Slide 2 image sizing */
#cbydHero .carousel-item:nth-child(2) .row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

#cbydHero .carousel-item:nth-child(2) .slide-laptop {
  max-width: 85%;
}

@media (min-width: 768px) {
  #cbydHero .carousel-item:nth-child(2) .slide-laptop {
    max-width: 420px;
  }
}

/* =========================================================
   SECONDARY NAVIGATION (GREEN BAND)
========================================================= */
#secondary-navigation {
  background-color: #669900;
  padding: 0.5rem 0;
}

#secondary-navigation ul {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

#secondary-navigation .secondary-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#secondary-navigation .secondary-nav-link:hover,
#secondary-navigation .secondary-nav-link:focus {
  background-color: #7ab21b;
  color: #111;
}

/* =========================================================
   NUMBER ROLL / STATS
========================================================= */
#number-roll {
  padding: 3rem 0;
}

#number-roll .stat-number {
  font-size: 3.25rem;
  font-weight: 800;
  color: #669900;
}

#number-roll .stat-number::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: #cfe8b5;
}

#number-roll .stat-label {
  font-size: 1rem;
  color: #2b2b2b;
}
/* =========================================================
   INTRO STATEMENT (Borderless, Canon)
========================================================= */
#intro-statement {
  background: #fff;
  text-align: center;
}

#intro-statement > .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.25rem 2rem 3rem;
  position: relative;
}

#intro-statement > .container::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -2px;
  height: 14px;
  box-shadow: 0 12px 16px -12px rgba(0,0,0,0.12);
  border-radius: 999px;
}

#intro-statement img {
  max-width: 180px;
  transform: translateY(-14px);
  margin-bottom: .25rem;
}

#intro-statement h2 {
  font-size: 2rem;
  font-weight: 800;
}

#intro-statement h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: .5rem auto 0;
  background: #cfe8b5;
}

#intro-statement p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #3a3a3a;
}

/* =========================================================
   VIDEO BLOCK (Full-Width Band)
========================================================= */
#video-block {
  background: #669900;
  padding: 3rem 0;
}

#video-block .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  #video-block .container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
  }
}

#video-block .video-text-box {
  background: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: .75rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  max-width: 520px;
}

#video-block .video-text-box h3 {
  font-weight: 800;
}

#video-block .video-text-box h3::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: .5rem;
  background: #cfe8b5;
}

#video-block .btn-watch-video {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border-radius: .5rem;
  font-weight: 700;
  background: #669900;
  color: #fff;
  text-decoration: none;
}

#video-block .video-launch {
  max-width: 640px;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

/* =========================================================
   USER CARDS
========================================================= */
#user-cards .row {
  row-gap: 2rem;
}

#user-cards .user-card {
  position: relative;
  min-height: 360px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform .25s ease;
}

#user-cards .user-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .45s ease;
}

#user-cards .user-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.15),
    rgba(0,0,0,.65)
  );
}

#user-cards .user-card-body {
  position: absolute;
  bottom: 0;
  padding: 1.25rem;
}

#user-cards .user-card-title {
  font-size: 2rem;
  font-weight: 800;
}

#user-cards .user-card-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: #cfe8b5;
  margin-top: .35rem;
}

#user-cards .user-card:hover {
  transform: translateY(-3px);
}
/* =========================================================
   BULLETIN BOARD (Triptych)
========================================================= */
#bulletin-board {
  background-color: #f0f2f3;
}

#bulletin-board .bb-grid {
  display: flex;
  gap: 2.25rem;
  justify-content: center;
  align-items: stretch;
}

#bulletin-board .bb-card {
  background: #fff;
  border-radius: .75rem;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  transition: transform .25s ease, box-shadow .25s ease;
}

#bulletin-board .bb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

#bulletin-board .bb-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #669900;
  margin-bottom: .75rem;
}

#bulletin-board .bb-feature {
  flex: 2.1 1 0;
  min-height: 420px;
  padding: 2.5rem 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

#bulletin-board .bb-feature .bb-title {
  font-size: 2rem;
}

#bulletin-board .bb-feature .bb-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: .5rem;
  background: #cfe8b5;
}

/* ============================================
   BULLETIN BOARD — CANON WIDTH DISTRIBUTION
   20% | 60% | 20%
============================================ */
#bulletin-board .bb-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 2.25rem;
  justify-content: center;
  align-items: stretch;
}

#bulletin-board .bb-card {
  flex: 1 1 20%;
  max-width: 20%;
}

/* Middle (Feature) card = ~60% */
#bulletin-board .bb-card.bb-feature {
  flex: 1 1 60%;
  max-width: 60%;
}

/* Responsive reset for tablets + mobile */
@media (max-width: 991.98px) {
  #bulletin-board .bb-grid {
    flex-wrap: wrap;
  }
  #bulletin-board .bb-card,
  #bulletin-board .bb-card.bb-feature {
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* =========================================================
   SUPPORTING ORGANIZATIONS — CANON ALIGNED
========================================================= */
#supporting-orgs,
#supporting-organizations {
  background: #fff;
  border-top: 2px solid #e9ecef;
  border-bottom: 2px solid #e9ecef;
}

#supporting-orgs .org-logo {
  padding: 0 1.25rem;
}

#supporting-orgs .org-logo img {
  max-height: 95px;
  object-fit: contain;
  opacity: .95;
  transition: transform .25s ease, filter .25s ease;
}

#supporting-orgs .org-logo img:hover {
  transform: scale(1.08);
  opacity: 1;
  filter: brightness(1.05) contrast(1.02);
}

/* =========================================================
   TOOLS & RESOURCES (Simple Cards)
   Canon: Bootstrap grid for layout + SCARD for card styling
========================================================= */

#tools-resources {
  background: #f7faf6;
  border-top: 2px solid #e9ecef;
  border-bottom: 2px solid #e9ecef;
  padding-top: var(--pad-sm);
  padding-bottom: var(--pad-sm);
}

@media (min-width: 768px) {
  #tools-resources {
    padding-top: var(--pad-md);
    padding-bottom: var(--pad-md);
  }
}

/* =========================================================
   SCARD SYSTEM — UNIVERSAL SIMPLE CARD COMPONENT
========================================================= */

.scard-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.scard {
  background: #fff;
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .22s ease, box-shadow .22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.scard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.scard-img {
  width: 100%;
  height: auto;
  display: block;
}

.scard-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.scard-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2b2b2b;
}

.scard-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: .25rem;
}

.scard-cta {
  margin-top: auto;
  font-weight: 600;
  color: #669900;
  display: inline-block;
  transition: color .15s ease;
}

.scard:hover .scard-cta {
  color: #557a00;
}

/* =========================================================
   CT UTILITIES — DIRECTORY CARDS
========================================================= */
.utilities-section {
  margin-bottom: 3rem;
}

.utilities-letter {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #2b2b2b;
}

.utilities-letter::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: .5rem;
  background: #cfe8b5;
}

.utilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.utility-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.utility-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

/* Utility logos — CT Utilities directory only */
#ct-utilities-directory .utility-logo {
  max-width: 160px;   /* PRIMARY constraint */
  width: 100%;        /* allows scaling up to max-width */
  height: auto;       /* preserves aspect ratio */
  max-height: none;   /* removes height as a governor */
  display: block;
  margin-inline: auto;
}

/* Utility logos — Private Locators directory only */
#private-locators-directory .utility-logo {
  max-width: 160px;   /* PRIMARY constraint */
  width: 100%;        /* allows scaling up to max-width */
  height: auto;       /* preserves aspect ratio */
  max-height: none;   /* width governs size */
  display: block;
  margin-inline: auto;
}

/* =========================================================
   QUICK LINKS — Canon Card System
   Layout: Bootstrap grid
   Styles: QL Card Family (icon + label stack)
========================================================= */

#quick-links {
  background: #fff;
  border-top: 2px solid #e9ecef;
  border-bottom: 2px solid #e9ecef;
  padding-top: var(--pad-sm);
  padding-bottom: var(--pad-sm);
}

@media (min-width: 768px) {
  #quick-links {
    padding-top: var(--pad-md);
    padding-bottom: var(--pad-md);
  }
}

/* QL Card — Base */
.ql-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1rem;
  text-decoration: none;
  background: #fff;
  color: #2b2b2b;
  border-radius: .75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}

.ql-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  text-decoration: none;
}

/* Icon bubble */
.ql-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f3f7ef;
  color: #669900;
  font-size: 1.75rem;
  transition: background .2s ease, color .2s ease;
}

/* Hover state for icon */
.ql-card:hover .ql-icon {
  background: #e4efd7;
  color: #557a00;
}

/* Label */
.ql-label {
  font-size: .95rem;
  font-weight: 600;
  color: #2b2b2b;
  text-align: center;
  line-height: 1.3;
}

/* =========================================================
   UNIVERSAL SECTION HEADERS
========================================================= */
.section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.125rem;
  font-weight: 800;
  color: #2b2b2b;
  letter-spacing: .3px;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: .6rem auto 0;
  background: #cfe8b5;
}

.section-subtitle {
  color: #5b5b5b;
  max-width: 60ch;
  margin: .5rem auto 0;
}

/* =========================================================
   SHINE MINI (Underline Animation)
========================================================= */
.section-title::after {
  background-size: 200% 100%;
  animation: cbyd-underline 6s linear infinite;
}

@keyframes cbyd-underline {
  to { background-position: 200% 0; }
}

/* =========================================================
   CARD GLOSS
========================================================= */
.rt-card::before,
.ql-card::before,
.user-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.06),
    rgba(255,255,255,0) 38%
  );
  opacity: 0;
  transition: opacity .25s ease;
}

.rt-card:hover::before,
.ql-card:hover::before,
.user-card:hover::before {
  opacity: .85;
}

/* =========================================================
   FOCUS-VISIBLE CANON
========================================================= */
a:focus-visible,
.rt-card:focus-visible,
.ql-card:focus-visible,
.user-card:focus-visible {
  outline: 3px solid #cfe8b5;
  outline-offset: 3px;
}
/* =========================================================
   PHOENIX NAV CANON — v.phoenix-nav-PCPARITY
   (CBYD Header Canon — caret + hamburger behavior)
   Pattern source: PelicanCorp (known-good)
========================================================= */

/* ---------------------------------------------------------
   REMOVE HELIX DEFAULT ICONS / TOGGLERS (ROOT MENU)
--------------------------------------------------------- */

nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child i,
nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child .menu-toggler {
  display: none !important;
}

/* ---------------------------------------------------------
   REMOVE ALL BUILT-IN HELIX PSEUDO CARETS (ROOT ITEMS)
--------------------------------------------------------- */

nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child > a::before,
nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child > span::before,
nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child > a::after,
nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child > span::after {
  content: none !important;
  display: none !important;
}

/* ---------------------------------------------------------
   DESKTOP: INJECT A SINGLE CARET PER PARENT (CBYD)
--------------------------------------------------------- */

@media (min-width: 992px) {

  /* Global top-level menu spacing — desktop only */
  nav.sp-megamenu-wrapper .sp-megamenu-parent > li > a {
    padding-inline: 1.1rem;
  }

  nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child > a,
  nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child > span {
    position: relative;
    padding-right: 18px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 600;
    color: #2b2b2b !important;
  }

  nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child > a::after,
  nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child > span::after {
    content: "" !important;
    position: absolute !important;
    right: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0;
    height: 0;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 6px solid currentColor !important;
    display: block !important;
  }

  /* Rotate caret on hover */
  nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child:hover > a::after,
  nav.sp-megamenu-wrapper .sp-megamenu-parent > li.sp-has-child:hover > span::after {
    transform: translateY(-50%) rotate(180deg) !important;
  }
}

/* ---------------------------------------------------------
   ENSURE ROOT PARENT LINKS REMAIN CLICKABLE
--------------------------------------------------------- */

.sp-megamenu-parent .sp-has-child > a {
  pointer-events: auto !important;
}

/* ---------------------------------------------------------
   MENU STATE COLORS (CBYD)
--------------------------------------------------------- */

.sp-megamenu-parent > li > a {
  color: #2b2b2b !important;
  font-weight: 600;
}

.sp-megamenu-parent > li.active > a {
  color: #669900 !important;
  font-weight: 700;
}
/* ---------------------------------------------------------
   PRIMARY ACTION MENU ITEM — Damage Reporting
   Scoped, opt-in via menu item class
--------------------------------------------------------- */

nav.sp-megamenu-wrapper .sp-megamenu-parent > li.menu-button > a {
  border: 2px solid #669900;
  border-radius: 0.375rem;
  padding: 0.4rem 0.75rem;
  color: #669900 !important;
  font-weight: 700;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* Hover / focus */
nav.sp-megamenu-wrapper .sp-megamenu-parent > li.menu-button > a:hover,
nav.sp-megamenu-wrapper .sp-megamenu-parent > li.menu-button > a:focus {
  background-color: #669900;
  color: #ffffff !important;
  text-decoration: none;
}

/* Active state */
nav.sp-megamenu-wrapper .sp-megamenu-parent > li.menu-button.active > a,
nav.sp-megamenu-wrapper .sp-megamenu-parent > li.menu-button > a[aria-current="page"] {
  background-color: #669900;
  color: #ffffff !important;
}

/* =========================================================
   PHOENIX SPACING CANON — v.phoenix-space01 (RESTORED)
   Restores vertical rhythm across home + shared sections
========================================================= */

:root {
  --pad-sm: 3rem;     /* mobile */
  --pad-md: 4.25rem;  /* tablet */
  --pad-lg: 5.25rem;  /* desktop */
}

/* Apply universally to major sections */
#intro-statement .container,
#video-block .container,
#user-cards .container,
#bulletin-board .container,
#supporting-orgs .container,
#supporting-organizations .container,
#tools-resources .container,
#resource-tiles .container,
#quick-links .container {
  padding-top: var(--pad-sm);
  padding-bottom: var(--pad-sm);
}

@media (min-width: 768px) {
  #intro-statement .container,
  #video-block .container,
  #user-cards .container,
  #bulletin-board .container,
  #supporting-orgs .container,
  #supporting-organizations .container,
  #tools-resources .container,
  #resource-tiles .container,
  #quick-links .container {
    padding-top: var(--pad-md);
    padding-bottom: var(--pad-md);
  }
}

@media (min-width: 1200px) {
  #intro-statement .container,
  #video-block .container,
  #user-cards .container,
  #bulletin-board .container,
  #supporting-orgs .container,
  #supporting-organizations .container,
  #tools-resources .container,
  #resource-tiles .container,
  #quick-links .container {
    padding-top: var(--pad-lg);
    padding-bottom: var(--pad-lg);
  }
}

/* =========================================================
   CBYD HUB / INTERIOR HERO CANON — v.hero-canon01 (RESTORED)
   Scope: .page-head.page-head--hero
========================================================= */

:root {
  --hub-hero-h-sm: 260px;
  --hub-hero-h-md: 360px;
  --hub-hero-h-lg: 460px;
}

/* Hero container */
.page-head.page-head--hero {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom center;
  color: #fff;
}

/* Veil wrapper */
.page-head.page-head--hero .page-head-veil {
  position: relative;
  height: var(--hub-hero-h-sm);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 2rem;
}

@media (min-width: 768px) {
  .page-head.page-head--hero .page-head-veil {
    height: var(--hub-hero-h-md);
    padding-block: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .page-head.page-head--hero .page-head-veil {
    height: var(--hub-hero-h-lg);
    padding-block: 3rem;
  }
}

/* Gradient veil */
.page-head.page-head--hero .page-head-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.22) 40%,
      rgba(0,0,0,0.08) 72%,
      rgba(0,0,0,0) 100%
    ),
    linear-gradient(180deg,
      rgba(0,0,0,0.15) 0%,
      rgba(0,0,0,0.28) 55%,
      rgba(0,0,0,0.40) 100%
    );
}

/* Content layer */
.page-head.page-head--hero .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

/* Hero typography */
.page-head.page-head--hero h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: .5rem;
  color: #fff;
}

.page-head.page-head--hero .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 58ch;
  color: #fff;
}

@media (max-width: 768px) {
  .page-head.page-head--hero h1 {
    font-size: 2rem;
  }
  .page-head.page-head--hero .lead {
    font-size: 1rem;
  }
}

/* Hide any fallback images inside hero */
.page-head.page-head--hero picture,
.page-head.page-head--hero img {
  display: none !important;
}

/* =========================================================
   HUB BACKGROUND IMAGES — RESPONSIVE & SCOPED
========================================================= */

#excavator-hub.page-head.page-head--hero {
  background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-excavator-head-sm.jpg");
}
@media (min-width: 768px) {
  #excavator-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-excavator-head-md.jpg");
  }
}
@media (min-width: 1200px) {
  #excavator-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-excavator-head-lg.jpg");
  }
}

#utility-hub.page-head.page-head--hero {
  background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-utility-head-sm.jpg");
}
@media (min-width: 768px) {
  #utility-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-utility-head-md.jpg");
  }
}
@media (min-width: 1200px) {
  #utility-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-utility-head-lg.jpg");
  }
}

#homeowner-hub.page-head.page-head--hero {
  background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-homeowner-head-sm.jpg");
}
@media (min-width: 768px) {
  #homeowner-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-homeowner-head-md.jpg");
  }
}
@media (min-width: 1200px) {
  #homeowner-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-homeowner-head-lg.jpg");
  }
}

#resources-hub.page-head.page-head--hero {
  background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-resources-head-sm.jpg");
}
@media (min-width: 768px) {
  #resources-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-resources-head-md.jpg");
  }
}
@media (min-width: 1200px) {
  #resources-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-resources-head-lg.jpg");
  }
}

#damage-hub.page-head.page-head--hero {
  background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-damage-head-sm.jpg");
}
@media (min-width: 768px) {
  #damage-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-damage-head-md.jpg");
  }
}
@media (min-width: 1200px) {
  #damage-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-damage-head-lg.jpg");
  }
}

#news-hub.page-head.page-head--hero {
  background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-news-head-sm.jpg");
}
@media (min-width: 768px) {
  #news-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-news-head-md.jpg");
  }
}
@media (min-width: 1200px) {
  #news-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-news-head-lg.jpg");
  }
}

#contact-hub.page-head.page-head--hero {
  background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-contact-head-sm.jpg");
}
@media (min-width: 768px) {
  #contact-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-contact-head-md.jpg");
  }
}
@media (min-width: 1200px) {
  #contact-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-contact-head-lg.jpg");
  }
}
@media (min-width: 1200px) {
  #contact-hub.page-head.page-head--hero {
    background-image: url("https://cdn.pelicancorp.com/images/CBYD/25-CBYD-contact-head-lg.jpg");
  }
}
/* ---------------------------------------------------------
   PRIMARY ACTION MENU ITEM — Damage Reporting
   Scoped, opt-in via anchor class
--------------------------------------------------------- */

nav.sp-megamenu-wrapper .sp-megamenu-parent > li > a.menu-button {
  display: inline-flex;
  align-items: center;

  padding: 0.45rem 0.85rem !important;
  margin-inline: 0.25rem;

  border: 2px solid #669900 !important;
  border-radius: 0.375rem;

  color: #669900 !important;
  font-weight: 700;
  line-height: 1.2;

  box-sizing: border-box;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* Hover / focus */
nav.sp-megamenu-wrapper .sp-megamenu-parent > li > a.menu-button:hover,
nav.sp-megamenu-wrapper .sp-megamenu-parent > li > a.menu-button:focus {
  background-color: #669900;
  color: #ffffff !important;
  text-decoration: none;
}

/* Active state */
nav.sp-megamenu-wrapper .sp-megamenu-parent > li.active > a.menu-button,
nav.sp-megamenu-wrapper .sp-megamenu-parent > li > a.menu-button[aria-current="page"] {
  background-color: #669900;
  color: #ffffff !important;
}


/* =========================================================
   TOOLBOX TALKS — Filters & Search (Scoped)
========================================================= */

#toolbox-talks-filters input[type="search"] {
  max-width: 420px;
}


/* =========================================================
   TOOLBOX TALKS — Filters & Search (Scoped)
========================================================= */

#toolbox-talks-filters input[type="search"] {
  max-width: 420px;
}

/* =========================================================
   TOOLBOX TALKS — Filter Tabs (Underline Model)
========================================================= */

.tt-filter-tab {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  color: inherit;
}

.tt-filter-label {
  display: block;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

/* Base underline (inactive) */
.tt-filter-bar {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: currentColor;
  opacity: 0.25;
  transition: opacity 0.15s ease;
}

/* Active state */
.tt-filter-tab.active .tt-filter-bar {
  opacity: 1;
}

/* Hover state */
.tt-filter-tab:hover .tt-filter-bar {
  opacity: 0.6;
}

/* Neutral styling for "All" filter */
.tt-filter-tab[data-filter="all"] {
  color: #000;
}

.tt-filter-tab[data-filter="all"] .tt-filter-bar {
  background-color: #d1d5db;
  opacity: 0.6;
}

/* =========================================================
   TOOLBOX TALKS — Category Color Variables (FINAL CANON)
   Construction-derived, UI-safe
========================================================= */

:root {
  /* BEFORE — Blue (planning / information) */
  --tt-before-digging: #0641cb;

  /* DURING — Orange (active work, high contrast) */
  --tt-during-excavation: #ff9500;

  /* EXCAVATION — Purple (methods / specialization) */
  --tt-excavation-methods: #6b007b;

  /* RESPONSE — Muted red (serious, not alarmist) */
  --tt-damage-response: #D31a38;
}

/* =========================================================
   TOOLBOX TALKS — Category Color (Context Classes)
   Used by filter tabs AND toolbox-meta via currentColor
========================================================= */

.tt-before-digging { color: var(--tt-before-digging); }
.tt-during-excavation { color: var(--tt-during-excavation); }
.tt-excavation-methods { color: var(--tt-excavation-methods); }
.tt-damage-response { color: var(--tt-damage-response); }

/* =========================================================
   TOOLBOX TALKS — Cards
========================================================= */

.toolbox-card .card {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.toolbox-card .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.toolbox-card h3 {
  line-height: 1.35;
}

/* =========================================================
   TOOLBOX TALKS — Toolbox Meta (Primary Category Signal)
========================================================= */

.toolbox-meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280; /* neutral default */
}

/* Category overrides — explicit, not inherited */
.toolbox-meta.tt-before-digging {
  color: var(--tt-before-digging);
}

.toolbox-meta.tt-during-excavation {
  color: var(--tt-during-excavation);
}

.toolbox-meta.tt-excavation-methods {
  color: var(--tt-excavation-methods);
}

.toolbox-meta.tt-damage-response {
  color: var(--tt-damage-response);
}

/* =========================================================
   TOOLBOX TALKS — Summary / Content
========================================================= */

.toolbox-card .collapse {
  border-top: 1px solid #e9ecef;
  padding-top: 0.75rem;
}

.toolbox-card .collapse p {
  line-height: 1.6;
}

/* Action row vertical alignment */
.toolbox-card .card-body .d-flex.mt-auto {
  align-items: center;
}

/* =========================================================
   TOOLBOX TALKS — Empty State
========================================================= */

#toolbox-empty {
  max-width: 480px;
  margin-inline: auto;
}

/* =========================================================
   TOOLBOX TALKS — Motion & Responsive
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .toolbox-card .card,
  .btn-cbyd-primary {
    transition: none;
    transform: none !important;
  }
}

/* =========================================================
   NEWS — Back to Top (Canon-Safe)
========================================================= */

.news-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #669900; /* CBYD green — canon */
  text-decoration: none;
  margin-top: 1.5rem;
}

.news-back-to-top i {
  font-size: 2.5rem; /* intentionally noticeable */
  line-height: 1;
}

.news-back-to-top:hover,
.news-back-to-top:focus {
  color: #557a00; /* matches existing hover darkening */
}

.news-divider {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid #e9ecef;
}

/* =========================================================
   EVENTS — Directory Cards & Month Ribbon
   Scoped to Events page components only
========================================================= */

/* ---------- Event Card Base ---------- */

.event-card .card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background-color: #ffffff;
}

.event-card .card-body {
  padding: 1.25rem 1.5rem;
}

.event-card h3 {
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.event-card p {
  margin-bottom: 0.5rem;
}

.event-card .small {
  line-height: 1.4;
}


/* ---------- Month Ribbon (Calendar Orientation Cue) ---------- */
/* Canon vertical ribbon system — replaces all prior variants */

.event-month-ribbon {
  position: absolute;
  top: 0;
  right: 1rem;
  background-color: #669900; /* CBYD green */
  padding: 0.4rem 0.35rem;
  border-radius: 0 0 0.25rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.event-month-letter {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #ffffff; /* Canon contrast on CBYD green */
}


/* ---------- Empty State (Search Results) ---------- */

#events-empty p {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   END EVENTS STYLES
========================================================= */



/* ======================= END CUSTOM STYLES ======================= */
