/**
 * UNIVA TOURS - CLEAN WHITE BACKGROUND SYSTEM FOR SUBPAGES
 * WITH STANDARDIZED CLEAN 4-COLUMN FOOTER SYSTEM
 * Scoped strictly to body.subpage.
 */

/* ==========================================================================
   1. GLOBAL SUBPAGE WHITE BACKGROUND
   ========================================================================== */

html:has(body.subpage),
html.subpage-html {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

body.subpage {
  --bg-global: #ffffff !important;
  --card-bg: #ffffff !important;
  --card-border: rgba(15, 23, 42, 0.08) !important;
  --text-primary: #0f172a !important;
  --text-secondary: #475569 !important;

  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  min-height: 100vh !important;
  width: 100% !important;
  color: #0f172a !important;
  position: relative !important;
  overflow-x: clip !important;
}

/* Bottom Website Landscape Backdrop (Disabled - standardized clean footer) */
body.subpage::after {
  content: none !important;
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  body.subpage::after {
    content: none !important;
    display: none !important;
    height: 0 !important;
  }
}

/* ==========================================================================
   TOP LANDSCAPE BACKDROP SYSTEM (Full Scenic Hero Backdrop across all subpages)
   ========================================================================== */

/* Top Website Landscape Backdrop for ALL subpages (Counterpart to footer backdrop, scrolling naturally with page) */
body.subpage::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1050px !important;
  background-image: var(--custom-hero-bg, url('../assets/hero-background.webp')) !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  z-index: 0 !important;
  -webkit-mask-image: linear-gradient(to bottom, 
    #000000 0%, 
    #000000 40%, 
    rgba(0, 0, 0, 0.8) 58%, 
    rgba(0, 0, 0, 0.35) 75%, 
    rgba(0, 0, 0, 0.08) 88%, 
    transparent 100%
  ) !important;
  mask-image: linear-gradient(to bottom, 
    #000000 0%, 
    #000000 40%, 
    rgba(0, 0, 0, 0.8) 58%, 
    rgba(0, 0, 0, 0.35) 75%, 
    rgba(0, 0, 0, 0.08) 88%, 
    transparent 100%
  ) !important;
  display: block !important;
}

@media (max-width: 768px) {
  body.subpage::before {
    height: 850px !important;
    background-position: center top !important;
  }
}

/* Progressive Optical Blur Layer for the Bottom Part of the Hero Backdrop (All Subpages) */
body.subpage .page-content::before,
body.subpage .hero-backdrop-blur {
  content: '' !important;
  position: absolute !important;
  top: 320px !important;
  left: 0 !important;
  right: 0 !important;
  height: 730px !important;
  pointer-events: none !important;
  z-index: 1 !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(255, 255, 255, 0.05) 20%, 
    rgba(255, 255, 255, 0.35) 55%, 
    rgba(255, 255, 255, 0.75) 80%, 
    rgba(255, 255, 255, 0.95) 100%
  ) !important;
  -webkit-mask-image: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(0, 0, 0, 0.1) 15%, 
    rgba(0, 0, 0, 0.5) 45%, 
    rgba(0, 0, 0, 0.9) 75%, 
    #000000 100%
  ) !important;
  mask-image: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(0, 0, 0, 0.1) 15%, 
    rgba(0, 0, 0, 0.5) 45%, 
    rgba(0, 0, 0, 0.9) 75%, 
    #000000 100%
  ) !important;
  display: block !important;
}

@media (max-width: 768px) {
  body.subpage .page-content::before,
  body.subpage .hero-backdrop-blur {
    top: 260px !important;
    height: 590px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }
}

/* Subpage Hero Containers: Completely transparent so top backdrop shows fully through */
body.subpage #about-hero,
body.subpage #packages-hero,
body.subpage #gallery-hero,
body.subpage #blog-hero,
body.subpage #news-hero,
body.subpage #contact-hero,
body.subpage #submit-hero,
body.subpage .error-hero-section {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  overflow: visible !important;
  padding-top: 175px !important;
  padding-bottom: 45px !important;
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 768px) {
  body.subpage #about-hero,
  body.subpage #packages-hero,
  body.subpage #gallery-hero,
  body.subpage #blog-hero,
  body.subpage #news-hero,
  body.subpage #contact-hero,
  body.subpage #submit-hero,
  body.subpage .error-hero-section {
    padding-top: 135px !important;
    padding-bottom: 35px !important;
  }
}

