/* V5 layout — load after legacy theme/bootstrap to fix cascade conflicts */

body.v5-layout {
  font-family: "DM Sans", system-ui, sans-serif;
  --header-nav-h: 80px;
  --utility-h: 0px;
  --gutter: clamp(16px, 3vw, 48px);
  --max: 1320px;
}

/* Header shell — own width (no Bootstrap .container on inner pill) */
body.v5-layout .header-nav-wrap {
  margin-bottom: 0 !important;
  padding: 10px var(--gutter) 12px !important;
  overflow: visible !important;
}

/* Inner pages — tighter gap between header and page content */
body.v5-layout:not(.home-v5-page) .header-nav-wrap {
  padding: 6px var(--gutter) 6px !important;
}

body.v5-layout .header-nav-inner {
  width: 100% !important;
  max-width: min(var(--max), 100%) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

/* Isolate header from legacy theme / Bootstrap cascade */
body.v5-layout .header-nav-wrap .header-brand {
  margin-right: 0 !important;
  flex: 0 0 auto !important;
}

body.v5-layout .header-nav-wrap .main-nav .nav-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Homepage keeps the negative pull-over-hero margin */
body.home-v5-page .header-nav-wrap {
  margin-bottom: calc(-1 * (var(--header-nav-h) + 22px)) !important;
}

/* Inner pages with image hero — header floats over banner (product categories, etc.) */
body.v5-layout:not(.home-v5-page):has(> section.detail-banner) .header-nav-wrap,
body.v5-layout:not(.home-v5-page):has(> section.detail-banner-product) .header-nav-wrap,
body.v5-layout:not(.home-v5-page):has(#app > section.detail-banner:first-child) .header-nav-wrap,
body.v5-layout:not(.home-v5-page):has(#app > section.detail-banner-product:first-child) .header-nav-wrap,
body.v5-layout:not(.home-v5-page):has(> main.main_container > section.about_banner:first-child) .header-nav-wrap,
body.v5-layout:not(.home-v5-page):has(> main.main_container > section.contact_banner:first-child) .header-nav-wrap,
body.v5-layout:not(.home-v5-page):has(> main.main_container > section.benefits_hero:first-child) .header-nav-wrap {
  margin-bottom: calc(-1 * (var(--header-nav-h) + 22px)) !important;
  background: transparent !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Brand: fixed natural size, no overflow into nav */
body.v5-layout .header-brand {
  min-width: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

body.v5-layout .header-brand .brand-text strong {
  white-space: nowrap !important;
}

/* Header logo — same as homepage on every page (crop SVG to SH icon + serif wordmark) */
body.v5-layout .header-nav-wrap .header-brand {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  max-width: fit-content !important;
  padding-right: clamp(10px, 1.5vw, 20px) !important;
}

body.v5-layout .header-nav-wrap .header-brand .brand-logo {
  height: 48px !important;
  width: 48px !important;
  max-width: 48px !important;
  min-width: 48px !important;
  object-fit: cover !important;
  object-position: left center !important;
  flex-shrink: 0 !important;
}

body.v5-layout .header-nav-wrap .header-brand .brand-text {
  margin-left: 0 !important;
  flex-shrink: 0 !important;
}

body.v5-layout .header-nav-wrap .header-brand .brand-text strong {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(1rem, 1.6vw, 1.22rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: #ffffff !important;
}

@media (max-width: 1366px) {
  body.v5-layout .header-nav-wrap .header-brand .brand-logo {
    height: 44px !important;
    width: 44px !important;
    max-width: 44px !important;
    min-width: 44px !important;
  }
}

@media (max-width: 480px) {
  body.v5-layout .header-nav-wrap .header-brand .brand-logo {
    height: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    min-width: 40px !important;
  }
}

/* ============================================================
   GLOBAL FONT CONSISTENCY — Force DM Sans on all headings/text
   Base CSS uses Cormorant Garamond (serif) for section titles,
   hero h1, estimate h2, faq heading, and quote modal h3.
   Override all of these to match the body DM Sans font.
   ============================================================ */
body.home-v5-page .hero-copy h1,
body.home-v5-page .section-title,
body.home-v5-page .estimate-copy h2,
body.home-v5-page .faq-heading,
body.home-v5-page .quote-modal-header h3,
body.home-v5-page h1,
body.home-v5-page h2,
body.home-v5-page h3,
body.home-v5-page h4,
body.home-v5-page h5,
body.home-v5-page h6 {
  font-family: "DM Sans", system-ui, sans-serif !important;
}

/* Bootstrap .nav-link overrides V5 header links (dark on dark bar) */
body.v5-layout .main-nav .nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  padding: 12px 10px !important;
  background: none !important;
  border: none !important;
  white-space: nowrap !important;
}

/* ============================================================
   HEADER LAYOUT — CSS Grid for bulletproof brand/nav separation
   CSS Grid gives brand and nav definitively separate columns so
   they can NEVER overlap regardless of legacy CSS interference.
   ============================================================ */

/* Desktop: 2-column grid — brand column (auto) + nav column (1fr) */
@media (min-width: 1025px) {
  body.v5-layout .header-nav-inner {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    min-height: var(--header-nav-h) !important;
    padding: 8px clamp(12px, 1.4vw, 18px) 8px clamp(16px, 1.8vw, 28px) !important;
    column-gap: clamp(10px, 1.4vw, 20px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* Compact labels + hide Home (logo links home) — prevents nav merging into brand */
  body.v5-layout .nav-label-full { display: none !important; }
  body.v5-layout .nav-label-short { display: inline !important; }

  body.v5-layout .main-nav .nav-list > .nav-item:first-child {
    display: none !important;
  }

  body.v5-layout .header-nav-inner > .header-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.v5-layout .header-nav-inner > .menu-toggle {
    display: none !important;
  }

  body.v5-layout .header-nav-inner > .main-nav {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    overflow: visible !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.v5-layout .main-nav .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(0px, 0.35vw, 4px) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body.v5-layout .main-nav .nav-item {
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
}

/* Mobile: 2-column grid — brand (1fr) + toggle (auto) */
@media (max-width: 1024px) {
  body.v5-layout {
    --header-nav-h: 68px;
  }

  body.v5-layout .header-nav-inner {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    min-height: var(--header-nav-h) !important;
    padding: 7px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.v5-layout .header-nav-inner > .header-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.v5-layout .header-nav-inner > .menu-toggle {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
  }

  /* Nav drawer: position: fixed, out of grid flow */
  body.v5-layout .header-nav-inner > .main-nav {
    grid-column: unset !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(340px, 92vw) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow: hidden !important;
    transform: translateX(105%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    padding: 0 !important;
  }

  /* Drawer lives in #mobileNavMount on mobile — same zero top padding */
  body.v5-layout #mobileNavMount .main-nav {
    padding: 0 !important;
  }

  body.v5-layout .mobile-nav-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    flex-shrink: 0 !important;
  }

  body.v5-layout .header-nav-inner > .main-nav.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.v5-layout .main-nav .nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 12px 16px 32px !important;
    margin: 0 !important;
    list-style: none !important;
    background: #ffffff !important;
    width: 100% !important;
  }

  body.v5-layout .main-nav .nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.v5-layout .main-nav .nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    font-size: 0.82rem !important;
    padding: 14px 14px !important;
    background: #ffffff !important;
    border-left: 3px solid transparent !important;
    border-radius: 8px !important;
    color: #3d3d3d !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 575.98px) {
  body.v5-layout {
    --header-nav-h: 60px;
  }

  body.v5-layout .header-nav-inner {
    padding: 7px 12px 7px 14px !important;
  }
}

body.v5-layout .requestquotesticky {
  display: none !important;
}

/* Product mega — 5 columns (matches homepage categories), tighter spacing */
@media (min-width: 1025px) {
  body.v5-layout .mega-menu.product-mega {
    width: min(920px, calc(100vw - 32px)) !important;
    max-width: min(920px, calc(100vw - 32px)) !important;
  }

  body.v5-layout .product-mega-inner {
    padding: 14px 16px 12px !important;
  }

  body.v5-layout .product-mega-head {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }

  body.v5-layout .product-mega-grid {
    grid-template-columns: repeat(5, max-content) !important;
    justify-content: space-between !important;
    gap: 10px 12px !important;
  }

  body.v5-layout .product-mega-col ul {
    padding-left: 0 !important;
  }

  body.v5-layout .product-mega-col ul li a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 2px 0 !important;
  }

  body.v5-layout .product-mega-col ul li a::before {
    content: "\203A" !important;
    margin-right: 6px !important;
    color: var(--green) !important;
    font-weight: 700 !important;
    font-size: 0.9em !important;
    display: inline !important;
  }

  body.v5-layout .product-mega-more {
    margin-top: 10px !important;
    padding-top: 10px !important;
  }

  body.v5-layout .product-mega-tags {
    gap: 5px 6px !important;
  }
}

body.v5-layout .product-mega-col h4,
body.v5-layout .product-mega-col h4 a {
  white-space: nowrap !important;
}

body.v5-layout .product-mega-more h4 {
  color: var(--green-dark) !important;
  letter-spacing: 0.1em !important;
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

/* Brand programs mega — emphasize "Approved" in La Quinta heading */
body.v5-layout .mega-menu.brand-programs-mega .mega-col h4 {
  font-weight: 500 !important;
}

body.v5-layout .mega-menu.brand-programs-mega .mega-col h4 strong {
  font-weight: 800 !important;
  color: var(--ink, #141414) !important;
}

/* La Quinta sub-list — no left vertical rule on desktop */
body.v5-layout .mega-menu.brand-programs-mega .mega-col .sub-list {
  padding-left: 0 !important;
  border-left: none !important;
}

@media (min-width: 1025px) {
  body.v5-layout .mega-menu.brand-programs-mega .mega-col .sub-list {
    margin-top: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
  }
}

/* Remove bullets / list-indent / ::before icons from both columns */
body.v5-layout .mega-menu.brand-programs-mega .mega-col ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Desktop mega menus — › arrow on all dropdown links (match Product mega) */
@media (min-width: 1025px) {
  body.v5-layout .mega-menu.brand-programs-mega .mega-col ul li a::before,
  body.v5-layout .mega-menu.brand-programs-mega .mega-col .sub-list li a::before,
  body.v5-layout .mega-menu.collections-mega .mega-col ul li a::before,
  body.v5-layout .mega-menu.mega-compact:not(.brand-programs-mega) .mega-col ul li a::before {
    content: "\203A" !important;
    margin-right: 6px !important;
    color: var(--green) !important;
    font-weight: 700 !important;
    font-size: 0.9em !important;
    display: inline !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col ul li a,
  body.v5-layout .mega-menu.brand-programs-mega .mega-col .sub-list li a,
  body.v5-layout .mega-menu.collections-mega .mega-col ul li a,
  body.v5-layout .mega-menu.mega-compact:not(.brand-programs-mega) .mega-col ul li a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col ul li a:hover,
  body.v5-layout .mega-menu.brand-programs-mega .mega-col .sub-list li a:hover,
  body.v5-layout .mega-menu.collections-mega .mega-col ul li a:hover,
  body.v5-layout .mega-menu.mega-compact:not(.brand-programs-mega) .mega-col ul li a:hover {
    color: var(--green-dark) !important;
    padding-left: 8px !important;
  }
}

/* Brand programs mega — tighter two-column layout */
@media (min-width: 1025px) {
  body.v5-layout .mega-menu.brand-programs-mega {
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-grid.cols-2 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 32px !important;
    width: auto !important;
    grid-template-columns: none !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* Resources compact mega — fit content, tighter padding & column gap */
@media (min-width: 1025px) {
  body.v5-layout .mega-menu.mega-compact:not(.brand-programs-mega) {
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 10px 14px 10px 12px !important;
  }

  body.v5-layout .mega-menu.mega-compact:not(.brand-programs-mega) .mega-grid.cols-2 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 8px 20px !important;
    width: auto !important;
    grid-template-columns: none !important;
  }

  body.v5-layout .mega-menu.mega-compact:not(.brand-programs-mega) .mega-col {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body.v5-layout .mega-menu.mega-compact:not(.brand-programs-mega) .mega-col ul {
    padding-left: 0 !important;
    margin: 0 !important;
  }
}

/* FF&E Collections mega — fit content, tighter left/right padding */
@media (min-width: 1025px) {
  body.v5-layout .mega-menu.collections-mega,
  body.v5-layout .mega-menu.wide.collections-mega {
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    padding: 12px 14px !important;
  }

  body.v5-layout .mega-menu.collections-mega .mega-grid.cols-4 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 4px 18px !important;
    width: auto !important;
    grid-template-columns: none !important;
  }

  body.v5-layout .mega-menu.collections-mega .mega-col {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body.v5-layout .mega-menu.collections-mega .mega-col ul {
    padding-left: 0 !important;
    margin: 0 !important;
  }

  body.v5-layout .mega-menu.collections-mega .mega-col a {
    padding: 5px 0 !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 1025px) {
  /* All mega nav-items static — dropdowns anchor to header pill bottom (like Product) */
  body.v5-layout .nav-item:has(.mega-menu) {
    position: static !important;
  }

  /* Sit below header pill with gap — never overlap the bar */
  body.v5-layout .main-nav .nav-item .mega-menu {
    top: calc(100% + 6px) !important;
    z-index: 1003 !important;
  }

  /* Brand programs — centered under header pill */
  body.v5-layout .mega-menu.brand-programs-mega {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(6px) !important;
  }

  /* Resources — right-align under header pill */
  body.v5-layout .nav-item:has(> .mega-menu.mega-compact:not(.brand-programs-mega)) .mega-menu {
    left: auto !important;
    right: 0 !important;
    transform: translateY(6px) !important;
  }

  /* Desktop mega menus — hover, focus-within, and JS .mega-open */
  body.v5-layout .nav-item:hover .mega-menu,
  body.v5-layout .nav-item:focus-within .mega-menu,
  body.v5-layout .nav-item.mega-open .mega-menu,
  body.v5-layout .nav-item-product:hover .mega-menu.product-mega,
  body.v5-layout .nav-item-product:focus-within .mega-menu.product-mega,
  body.v5-layout .nav-item-product.mega-open .mega-menu.product-mega,
  body.v5-layout .nav-item-collections:hover .mega-menu.collections-mega,
  body.v5-layout .nav-item-collections:focus-within .mega-menu.collections-mega,
  body.v5-layout .nav-item-collections.mega-open .mega-menu.collections-mega,
  body.v5-layout .nav-item-brands:hover .mega-menu,
  body.v5-layout .nav-item-brands:focus-within .mega-menu,
  body.v5-layout .nav-item-brands.mega-open .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 1003 !important;
  }

  body.v5-layout .nav-item-product:hover .mega-menu.product-mega,
  body.v5-layout .nav-item-product:focus-within .mega-menu.product-mega,
  body.v5-layout .nav-item-product.mega-open .mega-menu.product-mega {
    transform: translateX(-50%) translateY(0) !important;
  }

  body.v5-layout .nav-item-collections:hover .mega-menu.collections-mega,
  body.v5-layout .nav-item-collections:focus-within .mega-menu.collections-mega,
  body.v5-layout .nav-item-collections.mega-open .mega-menu.collections-mega {
    transform: translateX(-50%) translateY(0) !important;
  }

  body.v5-layout .nav-item-brands:hover .mega-menu.brand-programs-mega,
  body.v5-layout .nav-item-brands:focus-within .mega-menu.brand-programs-mega,
  body.v5-layout .nav-item-brands.mega-open .mega-menu.brand-programs-mega {
    transform: translateX(-50%) translateY(0) !important;
  }

  body.v5-layout .nav-item:has(> .mega-menu.mega-compact:not(.brand-programs-mega)):hover .mega-menu,
  body.v5-layout .nav-item:has(> .mega-menu.mega-compact:not(.brand-programs-mega)):focus-within .mega-menu,
  body.v5-layout .nav-item:has(> .mega-menu.mega-compact:not(.brand-programs-mega)).mega-open .mega-menu {
    transform: translateY(0) !important;
  }

  body.v5-layout .mega-menu::before {
    top: -22px !important;
    height: 22px !important;
  }
}

body.v5-layout .main-nav .nav-link span {
  color: inherit !important;
}

body.v5-layout .main-nav .nav-link svg {
  fill: currentColor !important;
  width: 10px !important;
  height: 10px !important;
}

body.v5-layout .main-nav .nav-link::after {
  left: 14px !important;
  right: 14px !important;
  bottom: 8px !important;
}

/* ============================================================
   HEADER — Responsive nav link sizing for ALL desktop sizes
   The base override (line 9-23) sets padding:14px 14px / 0.78rem
   with no media queries, so it overrides the tighter breakpoint
   values in home-v5.css for ALL widths below 1600px. We must
   re-apply compact sizes in this file at each range.
   ============================================================ */

/* Ultra-wide only: restore full nav labels when there is room */
@media (min-width: 1700px) {
  body.v5-layout .nav-label-full { display: inline !important; }
  body.v5-layout .nav-label-short { display: none !important; }

  body.v5-layout .main-nav .nav-link {
    font-size: 0.76rem !important;
    padding: 12px 12px !important;
  }
}

/* Wide desktop 1440–1599px */
@media (min-width: 1440px) and (max-width: 1599px) {
  body.v5-layout .main-nav .nav-link {
    font-size: 0.74rem !important;
    padding: 13px 12px !important;
  }
  body.v5-layout .header-nav-inner {
    gap: clamp(10px, 1.2vw, 18px) !important;
  }
}

/* Standard laptop 1367–1439px */
@media (min-width: 1367px) and (max-width: 1439px) {
  body.v5-layout .main-nav .nav-link {
    font-size: 0.72rem !important;
    padding: 12px 9px !important;
    letter-spacing: 0.04em !important;
  }
  body.v5-layout .main-nav .nav-link::after {
    left: 9px !important;
    right: 9px !important;
  }
  body.v5-layout .header-nav-inner {
    gap: clamp(4px, 0.7vw, 10px) !important;
  }
  body.v5-layout .header-brand .brand-text strong {
    font-size: 1.1rem !important;
  }
}

/* Common laptop 1281–1366px */
@media (min-width: 1281px) and (max-width: 1366px) {
  body.v5-layout .main-nav .nav-link {
    font-size: 0.68rem !important;
    padding: 11px 8px !important;
    letter-spacing: 0.03em !important;
  }
  body.v5-layout .main-nav .nav-link::after {
    left: 8px !important;
    right: 8px !important;
    bottom: 7px !important;
  }
  body.v5-layout .header-nav-inner {
    gap: clamp(2px, 0.5vw, 8px) !important;
  }
  body.v5-layout .header-brand .brand-text strong {
    font-size: 1.05rem !important;
  }
}

/* Small laptop 1025–1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
  body.v5-layout .main-nav .nav-link {
    font-size: clamp(0.6rem, 0.66vw, 0.66rem) !important;
    padding: 11px clamp(5px, 0.55vw, 8px) !important;
    letter-spacing: 0.03em !important;
  }
  body.v5-layout .main-nav .nav-link::after {
    left: clamp(5px, 0.55vw, 8px) !important;
    right: clamp(5px, 0.55vw, 8px) !important;
    bottom: 7px !important;
  }
  body.v5-layout .header-nav-inner {
    gap: clamp(0px, 0.3vw, 4px) !important;
  }
  body.v5-layout .header-brand .brand-text strong {
    font-size: 1rem !important;
    letter-spacing: 0.06em !important;
  }
}

/* Tablet-as-desktop 1025–1200px: maximum compression */
@media (min-width: 1025px) and (max-width: 1200px) {
  body.v5-layout .main-nav .nav-link {
    font-size: 0.6rem !important;
    padding: 10px 5px !important;
    letter-spacing: 0.02em !important;
  }
  body.v5-layout .main-nav .nav-link::after {
    left: 5px !important;
    right: 5px !important;
  }
  body.v5-layout .header-nav-inner {
    gap: 0px !important;
  }
  body.v5-layout .header-brand {
    padding-right: 6px !important;
  }
  body.v5-layout .header-brand .brand-text strong {
    font-size: 0.95rem !important;
  }
}

body.v5-layout .main-nav .nav-link:hover,
body.v5-layout .main-nav .nav-item:hover > .nav-link,
body.v5-layout .main-nav .nav-item:hover > .nav-link span,
body.v5-layout .main-nav .nav-link.active,
body.v5-layout .main-nav .nav-link.active span {
  color: #8dc63f !important;
}

body.v5-layout .utility-bar a {
  color: rgba(255, 255, 255, 0.92);
}

body.v5-layout .utility-bar a:hover {
  color: #8dc63f;
}

/* Show content before reveal JS runs; no-reveal-js removed once observer is ready */
html.no-reveal-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

body.home-v5-page {
  --utility-h: 0px;
  --header-total: var(--header-nav-h);
}

/* Single-slide V5 hero — image fills like reference video */
body.home-v5-page .hero .hero-slide {
  opacity: 1;
}

/* Desktop hero — clear text on video, no background panel */
@media (min-width: 769px) {
  body.home-v5-page .hero .hero-copy {
    padding: 0 clamp(16px, 4vw, 40px);
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  body.home-v5-page .hero .hero-copy h1 {
    font-family: "Cormorant Garamond", serif !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: clamp(1.85rem, 3.4vw, 3.25rem) !important;
    line-height: 1.14 !important;
    -webkit-text-stroke: 0 !important;
    paint-order: normal;
    text-shadow:
      0 0 24px rgba(0, 0, 0, 0.95),
      0 0 48px rgba(0, 0, 0, 0.65),
      0 2px 4px rgba(0, 0, 0, 0.92),
      0 4px 14px rgba(0, 0, 0, 0.75),
      0 8px 28px rgba(0, 0, 0, 0.45) !important;
  }

  body.home-v5-page .hero .hero-title-accent {
    color: #b8ef5a !important;
    display: inline !important;
    margin-top: 0 !important;
    -webkit-text-stroke: 0 !important;
    paint-order: normal;
    text-shadow:
      0 0 24px rgba(0, 0, 0, 0.98),
      0 0 48px rgba(0, 0, 0, 0.72),
      0 2px 4px rgba(0, 0, 0, 0.95),
      0 4px 14px rgba(0, 0, 0, 0.8),
      0 0 32px rgba(0, 0, 0, 0.55) !important;
  }

  body.home-v5-page .hero-overlay {
    background:
      linear-gradient(to bottom,
        rgba(0, 0, 0, 0.24) 0%,
        transparent 18%),
      linear-gradient(to top,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.16) 28%,
        transparent 58%),
      radial-gradient(ellipse 85% 55% at 50% 54%,
        rgba(0, 0, 0, 0.18) 0%,
        transparent 72%) !important;
  }
}

@media (min-width: 1024px) {
  body.home-v5-page .hero .hero-copy h1 .hero-title-line {
    white-space: nowrap;
  }
}

/* Hero title experiment — 2 rows: line 1 + "Solutions for Hoteliers" */
body.home-v5-page .hero .hero-copy h1 .hero-title-line {
  display: block;
}

body.home-v5-page .hero .hero-copy h1 .hero-title-line + .hero-title-line {
  margin-top: 0.08em;
}

body.home-v5-page .hero .btn.btn-primary {
  background: #8dc63f !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 10px 24px rgba(141, 198, 63, 0.32) !important;
}

body.home-v5-page .hero .btn.btn-primary:hover {
  background: #6fa82e !important;
  color: #fff !important;
}

body.home-v5-page .hero .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 0.6s ease, transform 9s ease-out;
}

body.home-v5-page .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}

body.home-v5-page .hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 9s ease-out, opacity 0.6s ease;
  filter: brightness(1.05) contrast(1.04) saturate(1.08);
}

body.home-v5-page .hero-slide.active .hero-poster img {
  transform: scale(1);
}

body.home-v5-page .hero.hero-video-ready .hero-video {
  opacity: 1;
}

body.home-v5-page .hero.hero-video-ready .hero-poster {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 769px) {
  body.home-v5-page .hero-poster--mobile {
    display: none !important;
  }

  body.home-v5-page .hero .hero-video {
    opacity: 1;
  }
}

/* Restore a subtle gradient overlay so text stays readable on any video frame (mobile overrides below) */
@media (min-width: 769px) {
  body.home-v5-page .hero-overlay {
    display: block !important;
  }
}

@media (max-width: 768px) {
  body.home-v5-page .hero-overlay {
    display: none !important;
  }
}

body.v5-layout .site-footer .footer-grid {
  grid-template-columns: 1.35fr 1fr 1fr 0.75fr 1.15fr;
}

body.v5-layout .site-footer .footer-brand p,
body.v5-layout .site-footer .footer-brand p strong {
  color: #fff !important;
}

body.v5-layout .site-footer .footer-brand a {
  color: #fff !important;
}

body.v5-layout .site-footer .footer-brand a:hover {
  color: #8dc63f !important;
}

/* Footer nav links — must stay white on dark footer (inner-page green link rules load after this file) */
body.v5-layout .site-footer .footer-col a {
  color: rgba(255, 255, 255, 0.82) !important;
}

body.v5-layout .site-footer .footer-col a:hover {
  color: #fff !important;
}

body.v5-layout .site-footer .footer-col h4 {
  color: var(--green) !important;
}

/* Align link text with column headings (remove default list indent) */
body.v5-layout .site-footer .footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.v5-layout .site-footer .footer-col ul li {
  padding: 0 !important;
  margin: 0 !important;
}

body.v5-layout .site-footer .footer-col li + li {
  margin-top: 8px !important;
}

body.v5-layout .site-footer .footer-bottom,
body.v5-layout .site-footer .footer-bottom span {
  color: rgba(255, 255, 255, 0.62) !important;
}

body.v5-layout .site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.v5-layout .site-footer .footer-social a {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.v5-layout .site-footer .footer-social a:hover {
  color: #fff !important;
}

/* Footer certification logos — AAHOA/WBENC white, Georgia SBSD full color */
body.v5-layout .site-footer .footer-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 14px;
  width: 100%;
  flex-wrap: nowrap;
}

body.v5-layout .site-footer .footer-logo a {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  max-width: 32%;
  line-height: 0;
}

body.v5-layout .site-footer .footer-logo a img {
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

body.v5-layout .site-footer .footer-logo .footer-logo-georgia {
  height: 58px;
  width: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}

body.v5-layout .site-footer .footer-dmca {
  margin-left: auto;
  line-height: 0;
  flex-shrink: 0;
}

body.v5-layout .site-footer .footer-dmca .dmca-badge img {
  display: block;
  width: 100px;
  height: auto;
  filter: none !important;
  opacity: 1 !important;
}

body.home-v5-page .categories .section-eyebrow {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.06em;
}

body.home-v5-page .brand-programs .section-eyebrow,
body.home-v5-page .brand-programs .bp-head .section-eyebrow {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.06em;
}

body.home-v5-page .why-choose .section-eyebrow {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.06em;
}

body.home-v5-page .why-cta {
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

body.home-v5-page .why-media {
  border-radius: clamp(18px, 1.6vw, 24px) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.home-v5-page .why-media img {
  width: 100% !important;
  height: auto !important;
  max-width: 640px !important;
  max-height: 560px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: clamp(18px, 1.6vw, 24px) !important;
}

body.home-v5-page .industries .section-eyebrow {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.06em;
}

body.home-v5-page .industry-label {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.home-v5-page .industry-card:hover .industry-label {
  opacity: 0;
  visibility: hidden;
}

body.home-v5-page .industry-description {
  background: linear-gradient(to top, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.32) 100%) !important;
}

body.home-v5-page .process .section-eyebrow {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.06em;
}

body.home-v5-page .portfolio-ba .section-eyebrow {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.06em;
}

body.home-v5-page .testimonials .section-eyebrow {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.06em;
}

body.home-v5-page .process .section-title {
  font-family: "DM Sans", system-ui, sans-serif !important;
}

body.home-v5-page .process .section-desc {
  font-family: "DM Sans", system-ui, sans-serif !important;
}

@media (max-width: 640px) {
  body.home-v5-page .brand-programs .bp-head .section-eyebrow {
    font-size: 1.05rem !important;
  }
}

/* Section headers — tighter title / description rhythm sitewide */
body.home-v5-page .section-head {
  gap: 8px;
  margin-bottom: 28px;
}

body.home-v5-page .section-head.centered {
  gap: 8px;
}

body.home-v5-page .section-eyebrow {
  margin-bottom: 0;
}

body.home-v5-page .section-title {
  margin: 0;
}

body.home-v5-page .section-desc {
  margin-top: 0;
  line-height: 1.55;
  font-family: "DM Sans", system-ui, sans-serif;
}

body.home-v5-page .why-desc,
body.home-v5-page .estimate-copy > p,
body.home-v5-page .hero-copy p {
  font-family: "DM Sans", system-ui, sans-serif;
}

body.home-v5-page .bp-head .section-desc {
  margin-top: 8px;
}

body.home-v5-page .portfolio-ba .section-head .btn.btn-primary {
  border-radius: 999px !important;
  padding: 11px 28px;
  letter-spacing: 0.1em;
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 24px rgba(141, 198, 63, 0.32) !important;
}

body.home-v5-page .portfolio-ba .section-head .btn.btn-primary:hover,
body.home-v5-page .portfolio-ba .section-head .btn.btn-primary:focus,
body.home-v5-page .portfolio-ba .section-head .btn.btn-primary:focus-visible,
body.home-v5-page .portfolio-ba .section-head .btn.btn-primary:active {
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 24px rgba(141, 198, 63, 0.32) !important;
}

body.home-v5-page .faq-more .btn.btn-primary {
  border-radius: 999px !important;
  padding: 11px 28px;
  letter-spacing: 0.1em;
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 24px rgba(141, 198, 63, 0.32) !important;
}

body.home-v5-page .faq-more .btn.btn-primary:hover,
body.home-v5-page .faq-more .btn.btn-primary:focus,
body.home-v5-page .faq-more .btn.btn-primary:focus-visible,
body.home-v5-page .faq-more .btn.btn-primary:active {
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 24px rgba(141, 198, 63, 0.32) !important;
}

body.home-v5-page .why-point-head {
  margin-bottom: 8px;
}

body.home-v5-page .bp-card-head {
  margin-bottom: 12px;
}

body.home-v5-page .ba-body h3 {
  margin-bottom: 2px;
}

body.home-v5-page .estimate-copy h2 {
  margin-bottom: 10px;
}

body.home-v5-page .categories .ptab-card h4 {
  margin-top: 8px;
  text-transform: none;
}

body.home-v5-page .categories .ptab-view-all-btn {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   PRODUCT CATEGORIES — Full responsive overhaul
   Base CSS uses clamp(150px,15vw,196px) card width which is fine
   on large screens but cards become too small or overflow on
   small laptops and mobile. Fix all breakpoints here.
   ============================================================ */

/* ---- Large desktop 1440px+ ---- */
@media (min-width: 1440px) {
  body.home-v5-page .categories .ptab-card {
    width: clamp(170px, 13vw, 200px) !important;
  }
}

/* ---- Standard desktop 1025–1439px ---- */
@media (min-width: 1025px) and (max-width: 1439px) {
  body.home-v5-page .categories .ptab-card {
    width: clamp(140px, 14vw, 185px) !important;
  }
  body.home-v5-page .categories .ptab-panel {
    gap: 16px !important;
  }
}

/* ---- Small laptop 1025–1280px ---- */
@media (min-width: 1025px) and (max-width: 1280px) {
  body.home-v5-page .categories .ptab-card {
    width: clamp(130px, 13vw, 170px) !important;
  }
  body.home-v5-page .categories .ptab-panel {
    gap: 14px !important;
  }
  body.home-v5-page .categories .ptab-btn {
    padding: 9px 18px !important;
    font-size: 0.8rem !important;
  }
}

/* ---- Tablet landscape 768–1024px ---- */
@media (max-width: 1024px) {
  body.home-v5-page .categories .ptab-tabs {
    gap: 8px !important;
    margin-top: 24px !important;
  }
  body.home-v5-page .categories .ptab-btn {
    padding: 9px 16px !important;
    font-size: 0.78rem !important;
  }
  /* 3 cards per row on tablet */
  body.home-v5-page .categories .ptab-panel {
    gap: 16px !important;
    justify-content: center !important;
  }
  body.home-v5-page .categories .ptab-card {
    width: calc((100% - 32px) / 3) !important;
    min-width: 120px !important;
    max-width: 200px !important;
  }
}

/* ---- Tablet portrait 600–768px ---- */
@media (max-width: 768px) {
  body.home-v5-page .categories {
    padding-top: clamp(36px, 6vw, 52px) !important;
    padding-bottom: clamp(20px, 3.5vw, 28px) !important;
  }
  body.home-v5-page .categories .section-head {
    margin-bottom: 20px !important;
  }
  body.home-v5-page .categories .ptab-tabs {
    gap: 7px !important;
    margin-top: 20px !important;
    justify-content: center !important;
  }
  body.home-v5-page .categories .ptab-btn {
    padding: 8px 14px !important;
    font-size: 0.75rem !important;
    border-radius: 999px !important;
  }
  body.home-v5-page .categories .ptab-panels {
    margin-top: 24px !important;
  }
  /* 3 cards per row */
  body.home-v5-page .categories .ptab-panel {
    gap: 12px !important;
    justify-content: center !important;
  }
  body.home-v5-page .categories .ptab-card {
    width: calc((100% - 24px) / 3) !important;
    min-width: 100px !important;
    max-width: 160px !important;
  }
  body.home-v5-page .categories .ptab-card h4 {
    font-size: 0.72rem !important;
    margin-top: 8px !important;
    line-height: 1.3 !important;
  }
}

/* ---- Mobile ≤600px — wrap all tabs so every tab is visible ---- */
@media (max-width: 600px) {
  body.home-v5-page .categories .ptab-tabs {
    flex-wrap: wrap !important;
    overflow: visible !important;
    justify-content: center !important;
    gap: 8px !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.home-v5-page .categories .ptab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 7px 14px !important;
    font-size: 0.72rem !important;
  }
  /* 2 cards per row on small mobile */
  body.home-v5-page .categories .ptab-panel {
    gap: 10px !important;
  }
  body.home-v5-page .categories .ptab-card {
    width: calc((100% - 10px) / 2) !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  body.home-v5-page .categories .ptab-card h4 {
    font-size: 0.7rem !important;
    margin-top: 7px !important;
  }
}

/* ---- Very small mobile ≤360px ---- */
@media (max-width: 360px) {
  body.home-v5-page .categories .ptab-card {
    width: calc((100% - 8px) / 2) !important;
  }
  body.home-v5-page .categories .ptab-card h4 {
    font-size: 0.65rem !important;
  }
  body.home-v5-page .categories .ptab-btn {
    padding: 7px 12px !important;
    font-size: 0.68rem !important;
  }
}
/* ============================================================
   Brand Programs — Appinventiv-style portfolio slider
   ============================================================ */

/* Tighter gap between Product Categories and Brand Programs */
body.home-v5-page .categories {
  padding-bottom: clamp(16px, 2vw, 28px) !important;
}

/* dark-bg section pb0 */
body.home-v5-page .brand-programs.dark-bg {
  background: var(--bp-bg, #111);
  overflow: hidden;
  padding: clamp(24px, 3vw, 40px) 0 0;
  position: relative;
}

body.home-v5-page .brand-programs.pb0 {
  padding-bottom: 0;
}

body.home-v5-page .bp-layout-sm .bp-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(20px, 2.5vw, 32px) !important;
}

body.home-v5-page .bp-head .section-desc {
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.7;
  opacity: 0.82;
}

/* Full-width slider wrap (appi-portfolio-cards-slider head-gap) */
body.home-v5-page .bp-slider-wrap.head-gap {
  padding-top: 4px;
}

body.home-v5-page .bp-slider__inner {
  max-width: 100%;
}

/* Nav inside slider */
body.home-v5-page .bp-slider__nav.bp-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
  margin: 0 auto clamp(20px, 2.5vw, 36px) !important;
  padding: 0 var(--gutter, 24px);
  flex-wrap: wrap;
}

/* Square pill default, rounded when active — like reference */
body.home-v5-page .bp-tab {
  border-radius: 6px !important;
  padding: 10px 22px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: border-radius 0.25s ease, background 0.25s ease, color 0.25s ease;
}

body.home-v5-page a.bp-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

body.home-v5-page .bp-tab.active,
body.home-v5-page .bp-tab[aria-selected="true"] {
  border-radius: 999px !important;
}

/* portfolio-slider-collection */
body.home-v5-page .bp-slider-collection {
  background: transparent;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(16px, 2vw, 28px) 0 clamp(28px, 4vw, 52px);
  position: relative;
  touch-action: pan-x;
  user-select: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}

body.home-v5-page .bp-slider-collection[data-bp-drag="grabbing"] {
  cursor: grabbing;
}

/* DRAG follower */
body.home-v5-page .bp-drag-hint {
  position: fixed;
  z-index: 1200;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -58%) scale(0.6);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body.home-v5-page .bp-drag-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, -58%) scale(1);
}

/* gsap-slider__list — circular wheel pivot, 20deg steps */
body.home-v5-page .bp-slider__list {
  position: relative;
  height: clamp(380px, 46vw, 500px);
  padding-top: clamp(8px, 1.2vw, 16px);
  perspective: 1800px;
  --bp-step: 24deg;
  --bp-drag-rot: 0deg;
  --bp-pivot: 1200px;
  overflow: visible;
}

/* bp-slider__item — uniform size; scale only for emphasis (prevents gap jumps) */
body.home-v5-page .bp-card.bp-slider__item {
  top: 0;
  width: clamp(300px, 28vw, 420px);
  min-height: clamp(300px, 34vw, 380px);
  margin-left: 0;
  margin-top: 0;
  padding: 0;
  border-radius: clamp(20px, 1.8vw, 28px);
  background: var(--card-bg, #fff);
  color: var(--card-ink, #141414);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
  transform-origin: 50% calc(100% + var(--bp-pivot, 1200px));
  transform:
    translate3d(-50%, 0, 0)
    rotate(calc(var(--off, 0) * var(--bp-step, 24deg) + var(--bp-drag-rot, 0deg)))
    scale3d(var(--bp-scale, 0.9), var(--bp-scale, 0.9), 1);
  left: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    opacity 0.35s ease,
    visibility 0.35s ease;
}

body.home-v5-page .bp-slider-collection.bp-is-dragging .bp-card,
body.home-v5-page .bp-slider__list.bp-is-dragging .bp-card {
  transition-duration: 0s;
  transition-delay: 0s;
}

/* active / inview / not-active — like Appinventiv */
body.home-v5-page .bp-card[data-bp-status="inview"] {
  --bp-scale: 0.92;
  pointer-events: auto;
}

body.home-v5-page .bp-card[data-bp-status="not-active"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.home-v5-page .bp-card.active,
body.home-v5-page .bp-card[data-bp-status="active"] {
  --bp-scale: 1;
  pointer-events: auto;
  transform:
    translate3d(-50%, 0, 0)
    rotate(var(--bp-drag-rot, 0deg))
    scale3d(1, 1, 1) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.60);
  z-index: 100 !important;
}

/* portfolio-card — whole card is a link */
body.home-v5-page .bp-portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: inherit;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

body.home-v5-page .bp-card-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: inherit;
}

body.home-v5-page .bp-card-header-block {
  flex: 1 1 auto;
  padding: clamp(14px, 1.8vw, 22px) clamp(16px, 2vw, 24px) clamp(8px, 1vw, 12px);
  display: flex;
  flex-direction: column;
}

body.home-v5-page .bp-card-head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 16px);
  margin-bottom: clamp(10px, 1.2vw, 14px);
}

body.home-v5-page .bp-card-title {
  flex: 1;
  min-width: 0;
}

body.home-v5-page .bp-card-head h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--card-ink);
  margin: 0 0 2px;
}

body.home-v5-page .bp-card-sub {
  display: block;
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-muted);
}

body.home-v5-page .bp-logo {
  flex-shrink: 0;
  width: clamp(48px, 4.8vw, 58px);
  height: clamp(48px, 4.8vw, 58px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

body.home-v5-page .bp-logo img {
  width: clamp(38px, 3.6vw, 46px);
  height: clamp(28px, 2.8vw, 36px);
  object-fit: contain;
}

body.home-v5-page .bp-card-desc {
  font-size: clamp(0.8rem, 0.92vw, 0.88rem);
  line-height: 1.55;
  color: var(--card-muted);
  margin: 0 0 clamp(10px, 1.2vw, 14px);
}

body.home-v5-page .bp-stats.bp-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1vw, 10px);
  margin: 0;
  padding: clamp(12px, 1.4vw, 16px) 0 0;
  border-top: 1.5px solid var(--card-line);
}

body.home-v5-page .bp-stat {
  padding: clamp(8px, 1vw, 10px);
  border-radius: 8px;
  background: var(--card-chip, rgba(0, 0, 0, 0.04));
}

body.home-v5-page .bp-stat strong {
  display: block;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--card-ink);
  margin-bottom: 3px;
}

body.home-v5-page .bp-stat span {
  display: block;
  font-size: clamp(0.64rem, 0.75vw, 0.72rem);
  line-height: 1.4;
  color: var(--card-muted);
}

/* portfolio-card-footer — image only */
body.home-v5-page .bp-card-footer {
  flex-shrink: 0;
  padding: 0 clamp(12px, 1.6vw, 18px) clamp(12px, 1.6vw, 16px);
}

body.home-v5-page .bp-card-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: clamp(12px, 1.2vw, 16px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px var(--card-line, rgba(0, 0, 0, 0.08));
}

body.home-v5-page .bp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---- 1200px ---- */
@media (max-width: 1200px) {
  body.home-v5-page .bp-slider__list {
    height: clamp(360px, 44vw, 460px);
    padding-top: clamp(8px, 1vw, 14px);
  }

  body.home-v5-page .bp-card.bp-slider__item {
    width: clamp(280px, 30vw, 400px);
    min-height: clamp(290px, 32vw, 360px);
    transform:
      translate3d(-50%, 0, 0)
      rotate(calc(var(--off, 0) * var(--bp-step, 22deg) + var(--bp-drag-rot, 0deg)))
      scale3d(var(--bp-scale, 0.9), var(--bp-scale, 0.9), 1);
    transform-origin: 50% calc(100% + var(--bp-pivot, 1000px));
  }

  body.home-v5-page .bp-card.active,
  body.home-v5-page .bp-card[data-bp-status="active"] {
    transform:
      translate3d(-50%, 0, 0)
      rotate(var(--bp-drag-rot, 0deg))
      scale3d(1, 1, 1) !important;
  }
}

/* ---- Mobile — 3 cards, center big, sides half-visible ---- */
@media (max-width: 768px) {
  body.home-v5-page .bp-slider__nav.bp-tabs {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(16px, 4vw, 28px) !important;
    padding: 0 12px;
  }

  body.home-v5-page .bp-tab-track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 8px;
    padding: 4px 2px;
    justify-content: flex-start;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  body.home-v5-page .bp-tab-track::-webkit-scrollbar {
    display: none;
  }

  body.home-v5-page .bp-tab {
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 8px 14px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  body.home-v5-page .bp-arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }

  body.home-v5-page .bp-arrow svg {
    width: 16px;
    height: 16px;
  }

  body.home-v5-page .bp-slider-collection {
    cursor: default;
    touch-action: pan-y pinch-zoom;
    padding: clamp(20px, 4vw, 32px) 0 clamp(52px, 11vw, 68px);
    overflow: hidden;
  }

  body.home-v5-page .bp-slider-collection.bp-is-dragging {
    touch-action: pan-x;
    cursor: grabbing;
  }

  body.home-v5-page .bp-drag-hint {
    display: none;
  }

  body.home-v5-page .bp-slider__list {
    height: clamp(440px, 116vw, 520px);
    padding-top: clamp(12px, 2.5vw, 20px);
    --bp-step: 28deg;
  }

  body.home-v5-page .bp-card.bp-slider__item {
    top: 0;
    width: min(78vw, 290px);
    min-height: clamp(260px, 72vw, 320px);
    margin-top: 0;
    transform:
      translate3d(-50%, 0, 0)
      rotate(calc(var(--off, 0) * var(--bp-step, 28deg) + var(--bp-drag-rot, 0deg)))
      scale3d(var(--bp-scale, 0.86), var(--bp-scale, 0.86), 1);
    transform-origin: 50% calc(100% + var(--bp-pivot, 520px));
  }

  /* Uniform size — scale only distinguishes active vs inview */
  body.home-v5-page .bp-card.active,
  body.home-v5-page .bp-card[data-bp-status="active"] {
    --bp-scale: 1;
    transform:
      translate3d(-50%, 0, 0)
      rotate(var(--bp-drag-rot, 0deg))
      scale3d(1, 1, 1) !important;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
  }

  body.home-v5-page .bp-card[data-bp-status="inview"] {
    --bp-scale: 0.86;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    filter: brightness(0.92);
  }

  body.home-v5-page .bp-card[data-bp-status="not-active"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.home-v5-page .bp-card-header-block {
    padding: 14px 14px 8px;
  }

  body.home-v5-page .bp-card-head h3 {
    font-size: 1rem;
  }

  body.home-v5-page .bp-card-sub {
    font-size: 0.62rem;
  }

  body.home-v5-page .bp-card-desc {
    font-size: 0.76rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  body.home-v5-page .bp-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  body.home-v5-page .bp-logo img {
    width: 34px;
    height: 26px;
  }

  body.home-v5-page .bp-stat strong {
    font-size: 0.9rem;
  }

  body.home-v5-page .bp-stat span {
    font-size: 0.6rem;
  }

  body.home-v5-page .bp-card-footer {
    padding: 0 10px 10px;
  }

  body.home-v5-page .bp-card-image {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  body.home-v5-page .bp-tab {
    padding: 7px 12px;
    font-size: 0.62rem;
  }

  body.home-v5-page .bp-arrow {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }

  body.home-v5-page .bp-slider__list {
    height: clamp(420px, 120vw, 500px);
    padding-top: 14px;
  }

  body.home-v5-page .bp-card.bp-slider__item {
    width: min(80vw, 280px);
    min-height: clamp(250px, 70vw, 310px);
  }
}

body.home-v5-page .categories .ptab-img {
  background: none;
  border: none;
}

body.home-v5-page .categories .ptab-img img {
  object-fit: cover;
  object-position: center;
  filter: none !important;
  mix-blend-mode: normal;
  padding: 0;
  background: none;
}

/* Tighter gap between Industries and How It Works */
body.home-v5-page .industries {
  padding-bottom: clamp(16px, 2vw, 28px) !important;
}

/* How It Works — clean cards with subtle connector line (no arrows) */
body.home-v5-page .process {
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
  padding-top: clamp(24px, 3vw, 40px) !important;
  padding-bottom: clamp(12px, 2vw, 24px) !important;
}

body.home-v5-page .portfolio-ba {
  padding-top: clamp(12px, 2vw, 24px) !important;
  padding-bottom: clamp(12px, 2vw, 24px) !important;
}

body.home-v5-page .testimonials {
  padding-top: clamp(12px, 2vw, 24px) !important;
}

body.home-v5-page .process-visual {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
  position: relative;
  padding-top: 4px;
}

body.home-v5-page .process-visual::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--accent-rgb), 0.22) 12%,
    rgba(var(--accent-rgb), 0.35) 50%,
    rgba(var(--accent-rgb), 0.22) 88%,
    transparent 100%
  );
  z-index: 0;
  display: block !important;
  border-radius: 2px;
}

body.home-v5-page .process-visual::after {
  display: none !important;
}

body.home-v5-page .process-card {
  position: relative;
  z-index: 1;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 16px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition:
    transform 0.35s var(--ease, ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
}

body.home-v5-page .process-card::before {
  display: none !important;
}

body.home-v5-page .process-card::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  opacity: 1 !important;
  inset: auto 0 auto 0;
  border: none;
  border-radius: 0;
}

body.home-v5-page .process-card:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 16px 36px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-6px) !important;
}

body.home-v5-page .process-card:hover::after {
  transform: scaleX(1);
}

body.home-v5-page .process-card .step-num {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  background: var(--white) !important;
  border: 2px solid rgba(var(--accent-rgb), 0.38);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

body.home-v5-page .process-card .step-num::before,
body.home-v5-page .process-card .step-num::after {
  display: none !important;
}

body.home-v5-page .process-card:hover .step-num {
  background: var(--green) !important;
  color: var(--white) !important;
  border-color: var(--green) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.28);
}

body.home-v5-page .process-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

body.home-v5-page .process-card:hover h4 {
  color: var(--green-dark);
}

body.home-v5-page .process-card p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 1100px) {
  body.home-v5-page .process-visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  body.home-v5-page .process-visual::before {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.home-v5-page .process-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 560px) {
  body.home-v5-page .process-visual {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 18px;
  }

  body.home-v5-page .process-visual::before {
    display: block !important;
    top: 28px;
    bottom: 28px;
    left: 43px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(var(--accent-rgb), 0.15) 0%,
      rgba(var(--accent-rgb), 0.35) 50%,
      rgba(var(--accent-rgb), 0.15) 100%
    );
  }

  body.home-v5-page .process-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 16px;
    align-items: start;
    text-align: left;
    padding: 18px 18px 18px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  body.home-v5-page .process-card:last-child {
    margin-bottom: 0;
  }

  body.home-v5-page .process-card .step-num {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 52px;
    height: 52px;
    margin: 0;
    font-size: 0.95rem;
  }

  body.home-v5-page .process-card h4 {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.92rem;
    margin-bottom: 4px;
    align-self: end;
  }

  body.home-v5-page .process-card p {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.8rem;
    align-self: start;
  }
}

/* CTA strip — light overlay + black letter outline for readable text */
body.home-v5-page .cta-strip-inner::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.12) 45%,
      rgba(0, 0, 0, 0.18) 100%) !important;
  pointer-events: none;
}

