/* =============================================
   UNIMINE Custom Styles
   Overrides and enhancements beyond Webflow export
   ============================================= */

/* Hide scrollbar across browsers */
html {
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* === UNIMINE COLOR OVERRIDES === */
:root {
  --_🎨-color---accent--unimacorange-400-main: #59acad;
  --accent--unimacorange-400: #59acad;
  /* Teal accent for icon backgrounds */
  --unimine-teal-300: #84c5c5;
}

/* === HEADING FONT — Montserrat (Proxima Nova alternative) === */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/* Override Proxima Nova with Montserrat across the site */
:root {
  --_🔠-typography---font--heading-sans: 'Montserrat', proxima-nova, sans-serif;
  --_🔠-typography---font--heading-serif: 'Montserrat', proxima-nova, sans-serif;
}

/* =============================================
   NAVBAR — UNIMINE pill-style nav
   ============================================= */

.master-navigation {
  max-width: var(--container--main);
  margin-left: auto;
  margin-right: auto;
}

.brand-navbar {
  flex-shrink: 0;
  width: 152px !important;
}

/* Nav links — match UNIMAC style (no pill bg) */

/* =============================================
   GLOBAL BASE STYLES
   ============================================= */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Prevent horizontal scroll on the page */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

.button-text {
  grid-column-gap: 4px !important;
}

/* =============================================
   ANCHOR SCROLL OFFSET
   Ensures anchor targets clear the fixed navbar
   ============================================= */

/* Base scroll offset for all anchor targets */
[data-anchor-target] {
  scroll-margin-top: 104px;
}

/* Apply to elements with IDs that are anchor destinations */
[id][data-anchor-target],
section[id],
.projects-right-col[id],
.industry-section [id] {
  scroll-margin-top: 104px;
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Override for GSAP smooth scroll */
html.lenis {
  scroll-behavior: auto;
}

/* Specific offsets for different screen sizes */
@media (max-width: 991px) {
  [data-anchor-target],
  .projects-right-col[id],
  .industry-section [id] {
    scroll-margin-top: 96px;
  }
}

@media (max-width: 767px) {
  [data-anchor-target],
  .projects-right-col[id],
  .industry-section [id] {
    scroll-margin-top: 88px;
  }
}

/* =============================================
   NAV DROPDOWN HOVER EFFECTS
   When hovering over one link, others are greyed out
   ============================================= */

/* Nav column inner container - desktop nav */
.nav-column-inner,
.nav-projects-collection-wrapper .nav-projects-collection {
  --transition-duration: 0.25s;
}

/* Default state for nav column items */
.nav-column-inner .nav-column-item,
.nav-projects-collection-wrapper .nav-column-item,
.nav-projects-collection .nav-column-item {
  transition: opacity var(--transition-duration) ease, 
              color var(--transition-duration) ease;
}

/* When hovering over the nav column container, reduce opacity of all items */
.nav-column-inner:hover .nav-column-item,
.nav-projects-collection-wrapper:hover .nav-column-item,
.nav-projects-collection:hover .nav-column-item {
  opacity: 0.4;
}

/* When hovering over a specific item, restore its opacity */
.nav-column-inner .nav-column-item:hover,
.nav-projects-collection-wrapper .nav-column-item:hover,
.nav-projects-collection .nav-column-item:hover {
  opacity: 1;
}

/* Mobile nav hover effects */
.mobile-nav-top-tile {
  --transition-duration: 0.25s;
}

.mobile-nav-top-tile .nav-column-item {
  transition: opacity var(--transition-duration) ease;
}

.mobile-nav-top-tile:hover .nav-column-item {
  opacity: 0.4;
}

.mobile-nav-top-tile .nav-column-item:hover {
  opacity: 1;
}

/* Mobile links wrap - for the link groups */
.mobile-links-wrap {
  --transition-duration: 0.25s;
}

.mobile-links-wrap a {
  transition: opacity var(--transition-duration) ease;
}

.mobile-links-wrap:hover a {
  opacity: 0.4;
}

.mobile-links-wrap a:hover {
  opacity: 1;
}

/* =============================================
   FOOTER HOVER EFFECTS
   When hovering over one link, others are greyed out
   ============================================= */

/* Footer links column container */
.footer-links-column {
  --transition-duration: 0.25s;
}

/* Default state for footer links */
.footer-links-column .footer-link,
.footer-links-column a {
  transition: opacity var(--transition-duration) ease,
              color var(--transition-duration) ease;
}

/* When hovering over the footer links container, reduce opacity of all links */
.footer-links-column:hover .footer-link,
.footer-links-column:hover a {
  opacity: 0.4;
}

/* When hovering over a specific link, restore its opacity */
.footer-links-column .footer-link:hover,
.footer-links-column a:hover {
  opacity: 1;
}


/* =============================================
   VIDEO LIGHTBOX MODAL
   Custom non-Webflow video popup
   ============================================= */

.video-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.video-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-lightbox-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 960px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.video-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-lightbox-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-lightbox-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .video-lightbox-container {
    width: 95%;
    border-radius: 8px;
  }
  
  .video-lightbox-close {
    top: -44px;
    width: 36px;
    height: 36px;
  }
}

/* =============================================
   FOOTER ACCORDION (Mobile)
   ============================================= */

@media (max-width: 767px) {
  /* Make footer column headers clickable on mobile */
  .footer-column .column-expand-top-tile {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Ensure wrap-column has proper initial state for animation */
  .footer-column .wrap-column {
    transition: height 0.3s ease, opacity 0.3s ease;
  }
  
  /* Rotate icon when expanded */
  .footer-column .footer-expand-icon {
    transform-origin: center;
  }
}

/* =============================================
   MOBILE NAVIGATION
   Single toggle class: .mobile-nav-open on .navbar
   ============================================= */

@media (max-width: 991px) {
  /* Kill Webflow's overlay — we show .nav-menu directly */
  .w-nav-overlay {
    display: none !important;
  }

  /* Hide desktop dropdown links on mobile */
  .wrap-nav-links {
    display: none !important;
  }

  /* Nav menu: hidden by default */
  .nav-menu {
    display: none !important;
  }

  /* ---- BASE STYLES WITH TRANSITIONS ---- */

  /* Nav wrap - maintain original padding for closed state */
  .navbar .nav-wrap {
    position: relative;
    overflow: hidden;
    /* Match border-radius immediately - no animation to avoid glitch */
    border-radius: var(--_🔘-radius---radius--small);
    /* Use max-height for smooth drawer animation */
    max-height: 60px; /* Approximate closed height */
    transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.35s ease;
  }

  /* Nav menu starts hidden */
  .navbar .nav-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.1s, 
                transform 0.4s ease 0.1s;
  }

  /* Mobile menu content starts hidden */
  .navbar .wrap-mobile-menu {
    opacity: 0;
    transition: opacity 0.35s ease 0.15s;
  }

  /* ---- OPEN STATE ---- */

  /* Navbar stays in place, nav-wrap expands */
  .navbar.mobile-nav-open {
    z-index: 999;
  }

  /* Nav wrap expands downward like a drawer - max-height for smooth animation */
  .navbar.mobile-nav-open .nav-wrap {
    flex-wrap: wrap;
    overflow: auto;
    background: var(--_🎨-color---background--eversand-for-navigation-bar) !important;
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    border: 1px solid var(--neutral--light-64);
    /* Match border-radius immediately - no transition to avoid corner glitch */
    border-radius: var(--_🔘-radius---radius--small);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    /* Max 90vh but hugs content, scroll if needed */
    max-height: 90vh;
  }

  /* Nav menu fades in smoothly */
  .navbar.mobile-nav-open .nav-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: var(--spacing--16) var(--spacing--8) var(--spacing--24);
    background: transparent !important;
    opacity: 1;
    transform: translateY(0);
  }

  /* Mobile menu content */
  .navbar.mobile-nav-open .wrap-mobile-menu {
    display: flex !important;
    flex-direction: column;
    grid-column-gap: var(--spacing--32) !important;
    grid-row-gap: var(--spacing--32) !important;
    gap: var(--spacing--32) !important;
    background: transparent;
    opacity: 1;
  }

  /* ---- CLOSING STATE ---- */
  
  /* Smooth closing animation */
  .navbar.mobile-nav-closing .nav-wrap {
    max-height: 60px;
    transition: max-height 0.35s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                box-shadow 0.35s ease,
                background-color 0.25s ease;
  }

  /* Fade out menu content when closing */
  .navbar.mobile-nav-closing .nav-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .navbar.mobile-nav-closing .wrap-mobile-menu {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  /* Staggered animation for menu items */
  .navbar.mobile-nav-open .mobile-nav-top-tile .nav-column-item {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
  }

  .navbar.mobile-nav-open .mobile-nav-top-tile .nav-column-item:nth-child(1) { animation-delay: 0.15s; }
  .navbar.mobile-nav-open .mobile-nav-top-tile .nav-column-item:nth-child(2) { animation-delay: 0.2s; }
  .navbar.mobile-nav-open .mobile-nav-top-tile .nav-column-item:nth-child(3) { animation-delay: 0.25s; }
  .navbar.mobile-nav-open .mobile-nav-top-tile .nav-column-item:nth-child(4) { animation-delay: 0.3s; }
  .navbar.mobile-nav-open .mobile-nav-top-tile .nav-column-item:nth-child(5) { animation-delay: 0.35s; }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Featured project card animation */
  .navbar.mobile-nav-open .mobile-nav-bottom-tile {
    opacity: 0;
    animation: fadeIn 0.4s ease 0.4s forwards;
  }

  /* Mobile nav top tile - links section */
  .navbar.mobile-nav-open .mobile-nav-top-tile {
    background: transparent;
    grid-column-gap: var(--spacing--8) !important;
    grid-row-gap: var(--spacing--8) !important;
    gap: var(--spacing--8) !important;
  }

  /* Mobile nav bottom tile - featured card section */
  .navbar.mobile-nav-open .mobile-nav-bottom-tile {
    background: transparent;
  }

  /* Featured project card in mobile nav */
  .navbar.mobile-nav-open .card-nav.mobile-nav-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
    position: relative;
  }

  /* Ensure card text is white for dark background */
  .navbar.mobile-nav-open .card-nav.mobile-nav-card .card-cs-bottom-tile {
    color: white;
  }

  .navbar.mobile-nav-open .card-nav.mobile-nav-card .text-left-mobile-nav-cta {
    color: white;
    font-weight: 500;
  }

  /* Adjust eyebrow text color for dark card */
  .navbar.mobile-nav-open .card-nav.mobile-nav-card .eyebrow {
    color: white;
  }

  /* Ensure proper spacing for mobile nav items */
  .navbar.mobile-nav-open .nav-column-item {
    padding: var(--spacing--8) 0;
  }

  /* Featured project card Learn More link styling */
  .navbar.mobile-nav-open .card-nav.mobile-nav-card .link-cs-card {
    color: white;
    display: flex;
    align-items: center;
    gap: var(--spacing--4);
  }

  /* ---- MENU BUTTON ---- */

  .menu-button {
    display: flex !important;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .menu-button:active {
    transform: scale(0.95);
  }

  .menu-button-inner {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .menu-button-inner.close {
    display: none;
    opacity: 0;
    transform: rotate(-90deg);
  }

  .menu-button.w--open .menu-button-inner.open {
    display: none;
    opacity: 0;
    transform: rotate(90deg);
  }

  .menu-button.w--open .menu-button-inner.close {
    display: flex;
    opacity: 1;
    transform: rotate(0);
    animation: iconRotateIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes iconRotateIn {
    from {
      opacity: 0;
      transform: rotate(-90deg) scale(0.8);
    }
    to {
      opacity: 1;
      transform: rotate(0) scale(1);
    }
  }

  /* Adjust text colors for the light panel */
  .navbar.mobile-nav-open .text-dark {
    color: #1a1a1a;
  }

  .navbar.mobile-nav-open .text-dark-48 {
    color: rgba(26, 26, 26, 0.48);
  }

  .navbar.mobile-nav-open .text-dark-32 {
    color: rgba(26, 26, 26, 0.32);
  }

  /* Divider color adjustment */
  .navbar.mobile-nav-open .divider-dark-16 {
    background-color: rgba(26, 26, 26, 0.16);
  }



  /* Adjust close button styling */
  .navbar.mobile-nav-open .menu-button {
    border-color: rgba(26, 26, 26, 0.32);
  }

  /* Adjust Contact Us button styling for light background */
  .navbar.mobile-nav-open .nav-right .cta-main {
    background: #1a1a1a;
    color: white;
  }
}

@media (min-width: 992px) {
  .wrap-mobile-menu {
    display: none !important;
  }

  .menu-button {
    display: none !important;
  }
}



/* =============================================
   CTA BUTTON HOVER ANIMATION - LETTER BY LETTER
   ============================================= */

/* Icon wrap - fixed dimensions and centering */
.cta-main .button-icon-wrap {
  position: relative;
  overflow: hidden;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-main .icon-button {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* Primary icon - slides up and out on hover */
.cta-main .icon-button:not(.prev) {
  transform: translate(0, 0);
}

.cta-main:hover .icon-button:not(.prev) {
  transform: translate(100%, -100%);
}

/* Prev icon (hover state) - starts offset and slides in */
.cta-main .icon-button.prev {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-100%, 100%);
}

.cta-main:hover .icon-button.prev {
  transform: translate(0, 0);
}

/* Optional: Background subtle scale effect */
.cta-main .button-bg {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-main:hover .button-bg {
  transform: scale(1.05);
}


/* =============================================
   CTA BUTTON HOVER ANIMATION - LETTER BY LETTER
   ============================================= */

/* Only apply to buttons that have been processed by JS (have .button-text-animated class) */

/* Text mask - clips text for animated buttons */
.cta-main .button-text.button-text-animated {
  position: relative;
  display: flex;
  align-items: center;
  height: 1.5em;
  overflow: hidden;
  text-shadow: none !important;
  color: inherit !important;
}

/* Original text - normal flow */
.cta-main .button-text-original {
  display: flex;
  align-items: center;
  height: 1.5em;
  line-height: 1.5em;
  color: inherit;
}

/* Hover text - positioned on top, initially hidden below, white for visibility */
.cta-main .button-text-hover {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 1.5em;
  line-height: 1.5em;
  pointer-events: none;
  color: var(--_🎨-color---neutral--light-100);
}

/* Individual character styling */
.cta-main .button-text-animated .char {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  vertical-align: middle;
  color: inherit;
}

/* Original: starts at normal position */
.cta-main .button-text-original .char {
  transform: translateY(0);
}

.cta-main:hover .button-text-original .char {
  transform: translateY(-100%);
}

/* Hover: starts 100% below (hidden), moves to normal position */
.cta-main .button-text-hover .char {
  transform: translateY(100%);
}

.cta-main:hover .button-text-hover .char {
  transform: translateY(0);
}




/* Button letter-by-letter hover animation - single text, color change */
/* Preserve flex layout from original */
.cta-main .button-text {
  display: flex !important;
  align-items: center;
  gap: 0 !important;
}
.cta-main .button-text .ch { 
  display: inline-block; 
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font: inherit;
  text-shadow: none !important;
}
.cta-main:hover .button-text .ch { 
  color: var(--_🎨-color---neutral--light-100);
}



/* =============================================
   SWIPER SLIDER OVERRIDES
   Fix Webflow slider artifacts for Swiper
   ============================================= */

/* Webflow mask max-width is for native slider — remove for Swiper wrapper */
.swiper-wrapper.mask-testimonial-slider-large {
  max-width: none;
}

/* Webflow slide margin — Swiper inline margin-right handles spaceBetween */
.swiper-slide.slide-project-large {
  margin-right: 0;
}

/* =============================================
   SWIPER ARROW STYLES
   Buttons positioned in headline area
   ============================================= */

/* Headline area - flex layout with text left, buttons right */
.headline-slider-home {
  flex-flow: row nowrap !important;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--spacing--24);
}

/* Left side - text content */
.headline-slider-left {
  display: flex;
  flex-flow: column;
  gap: var(--spacing--24);
  flex: 1;
}

/* Right side - buttons */
.headline-slider-buttons {
  display: flex;
  flex-flow: row;
  gap: var(--spacing--12);
  align-items: center;
  flex-shrink: 0;
}

/* Button styles - remove absolute positioning */
.headline-slider-buttons .slider-button-services {
  position: static;
  inset: auto;
  width: 44px;
  height: 44px;
}

.headline-slider-buttons .slider-button-services.prev {
  right: auto;
}

/* Mobile: stack vertically */
@media (max-width: 991px) {
  .headline-slider-home {
    flex-flow: column nowrap !important;
    align-items: flex-start;
    gap: var(--spacing--24);
  }
  
  .headline-slider-buttons {
    align-self: flex-start;
  }
}

/* ── Auto-scrolling marquee animation ──
.marquee-images {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--spacing--16);
}

.single-marquee-images {
  display: flex;
  flex-shrink: 0;
  gap: var(--spacing--16);
  animation: marquee-scroll 30s linear infinite;
}

.marquee-images:hover .single-marquee-images {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ── Aggregate cards 3-column grid ── */
.aggregate-cards-grid {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
}

.aggregate-cards-grid .card-feature {
  height: auto;
}

@media screen and (max-width: 991px) {
  .aggregate-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 767px) {
  .aggregate-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   NAVIGATION DROPDOWN STYLES
   Desktop dropdown menus for UNIMINE
   ============================================= */

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown toggle */
.dropdown-toggle {
  position: relative;
  cursor: pointer;
}

/* Dropdown list - hidden by default */
.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 600px;
  padding-top: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-list,
.dropdown.w--open .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Nav dropdown list container */
.nav-dropdown-list {
  background-color: var(--_🎨-color---neutral--light-88);
  border-radius: var(--_🔘-radius---radius--small, 12px);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(26, 26, 23, 0.08);
}

/* Nav thirds grid */
.nav-thirds {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

/* Nav column */
.nav-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Nav title */
.nav-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Nav column inner */
.nav-column-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Nav column item */
.nav-column-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: var(--_🎨-color---neutral--dark-100);
}

.nav-column-item:hover {
  background-color: rgba(26, 26, 23, 0.04);
}

/* Multiline ellipsis */
.multiline-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Nav featured column */
.nav-featured-column {
  min-width: 240px;
}

/* Nav featured card */
.nav-featured-card .card-nav {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.nav-featured-card .image-wrap-cs {
  position: absolute;
  inset: 0;
}

.nav-featured-card .card-cs-bottom-tile {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: var(--_🎨-color---neutral--light-100);
  z-index: 2;
}

.nav-featured-card .eyebrow {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* Overlay styles for card images */
.overlay-top-cs,
.overlay-bottom-cs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.overlay-bottom-cs {
  background: linear-gradient(to top, rgba(26, 26, 23, 0.8) 0%, transparent 60%);
}

/* Nav CS link */
.nav-cs-link {
  color: var(--_🎨-color---accent--unimacorange-400-main);
  text-decoration: none;
  font-size: 12px;
  transition: opacity 0.2s ease;
}

.nav-cs-link:hover {
  opacity: 0.7;
}

/* Text everstone */
.text-everstone {
  color: var(--_🎨-color---background--everstone);
}

/* Mobile - hide dropdowns */
@media (max-width: 991px) {
  .dropdown-list {
    display: none !important;
  }
}

/* === ABOUT UNIMINE — body text pushed to bottom of content column === */
.body-text-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing--16, 1rem);
}

/* === QUARRY HERO — cream blend at top, fading from the section above === */
.overlay-blend-top-cream {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  max-height: 480px;
  background-image: linear-gradient(180deg, var(--_🎨-color---neutral--light-100) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Bottom blend for dark sections - smooth transition to next dark section */
.overlay-blend-bottom-dark {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  min-height: 400px;
  background-image: linear-gradient(
    0deg, 
    #2E3035 0%, 
    rgba(46, 48, 53, 0.98) 10%,
    rgba(46, 48, 53, 0.9) 25%,
    rgba(46, 48, 53, 0.6) 50%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Core Activities section heading - ensure white text */
.hero-home-a-section .headline-column h2,
.hero-home-a-section .headline-column h1 {
  color: var(--_🎨-color---neutral--light-100, #f4f3ea);
}

/* Video card - correct width and styling */
.small-video {
  max-width: 252px;
  width: 100%;
  box-sizing: border-box;
  padding: var(--spacing--8, 8px);
  border-radius: var(--_🔘-radius---radius--large, 16px);
  background-color: var(--_🎨-color---neutral--light-8, rgba(244, 243, 234, 0.08));
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  display: flex;
  flex-direction: column;
  gap: var(--spacing--8, 8px);
}

/* Video card text color */
.small-video > div:last-child {
  color: var(--_🎨-color---neutral--light-100, #f4f3ea);
  font-family: var(--_🔠-typography---font--ui, 'Open Sans', sans-serif);
  font-size: var(--_📏-size---button-2, 12px);
  font-weight: 500;
  text-align: center;
}

/* Lightbox video thumbnail container */
.lightbox-small-video {
  position: relative;
  display: block;
  border-radius: var(--_🔘-radius---radius--small, 8px);
  overflow: hidden;
  line-height: 0;
}

.lightbox-small-video img:first-child {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* Play button positioning */
.lightbox-small-video .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
}

/* === QUARRY INTRO — dark text section matching Figma 101:1813 === */
.section.quarry-intro-section {
  background-color: #2E3035;
  color: var(--_🎨-color---neutral--light-100);
  padding-top: var(--section-padding--small);
  padding-bottom: var(--section-padding--small);
}

.quarry-intro-text {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing--8, 8px);
  font-family: var(--_🔠-typography---font--heading-sans);
  font-size: var(--_🔠-typography---size--h5, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--_🎨-color---neutral--light-100);
}

/* === CERTIFICATION LOGOS ROW === */
.certification-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing--24, 24px);
  align-items: center;
  justify-content: flex-start;
  margin-top: 32px;
}

.cert-logo-img {
  height: 40px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  opacity: 0.88;
  object-fit: contain;
  display: block;
}

/* Specific logo dimensions to prevent SVG stretching */
.cert-logo-img[src*="cert-iso"] {
  width: 144px;
  height: 48px;
}

.cert-logo-img[src*="cert-saso"] {
  width: 168px;
  height: 48px;
}

.cert-logo-img[src*="cert-astm"] {
  width: 144px;
  height: 48px;
}

/* === FEATURES DETAIL SECTION — Figma 101:1301 === */
.section.features-detail-section {
  background-color: var(--_🎨-color---unimac-grey-700);
  padding-top: var(--section-padding--medium);
  padding-bottom: var(--section-padding--medium);
}

.features-detail-rows {
  display: flex;
  flex-direction: column;
  gap: var(--spacing--80, 80px);
}

.features-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid--content-gap, 80px);
  align-items: start;
}

.features-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
  color: var(--_🎨-color---neutral--light-100);
}

.features-detail-top {
  display: flex;
  flex-direction: column;
  gap: var(--spacing--24, 24px);
}

.features-detail-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--spacing--24, 24px);
}

.features-detail-section .image-wrap-system-home-c {
  height: 600px;
}

@media (max-width: 991px) {
  .features-detail-row {
    grid-template-columns: 1fr;
  }
  .features-detail-content {
    min-height: unset;
  }
  .features-detail-section .image-wrap-system-home-c {
    height: 360px;
  }
}


/* =============================================
   AGGREGATE CRUSHING CARDS WITH DATA TABLES
   Matching Figma design
   ============================================= */

/* Card container */
.um-agg-card {
  background-color: var(--_🎨-color---background--eversand, #e6e8dd);
  border-radius: var(--_🔘-radius---radius--small, 8px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

/* Card header with icon and title */
.um-agg-card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.um-agg-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--_🔘-radius---radius--small, 8px);
  object-fit: cover;
  background-color: var(--accent--unimineteal-400, #59acad);
}

.um-agg-card-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.um-agg-card-title h4 {
  font-family: var(--_🔠-typography---font--heading-sans, 'Montserrat', sans-serif);
  font-size: var(--_📏-size---h6, 24px);
  font-weight: 500;
  line-height: var(--_📏-line-height---h6, 28px);
  color: var(--_🎨-color---neutral--dark-100, #1a1a17);
  margin: 0;
}

/* Badge for "Coming Soon" */
.um-agg-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: var(--_🎨-color---neutral--dark-8, rgba(26, 26, 23, 0.08));
  border-radius: var(--_🔘-radius---radius--small, 8px);
  font-family: var(--_🔠-typography---font--ui, 'Open Sans', sans-serif);
  font-size: var(--_📏-size---label-2, 10px);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--_🎨-color---neutral--dark-100, #1a1a17);
  width: fit-content;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Card description */
.um-agg-card-desc {
  font-family: var(--_🔠-typography---font--body, 'Open Sans', sans-serif);
  font-size: var(--_📏-size---b2, 16px);
  line-height: var(--_📏-line-height---b2, 24px);
  color: var(--_🎨-color---neutral--dark-88, rgba(26, 26, 23, 0.88));
  margin: 0;
}

/* Table container */
.um-agg-table-wrap {
  margin-top: auto;
  overflow-x: auto;
}

/* Data table */
.um-agg-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--_🔠-typography---font--body, 'Open Sans', sans-serif);
  font-size: var(--_📏-size---b2, 14px);
  line-height: var(--_📏-line-height---b2, 20px);
}

.um-agg-table thead {
  display: table-header-group;
}

.um-agg-table th,
.um-agg-table td {
  padding: 8px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--_🎨-color---neutral--dark-16, rgba(26, 26, 23, 0.16));
}

.um-agg-table th {
  font-weight: 500;
  color: var(--_🎨-color---neutral--dark-88, rgba(26, 26, 23, 0.88));
  padding-top: 12px;
}

.um-agg-table td {
  color: var(--_🎨-color---neutral--dark-88, rgba(26, 26, 23, 0.88));
  padding: 12px 8px 12px 0;
}

.um-agg-table tr:first-child td {
  border-top: none;
}

/* First column styling (labels) */
.um-agg-table td:first-child {
  font-weight: 500;
  width: 30%;
  min-width: 120px;
}

/* Second column styling */
.um-agg-table td:nth-child(2) {
  width: 30%;
  min-width: 100px;
}

/* Third column styling */
.um-agg-table td:nth-child(3) {
  width: 40%;
}

/* Row hover effect */
.um-agg-table tbody tr:hover td {
  background-color: rgba(26, 26, 23, 0.02);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .um-agg-card {
    padding: 20px;
  }
  
  .um-agg-table {
    font-size: 13px;
  }
  
  .um-agg-table td {
    padding: 10px 6px 10px 0;
  }
  
  .um-agg-table td:first-child {
    min-width: 100px;
  }
}

/* =============================================
   CERTIFICATION LOGOS ROW (consolidated styles)
   ============================================= */

.certification-logo:hover {
  opacity: 1;
}

/* =============================================
   CONTACT INFO CARDS
   ============================================= */

.um-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.um-contact-card {
  background-color: var(--_🎨-color---background--eversand, #e6e8dd);
  border-radius: var(--_🔘-radius---radius--small, 8px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.um-contact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.um-contact-card-label {
  font-family: var(--_🔠-typography---font--ui, 'Open Sans', sans-serif);
  font-size: var(--_📏-size---label-2, 10px);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--_🎨-color---background--everstone, #3f403c);
}

.um-contact-card-value {
  font-family: var(--_🔠-typography---font--body, 'Open Sans', sans-serif);
  font-size: var(--_📏-size---b1, 20px);
  font-weight: 500;
  line-height: var(--_📏-line-height---b1, 28px);
  color: var(--_🎨-color---neutral--dark-100, #1a1a17);
  text-decoration: none;
  transition: color 0.2s ease;
}

.um-contact-card-value:hover {
  color: var(--accent--unimineteal-400, #59acad);
}

.um-contact-card-note {
  font-family: var(--_🔠-typography---font--body, 'Open Sans', sans-serif);
  font-size: var(--_📏-size---b3, 12px);
  line-height: var(--_📏-line-height---b3, 16px);
  color: var(--_🎨-color---neutral--dark-64, rgba(26, 26, 23, 0.64));
  margin-top: 8px;
}

.um-contact-card-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent--unimineteal-300, #84c5c5);
  border-radius: var(--_🔘-radius---radius--small, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.um-contact-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--_🎨-color---neutral--dark-100, #1a1a17);
}

/* =============================================
   DOTS PATTERN VISIBILITY
   ============================================= */

.dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Make dots more visible on light sections */
.section + .dots {
  opacity: 0.8;
}


/* =============================================
   CERTIFICATION LOGOS STYLING
   ============================================= */

/* Old cert-badge class - keeping for backward compatibility */
.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background-color: rgba(244, 243, 234, 0.08);
  border: 1px solid rgba(244, 243, 234, 0.16);
  border-radius: var(--_🔘-radius---radius--small, 8px);
  font-family: var(--_🔠-typography---font--ui, 'Open Sans', sans-serif);
  font-size: var(--_📏-size---button-1, 14px);
  font-weight: 500;
  color: var(--_🎨-color---neutral--light-100, #f4f3ea);
}


/* =============================================
   DOTS PATTERN - SHAPE GRID
   ============================================= */

/* Content sections need higher z-index to scroll OVER sticky hero */
/* site.css sets .section { z-index: 2; } and .section.hero-home-a-section { position: sticky; } */
/* We need content sections to have z-index > 2 */

#about,
section.home-impact-section,
section.contact-form-section,
section.system-home-c-section,
section.features-detail-section,
section.quarry-intro-section {
  position: relative;
  z-index: 10 !important;
}

/* Note: section.slider-services-section excluded - position:relative breaks slider button positioning */

/* Light sections - solid backgrounds */
#about,
section.home-impact-section,
section.contact-form-section,
section.slider-services-section {
  background-color: #f4f3ea !important;
}

/* Dark sections - solid backgrounds */
section.system-home-c-section,
section.features-detail-section,
section.quarry-intro-section {
  background-color: #2E3035 !important;
}

.dots {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 10;
  opacity: 0.8;
}

@media (max-width: 991px) {
  .dots {
    bottom: -40px;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .dots {
    bottom: -20px;
    opacity: 0.6;
  }
}

/* =============================================
   SUBMIT BUTTON STYLING - UNIMINE Teal
   ============================================= */

/* Ensure submit buttons use UNIMINE teal accent */
.cta-main.submit {
  background-color: var(--_🎨-color---accent--unimacorange-400-main, #59acad) !important;
  color: var(--_🎨-color---neutral--dark-100, #1a1a17) !important;
  border: none;
  font-family: var(--_🔠-typography---font--ui, 'Open Sans', sans-serif);
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-main.submit:hover {
  background-color: var(--unimine-teal-300, #84c5c5) !important;
  transform: translateY(-1px);
}

.cta-main.submit:active {
  transform: translateY(0);
}

/* =============================================
   FORM INPUT FOCUS STATES
   ============================================= */

.text-field.light:focus {
  border-color: var(--_🎨-color---accent--unimacorange-400-main, #59acad);
  box-shadow: 0 0 0 3px rgba(89, 172, 173, 0.15);
}

/* =============================================
   LINK HOVER COLORS — match UNIMAC (no teal)
   ============================================= */

/* =============================================
   AGGREGATE CARDS STYLING
   ============================================= */

.um-agg-card {
  background-color: var(--_🎨-color---background--eversand, #e6e8dd);
  border-radius: var(--_🔘-radius---radius--small, 8px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.um-agg-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.um-agg-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--_🔘-radius---radius--small, 8px);
  object-fit: cover;
}

.um-agg-card-title {
  flex: 1;
}

.um-agg-card-title h4 {
  margin: 8px 0 0;
  font-family: var(--_🔠-typography---font--heading-sans, 'Montserrat', sans-serif);
  font-size: var(--_📏-size---h6, 24px);
  font-weight: 500;
}

.um-agg-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(26, 26, 23, 0.08);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--_🎨-color---neutral--dark-64, rgba(26, 26, 23, 0.64));
}

.um-agg-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--_🎨-color---neutral--dark-88, rgba(26, 26, 23, 0.88));
  margin: 0;
}

.um-agg-table-wrap {
  margin-top: 8px;
  overflow-x: auto;
}

.um-agg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.4;
}

.um-agg-table th,
.um-agg-table td {
  padding: 12px 8px;
  text-align: left;
  border-top: 1px solid rgba(26, 26, 23, 0.12);
}

.um-agg-table th {
  font-weight: 500;
  color: var(--_🎨-color---neutral--dark-64, rgba(26, 26, 23, 0.64));
  font-size: 12px;
}

.um-agg-table td {
  color: var(--_🎨-color---neutral--dark-88, rgba(26, 26, 23, 0.88));
}

.um-agg-table tr:first-child th {
  border-top: none;
}

.um-agg-table tr:first-child td {
  border-top: none;
}

/* Responsive adjustments for aggregate cards */
@media (max-width: 991px) {
  .aggregate-cards-grid {
    grid-template-columns: 1fr;
  }

  .um-agg-table {
    font-size: 12px;
  }

  .um-agg-table th,
  .um-agg-table td {
    padding: 10px 6px;
  }
}

@media (max-width: 767px) {
  .um-agg-card {
    padding: 20px;
    gap: 12px;
  }

  .um-agg-card-title h4 {
    font-size: 20px;
    margin: 4px 0 0;
  }

  .um-agg-card-desc {
    font-size: 13px;
    line-height: 1.45;
  }

  .um-agg-table {
    font-size: 11px;
    line-height: 1.35;
  }

  .um-agg-table th,
  .um-agg-table td {
    padding: 8px 4px;
  }

  .um-agg-table td:first-child,
  .um-agg-table th:first-child {
    min-width: unset;
    width: auto;
  }

  .um-agg-table td:nth-child(2),
  .um-agg-table th:nth-child(2) {
    min-width: unset;
    width: auto;
  }

  .um-agg-table td:nth-child(3),
  .um-agg-table th:nth-child(3) {
    width: auto;
  }
}

@media (max-width: 479px) {
  .um-agg-card {
    padding: 16px;
    gap: 10px;
  }

  .um-agg-card-icon {
    width: 32px;
    height: 32px;
  }

  .um-agg-card-title h4 {
    font-size: 18px;
  }

  .um-agg-card-desc {
    font-size: 12px;
  }

  /* Stacked table: each row becomes a vertical block */
  .um-agg-table,
  .um-agg-table thead,
  .um-agg-table tbody,
  .um-agg-table tr,
  .um-agg-table th,
  .um-agg-table td {
    display: block;
    width: 100%;
  }

  .um-agg-table thead {
    display: none;
  }

  .um-agg-table tr {
    padding: 12px 0;
    border-top: 1px solid rgba(26, 26, 23, 0.12);
  }

  .um-agg-table tr:first-child {
    border-top: none;
  }

  .um-agg-table td {
    padding: 2px 0;
    border-top: none;
    font-size: 13px;
    line-height: 1.4;
  }

  /* First cell in each row: bold label style */
  .um-agg-table td:first-child {
    font-weight: 600;
    font-size: 13px;
    color: var(--_🎨-color---neutral--dark-100, #1a1a17);
    min-width: unset;
    width: 100%;
    padding-bottom: 2px;
  }

  /* Subsequent cells: values */
  .um-agg-table td:nth-child(2),
  .um-agg-table td:nth-child(3) {
    font-size: 12px;
    color: var(--_🎨-color---neutral--dark-64, rgba(26, 26, 23, 0.64));
    min-width: unset;
    width: 100%;
  }
}

/* =============================================
   HERO VIDEO CARD STYLING
   ============================================= */

.small-video {
  backdrop-filter: blur(32px);
  background: rgba(244, 243, 234, 0.08);
  border: 1px solid rgba(244, 243, 234, 0.08);
  border-radius: var(--_🔘-radius---radius--large, 16px);
  padding: 8px;
}

.small-video > div:last-child {
  color: var(--_🎨-color---neutral--light-100, #f4f3ea);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  margin-top: 8px;
}

.lightbox-small-video {
  position: relative;
  display: block;
  border-radius: var(--_🔘-radius---radius--small, 8px);
  overflow: hidden;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
}

/* =============================================
   PERFORMANCE & COMPLIANCE SECTION FIXES
   ============================================= */

/* Dark sections - white headings */
section.system-home-c-section h2,
section.system-home-c-section h3,
section.features-detail-section h2,
section.features-detail-section h3 {
  color: #f4f3ea !important;
}

/* Headline column spacing - consistent 24px gap */
section.system-home-c-section .headline-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}



/* Improve spacing between headline and body text */
section.system-home-c-section .body-text-column {
  margin-top: 8px;
}

/* Improve spacing in two-column layout */
section.system-home-c-section .column-halves {
  gap: 64px;
}

section.system-home-c-section .content-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  grid-row-gap: 24px;
  grid-column-gap: 24px;
}

.headline-body-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing--24, 24px);
}

/* Image in system-home-c-section - full height coverage */
section.system-home-c-section .image-wrap-column {
  height: 600px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--_🔘-radius---radius--small, 8px);
}

/* Body text in dark sections */
section.system-home-c-section .text-light-64 {
  color: rgba(244, 243, 234, 0.64);
  line-height: 1.6;
}

/* =============================================
   FEATURES DETAIL ROWS - SPACING FIXES
   ============================================= */

/* Increase spacing between rows */
.features-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* Improve spacing within each row */
.features-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Image container - fixed height with full coverage */
.features-detail-row .image-wrap-system-home-c {
  height: 600px;
  width: 100%;
  position: sticky;
  top: 120px;
  overflow: hidden;
  border-radius: var(--_🔘-radius---radius--small, 8px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.features-detail-row .image-wrap-system-home-c img.image-cover.parallax {
  display: block;
  position: static;
  width: 120%;
  height: 130%;
  min-width: 120%;
  min-height: 130%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  flex: none;
}

/* Better spacing for content column */
.features-detail-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Spacing between eyebrow and title - 24px consistent */
.features-detail-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Paragraph spacing in features */
.features-detail-bottom p {
  margin: 0 0 16px 0;
}

.features-detail-bottom p:last-child {
  margin-bottom: 0;
}

/* =============================================
   MOBILE RESPONSIVENESS
   ============================================= */

/* Base rule — moved from inline HTML */
.hero-home-a-section .video-home-a {
  min-height: 100svh;
  height: 100svh;
}

/* --- Tablet (≤ 991px) --- */
@media (max-width: 991px) {
  /* Stack single-column: title first, image below */
  .features-detail-row {
    grid-template-columns: 1fr;
  }

  .features-detail-row .image-wrap-system-home-c {
    position: relative;
    top: 0;
    order: 2;
  }

  .features-detail-row .features-detail-content {
    order: 1;
  }

  .features-detail-rows {
    gap: 40px;
  }

  section.system-home-c-section .image-wrap-column {
    height: 450px;
  }

}

/* --- Mobile landscape (≤ 767px) --- */
@media (max-width: 767px) {
  .features-detail-row .image-wrap-system-home-c {
    height: 280px;
  }

  .features-detail-rows {
    gap: 24px;
  }

  section.system-home-c-section .image-wrap-column {
    height: 350px;
  }

  .headline-slider-home {
    flex-direction: column;
    margin-bottom: 16px;
  }

  section.slider-services-section {
    padding-top: var(--spacing--48, 48px);
    padding-bottom: var(--spacing--48, 48px);
  }

  .um-agg-table td:first-child {
    min-width: unset;
  }

  .um-agg-table td:nth-child(2) {
    min-width: unset;
  }

  .overlay-blend-top-cream {
    max-height: 240px;
  }

  .overlay-blend-bottom-dark {
    min-height: 200px;
  }

  /* Contact section — prevent overflow */
  .contact-form-section .contact-halves {
    grid-template-columns: 1fr;
  }

  .contact-left {
    max-width: none !important;
    width: 100%;
  }

  .um-contact-cards {
    width: 100%;
  }

  .um-contact-card {
    width: 100%;
  }

  .um-contact-card-value {
    font-size: 16px;
    word-break: break-all;
  }

  .form-block {
    padding: var(--spacing--24, 24px);
  }

  .input-halves {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile portrait (≤ 479px) --- */
@media (max-width: 479px) {
  .features-detail-row .image-wrap-system-home-c {
    height: 220px;
  }

  .features-detail-rows {
    gap: 20px;
  }

  section.system-home-c-section .image-wrap-column {
    height: 280px;
  }

  .um-agg-card {
    padding: 16px;
    max-height: 420px;
    overflow-y: auto;
  }

  .um-agg-card-desc {
    display: none;
  }

  .um-agg-card-header {
    gap: 8px;
  }

  .um-agg-table {
    font-size: 12px;
  }

  .um-agg-table td,
  .um-agg-table th {
    padding: 6px 4px 6px 0;
  }

  .um-agg-card-title h4 {
    font-size: 20px;
  }

  .cert-logo-img {
    height: 32px;
  }
  .cert-logo-img[src*="cert-iso"] {
    width: auto;
    height: 32px;
  }
  .cert-logo-img[src*="cert-saso"] {
    width: auto;
    height: 32px;
  }
  .cert-logo-img[src*="cert-astm"] {
    width: auto;
    height: 32px;
  }
}

/* Larger hero title on desktop */
.left-home-a h1 {
  font-size: 80px;
  line-height: 84px;
}

@media screen and (min-width: 1440px) {
  .left-home-a h1 {
    font-size: 96px;
    line-height: 100px;
  }
}

@media screen and (max-width: 991px) {
  .left-home-a h1 {
    font-size: 60px;
    line-height: 64px;
  }
}

@media screen and (max-width: 767px) {
  .left-home-a h1 {
    font-size: 48px;
    line-height: 52px;
  }
}

/* Fix 1px gap between sections on mobile */
.section {
  margin-top: -1px;
}