body.subpage #about-hero::before,
body.subpage #about-hero::after,
body.subpage #packages-hero::before,
body.subpage #packages-hero::after,
body.subpage #gallery-hero::before,
body.subpage #gallery-hero::after,
body.subpage #blog-hero::before,
body.subpage #blog-hero::after,
body.subpage #news-hero::before,
body.subpage #news-hero::after,
body.subpage #contact-hero::before,
body.subpage #contact-hero::after,
body.subpage #submit-hero::before,
body.subpage #submit-hero::after,
body.subpage .error-hero-section::before,
body.subpage .error-hero-section::after {
  display: none !important;
  content: none !important;
}

/* Category & Filter Pills: Frosted Glass Floating on Hero */
body.subpage .categories-container,
body.subpage .gallery-filters {
  position: relative !important;
  z-index: 2 !important;
}

body.subpage .categories-container .pill,
body.subpage .gallery-filters .pill {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

body.subpage .categories-container .pill:hover,
body.subpage .categories-container .pill.active,
body.subpage .gallery-filters .pill:hover,
body.subpage .gallery-filters .pill.active {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* Content Surfaces & Cards: Floating seamlessly above the fading & blurred landscape */
body.subpage .tour-card,
body.subpage .package-card,
body.subpage .about-story-card,
body.subpage .gallery-item,
body.subpage .blog-card,
body.subpage .news-card,
body.subpage .contact-info-panel,
body.subpage .contact-form-panel,
body.subpage .glass-card {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

body.subpage .tour-card:hover,
body.subpage .package-card:hover,
body.subpage .blog-card:hover,
body.subpage .news-card:hover {
  background: rgba(255, 255, 255, 0.96) !important;
  transform: translateY(-8px) !important;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14) !important;
  border-color: #10b981 !important;
}

body.subpage .white-spacer {
  display: none !important;
}

body.subpage main,
body.subpage .page-content {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
}

body.subpage #about-hero .hero-content,
body.subpage #packages-hero .hero-content,
body.subpage #gallery-hero .hero-content,
body.subpage #blog-hero .hero-content,
body.subpage #news-hero .hero-content,
body.subpage #contact-hero .hero-content,
body.subpage .hero-content {
  position: relative !important;
  z-index: 4 !important;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 24px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 35px 40px !important;
}

@media (max-width: 768px) {
  body.subpage #about-hero .hero-content,
  body.subpage #packages-hero .hero-content,
  body.subpage #gallery-hero .hero-content,
  body.subpage #blog-hero .hero-content,
  body.subpage #news-hero .hero-content,
  body.subpage #contact-hero .hero-content,
  body.subpage .hero-content {
    padding: 25px 20px !important;
    margin: 0 15px !important;
  }
}

body.subpage #about-hero h1,
body.subpage #packages-hero h1,
body.subpage #gallery-hero h1,
body.subpage #blog-hero h1,
body.subpage #news-hero h1,
body.subpage #contact-hero h1,
body.subpage .hero-content h1 {
  font-size: clamp(28px, 4.5vw, 48px) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

body.subpage #about-hero p,
body.subpage #packages-hero p,
body.subpage #gallery-hero p,
body.subpage #blog-hero p,
body.subpage #news-hero p,
body.subpage #contact-hero p,
body.subpage .hero-content p {
  font-size: clamp(15px, 2vw, 18px) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #f1f5f9 !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
}

body.subpage .hero-badge,
body.subpage .hero-quick-pills .pill-item {
  background: rgba(16, 185, 129, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   3. SECTIONS & CONTENT SURFACES
   ========================================================================= */

body.subpage section,
body.subpage .page-content > section,
body.subpage #tour-categories,
body.subpage #packages-grid,
body.subpage #company-intro,
body.subpage #vision-mission,
body.subpage #our-team,
body.subpage #comprehensive-wcu,
body.subpage #gallery-grid-section,
body.subpage #blog-grid-section,
body.subpage #news-grid-section,
body.subpage #contact-main,
body.subpage .container,
body.subpage .grid-container,
body.subpage .categories-container,
body.subpage .contact-page-container {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Content sections positioned cleanly below hero */
body.subpage #company-intro,
body.subpage #tour-categories,
body.subpage #gallery-grid-section,
body.subpage #blog-grid-section,
body.subpage #news-grid-section,
body.subpage #contact-main {
  position: relative !important;
  z-index: 2 !important;
}

/* Bottom sections before footer float smoothly over the mountain scenery */
body.subpage #booking-form-section,
body.subpage #about-cta {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Hide cloud overlays */
body.subpage img.cloud-overlay,
body.subpage .cloud-overlay,
body.subpage section:has(.cloud-overlay)::before,
body.subpage div:has(> .cloud-overlay)::before,
body.subpage #tour-categories::before,
body.subpage #company-intro::before,
body.subpage #gallery-grid-section::before,
body.subpage #blog-grid-section::before,
body.subpage #news-grid-section::before,
body.subpage #contact-main::before,
body.subpage #booking-form-section::before {
  display: none !important;
  content: none !important;
}

/* Typography on White Background */
body.subpage .section-title,
body.subpage section h2,
body.subpage #comprehensive-wcu h2,
body.subpage #vision-mission h2,
body.subpage #our-team h2,
body.subpage #about-cta h2,
body.subpage .form-header h2 {
  color: #0f172a !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body.subpage section p,
body.subpage .form-header p {
  color: #475569 !important;
  text-shadow: none !important;
}

/* ==========================================================================
   4. CLEAN CARDS ON WHITE BACKGROUND
   ========================================================================== */

/* Tour Packages */
body.subpage .categories-container .pill,
body.subpage .gallery-filters .pill {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

body.subpage .categories-container .pill.active,
body.subpage .gallery-filters .pill.active {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35) !important;
}

body.subpage .tour-card,
body.subpage .package-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

body.subpage .tour-card:hover,
body.subpage .package-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12) !important;
  border-color: #10b981 !important;
}

body.subpage .tour-card h3,
body.subpage .package-card h3 {
  color: #0f172a !important;
}

body.subpage .tour-card p,
body.subpage .package-card p {
  color: #64748b !important;
}

body.subpage .tour-card .card-footer,
body.subpage .package-card .card-footer {
  border-top: 1px solid #f1f5f9 !important;
  background: #f8fafc !important;
}

/* Booking Form */
body.subpage .glass-form,
body.subpage #booking-form {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

body.subpage .glass-form label,
body.subpage #booking-form label {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.subpage .glass-form input,
body.subpage .glass-form select,
body.subpage .glass-form textarea,
body.subpage #booking-form input,
body.subpage #booking-form select,
body.subpage #booking-form textarea {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 12px !important;
}

/* About Us Narrative & Vision */
body.subpage .about-story-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 28px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
  padding: 45px !important;
}

body.subpage .about-story-card p {
  color: #334155 !important;
  line-height: 1.8 !important;
}

body.subpage #vision-mission .glass-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

body.subpage #vision-mission .glass-card h3 {
  color: #10b981 !important;
}