body.home-v5-page .cta-strip-inner::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(95, 140, 45, 0.12) 0%, transparent 58%) !important;
  pointer-events: none;
}

body.home-v5-page .cta-strip-content {
  position: relative;
  z-index: 3;
}

/* CTA strip — vertically center text with button */
body.home-v5-page .cta-strip-inner {
  align-items: center !important;
  padding-top: 22px;
  padding-bottom: 22px;
}

body.home-v5-page .cta-strip-content {
  align-items: center !important;
  min-height: 44px;
}

body.home-v5-page .cta-strip-inner p {
  margin: 0 !important;
  padding: 0;
  line-height: 1.35;
  font-size: clamp(1.2rem, 2.2vw, 1.52rem);
  display: flex;
  align-items: center;
  align-self: center;
  color: #fff !important;
  -webkit-text-stroke: 0.75px #000;
  paint-order: stroke fill;
  text-shadow:
    -1px -1px 0 #000,
    0 -1px 0 #000,
    1px -1px 0 #000,
    -1px 0 0 #000,
    1px 0 0 #000,
    -1px 1px 0 #000,
    0 1px 0 #000,
    1px 1px 0 #000 !important;
}

body.home-v5-page .cta-strip-btn {
  align-self: center;
  margin: 0;
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  padding: 14px 30px;
}

