/* ============================================================
   HUG Construction — Homepage 2026 v2 ("Home 2026" draft page)
   Scope: every selector is prefixed with a .hug-home-* /
   .hug-scroll-* / .hug-btn / .hug-wrap class assigned in the
   Elementor structure, so nothing here can leak into other
   pages. No Elementor generated IDs are used (page anchors like
   #process are set deliberately in the structure).

   This file is also embedded in the template's page-level
   Custom CSS (Elementor > Page Settings > Advanced > Custom CSS),
   so it travels with the page. Keep the two in sync if you edit.

   v2 changes:
   - Sections are full-bleed (backgrounds edge to edge) with a
     .hug-wrap inner container boxing the content, like the hub.
   - Sticky numbered anchor nav under the hero (same mechanism
     as the hub's #resource-map: CSS position sticky).
   - Process scrollytelling redesigned: full-viewport images
     BEHIND the text; text panels and background crossfade as
     you scroll. Same JS contract as v1 (hug-home-process.js
     is unchanged).
   - Recent work is a compact strip of portfolio-archive tiles.
   - Reviews band hosts the Trustindex Google widget (template
     4433) plus Elementor counters.

   Brand:
     HUG Blue   #002555
     HUG Gray   #707070
     HUG Yellow #FDCC14
   Fonts (already loaded sitewide): Bebas Neue, Montserrat
   ============================================================ */

/* ---------- layout shell ---------- */

/* Boxed content inside full-bleed sections */
.hug-wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Anchored sections need to clear the sticky site header + nav */
#process, #services, #work, #regions, #build-better, #contact {
  scroll-margin-top: 130px;
}

/* ---------- shared bits ---------- */