body.subpage #vision-mission .glass-card p {
  color: #475569 !important;
}

body.subpage .experience-banner {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-radius: 22px !important;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3) !important;
  color: #ffffff !important;
}

body.subpage .experience-banner h2 {
  color: #ffffff !important;
}

body.subpage .team-card.glass-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

body.subpage .team-card .team-name {
  color: #0f172a !important;
}

body.subpage .team-card .team-role {
  color: #64748b !important;
}

body.subpage .wcu-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 30px !important;
}

body.subpage .wcu-item h4 {
  color: #0f172a !important;
}

body.subpage .wcu-item p {
  color: #64748b !important;
}

/* Gallery, Blogs, News */
body.subpage .gallery-item {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06) !important;
  border-radius: 20px !important;
}

body.subpage .blog-card,
body.subpage .news-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

body.subpage .blog-card h3,
body.subpage .news-card h3 {
  color: #0f172a !important;
}

body.subpage .blog-card p,
body.subpage .news-card p {
  color: #64748b !important;
}

body.subpage .client-blog-cta {
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  border-radius: 26px !important;
  color: #ffffff !important;
}

/* Contact Us Panels */
body.subpage .contact-card-panel,
body.subpage .guarantees-fullwidth-card,
body.subpage .contact-map-fullwidth-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