@media (max-width: 640px) {
  body.home-v5-page .cta-strip-inner::before {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.14) 50%,
        rgba(0, 0, 0, 0.2) 100%) !important;
  }

  body.home-v5-page .cta-strip-inner p {
    -webkit-text-stroke: 0.65px #000;
  }

  body.home-v5-page .cta-strip-content {
    min-height: 0;
  }
}

/* Stats — green icon circles instead of black */
body.home-v5-page .stat-icon-wrap {
  background: var(--green) !important;
  border-color: rgba(var(--accent-rgb), 0.55) !important;
}

body.home-v5-page .stat-card:hover .stat-icon-wrap {
  background: var(--green-dark) !important;
  border-color: var(--green-dark) !important;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.28) !important;
}

/* Stats — make all four cards equal width */
body.home-v5-page .stats-grid {
  align-items: stretch;
}

body.home-v5-page .stat-card {
  justify-self: stretch !important;
  width: 100% !important;
}

body.home-v5-page .stat-label {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-size: 0.7rem !important;
}

body.home-v5-page .stat-num .stat-plus {
  font-size: 1.25em;
  font-weight: 800;
  line-height: 1;
}

/* Get in touch — perk checkmarks (encoding-safe) */
body.home-v5-page .estimate-perk::before {
  content: "\2713";
  flex-shrink: 0;
  color: var(--green);
  font-weight: 700;
}