/* Eyebrow labels: small, uppercase, yellow on dark / blue on light */
.hug-home-eyebrow .elementor-heading-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FDCC14;
}
.hug-home-eyebrow--blue .elementor-heading-title { color: #002555; }

/* Big condensed headings */
.hug-home-h1 .elementor-heading-title,
.hug-home-h2 .elementor-heading-title {
  font-family: "Bebas Neue", "Arial Narrow Bold", Arial, sans-serif;
  line-height: .95;
  letter-spacing: .01em;
}
.hug-home-h1 .elementor-heading-title { font-size: clamp(44px, 6.5vw, 84px); color: #fff; }
.hug-home-h2 .elementor-heading-title { font-size: clamp(34px, 4.2vw, 56px); color: #002555; }
.hug-home-h2--light .elementor-heading-title { color: #fff; }

/* Body copy inside these sections */
.hug-home-body,
.hug-home-body p {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #3d4a5f;
}
.hug-home-body--light, .hug-home-body--light p { color: rgba(255,255,255,.88); }

/* Buttons. Elementor button widget markup is .elementor-button. */
.hug-btn .elementor-button {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 16px 28px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.hug-btn .elementor-button:hover,
.hug-btn .elementor-button:focus { transform: translateY(-2px); }
.hug-btn .elementor-button:focus-visible {
  outline: 3px solid #FDCC14;
  outline-offset: 2px;
}

.hug-btn-yellow .elementor-button { background: #FDCC14; color: #002555; }
.hug-btn-yellow .elementor-button:hover { background: #f2c003; color: #002555; }

.hug-btn-blue .elementor-button { background: #002555; color: #fff; }
.hug-btn-blue .elementor-button:hover { background: #0b3d6d; color: #fff; box-shadow: 0 0 0 2px #FDCC14 inset; }

.hug-btn-ghost .elementor-button {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 2px solid rgba(255,255,255,.75);
}
.hug-btn-ghost .elementor-button:hover { border-color: #FDCC14; color: #fff; }

/* Plain text links used as tertiary CTAs */
.hug-textlink a {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  border-bottom: 2px solid #FDCC14;
  padding-bottom: 2px;
}
.hug-textlink--blue a { color: #002555; }
.hug-textlink a:hover { color: #FDCC14; }
.hug-textlink--blue a:hover { color: #0b3d6d; }
.hug-textlink a:focus-visible { outline: 3px solid #FDCC14; outline-offset: 3px; }

/* ---------- 1. Hero ---------- */

.hug-home-hero { min-height: 760px; }

.hug-home-hero-content { max-width: 700px; }
.hug-home-hero-content .hug-home-body p { max-width: 600px; }

/* Compact stat cards inside the hero */
.hug-home-hero-stats { max-width: 680px; }
.hug-home-hero-stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  padding: 14px 16px;
}
.hug-home-hero-stat .elementor-heading-title { color: #FDCC14; font-family: "Bebas Neue", Arial, sans-serif; font-size: 30px; line-height: 1; }
.hug-home-hero-stat p { color: rgba(255,255,255,.85); font-size: 13px; line-height: 1.4; margin: 4px 0 0; }

/* ---------- 1b. Sticky anchor nav (hub-style) ---------- */

/* Same mechanism as the hub's #resource-map: plain CSS sticky.
   69px clears the site header. */

/* ---------- 2. Pathways ---------- */

.hug-home-pathway-card {
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hug-home-pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,37,85,.12);
}
.hug-home-pathway-card img { width: 100%; height: 210px; object-fit: cover; display: block; }

/* Residential card is the featured one: blue panel treatment */
.hug-home-residential-card { background: #002555; border-color: #002555; }
.hug-home-residential-card h3.elementor-heading-title { color: #fff; }
.hug-home-residential-card .hug-home-body p { color: rgba(255,255,255,.85); }
.hug-home-residential-card .elementor-icon-list-text { color: rgba(255,255,255,.9); }

.hug-home-pathway-card h3.elementor-heading-title {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 30px;
  color: #002555;
}

/* Link lists inside cards */
.hug-home-pathway-links .elementor-icon-list-item { padding: 4px 0; }
.hug-home-pathway-links .elementor-icon-list-text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #3d4a5f;
}
.hug-home-pathway-links .elementor-icon-list-item a:hover .elementor-icon-list-text { color: #002555; box-shadow: 0 2px 0 #FDCC14; }
.hug-home-pathway-links .elementor-icon-list-icon { color: #FDCC14; }

/* ---------- 3. Residential services ---------- */

.hug-home-service-card {
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hug-home-service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,37,85,.12); }
.hug-home-service-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.hug-home-service-card h3.elementor-heading-title { font-family: "Bebas Neue", Arial, sans-serif; font-size: 26px; color: #002555; }
.hug-home-service-card:hover h3.elementor-heading-title { box-shadow: inset 0 -3px 0 #FDCC14; }

/* ---------- 4. Build Better process (scrollytelling v2) ----------

   Full-viewport images BEHIND the text. The media stack is a
   100vh sticky layer; the text panels scroll over it and drive
   the crossfade. JS contract is unchanged from v1:
   - hug-home-process.js adds .hug-process-js on desktop
   - .is-active is toggled on .hug-scroll-img and .hug-scroll-panel
   - .hug-scroll-progress shows "01 / 06"
   Without JS every panel is readable over the first image.     */

.hug-home-process { background: #002555; }

.hug-scroll-head { padding-top: 90px; padding-bottom: 44px; }

.hug-scroll-story { position: relative; }

/* The image stage: sticky, full viewport, behind the panels */
.hug-scroll-media {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}
.hug-scroll-media .hug-scroll-img {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.hug-scroll-media .hug-scroll-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hug-scroll-media .hug-scroll-img:first-child,
.hug-scroll-media .hug-scroll-img.is-active { opacity: 1; }

/* Readability scrim over the photos, matching the hero gradient */
.hug-scroll-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,37,85,.93) 0%, rgba(0,37,85,.62) 55%, rgba(0,37,85,.28) 100%);
  pointer-events: none;
}

/* Progress indicator (01 / 06). Hidden until JS initializes. */
.hug-scroll-progress {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 3;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 22px;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(0,37,85,.72);
  border-left: 3px solid #FDCC14;
  padding: 6px 14px;
  border-radius: 4px;
  display: none;
}
.hug-process-js .hug-scroll-progress { display: block; }

/* Text panels scroll OVER the sticky image stage */
.hug-scroll-panels {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
}
.hug-scroll-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hug-scroll-panel .hug-scroll-panel-text { max-width: 560px; }

.hug-scroll-panel .hug-scroll-num .elementor-heading-title {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 18px;
  color: #002555;
  background: #FDCC14;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
}
.hug-scroll-panel h3.elementor-heading-title {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: clamp(32px, 3.4vw, 52px);
  color: #fff;
}
.hug-scroll-panel .hug-home-body,
.hug-scroll-panel .hug-home-body p { color: rgba(255,255,255,.92); }

/* Text animation when JS is running; full opacity otherwise */
.hug-process-js .hug-scroll-panel {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease, transform .55s ease;
}
.hug-process-js .hug-scroll-panel.is-active { opacity: 1; transform: none; }

.hug-scroll-cta { padding-top: 64px; padding-bottom: 90px; }

/* ---------- 5. Recent work (compact portfolio tiles) ---------- */

.hug-home-work-tile {
  position: relative;
  min-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  justify-content: flex-end;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hug-home-work-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,37,85,.22); }
.hug-home-work-tile h3.elementor-heading-title {
  color: #fff;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
}
.hug-home-work-tile .hug-textlink a { font-size: 13px; }

/* ---------- 6. Regions ---------- */

.hug-home-region-panel {
  border-radius: 10px;
  overflow: hidden;
  min-height: 420px;
}
.hug-home-region-panel h3.elementor-heading-title { color: #fff; font-family: "Bebas Neue", Arial, sans-serif; font-size: 38px; }

/* ---------- 7. Commercial callout / 8. BBIN ---------- */

.hug-home-commercial-callout img { border-radius: 10px; }

.hug-home-bbin-card {
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hug-home-bbin-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,37,85,.12); }
.hug-home-bbin-card--featured { background: #002555; border-color: #002555; }
.hug-home-bbin-card--featured h3.elementor-heading-title { color: #fff; }
.hug-home-bbin-card--featured .hug-home-body p { color: rgba(255,255,255,.85); }
.hug-home-bbin-card h3.elementor-heading-title { font-family: "Bebas Neue", Arial, sans-serif; font-size: 26px; color: #002555; }

/* ---------- 8b. Investment Guide band (template 4616) ---------- */

/* The saved hub section brings its own background and padding;
   the host section stays neutral. */
.hug-home-invguide { padding: 0; }

/* ---------- 9. Reviews (Google widget + counters) ---------- */

.hug-home-counters { max-width: 820px; }
.hug-home-counter .elementor-counter-number-wrapper {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: clamp(40px, 4vw, 62px);
  color: #002555;
  line-height: 1;
}
.hug-home-counter .elementor-counter-number-suffix { color: #FDCC14; }
.hug-home-counter .elementor-counter-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3d4a5f;
  margin-top: 6px;
}

/* ---------- 10. Final CTA ---------- */

/* Full-bleed band; content boxed by .hug-wrap like the hub CTA. */
.hug-home-final-cta { min-height: 520px; }

/* ---------- layout helpers ---------- */

/* Card bodies (text area under card images) */
.hug-home-card-body { padding: 22px; }

/* Keep card containers from overflowing their flex rows */
.hug-home-pathway-card, .hug-home-service-card,
.hug-home-bbin-card, .hug-home-work-tile { min-width: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  /* Process section: no sticky stage. The image layer is hidden
     and panels become stacked cards on the blue band. The script
     exits early at this width, so everything is static. */
  .hug-scroll-media { display: none; }
  .hug-scroll-panels { margin-top: 0; }
  .hug-scroll-panel {
    min-height: 0;
    padding: 8px 0;
  }
  .hug-scroll-panel .hug-scroll-panel-text {
    max-width: none;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 16px;
  }
  .hug-scroll-panel h3.elementor-heading-title { color: #002555; font-size: 28px; }
  .hug-scroll-panel .hug-home-body,
  .hug-scroll-panel .hug-home-body p { color: #3d4a5f; }
  .hug-process-js .hug-scroll-panel { opacity: 1; transform: none; }

  .hug-home-hero { min-height: 620px; }
}

@media (max-width: 767px) {
  .hug-home-hero { min-height: 560px; }
  .hug-home-hero-stat .elementor-heading-title { font-size: 24px; }
  .hug-home-work-tile { min-height: 170px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hug-btn .elementor-button,
  .hug-home-pathway-card,
  .hug-home-service-card,
  .hug-home-bbin-card,
  .hug-home-work-tile,
  .hug-scroll-media .hug-scroll-img,
  .hug-scroll-panel { transition: none !important; transform: none !important; }
  .hug-process-js .hug-scroll-panel { opacity: 1; }
}

/* ---------- theme compatibility ---------- */

/* Unlock the theme's content column so full-bleed sections span
   edge to edge (same approach as the hub's page patch). */
.entry-content.wp-block-post-content:has(.hug-home-hero) {
  max-width: none !important;
}

/* ==================================================================
   v2.1 appended fixes — 2026-07-08
   1) Hero/brand readability: kit 4136 heading, text and button rules
      tie on specificity and win on source order, so brand-critical
      colors below carry !important on purpose.
   2) Full-width layout (Bryan 07-08): neutralize the 1200px .hug-wrap
      boxing; hub-style clamp() side padding instead. Nav bar keeps a
      1400px cap so six items don't stretch absurdly on wide screens.
   3) Pending handoff fixes: nav grid on .e-con-inner, nav buttons
      hardened vs kit button styles, scroll panels vertically centered.
   ================================================================== */

/* ---------- full width ---------- */
.hug-wrap,
.hug-wrap > .e-con-inner { max-width: 100% !important; }
.hug-wrap {
  padding-left: clamp(24px, 5vw, 72px) !important;
  padding-right: clamp(24px, 5vw, 72px) !important;
}

/* ---------- hero + brand colors ---------- */
.hug-home-eyebrow .elementor-heading-title { color: #FDCC14 !important; }
.hug-home-eyebrow--blue .elementor-heading-title { color: #002555 !important; }
.hug-home-h1 .elementor-heading-title { color: #fff !important; }
.hug-home-h2 .elementor-heading-title { color: #002555 !important; }
.hug-home-h2--light .elementor-heading-title { color: #fff !important; }
.hug-home-body, .hug-home-body p { color: #3d4a5f !important; }
.hug-home-body--light, .hug-home-body--light p,
.hug-home-hero .hug-home-body, .hug-home-hero .hug-home-body p { color: rgba(255,255,255,.92) !important; }
.hug-home-hero .hug-textlink a { color: #fff !important; }
.hug-textlink--blue a { color: #002555 !important; }
.hug-home-hero-stat .elementor-heading-title { color: #FDCC14 !important; }
.hug-home-hero-stat p { color: rgba(255,255,255,.85) !important; }

/* ---------- buttons vs kit ---------- */
.hug-btn-yellow .elementor-button { background: #FDCC14 !important; color: #002555 !important; border: 0 !important; }
.hug-btn-yellow .elementor-button:hover,
.hug-btn-yellow .elementor-button:focus { background: #f2c003 !important; color: #002555 !important; }
.hug-btn-blue .elementor-button { background: #002555 !important; color: #fff !important; border: 0 !important; }
.hug-btn-blue .elementor-button:hover,
.hug-btn-blue .elementor-button:focus { background: #0b3d6d !important; color: #fff !important; }
.hug-btn-ghost .elementor-button {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.75) !important;
}
.hug-btn-ghost .elementor-button:hover,
.hug-btn-ghost .elementor-button:focus { border-color: #FDCC14 !important; background: rgba(255,255,255,.14) !important; color: #fff !important; }

/* ---------- nav: grid lives on .e-con-inner (Elementor wraps children) ---------- */

/* ---------- scroll panels: vertical centering ---------- */
.hug-scroll-panel {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}


/* ---- v2.2 (07-08): nav styles moved INTO the nav section's own
   Custom CSS (travels with the saved template). Plus two fixes. ---- */
.hug-home-hero .hug-textlink a, .hug-home-hero .hug-textlink a * { color: #fff !important; }
.hug-scroll-panel { justify-content: center !important; align-items: flex-start !important; }


/* ==================================================================
   v2.3 — 2026-07-08 (Bryan feedback)
   1) Process scrollytelling: white text over the blue-overlaid
      imagery (desktop only — mobile keeps stacked white cards with
      dark text), wider text column, soft shadow for readability.
   2) Typography scale-up across the page: larger body, headings,
      card titles, list links, buttons, stats.
   3) Wider hero content column.
   ================================================================== */

/* ---------- process section, desktop ---------- */
@media (min-width: 1025px) {
  .hug-home-process .hug-scroll-panel h3.elementor-heading-title {
    color: #fff !important;
    font-size: clamp(40px, 4.4vw, 72px) !important;
    text-shadow: 0 2px 22px rgba(0, 18, 42, .5);
  }
  .hug-home-process .hug-scroll-panel .hug-home-body,
  .hug-home-process .hug-scroll-panel .hug-home-body p {
    color: rgba(255, 255, 255, .94) !important;
    font-size: clamp(18px, 1.3vw, 22px) !important;
    line-height: 1.7 !important;
    text-shadow: 0 1px 14px rgba(0, 18, 42, .55);
  }
  .hug-home-process .hug-scroll-panel-text { max-width: clamp(620px, 52vw, 880px) !important; }
  .hug-scroll-progress { font-size: 26px; }
}

/* ---------- typography scale-up ---------- */
.hug-home-body, .hug-home-body p { font-size: 18px; line-height: 1.7; }
.hug-home-eyebrow .elementor-heading-title { font-size: 14px; letter-spacing: .16em; }
.hug-home-h2 .elementor-heading-title { font-size: clamp(40px, 4.6vw, 66px); }
.hug-home-h1 .elementor-heading-title { font-size: clamp(48px, 6.8vw, 92px); }
.hug-home-pathway-card h3.elementor-heading-title { font-size: 34px; }
.hug-home-service-card h3.elementor-heading-title { font-size: 30px; }
.hug-home-bbin-card h3.elementor-heading-title { font-size: 30px; }
.hug-home-pathway-links .elementor-icon-list-text { font-size: 16px; }
.hug-btn .elementor-button { font-size: 15px; }
.hug-textlink a { font-size: 16px; }
.hug-home-hero-stat .elementor-heading-title { font-size: 34px; }
.hug-home-hero-stat p { font-size: 14px; }
.hug-home-project-meta .elementor-heading-title { font-size: 28px; }
.hug-home-project-meta p { font-size: 13px; }
.hug-home-region-panel h3.elementor-heading-title { font-size: 46px; }
.hug-home-testimonial-card p { font-size: 17px; }

/* ---------- wider hero content ---------- */
.hug-home-hero-content { max-width: 780px; }
.hug-home-hero-content .hug-home-body p { max-width: 680px; }

/* v2.3b: process media images truly full-bleed (media container was
   e-con-boxed at 1140px; Bryan wants full width) */
.hug-home-process .hug-scroll-media,
.hug-home-process .hug-scroll-media > .e-con-inner { max-width: 100% !important; width: 100% !important; }

/* v2.3c: the process story wrapper's own .e-con-inner was still capped
   at the 1140px default; unbox every inner inside the process section
   and give panels their own side padding instead. */
.hug-home-process .e-con-inner { max-width: 100% !important; }
.hug-home-process .hug-scroll-panel { padding-left: clamp(24px, 6vw, 96px); padding-right: clamp(24px, 4vw, 72px); }


/* ==================================================================
   v2.4 — 2026-07-08 (round 3, hub parity)
   Measured from the BBIN hub (page 3947):
   - Eyebrows: Bebas Neue 25px / 700 / letter-spacing 1.5px / lh .95
   - Buttons:  Bebas Neue 25px / 700 / ls 1.5px / radius 4px
               yellow #FDCC14, ghost rgba(255,255,255,.10) +
               1px rgba(255,255,255,.36) border, blue #002555
   - Hero counters: white Bebas numbers, yellow Montserrat labels,
     one translucent panel
   ================================================================== */

/* ---------- eyebrows, hub spec ---------- */
.hug-home-eyebrow .elementor-heading-title,
.hug-home-eyebrow--blue .elementor-heading-title {
  font-family: "Bebas Neue", Arial, sans-serif !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  line-height: .95 !important;
  text-transform: none;
}

/* ---------- buttons, hub spec ---------- */
.hug-btn .elementor-button {
  font-family: "Bebas Neue", Arial, sans-serif !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: none !important;
  border-radius: 4px !important;
  padding: 12px 26px !important;
  line-height: 1 !important;
}
.hug-btn-ghost .elementor-button {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.36) !important;
}
/* Build Better dedicated button: yellow outline on dark */
.hug-btn-bbin .elementor-button {
  background: transparent !important;
  color: #FDCC14 !important;
  border: 1px solid #FDCC14 !important;
}
.hug-btn-bbin .elementor-button:hover,
.hug-btn-bbin .elementor-button:focus { background: #FDCC14 !important; color: #002555 !important; }

/* ---------- hero: wider text, hub counter panel ---------- */
.hug-home-hero-content { max-width: 1200px; }
.hug-home-hero-content .hug-home-body p { max-width: 980px; }
.hug-home-hero-stats {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  padding: 20px 26px;
  max-width: 700px;
  gap: 28px;
}
.hug-home-hero-stat { background: transparent !important; border: 0 !important; padding: 0 !important; }
.hug-home-hero-stat .elementor-heading-title {
  color: #fff !important;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 46px !important;
  font-weight: 600;
  line-height: 1;
}
.hug-home-hero-stat p { color: #FDCC14 !important; font-family: "Montserrat", Arial, sans-serif; font-weight: 500; font-size: 14px !important; line-height: 1.4; }

/* ---------- pathways: darker body text on white cards ---------- */
.hug-home-pathway-card .hug-home-body p,
.hug-home-service-card .hug-home-body p { color: #22304a !important; }
.hug-home-residential-card .hug-home-body p { color: rgba(255,255,255,.9) !important; }
.hug-home-pathway-links .elementor-icon-list-text { color: #22304a; }
.hug-home-residential-card .elementor-icon-list-text { color: rgba(255,255,255,.9); }

/* ---------- process bands: tighter, less bloat ---------- */
.hug-home-process { padding-top: 70px !important; padding-bottom: 70px !important; }

/* ---------- final CTA: hub yellow band ---------- */
.hug-home-body--dark, .hug-home-body--dark p { color: #002555 !important; font-weight: 600; }
.hug-home-final-cta .hug-home-h2 .elementor-heading-title { color: #002555 !important; }

/* v2.4b: hero counters must sit 3-across inside the panel */
.hug-home-hero-stats { flex-direction: row !important; flex-wrap: nowrap !important; align-items: flex-start; }
.hug-home-hero-stats > .e-con { flex: 1 1 0 !important; width: auto !important; min-width: 0; }
@media (max-width: 767px) {
  .hug-home-hero-stats { flex-direction: column !important; }
}


/* ==================================================================
   v2.5 — 2026-07-08 (round 4)
   1) Cards rows: the row containers are e-con-boxed, so the 1140px
      inner cap made cards stack full-width. Unbox and flex them.
   2) Final CTA: hub gradient band, button right of text, bigger.
   3) Process buffers tightened.
   ================================================================== */

/* ---------- cards rows ---------- */
.hug-home-cards-row, .hug-home-cards-row > .e-con-inner { max-width: 100% !important; width: 100% !important; }
.hug-home-cards-row > .e-con-inner { display: flex !important; flex-wrap: wrap !important; gap: 24px !important; }
.hug-home-cards-row > .e-con-inner > .e-con { flex: 1 1 300px !important; width: auto !important; min-width: 0; }
.hug-home-cards-row > .e-con-inner > .hug-home-residential-card { flex: 1.35 1 360px !important; }

/* ---------- final CTA: text left, button right ---------- */
.hug-home-final-cta .hug-home-hero-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 4vw, 90px);
  align-items: center;
  max-width: 100%;
}
.hug-home-final-cta .hug-home-hero-content > * { grid-column: 1; }
.hug-home-final-cta .hug-home-btn-row { grid-column: 2 !important; grid-row: 1 / span 3; }
.hug-home-final-cta .hug-btn .elementor-button { font-size: 30px !important; padding: 20px 42px !important; }
@media (max-width: 767px) {
  .hug-home-final-cta .hug-home-hero-content { display: flex !important; flex-direction: column; align-items: flex-start; }
}

/* ---------- process buffers ---------- */
.hug-home-process { padding-top: 40px !important; padding-bottom: 40px !important; }
.hug-scroll-head { padding-top: 20px !important; padding-bottom: 4px !important; }
.hug-scroll-cta { padding-top: 4px !important; padding-bottom: 20px !important; }

/* v2.5b: final CTA grid must live on the content's .e-con-inner */
.hug-home-final-cta .hug-home-hero-content,
.hug-home-final-cta .hug-home-hero-content > .e-con-inner { max-width: 100% !important; width: 100%; }
.hug-home-final-cta .hug-home-hero-content > .e-con-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 4vw, 90px);
  align-items: center;
}
.hug-home-final-cta .hug-home-hero-content > .e-con-inner > * { grid-column: 1; }
.hug-home-final-cta .hug-home-hero-content > .e-con-inner > .hug-home-btn-row { grid-column: 2 !important; grid-row: 1 / span 3; }
@media (max-width: 767px) {
  .hug-home-final-cta .hug-home-hero-content > .e-con-inner { display: flex !important; flex-direction: column; align-items: flex-start; }
}

/* v2.6 — counters horizontal (the stats panel is boxed, so the row
   must be forced on its .e-con-inner and the caps on its children);
   scrollytelling typography scaled to fill the viewport panels. */
.hug-home-hero-stats > .e-con-inner { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 28px; align-items: flex-start; }
.hug-home-hero-stats > .e-con-inner > .e-con { flex: 1 1 0 !important; width: auto !important; min-width: 0; }
@media (max-width: 767px) {
  .hug-home-hero-stats > .e-con-inner { flex-wrap: wrap !important; }
}
@media (min-width: 1025px) {
  .hug-home-process .hug-scroll-panel h3.elementor-heading-title {
    font-size: clamp(52px, 5.6vw, 100px) !important;
    line-height: .95;
    max-width: 1100px;
  }
  .hug-home-process .hug-scroll-panel .hug-home-body,
  .hug-home-process .hug-scroll-panel .hug-home-body p {
    font-size: clamp(20px, 1.55vw, 27px) !important;
    line-height: 1.75 !important;
    max-width: 1050px;
  }
  .hug-home-process .hug-scroll-panel-text { max-width: min(72vw, 1150px) !important; }
  .hug-scroll-panel .hug-scroll-num .elementor-heading-title { font-size: 24px !important; padding: 6px 16px; }
}

/* v2.6b: final CTA background — same crew/consultation photo the hub's
   yellow band uses (settings kept a stale attachment ref, so forced here) */
.hug-home-final-cta {
  background-color: #FDCC14 !important;
  background-image: url("https://hugconstruction.com/wp-content/uploads/2026/06/hug-construction-project-consultation.webp") !important;
  background-position: center center !important;
  background-size: cover !important;
}

/* v2.7: panel 1 had no center dwell — it was only centered at the exact
   pin moment. A 40vh lead-in lets the pinned image establish, then the
   first value scrolls to center like every other panel. Desktop only
   (mobile renders stacked cards with no pinning). */
@media (min-width: 1025px) {
  .hug-home-process .hug-scroll-panels { padding-top: 40vh !important; }
}

/* v2.8: Improve Your World band — two columns, image right, and the
   usual boxed-inner guards so the row cannot stack full-width. */
.hug-home-giving-row, .hug-home-giving-row > .e-con-inner { max-width: 100% !important; width: 100% !important; }
.hug-home-giving-row > .e-con-inner { display: flex !important; flex-wrap: wrap !important; gap: 40px !important; align-items: center; }
.hug-home-giving-row > .e-con-inner > .hug-home-giving-col-text { flex: 1.25 1 440px !important; width: auto !important; min-width: 0; }
.hug-home-giving-row > .e-con-inner > .hug-home-giving-col-img { flex: 1 1 340px !important; width: auto !important; min-width: 0; }
.hug-home-giving-col-img img { border-radius: 10px; width: 100%; object-fit: cover; }

/* ---------- hero headline links (Residential / Commercial) ----------
   Hover-only effect: text turns HUG yellow and an underline slides in.
   !important needed to beat Elementor's heading-link color:inherit rule. */
.hug-home-h1 .elementor-heading-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(0deg, #FDCC14, #FDCC14);
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 0% 0.1em;
  transition: color .2s ease, background-size .25s ease;
}
.hug-home-h1 .elementor-heading-title a:hover,
.hug-home-h1 .elementor-heading-title a:focus-visible {
  color: #FDCC14 !important;
  background-size: 100% 0.1em;
}
.hug-home-h1 .elementor-heading-title a:focus-visible {
  outline: 3px solid #FDCC14;
  outline-offset: 4px;
}

/* ---------- scroll-scrubbed build video ---------- */
.hug-scroll-media .hug-scroll-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.hug-video-ready .hug-scroll-media .hug-scroll-video { opacity: 1; }
.hug-video-ready .hug-scroll-media .hug-scroll-img { opacity: 0 !important; }

/* Step photos shown inside the stacked cards on mobile / reduced motion */
.hug-scroll-panel-text .hug-scroll-card-img {
  width: 100%;
  border-radius: 6px;
  margin: 0 0 14px;
  display: block;
}

/* ---------- Improving Your World (giving) ---------- */
.hug-home-giving img { border-radius: 10px; display: block; }
.hug-home-giving-stats { max-width: 640px; }
.hug-home-giving .hug-home-hero-stat { min-width: 0; }/* End custom CSS */

/* tighten the CTA band under the scroll section */
.hug-home-process { padding-bottom: 0 !important; }
.hug-scroll-cta .hug-textlink p { margin: 0; }
.hug-scroll-cta .hug-home-btn-row { align-items: center; }

/* nav 7-col fit + new anchors */
.hug-home-nav .hug-nav-btn .elementor-button { font-size: 11.5px !important; letter-spacing: .07em; padding: 20px 6px !important; }
#start, #giving, #reviews { scroll-margin-top: 130px; }
/* counter-stack-fix */
@media (max-width: 880px){
.elementor-element-1e4ac26b > .e-con-inner{flex-direction:column !important;align-items:stretch !important;gap:16px !important;}
.elementor-element-1e4ac26b > .e-con-inner > *{width:100% !important;max-width:100% !important;}
.elementor-element-1e4ac26b .elementor-counter-title,.elementor-element-1e4ac26b .elementor-heading-title,.elementor-element-1e4ac26b .elementor-counter-number-wrapper,.elementor-element-1e4ac26b .elementor-widget-text-editor{text-align:center !important;justify-content:center !important;}
}

/* The theme hides the page title with visibility:hidden, which still
   reserves ~37px of empty space above the hero. Collapse it. */
.wp-block-post-title { display: none !important; }


/* ===== v2.9 (Aug 4, 2026) - mobile portfolio filter tabs =====
   The homepage section nav keeps its current seven-column grid. */
@media (max-width: 767px) {

  body.elementor-page .elementor-element.elementor-element-0c68141 > .elementor-container {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  body.elementor-page .elementor-element.elementor-element-0c68141 > .elementor-container::-webkit-scrollbar {
    width: 0 !important; height: 0 !important; display: none !important;
  }

  body.elementor-page .elementor-element.elementor-element-0c68141 > .elementor-container > .elementor-column {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body.elementor-page .elementor-element.elementor-element-0c68141 .elementor-button {
    white-space: nowrap !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    padding: 13px 14px !important;
  }

  body.elementor-page .pc-filters > .e-con-inner {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}


/* ===== Mobile + tablet HUG Process cards: unified image-backed layout ===== */
@media (max-width: 1024px) {
  body.elementor-page .hug-home-process { background: #002555 !important; }

  body.elementor-page .hug-home-process .hug-scroll-media,
  body.elementor-page .hug-home-process .hug-scroll-progress,
  body.elementor-page .hug-home-process img.hug-scroll-card-img {
    display: none !important;
  }

  body.elementor-page .hug-home-process .hug-scroll-panels {
    display: block !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.elementor-page .hug-home-process .hug-scroll-panels > .e-con-inner {
    display: block !important;
  }

  body.elementor-page .hug-home-process .hug-scroll-panel {
    position: relative !important;
    min-height: 330px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 16px !important;
    background-color: #002555 !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    box-shadow: 0 10px 26px rgba(0, 10, 30, .35);
    opacity: 1 !important;
    transform: none !important;
  }
  body.elementor-page .hug-home-process .hug-scroll-panel:last-child {
    margin-bottom: 0 !important;
  }

  body.elementor-page .hug-home-process .hug-scroll-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(0, 37, 85, .12) 0%,
      rgba(0, 37, 85, .34) 34%,
      rgba(0, 37, 85, .72) 66%,
      rgba(0, 37, 85, .94) 100%
    );
  }

  body.elementor-page .hug-home-process .hug-scroll-panel > .e-con-inner,
  body.elementor-page .hug-home-process .hug-scroll-panel .hug-wrap,
  body.elementor-page .hug-home-process .hug-scroll-panel .hug-wrap > .e-con-inner,
  body.elementor-page .hug-home-process .hug-scroll-panel-text {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
  }

  body.elementor-page .hug-home-process .hug-scroll-panel-text > .e-con-inner {
    width: 100% !important;
    min-height: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    padding: 22px 20px 24px !important;
  }

  body.elementor-page .hug-home-process .hug-scroll-num {
    width: fit-content !important;
    max-width: max-content !important;
    min-width: 0 !important;
    align-self: flex-start !important;
    margin: 0 0 14px !important;
    background: transparent !important;
  }
  body.elementor-page .hug-home-process .hug-scroll-num .elementor-heading-title {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    background: #FDCC14 !important;
    color: #002555 !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }

  body.elementor-page .hug-home-process .hug-scroll-panel h3.elementor-heading-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: 34px !important;
    line-height: 1 !important;
    text-shadow: 0 2px 12px rgba(0, 18, 42, .72);
  }
  body.elementor-page .hug-home-process .hug-scroll-panel-text > .e-con-inner > .elementor-widget-heading:not(.hug-scroll-num) {
    margin: 0 0 14px !important;
  }
  body.elementor-page .hug-home-process .hug-scroll-panel .hug-home-body,
  body.elementor-page .hug-home-process .hug-scroll-panel .hug-home-body p {
    margin: 0 !important;
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    text-shadow: 0 1px 8px rgba(0, 18, 42, .82);
  }

  body.elementor-page .hug-home-process .elementor-element-6228d0c { background-image: url("https://hugconstruction.com/wp-content/uploads/2026/07/hug-construction-home-building-step-01-site-preparation-1024x571.webp") !important; }
  body.elementor-page .hug-home-process .elementor-element-64b50d46 { background-image: url("https://hugconstruction.com/wp-content/uploads/2026/07/hug-construction-home-building-step-02-foundation-1024x571.webp") !important; }
  body.elementor-page .hug-home-process .elementor-element-6ca6bf18 { background-image: url("https://hugconstruction.com/wp-content/uploads/2026/07/hug-construction-home-building-step-03-first-floor-framing-1024x571.webp") !important; }
  body.elementor-page .hug-home-process .elementor-element-4c9107a1 { background-image: url("https://hugconstruction.com/wp-content/uploads/2026/07/hug-construction-home-building-step-04-second-story-framing-1024x571.webp") !important; }
  body.elementor-page .hug-home-process .elementor-element-1e6677a { background-image: url("https://hugconstruction.com/wp-content/uploads/2026/07/hug-construction-home-building-step-05-framing-complete-1024x571.webp") !important; }
  body.elementor-page .hug-home-process .elementor-element-7b5fedbe { background-image: url("https://hugconstruction.com/wp-content/uploads/2026/07/hug-construction-home-building-step-06-windows-and-roof-1024x576.webp") !important; }
  body.elementor-page .hug-home-process .elementor-element-63d2e3fc { background-image: url("https://hugconstruction.com/wp-content/uploads/2026/07/hug-construction-home-building-step-07-exterior-siding-1024x571.webp") !important; }
  body.elementor-page .hug-home-process .elementor-element-7f0a1fc6 { background-image: url("https://hugconstruction.com/wp-content/uploads/2026/07/hug-construction-home-building-step-08-completed-home-1024x571.webp") !important; }
}

/* ===== v3.3 (Aug 4, 2026) - slide-in menu must outrank the sticky section nav =====
   Menu panel was 99998, sticky nav 99999. Panel to the top, nav stepped down
   but still far above page content. */
.rmp-container,
.rmp-container.rmp-menu-open { z-index: 999999 !important; }
.rmp_menu_trigger { z-index: 999998 !important; }
.hug-section-nav,
.elementor-element-0c68141 { z-index: 99990 !important; }


/* ===== v3.5 (Aug 5, 2026) - sticky section nav typography -> HUG pattern =====
   Was rendering Roboto 13px/500 (Elementor default). Bebas Neue 700 with
   1.5px tracking, matching the hub eyebrows and buttons. */
.hug-home-nav .elementor-button,
.hug-home-nav .elementor-button-text,
.hug-section-nav .elementor-button,
.hug-section-nav .elementor-button-text,
.elementor-element-0c68141 .elementor-button,
.elementor-element-0c68141 .elementor-button-text {
  font-family: "Bebas Neue", Impact, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}
.hug-home-nav .elementor-button,
.hug-home-nav .elementor-button-text { font-size: 16px !important; line-height: 1.05 !important; }
@media (max-width: 767px) {
  .hug-home-nav .elementor-button,
  .hug-home-nav .elementor-button-text { font-size: 15px !important; }
}

/* Keep the document viewport as the sticky scroll container. */
body.hug-region-home {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