body.subpage .direct-item-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.subpage .direct-item-info .item-val {
  color: #0f172a !important;
}

/* 404 & Submit Blog */
body.subpage .error-card,
body.subpage .form-glass-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 28px !important;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

body.subpage .error-title {
  color: #0f172a !important;
}

body.subpage .error-subtitle {
  color: #64748b !important;
}

/* ==========================================================================
   SCENIC PRE-FOOTER SECTION & UNIVA TOURS FULL SCENIC IMAGE (SUBPAGES)
   Full landscape photograph preceding the site footer without cropping
   ========================================================================== */
body.subpage .scenic-prefooter,
body.subpage section.scenic-prefooter,
.scenic-prefooter,
section.scenic-prefooter {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: transparent !important;
  background-image: none !important;
  position: relative !important;
  z-index: 2 !important;
  pointer-events: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* Full Uncropped Scenic Image */
body.subpage .footer-scenic-image,
body.subpage .scenic-prefooter img,
.footer-scenic-image,
.scenic-prefooter img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18px) !important;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18px) !important;
}

@media (max-width: 640px) {
  body.subpage .footer-scenic-image,
  body.subpage .scenic-prefooter img,
  .footer-scenic-image,
  .scenic-prefooter img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12px) !important;
    mask-image: linear-gradient(to bottom, transparent 0%, black 12px) !important;
  }
}

/* Subtle soft white gradient along the top edge of footer image section */
.scenic-prefooter::before,
section.scenic-prefooter::before,
body.subpage .scenic-prefooter::before,
body.tour-detail-page .scenic-prefooter::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: -24px !important;
  left: 0 !important;
  right: 0 !important;
  height: 80px !important;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 18%,
    rgba(255, 255, 255, 0.55) 30%,
    rgba(255, 255, 255, 0.72) 36%,
    rgba(255, 255, 255, 0.50) 55%,
    rgba(255, 255, 255, 0.18) 75%,
    transparent 100%
  ) !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

@media (max-width: 640px) {
  .scenic-prefooter::before,
  section.scenic-prefooter::before,
  body.subpage .scenic-prefooter::before,
  body.tour-detail-page .scenic-prefooter::before {
    top: -16px !important;
    height: 54px !important;
  }
}

.scenic-prefooter::after,
section.scenic-prefooter::after,
body.subpage .scenic-prefooter::after,
body.tour-detail-page .scenic-prefooter::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   5. FOOTER — STANDARDIZED CLEAN 4-COLUMN FOOTER SYSTEM
   ========================================================================== */