/* Get in touch — form labels and tags in title case */
body.home-v5-page .estimate-card .form-group label,
body.home-v5-page .estimate-card .interest-label {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.8rem;
}

/* Get in touch — isolate homepage form from contact page / legacy modal styles (styles.min.css) */
body.home-v5-page .estimate-card .form-group input,
body.home-v5-page .estimate-card .form-group textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  padding: 9px 11px !important;
  margin-bottom: 0 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #141414 !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 0.86rem !important;
  line-height: 1.4;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

body.home-v5-page .estimate-card .form-group input:focus,
body.home-v5-page .estimate-card .form-group textarea:focus {
  outline: none;
  border-color: #8dc63f !important;
}

body.home-v5-page .estimate-card .form-group textarea {
  min-height: 72px;
  max-height: 96px;
  resize: vertical;
}

body.home-v5-page .estimate-card .interest-tag {
  appearance: none;
  -webkit-appearance: none;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 11px !important;
  border: 1.5px solid #8dc63f !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #141414 !important;
  cursor: pointer;
  line-height: 1.3;
}

body.home-v5-page .estimate-card .interest-tag:hover,
body.home-v5-page .estimate-card .interest-tag.active {
  background: #8dc63f !important;
  border-color: #8dc63f !important;
  color: #fff !important;
}

body.home-v5-page .estimate-card .quote-form-actions .btn.btn-primary {
  width: 100%;
  border: none !important;
  border-radius: 999px !important;
  background: #8dc63f !important;
  color: #fff !important;
  padding: 13px 20px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(141, 198, 63, 0.32) !important;
}

body.home-v5-page .estimate-card .quote-form-actions .btn.btn-primary:hover,
body.home-v5-page .estimate-card .quote-form-actions .btn.btn-primary:focus,
body.home-v5-page .estimate-card .quote-form-actions .btn.btn-primary:active {
  background: #6fa82e !important;
  border-color: #6fa82e !important;
  color: #fff !important;
}

body.home-v5-page .estimate-card .quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 12px;
}

body.home-v5-page .estimate-card .interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

body.home-v5-page .estimate-card .quote-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

/* Homepage quote modal — override legacy contact/modal form spacing from styles.min.css */
body.home-v5-page #staticBackdrop .modal-body .form-control {
  margin-bottom: 10px !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
}

body.home-v5-page #staticBackdrop .modal-footer {
  padding: 8px 22px 20px !important;
  justify-content: flex-start !important;
}

body.home-v5-page #staticBackdrop .items_collection {
  margin-bottom: 12px !important;
}

body.home-v5-page #staticBackdrop .items_collection label.btn,
body.home-v5-page #staticBackdrop .items_collection label.btn-default {
  text-transform: none;
  letter-spacing: 0.02em;
}