body.subpage .site-footer,
body.subpage footer.footer,
.site-footer,
footer.site-footer,
footer.footer {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #1e293b !important;
  padding: 70px 32px 25px !important;
  font-family: 'Open Sans', sans-serif !important;
  position: relative !important;
  z-index: 2 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  box-shadow: none !important;
  border-top: 1px solid var(--footer-border, #e2e8f0) !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Background Layer: Remove all scenic image pseudo-elements */
body.subpage .site-footer::after,
body.subpage footer.footer::after {
  content: none !important;
  display: none !important;
}

/* Frosted glass overlay: Remove */
body.subpage .site-footer::before,
body.subpage footer.footer::before {
  content: none !important;
  display: none !important;
}

body.subpage .footer-container,
.site-footer .footer-container {
  display: grid !important;
  grid-template-columns: 2.2fr 1.1fr 1.3fr 1.4fr !important;
  gap: 40px !important;
  max-width: 1200px !important;
  margin: 0 auto 50px auto !important;
  text-align: left !important;
  position: relative !important;
  z-index: 3 !important;
}

@media (max-width: 991px) {
  body.subpage .footer-container,
.site-footer .footer-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px 30px !important;
  }
}

@media (max-width: 640px) {
  body.subpage .site-footer {
    padding: 50px 20px 20px !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
  }

  body.subpage .footer-container,
.site-footer .footer-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 35px !important;
  }

  body.subpage .footer-col,
.site-footer .footer-col {
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

body.subpage .footer-col h3,
body.subpage .footer-col h4,
body.subpage .footer-col .footer-brand-title,
body.subpage .footer-col .footer-col-title,
.site-footer .footer-col h3,
.site-footer .footer-col h4,
.site-footer .footer-col .footer-brand-title,
.site-footer .footer-col .footer-col-title {
  color: var(--footer-heading, #0f172a) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 18px !important;
  position: relative !important;
  display: block !important;
  font-family: 'Montserrat', sans-serif !important;
  text-shadow: none !important;
}

body.subpage .footer-brand-title,
.site-footer .footer-brand-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
}

body.subpage .brand-col .footer-logo,
.site-footer .brand-col .footer-logo {
  display: none !important;
}

/* Remove bulky green underline bars */
body.subpage .footer-col h3::after,
body.subpage .footer-col h4::after,
body.subpage .footer-col .footer-brand-title::after,
body.subpage .footer-col .footer-col-title::after,
.site-footer .footer-col h3::after,
.site-footer .footer-col h4::after,
.site-footer .footer-col .footer-brand-title::after,
.site-footer .footer-col .footer-col-title::after {
  content: none !important;
  display: none !important;
}

body.subpage .footer-col p,
body.subpage .footer-brand-desc,
.site-footer .footer-col p,
.site-footer .footer-brand-desc {
  color: var(--footer-text, #475569) !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  text-shadow: none !important;
  margin-bottom: 18px !important;
}

body.subpage .footer-col ul,
body.subpage .footer-nav-list,
.site-footer .footer-col ul,
.site-footer .footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.subpage .footer-col ul li,
body.subpage .footer-nav-list li,
.site-footer .footer-col ul li,
.site-footer .footer-nav-list li {
  margin-bottom: 10px !important;
}

body.subpage .footer-col ul li a,
body.subpage .footer-nav-list li a,
.site-footer .footer-col ul li a,
.site-footer .footer-nav-list li a {
  color: var(--footer-link, #334155) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  display: inline-block !important;
  text-shadow: none !important;
}

body.subpage .footer-col ul li a:hover,
body.subpage .footer-nav-list li a:hover,
.site-footer .footer-col ul li a:hover,
.site-footer .footer-nav-list li a:hover {
  color: #059669 !important;
  transform: translateX(3px) !important;
}

body.subpage .footer-view-all,
.site-footer .footer-view-all {
  color: #059669 !important;
  font-weight: 600 !important;
}

/* Contact Items */
body.subpage .footer-contact-items,
.site-footer .footer-contact-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

body.subpage .footer-contact-item,
.site-footer .footer-contact-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

body.subpage .footer-contact-icon,
.site-footer .footer-contact-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 8px !important;
  background: rgba(5, 150, 105, 0.08) !important;
  color: #059669 !important;
  margin-top: 2px !important;
}

body.subpage .footer-contact-text,
.site-footer .footer-contact-text {
  display: flex !important;
  flex-direction: column !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
}

body.subpage .footer-contact-label,
.site-footer .footer-contact-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--footer-label, #64748b) !important;
  margin-bottom: 2px !important;
}

body.subpage .footer-contact-text a,
body.subpage .footer-phone-link,
body.subpage .footer-email-link,
body.subpage .footer-address-text,
.site-footer .footer-contact-text a,
.site-footer .footer-phone-link,
.site-footer .footer-email-link,
.site-footer .footer-address-text {
  color: var(--footer-text, #1e293b) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

body.subpage .footer-contact-text a:hover,
.site-footer .footer-contact-text a:hover {
  color: #059669 !important;
}

/* Social links */
body.subpage .social-links,
.site-footer .social-links {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

body.subpage .social-links a.social-icon,
.site-footer .social-links a.social-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(15, 23, 42, 0.06) !important;
  color: var(--footer-heading, #0f172a) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

body.subpage .social-links a.social-icon svg,
.site-footer .social-links a.social-icon svg {
  color: currentColor !important;
  stroke: currentColor !important;
  transition: transform 0.25s ease !important;
}

body.subpage .social-links a.social-icon:hover,
.site-footer .social-links a.social-icon:hover {
  transform: translateY(-2px) !important;
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

body.subpage .social-links a.social-icon:hover svg,
.site-footer .social-links a.social-icon:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Footer bottom */
body.subpage .footer-bottom,
.site-footer .footer-bottom {
  text-align: center !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--footer-border, #e2e8f0) !important;
  color: var(--footer-label, #64748b) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  position: relative !important;
  z-index: 3 !important;
  text-shadow: none !important;
}

body.subpage .footer-bottom p,
.site-footer .footer-bottom p {
  color: var(--footer-label, #64748b) !important;
  text-shadow: none !important;
  margin: 0 !important;
}

body.subpage .footer-bottom a,
.site-footer .footer-bottom a {
  color: var(--footer-text, #334155) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

body.subpage .footer-bottom a:hover,
.site-footer .footer-bottom a:hover {
  color: #059669 !important;
}

body.subpage .footer-divider,
.site-footer .footer-divider {
  margin: 0 8px !important;
  color: var(--footer-border, #cbd5e1) !important;
}

/* ==========================================================================
   6. NAVBAR — CONSISTENT NEUTRAL DARK FROSTED GLASS ACROSS ALL SUBPAGES
   ========================================================================== */

body.subpage .navbar,
body.subpage header.navbar,
body.subpage .navbar:not(.scrolled),
body.subpage header.navbar:not(.scrolled),
body.subpage header:not(.scrolled),
body.subpage .navbar .nav-container,
body.subpage .navbar:not(.scrolled) .nav-container {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

body.subpage .navbar.scrolled,
body.subpage header.navbar.scrolled {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

body.subpage .nav-link {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6) !important;
}

body.subpage .nav-link:hover,
body.subpage .nav-link.active {
  color: #10b981 !important;
}

/* ==========================================================================
   7. DEACTIVATED FLOATING WIDGETS
   ========================================================================== */
.floating-side-links,
#floating-side-links {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   LEFT-SIDE FLOATING SCROLL-TO-TOP WITH PROGRESS RING FILL ANIMATION
   ========================================================================== */
.scroll-to-top-progress {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.35s,
              background-color 0.25s,
              box-shadow 0.25s !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.scroll-to-top-progress.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.scroll-to-top-progress:hover {
  background: #ffffff !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.28), 0 4px 12px rgba(15, 23, 42, 0.1) !important;
  border-color: rgba(5, 150, 105, 0.3) !important;
}

.scroll-to-top-progress:active {
  transform: translateY(0) scale(0.94) !important;
}

.scroll-to-top-progress .progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.scroll-to-top-progress .progress-ring-track {
  fill: none;
  stroke: rgba(15, 23, 42, 0.08) !important;
  stroke-width: 3.5;
}

.scroll-to-top-progress .progress-ring-fill {
  fill: none;
  stroke: #059669 !important;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.08s linear;
}

.scroll-to-top-progress .scroll-to-top-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0f172a !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease !important;
  z-index: 2;
}

.scroll-to-top-progress:hover .scroll-to-top-icon {
  color: #059669 !important;
  transform: translateY(-2px);
}

.scroll-to-top-progress .scroll-to-top-icon svg {
  display: block;
  stroke: currentColor !important;
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .scroll-to-top-progress {
    bottom: 24px !important;
    left: 20px !important;
    width: 44px !important;
    height: 44px !important;
  }
}