body.v5-layout .quote-tab {
  display: block;
}

@media (max-width: 768px) {
  body.v5-layout .quote-tab {
    top: calc(50% + 28px) !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    padding: 16px 8px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    z-index: 901;
    border-radius: 10px 0 0 10px;
  }
}

@media (max-width: 575px) {
  body.v5-layout .quote-tab {
    top: calc(50% + 28px) !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 991px) {
  body.v5-layout .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  body.v5-layout .site-footer .footer-top {
    padding: 36px 0 28px;
  }

  body.v5-layout .site-footer .container.footer-grid,
  body.v5-layout .site-footer .footer-bottom.container {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(20px, 5.5vw, 28px);
    box-sizing: border-box;
  }

  body.v5-layout .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  body.v5-layout .site-footer .footer-brand,
  body.v5-layout .site-footer .footer-map-col {
    grid-column: 1 / -1;
  }

  body.v5-layout .site-footer .footer-brand .brand-logo {
    width: min(220px, 58vw);
    height: auto;
  }

  body.v5-layout .site-footer .footer-brand p {
    font-size: 0.86rem;
    line-height: 1.65;
    max-width: 100%;
  }

  body.v5-layout .site-footer .footer-col h4 {
    font-size: 0.7rem;
    margin-bottom: 12px;
  }

  body.v5-layout .site-footer .footer-col a {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  body.v5-layout .site-footer .footer-map-wrap,
  body.v5-layout .site-footer .footer-map {
    width: 100%;
    height: 200px;
  }

  body.v5-layout .site-footer .footer-logo {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 16px;
  }

  body.v5-layout .site-footer .footer-logo a {
    max-width: none;
  }

  body.v5-layout .site-footer .footer-logo img,
  body.v5-layout .site-footer .footer-logo .footer-logo-georgia {
    max-height: 52px;
    height: auto;
  }

  body.v5-layout .site-footer .footer-bottom {
    padding: 18px clamp(20px, 5.5vw, 28px) 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.v5-layout .site-footer .footer-dmca {
    margin-left: 0;
  }

  body.v5-layout .site-footer .footer-bottom span {
    display: block;
    font-size: 0.76rem;
    line-height: 1.5;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* V5 — Request a Quote modal (#staticBackdrop) */
body.v5-layout #staticBackdrop .modal-dialog {
  max-width: min(940px, calc(100vw - 24px));
  margin: 12px auto;
}

body.v5-layout #staticBackdrop .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

body.v5-layout #staticBackdrop .modal-content > .row {
  margin: 0;
  align-items: stretch;
  flex-wrap: nowrap;
}

body.v5-layout #staticBackdrop .modal-content > .row > .col-sm-4 {
  padding: 0;
  flex: 0 0 280px;
  max-width: 280px;
}

body.v5-layout #staticBackdrop .modal-content > .row > .col-sm-8 {
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

body.v5-layout #staticBackdrop .popside-side-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: 0;
  padding: 0;
  display: block;
}

body.v5-layout #staticBackdrop .popupform {
  border: 0;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
}

body.v5-layout #staticBackdrop #hubspot-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

body.v5-layout #staticBackdrop .modal-header {
  padding: 20px 22px 10px;
  border: 0;
}

body.v5-layout #staticBackdrop .modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding-right: 28px;
}

body.v5-layout #staticBackdrop .modal-body {
  padding: 0 22px 12px;
  overflow-y: auto;
  flex: 1;
}

body.v5-layout #staticBackdrop .heading {
  margin-bottom: 14px;
}

body.v5-layout #staticBackdrop .ftr-text-head {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3d3d3d;
}

body.v5-layout #staticBackdrop .heading p {
  font-size: 0.82rem;
  color: #6b6b6b;
  margin: 4px 0 0;
}

body.v5-layout #staticBackdrop .modal-body .form-control {
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  border-radius: 6px;
  border-color: #e8e8e8;
}

body.v5-layout #staticBackdrop .modal-body .row {
  --bs-gutter-x: 12px;
  margin-bottom: 0;
}

body.v5-layout #staticBackdrop .modal-body textarea.form-control {
  min-height: 72px;
  max-height: 96px;
  resize: vertical;
}

body.v5-layout #staticBackdrop .modal-body > .row > .col-lg-12.mb-2 > label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d3d3d;
  margin-bottom: 8px;
}

body.v5-layout #staticBackdrop .items_collection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
  clear: both;
}

body.v5-layout #staticBackdrop .items_collection .col-lg-12 {
  display: contents;
  padding: 0;
}

body.v5-layout #staticBackdrop .items_collection .info-block,
body.v5-layout #staticBackdrop .items_collection .block-info {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

body.v5-layout #staticBackdrop .items_collection .btn-group {
  display: inline-flex;
}

body.v5-layout #staticBackdrop .items_collection label.btn,
body.v5-layout #staticBackdrop .items_collection label.btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  float: none;
  margin: 0;
  padding: 7px 12px;
  border: 1.5px solid #8dc63f;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #141414;
  background: #fff;
  box-shadow: none;
  transform: none;
}

body.v5-layout #staticBackdrop .items_collection label.btn:hover,
body.v5-layout #staticBackdrop .items_collection label.btn-default:hover {
  background: #e8f5d4;
  color: #141414;
  transform: none;
  box-shadow: none;
}

body.v5-layout #staticBackdrop .items_collection label.btn:has(input:checked),
body.v5-layout #staticBackdrop .items_collection label.btn-default:has(input:checked),
body.v5-layout #staticBackdrop .items_collection label.btn.active,
body.v5-layout #staticBackdrop .items_collection label.btn-default.active {
  background: #8dc63f;
  border-color: #8dc63f;
  color: #fff;
}

body.v5-layout #staticBackdrop .items_collection .custom-checkbox {
  display: none;
}

body.v5-layout #staticBackdrop .items_collection .itemcontent p {
  margin: 0;
  line-height: 1.2;
}

body.v5-layout #staticBackdrop .custom-checkbox-label {
  font-size: 0.68rem;
  color: inherit;
}

body.v5-layout #staticBackdrop .modal-footer {
  padding: 8px 22px 20px;
  border: 0;
  gap: 10px;
  flex-wrap: wrap;
}

body.v5-layout #staticBackdrop .modal-footer .btn {
  padding: 11px 20px;
  font-size: 0.72rem;
  border-radius: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: none;
  box-shadow: none;
}

body.v5-layout #staticBackdrop .modal-footer .btn-middle {
  background: #8dc63f;
  border-color: #8dc63f;
  color: #fff;
}

body.v5-layout #staticBackdrop .modal-footer .btn-middle:hover {
  background: #6fa82e;
  border-color: #6fa82e;
  color: #fff;
}

body.v5-layout #staticBackdrop .quote-modal-brands {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 22px 18px;
  margin: 0;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}

body.v5-layout #staticBackdrop .quote-modal-brands__item {
  flex: 0 0 calc(25% - 12px);
  max-width: calc(25% - 12px);
  margin: 0 !important;
  padding: 0;
  text-align: center;
}

body.v5-layout #staticBackdrop .quote-modal-brands__item img {
  width: 100%;
  max-width: 108px;
  height: 44px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

body.v5-layout #staticBackdrop .modal-body .g-recaptcha {
  margin-bottom: 12px !important;
  transform: scale(0.92);
  transform-origin: left top;
}

body.v5-layout #staticBackdrop .quote-recaptcha-wrap {
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 8px;
}

body.v5-layout #staticBackdrop .btn-close {
  opacity: 0.65;
}

/* ─── Quote modal — responsive (tablet / mobile / small phones) ─────────── */

@media (min-width: 992px) {
  body.v5-layout #staticBackdrop .popupform {
    max-height: min(860px, calc(100dvh - 48px));
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  body.v5-layout #staticBackdrop .modal-dialog {
    max-width: min(720px, calc(100vw - 24px));
  }

  body.v5-layout #staticBackdrop .modal-content > .row > .col-sm-4 {
    flex: 0 0 190px;
    max-width: 190px;
  }

  body.v5-layout #staticBackdrop .popupform {
    max-height: min(820px, calc(100dvh - 32px));
  }

  body.v5-layout #staticBackdrop .quote-modal-brands__item {
    flex: 0 0 calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);
  }
}

@media (max-width: 767.98px) {
  body.v5-layout #staticBackdrop.modal {
    padding: 8px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }

  body.v5-layout #staticBackdrop .modal-dialog {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    min-height: auto;
    max-height: calc(100dvh - 16px);
  }

  body.v5-layout #staticBackdrop .modal-content {
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  body.v5-layout #staticBackdrop .modal-content > .row {
    flex-wrap: wrap;
    min-height: 0;
  }

  body.v5-layout #staticBackdrop .modal-content > .row > .col-sm-8 {
    flex: 0 0 100%;
    max-width: 100%;
    min-height: 0;
  }

  body.v5-layout #staticBackdrop .popupform {
    max-height: calc(100dvh - 16px);
    min-height: 0;
  }

  body.v5-layout #staticBackdrop .modal-header {
    padding: 14px 16px 8px;
    flex-shrink: 0;
  }

  body.v5-layout #staticBackdrop .modal-title {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    padding-right: 32px;
  }

  body.v5-layout #staticBackdrop .modal-body {
    padding: 0 16px 10px;
    -webkit-overflow-scrolling: touch;
  }

  body.v5-layout #staticBackdrop .modal-body .form-control {
    padding: 12px 13px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  body.v5-layout #staticBackdrop .modal-body .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body.v5-layout #staticBackdrop .modal-body textarea.form-control {
    min-height: 88px;
    max-height: 120px;
  }

  body.v5-layout #staticBackdrop .items_collection {
    gap: 6px;
  }

  body.v5-layout #staticBackdrop .items_collection label.btn,
  body.v5-layout #staticBackdrop .items_collection label.btn-default {
    font-size: 0.62rem;
    padding: 6px 10px;
  }

  body.v5-layout #staticBackdrop .modal-footer {
    padding: 8px 16px 14px;
    flex-shrink: 0;
  }

  body.v5-layout #staticBackdrop .quote-modal-brands {
    gap: 8px 10px;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
  }

  body.v5-layout #staticBackdrop .quote-modal-brands__item {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  body.v5-layout #staticBackdrop .quote-modal-brands__item img {
    max-width: 96px;
    height: 40px;
  }
}

@media (max-width: 575.98px) {
  body.v5-layout #staticBackdrop .modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body.v5-layout #staticBackdrop .modal-footer .btn {
    width: 100%;
    margin: 0 !important;
    padding: 12px 16px;
  }

  body.v5-layout #staticBackdrop .modal-body .g-recaptcha {
    transform: scale(0.88);
  }
}

@media (max-width: 399.98px) {
  body.v5-layout #staticBackdrop.modal {
    padding: 4px;
  }

  body.v5-layout #staticBackdrop .modal-content {
    border-radius: 12px;
  }

  body.v5-layout #staticBackdrop .modal-header,
  body.v5-layout #staticBackdrop .modal-body,
  body.v5-layout #staticBackdrop .modal-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.v5-layout #staticBackdrop .items_collection label.btn,
  body.v5-layout #staticBackdrop .items_collection label.btn-default {
    font-size: 0.58rem;
    padding: 5px 8px;
    letter-spacing: 0.02em;
  }

  body.v5-layout #staticBackdrop .quote-modal-brands__item img {
    max-width: 82px;
    height: 34px;
  }

  body.v5-layout #staticBackdrop .modal-body .g-recaptcha {
    transform: scale(0.78);
    margin-bottom: 0 !important;
  }
}

/* ============================================================
   UTILITY BAR — Mobile single-row layout (≤480px)
   At ≤768px the bar stacks 3 rows; at ≤480px collapse to one
   row showing only phone + Free Estimate button.
   ============================================================ */
@media (max-width: 480px) {
  body.v5-layout .utility-bar .container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 8px 14px !important;
  }

  /* hide email link on very small screens */
  body.v5-layout .utility-bar .container > a[href^="mailto"] {
    display: none !important;
  }

  /* badge already hidden at ≤1200px; keep phone + button in one row */
  body.v5-layout .utility-bar .d-flex {
    gap: 10px !important;
  }
}

/* ============================================================
   HEADER PILL — Mobile & tablet adjustments (≤1024px)
   With only logo + hamburger visible, ensure the pill doesn't
   look out of place and stays centered / full-width.
   ============================================================ */
@media (max-width: 1024px) {
  body.v5-layout .header-nav-inner {
    border-radius: 999px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: var(--header-nav-h) !important;
  }

  /* Inner pages mobile — white header strip above banner (match homepage) */
  body.v5-layout:not(.home-v5-page) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> section.detail-banner) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> section.detail-banner-product) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(#app > section.detail-banner:first-child) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(#app > section.detail-banner-product:first-child) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> main.main_container > section.about_banner:first-child) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> main.main_container > section.contact_banner:first-child) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> main.main_container > section.benefits_hero:first-child) .header-nav-wrap,
  body.v5-layout.page-contact .header-nav-wrap {
    margin-bottom: 0 !important;
    padding: 10px var(--gutter, 16px) 12px !important;
    background: #ffffff !important;
  }

  /* Brand text: keep "SARA HOSPITALITY" label, just shrink it */
  body.v5-layout .header-brand .brand-text strong {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
  }

  /* ─── FIX: restore stretch layout for mobile nav drawer ────────────
     The global overrides above set align-items:center on .main-nav,
     .nav-list, and .nav-item. Inside the flex-column mobile drawer this
     causes items to collapse (width/height resolves to content-size only)
     making all nav items except HOME invisible. Reset to stretch here.
  ─────────────────────────────────────────────────────────────────── */
  body.v5-layout .main-nav {
    align-items: stretch !important;
  }

  body.v5-layout .main-nav .nav-list {
    align-items: stretch !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  body.v5-layout .main-nav .nav-item {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  body.v5-layout .main-nav .nav-link {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    color: var(--ink-soft, #555) !important;
    background: #fff !important;
    border: none !important;
  }

  body.v5-layout .main-nav .nav-link.active,
  body.v5-layout .main-nav .nav-item.open > .nav-link {
    color: var(--ink, #141414) !important;
    background: var(--green-light, #f0f8e2) !important;
    border-left: 3px solid #8dc63f !important;
    border-radius: 8px !important;
  }

  body.v5-layout .main-nav .nav-item.open:has(> .mega-menu) > .nav-link {
    margin-bottom: 0 !important;
  }

  /* Dropdown chevron — keep visible on light mobile drawer */
  body.v5-layout .main-nav .nav-item > .nav-link svg {
    display: block !important;
    flex: 0 0 12px !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    fill: currentColor !important;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.25s ease !important;
  }

  body.v5-layout .main-nav .nav-item.open > .nav-link svg {
    transform: rotate(180deg) !important;
  }

  /* Product mega sub-links — proper › arrow (not broken â€¢) */
  body.v5-layout .product-mega-col ul li a::before,
  body.v5-layout .mega-menu .mega-col ul li a::before,
  body.v5-layout .mega-menu.brand-programs-mega .mega-col ul li a::before,
  body.v5-layout .mega-menu.brand-programs-mega .mega-col .sub-list li a::before {
    content: "\203A" !important;
    margin-right: 6px !important;
    color: #8dc63f !important;
    font-weight: 700 !important;
    font-size: 0.95em !important;
    display: inline !important;
    line-height: 1 !important;
  }

  body.v5-layout .product-mega-col ul li a,
  body.v5-layout .mega-menu .mega-col ul li a,
  body.v5-layout .mega-menu.brand-programs-mega .mega-col ul li a,
  body.v5-layout .mega-menu.brand-programs-mega .mega-col .sub-list li a {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  /* Mobile submenus — stack columns; prevent horizontal clip */
  body.v5-layout .nav-item.open > .mega-menu,
  body.v5-layout .mega-menu.mobile-open {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 8px !important;
    padding: 8px 10px 10px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-left: 3px solid #8dc63f !important;
    border-radius: 8px !important;
  }

  body.v5-layout .nav-item.open > .mega-menu.product-mega .product-mega-inner {
    padding-top: 4px !important;
  }

  /* Casegoods & More — same yellowish background as other product links (no white pills) */
  body.v5-layout .product-mega-tags a {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 6px 0 !important;
    font-size: 0.84rem !important;
    font-weight: 400 !important;
    color: var(--ink-soft, #555) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  body.v5-layout .product-mega-tags a::before {
    content: "\203A" !important;
    margin-right: 6px !important;
    color: #8dc63f !important;
    font-weight: 700 !important;
    font-size: 0.95em !important;
    display: inline !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }

  body.v5-layout .product-mega-tags a:hover {
    background: transparent !important;
    border: none !important;
    color: var(--ink, #141414) !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega,
  body.v5-layout .mega-menu.mega-compact.brand-programs-mega,
  body.v5-layout .mega-menu.collections-mega,
  body.v5-layout .mega-menu.wide.collections-mega {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-grid.cols-2,
  body.v5-layout .mega-menu.mega-compact:not(.brand-programs-mega) .mega-grid.cols-2,
  body.v5-layout .mega-menu.collections-mega .mega-grid.cols-4 {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
    grid-template-columns: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col,
  body.v5-layout .mega-menu.mega-compact .mega-col,
  body.v5-layout .mega-menu.collections-mega .mega-col {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col ul,
  body.v5-layout .mega-menu.mega-compact .mega-col ul,
  body.v5-layout .mega-menu.collections-mega .mega-col ul {
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col ul li,
  body.v5-layout .mega-menu.mega-compact .mega-col ul li,
  body.v5-layout .mega-menu.collections-mega .mega-col ul li {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col h4 {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.35 !important;
    font-size: 0.72rem !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  /* Second column — "Brand Programs" reads as title for list below */
  body.v5-layout .mega-menu.brand-programs-mega .mega-col + .mega-col {
    margin-top: 4px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(141, 198, 63, 0.35) !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col + .mega-col h4 {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding-top: 0 !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col .sub-list {
    padding-left: 10px !important;
    border-left-width: 2px !important;
    margin-left: 0 !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col a,
  body.v5-layout .mega-menu.mega-compact .mega-col a,
  body.v5-layout .mega-menu.collections-mega .mega-col a {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 6px 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    font-size: 0.84rem !important;
    text-align: left !important;
  }

  body.v5-layout .mega-menu.brand-programs-mega .mega-col a:hover,
  body.v5-layout .mega-menu.mega-compact .mega-col a:hover,
  body.v5-layout .mega-menu.collections-mega .mega-col a:hover {
    padding-left: 0 !important;
  }

  body.v5-layout .mega-menu .mega-col ul li a::before {
    margin-right: 4px !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 575.98px) {
  body.v5-layout .header-brand .brand-text strong {
    font-size: 0.88rem !important;
    letter-spacing: 0.06em !important;
  }
}

/* ============================================================
   HERO — Mobile: video on top, text below (no overlay)
   ============================================================ */

@media (max-width: 768px) {
  body.home-v5-page .header-nav-wrap {
    margin-bottom: 0 !important;
  }

  body.home-v5-page .hero {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    background: #fff !important;
  }

  body.home-v5-page .hero-overlay {
    display: none !important;
  }

  /* Video band — 16:10, header ke turant neeche */
  body.home-v5-page .hero .hero-slide {
    position: relative !important;
    inset: auto !important;
    order: 1;
    width: 100%;
    flex: 0 0 auto;
    opacity: 1 !important;
    aspect-ratio: 16 / 10;
    height: auto;
    background: #0a0a0a;
  }

  body.home-v5-page .hero .hero-slide .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
    object-fit: cover;
    object-position: center center;
    filter: none;
  }

  /* Text block — video ke niche */
  body.home-v5-page .hero-content {
    position: relative !important;
    inset: auto !important;
    order: 2;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px 40px 22px clamp(16px, 5vw, 24px) !important;
    background: #fff !important;
  }

  body.home-v5-page .hero .hero-copy {
    text-align: center !important;
    max-width: 100% !important;
    width: 100%;
    padding: 0 4px 0 0 !important;
    box-sizing: border-box;
  }

  body.home-v5-page .hero .hero-copy h1 {
    text-align: center !important;
    color: #1a1a1a !important;
    font-size: clamp(1.35rem, 6.2vw, 1.75rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 16px !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
  }

  body.home-v5-page .hero .hero-copy h1 .hero-title-line {
    display: block;
    text-align: center;
    white-space: nowrap;
  }

  body.home-v5-page .hero .hero-copy h1 .hero-title-line + .hero-title-line {
    margin-top: 0.06em;
  }

  body.home-v5-page .hero .hero-title-accent {
    color: #8dc63f !important;
    display: inline !important;
    margin-top: 0 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
  }

  body.home-v5-page .hero .hero-actions {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    gap: 10px;
  }

  body.home-v5-page .hero .btn.btn-primary {
    width: auto !important;
    max-width: none !important;
    border-radius: 999px !important;
    padding: 13px 42px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.06em !important;
    display: inline-flex !important;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(141, 198, 63, 0.28) !important;
  }
}

@media (max-width: 480px) {
  body.home-v5-page .hero-content {
    padding-top: 18px !important;
    padding-bottom: 20px !important;
  }

  body.home-v5-page .hero .hero-copy h1 {
    font-size: clamp(1.28rem, 6vw, 1.58rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 14px !important;
  }

  body.home-v5-page .hero .btn.btn-primary {
    padding: 12px 38px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 360px) {
  body.home-v5-page .hero .hero-copy h1 {
    font-size: 1.2rem !important;
    margin-bottom: 12px !important;
  }

  body.home-v5-page .hero .btn.btn-primary {
    padding: 12px 34px !important;
    font-size: 0.76rem !important;
  }
}

/* Trust bar marquee — slightly slower on homepage */
body.home-v5-page .trust-track {
  animation-duration: 34s !important;
}

/* ============================================================
   TRUST BAR — smaller logo cards on mobile
   ============================================================ */

@media (max-width: 768px) {
  body.home-v5-page .trust-bar {
    padding: 28px 0 26px !important;
  }

  body.home-v5-page .trust-bar-heading {
    margin-bottom: 18px !important;
  }

  body.home-v5-page .trust-logo-card {
    width: 116px !important;
    height: 50px !important;
    padding: 7px 10px !important;
    margin-right: 12px !important;
    border-radius: 8px !important;
  }

  body.home-v5-page .trust-logo-card img {
    max-height: 32px !important;
    max-width: 100px !important;
  }

  body.home-v5-page .trust-rows {
    gap: 10px !important;
  }

  body.home-v5-page .trust-track {
    animation-duration: 26s !important;
  }
}

@media (max-width: 480px) {
  body.home-v5-page .trust-logo-card {
    width: 102px !important;
    height: 44px !important;
    padding: 6px 8px !important;
    margin-right: 10px !important;
  }

  body.home-v5-page .trust-logo-card img {
    max-height: 28px !important;
    max-width: 88px !important;
  }
}

/* Why Choose — tab arrows hidden on desktop */
body.home-v5-page .why-points-arrow {
  display: none;
}

/* Why Choose — desktop: process description uses full copy column */
@media (min-width: 769px) {
  body.home-v5-page .why-choose .why-top {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
  }

  body.home-v5-page .why-choose .why-copy,
  body.home-v5-page .why-choose .why-copy > div {
    width: 100%;
    max-width: 100%;
  }

  body.home-v5-page .why-choose .why-desc {
    max-width: none !important;
    width: 100%;
  }

  body.home-v5-page .why-choose .why-trust {
    max-width: none;
    width: 100%;
  }

  body.home-v5-page .why-choose .why-trust-item p {
    max-width: none;
  }
}

/* ============================================================
   WHY CHOOSE SARA — mobile tabbed processes
   ============================================================ */

@media (max-width: 768px) {
  body.home-v5-page .why-choose .container {
    display: flex;
    flex-direction: column;
  }

  body.home-v5-page .why-choose .section-head {
    order: 1;
    margin-bottom: 20px !important;
  }

  body.home-v5-page .why-choose .why-points-nav {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px !important;
    width: 100%;
  }

  body.home-v5-page .why-choose .why-points {
    order: unset;
    flex: 1;
    min-width: 0;
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    grid-template-columns: unset !important;
  }

  body.home-v5-page .why-choose .why-points::-webkit-scrollbar {
    display: none;
  }

  body.home-v5-page .why-choose .why-top {
    order: 3;
    gap: 18px !important;
  }

  body.home-v5-page .why-choose .why-media {
    order: 1;
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.home-v5-page .why-choose .why-copy {
    order: 2;
    padding: 0 !important;
  }

  body.home-v5-page .why-choose .why-point {
    flex: 0 0 auto;
    width: auto;
    max-width: 82vw;
    display: flex;
    align-items: center;
    padding: 9px 12px !important;
    margin: 0;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    opacity: 1 !important;
  }

  body.home-v5-page .why-choose .why-point::before {
    display: none;
  }

  body.home-v5-page .why-choose .why-point.active {
    border-color: var(--green);
    background: var(--green-light);
    box-shadow: 0 4px 14px rgba(141, 198, 63, 0.14);
  }

  body.home-v5-page .why-choose .why-point-head {
    margin-bottom: 0 !important;
    gap: 8px;
    align-items: center;
    width: 100%;
  }

  body.home-v5-page .why-choose .why-point-head h3 {
    font-size: 0.72rem !important;
    line-height: 1;
    white-space: nowrap;
    margin: 0 !important;
    padding: 0;
  }

  body.home-v5-page .why-choose .why-num {
    width: 22px;
    height: 22px;
    font-size: 0.55rem;
    line-height: 1;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  body.home-v5-page .why-choose .why-point-desc {
    display: none !important;
  }

  body.home-v5-page .why-choose .why-trust {
    display: none !important;
  }

  body.home-v5-page .why-choose .why-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: none;
  }

  body.home-v5-page .why-choose .why-cta {
    width: 100%;
    justify-content: center;
  }

  body.home-v5-page .why-points-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  body.home-v5-page .why-points-arrow svg {
    width: 8px;
    height: 14px;
  }

  body.home-v5-page .why-points-arrow:hover,
  body.home-v5-page .why-points-arrow:focus-visible {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
    outline: none;
  }

  body.home-v5-page .why-points-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  body.home-v5-page .why-choose .why-point-head h3 {
    font-size: 0.68rem !important;
  }

  body.home-v5-page .why-choose .why-desc {
    font-size: 0.84rem;
  }
}

/* ============================================================
   MOBILE — homepage section eyebrows & main titles
   (green labels like "Industries", "How It Works" + h2 titles)
   ============================================================ */
@media (max-width: 768px) {
  body.home-v5-page .why-choose .section-eyebrow,
  body.home-v5-page .industries .section-eyebrow,
  body.home-v5-page .brand-programs .section-eyebrow,
  body.home-v5-page .brand-programs .bp-head .section-eyebrow,
  body.home-v5-page .process .section-eyebrow,
  body.home-v5-page .portfolio-ba .section-eyebrow,
  body.home-v5-page .testimonials .section-eyebrow,
  body.home-v5-page .categories .section-eyebrow {
    font-size: 1.05rem !important;
    text-transform: none !important;
    letter-spacing: 0.06em !important;
  }

  body.home-v5-page .why-choose .section-title,
  body.home-v5-page .industries .section-title,
  body.home-v5-page .brand-programs .section-title,
  body.home-v5-page .process .section-title,
  body.home-v5-page .portfolio-ba .section-title,
  body.home-v5-page .testimonials .section-title,
  body.home-v5-page .categories .section-title {
    font-size: clamp(2rem, 6.5vw, 2.5rem) !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 480px) {
  body.home-v5-page .why-choose .section-title,
  body.home-v5-page .industries .section-title,
  body.home-v5-page .brand-programs .section-title,
  body.home-v5-page .process .section-title,
  body.home-v5-page .portfolio-ba .section-title,
  body.home-v5-page .testimonials .section-title,
  body.home-v5-page .categories .section-title {
    font-size: clamp(1.9rem, 6.5vw, 2.25rem) !important;
  }
}

/* ============================================================
   TESTIMONIALS — larger brand logos on mobile
   ============================================================ */
@media (max-width: 768px) {
  body.home-v5-page .cs-photo.logo {
    aspect-ratio: auto !important;
    max-height: none !important;
    min-height: 200px !important;
    height: clamp(200px, 44vw, 250px) !important;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.home-v5-page .cs-photo.logo img {
    width: auto !important;
    height: auto !important;
    max-width: min(100%, 340px) !important;
    max-height: 92% !important;
    min-height: 160px !important;
    object-fit: contain !important;
  }
}

@media (max-width: 480px) {
  body.home-v5-page .cs-photo.logo {
    min-height: 185px !important;
    height: clamp(185px, 46vw, 230px) !important;
    padding: 8px 14px !important;
  }

  body.home-v5-page .cs-photo.logo img {
    max-width: min(100%, 300px) !important;
    min-height: 150px !important;
  }
}
