/**
 * Footer Style 1 Component Styles - Updated for Parallax System
 * 
 * This file contains styles specific to the footer style 1 component.
 * It imports the main variables and uses them for styling.
 */

 @import url('../../../assets/css/main-variables.css');

 .footer-style1 {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: visible;
  display: flex;
  align-items: center;
 }
 
 /* Updated background structure - matches working parallax components */
 .footer-style1 .background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  overflow: hidden;
}
 
 /* Images inside background container */
 .footer-style1 .background-image img {
   width: 100%;
   height: 120%;
   object-fit: cover;
   display: block;
 }
 
 /* Videos inside background container - same sizing as images */
 .footer-style1 .background-image video {
   width: 100%;
   height: 120%;
   object-fit: cover;
   display: block;
 }
 
 /* Background overlay */
 .footer-style1 .background-overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)), linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0.25),rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0));
   z-index: 2;
 }
 
 .image-background {
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
 }
 
 /* Remove old video-specific styles - no longer needed */
 
 .footer-style1 .container-medium {
   position: relative;
   z-index: 3;
   display: flex;
   flex-direction: column;
   justify-content: center;
   height: 100%;
 }
 
 .footer-content {
    margin-top: auto; /* Push content to bottom */
    align-self: flex-start; /* Keep left alignment */
    margin-bottom: 50px; /* Changed from 90px to 50px */
    width: 100%; /* NEW: Full width container */
  }
 
 .footer-heading {
   font-size: var(--font-size-h1);
   font-weight: var(--font-weight-bold);
   margin-bottom: var(--spacing-6);
   line-height: var(--line-height-tight);
   width: 60%; /* NEW: 60% width */
 }
 
 /* Huge Footer Heading Variant - matches hero */
 .footer-heading.footer-heading-huge {
   font-size: 6.5rem;
   line-height: 1.1;
   margin-bottom: var(--spacing-8);
   overflow: visible;
   padding-bottom: 0.1em;
 }
 
 /* Gradient Footer Heading */
 .footer-heading.footer-heading-gradient {
   background: linear-gradient(to right, var(--primary-300), var(--secondary-300));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   color: transparent;
 }
 
 .footer-description {
   line-height: var(--line-height-relaxed);
   width: 45%; /* NEW: 45% width, removed max-width: 600px */
   padding-right: 2rem;
 }
 
 /* Variant Modifiers */
 
 /* Width variants */
 .footer-style1--width-narrow .footer-content {
   max-width: 500px;
 }
 
 .footer-style1--width-container .container-medium {
   width: 100%;
   max-width: var(--container-max-width);
   margin-left: auto;
   margin-right: auto;
 }
 
 .footer-style1--width-wide .footer-content {
   max-width: 800px;
 }
 
 .footer-style1--width-full {
   width: 100%;
 }
 
 .footer-style1--width-full .container-medium {
   max-width: 100%;
   padding-left: var(--spacing-8);
   padding-right: var(--spacing-8);
 }
 
 /* Height variants */
 .footer-style1--height-small {
   height: 50vh;
   min-height: 400px;
 }
 
 .footer-style1--height-large {
   height: 100vh;
   min-height: 800px;
 }
 
 /* Padding variants */
 .footer-style1--padding-small {
   padding: var(--spacing-6) 0;
 }
 
 .footer-style1--padding-medium {
   padding: var(--spacing-12) 0;
 }
 
 .footer-style1--padding-large {
   padding: var(--spacing-20) 0;
 }
 
 /* Rounded corners */
 .footer-section-wrapper {
   position: relative;
 }

 /* Triangle pseudo-element */
 .footer-style1::before {
  content: '';
  position: absolute;
  top: 0%;
  left: 0px;
  width: 0;
  height: 0;
  border-left: 270px solid var(--primary-900);   /* Changed: solid part on left */
  border-bottom: 30px solid transparent;        /* Creates the bottom angle */
  z-index: 99;
}
 
 .footer-section-wrapper.rounded {
   border-radius: 30px;
   overflow: hidden;
 }
 
 .footer-style1--rounded-true {
   border-radius: var(--radius-lg);
   overflow: hidden;
 }
 
 /* Alignment variants */
 .footer-style1--alignment-left .footer-content {
   margin-right: auto;
   text-align: left;
 }
 
 .footer-style1--alignment-center .footer-content {
   margin-left: auto;
   margin-right: auto;
   text-align: center;
 }
 
 .footer-style1--alignment-right .footer-content {
   margin-left: auto;
   text-align: right;
 }
 
 /* Color variants */
 .footer-style1--color-light {
   background-color: var(--primary-50);
   color: var(--gray-900);
 }
 
 .footer-style1--color-dark {
   background-color: var(--primary-900);
   color: var(--gray-50);
 }
 
 /* Shadow effect */
 .footer-style1--shadow {
   box-shadow: var(--shadow-lg);
 }
 
 /* Remove transparent video background overrides - using background-overlay now */
 .footer-style1--transparent .background-overlay {
   background: none;
 }
 
 .footer-style1 {
   display: flex;
   align-items: flex-end; /* Align items to bottom */
 }
 
 .footer-style1 .container-medium {
   padding-bottom: var(--spacing-6); /* Add padding at bottom */
 }
 
 .footer-content h1 {
    background: linear-gradient(to right, var(--primary-300), var(--secondary-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
 }
 
 /* Responsive Adjustments */
 @media (max-width: 1200px) {
   .footer-heading.footer-heading-huge {
     font-size: 5rem;
   }
 }
 
 @media (max-width: 1024px) {
   .footer-style1 {
     height: auto;
     min-height: 500px;
     padding: var(--spacing-16) 0;
   }
   
   /* Update gradient to match hero - darker on mobile */
   .footer-style1 .background-overlay,
   .footer-background-container .background-overlay {
     background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)), 
                 linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0));
   }
   
   .footer-content {
     max-width: 100%;
   }
   
   /* Responsive width adjustments */
   .footer-heading {
     width: 80%;
   }
   
   .footer-description {
     width: 70%;
   }
 }
 
 @media (max-width: 768px) {
   .footer-style1 {
     height: 90vh; /* Match hero height */
     min-height: 400px;
     padding: var(--spacing-12) 0;
   }
   
   .footer-heading {
     font-size: var(--font-size-h2);
     width: 90%;
   }
   
   .footer-heading.footer-heading-huge {
     font-size: 4rem;
   }
   
   .footer-description {
     /* REMOVED: font-size: var(--font-size-medium); */
     width: 85%;
   }
   
   /* For mobile devices, consider using an image fallback */
   .video-background {
     background-color: var(--primary-900);
   }
 }
 
 @media (max-width: 480px) {
   .footer-heading {
     font-size: var(--font-size-h3);
     width: 100%;
   }
   
   .footer-heading.footer-heading-huge {
     font-size: 2.5rem;
   }
   
   .footer-description {
     width: 100%;
   }
 }

 /* ===== SITE FOOTER SECTION ===== */

 .site-footer {
   padding: 3rem 0 6rem;
   color: var(--gray-50);
 }

 .site-footer .container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 2rem;
 }

 .footer-content {
   display: flex;
   flex-direction: column;
 }

 .footer-main {
   position:relative;
 }

 .footer-logo {
    position: absolute;
    left: -60px;
    top: -40px;
 }

 .footer-logo img {
  height: 170px;
  width: auto;
}

 .footer-right {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 1rem;
 }

 /* Footer Navigation */
 .footer-nav {
   margin-bottom: 1rem;
   display: flex;
   align-items: center;
   gap: 2rem;
 }

 .footer-menu {
  display: flex;
  list-style: none !important;
  margin: 0;
  padding: 0 !important; /* Override global ul padding */
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-menu li {
  margin: 0 !important; /* Override global li margin */
  padding-left: 0 !important; /* Override global li padding */
  position: relative;
}

/* Remove custom bullet points from footer navigation */
.footer-menu li::before {
  display: none !important;
  content: none !important;
}

/* Ensure footer menu links maintain their styling */
.footer-menu a {
  color: var(--gray-100) !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 500 !important; /* Override potential bold from global styles */
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--primary-300) !important;
  text-decoration: none !important; /* Prevent underline on hover */
}

 /* Navigation button - copied from main navigation */
 .footer-nav .nav-button {
   margin-left: var(--spacing-1);
 }

 .footer-nav .nav-button:hover {
   opacity: 0.9;
 }

 .footer-social {
   display: flex;
   gap: 1rem;
   align-items: center;
 }

 .footer-social a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   background-color: rgba(255, 255, 255, 0.1);
   border-radius: 50%;
   color: var(--gray-100);
   font-size: 1.25rem;
   transition: all 0.3s ease;
   text-decoration: none;
 }

 .footer-social a:hover {
   background-color: var(--primary-600);
   color: #ffffff;
   transform: translateY(-2px);
 }

 .footer-bottom {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   padding-top: 4rem;
   gap: 2rem;
 }

 .footer-left-section {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   text-align: left;
 }

 .footer-contact p {
   margin: 0;
   color: var(--gray-300);
   font-size: 0.875rem;
 }

 .footer-contact a {
   color: var(--primary-300);
   text-decoration: underline;
   transition: color 0.3s ease;
 }

 .footer-contact a:hover {
   color: var(--primary-200);
 }

 .footer-copyright p {
   margin: 0;
   color: var(--gray-300);
   font-size: 0.875rem;
 }

 .footer-links {
   display: flex;
   gap: 1.5rem;
   align-items: flex-start;
 }

 .footer-links a {
   color: var(--gray-100);
   text-decoration: none;
   font-size: 0.6rem;
   font-weight: 600;
   letter-spacing: 0.05em;
   transition: color 0.3s ease;
 }

 .footer-links a:hover {
   color: var(--primary-300);
 }

 /* ================================
   WRAPPER SOLUTION - Keep Parallax + Allow Overflow
   Add this to your footer-style1.css
   ================================ */

/* Create a background container that clips the parallax */
.footer-style1 {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: visible; /* Allow hero-actions to overflow */
  display: flex;
  align-items: center;
}

/* Create a clipping container for just the background elements */
.footer-style1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden; /* Clip the background */
  z-index: 0;
  pointer-events: none;
}



/* Alternative: Use a wrapper div approach */
.footer-background-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden; /* Clips background */
  z-index: 1;
}

/* Move the background elements inside this container */
.footer-background-container .background-image {
  position: absolute;
  top: -10%;
  left: -5%;
  right: -5%;
  bottom: -10%;
  z-index: 1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.footer-background-container .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)), linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0.25),rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0));
  z-index: 2;
}

/* ================================
   HERO ACTIONS POSITIONING - FIXED VERSION
   Removed !important declarations to allow JS responsive control
   ================================ */

/* Hero actions that appear AFTER footer-style1 (not inside it) */
.footer-style1 + .hero-actions-block {
  position: relative;
  z-index: 10;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: var(--spacing-8);
  width: calc(50% - var(--spacing-8));
  max-width: 600px;
  transform: none;
}

/* Remove old absolute positioning styles */
.footer-style1 .hero-actions-block {
  position: relative !important;
  transform: none !important;
}

/* ================================
   MULTI-VIDEO BACKGROUND SUPPORT
   Add this to both hero-style1.css and footer-style1.css
   ================================ */

/* Multi-Video Container Styles */
.multi-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.multi-video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  will-change: opacity;
  backface-visibility: hidden;
}

/* Ensure videos are behind overlays in hero */
.hero-style1 .background-image .multi-video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-style1.multi-video-bg .background-overlay {
  z-index: 2;
}

.hero-style1.multi-video-bg .container-medium {
  z-index: 3;
}

/* Ensure videos are behind overlays in footer */
.footer-style1 .background-image .multi-video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.footer-style1.multi-video-bg .background-overlay {
  z-index: 2;
}

.footer-style1.multi-video-bg .container-medium {
  z-index: 3;
}

/* Footer background container needs proper positioning for multi-video */
.footer-style1 .footer-background-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden; /* Clips background */
  z-index: 1;
}

/* Ensure footer background image positioning works with multi-video */
.footer-style1 .footer-background-container .background-image {
  position: absolute;
  top: -15%;
  left: -15%;
  right: -15%;
  bottom: -15%;
  z-index: 1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Loading state for multi-video */
.multi-video-container.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.multi-video-container.loading::before {
  content: 'Loading videos...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: var(--font-size-medium);
  z-index: 11;
}

/* Apply navigation styles to footer menu */
.footer-menu {
  display: flex;
  list-style: none !important;
  margin: 0;
  padding: 0 !important;
  gap: 1rem; /* Match header navigation gap */
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center; /* Align with button */
}

.footer-menu li {
  margin: 0 !important;
  padding-left: 0 !important;
  position: relative;
}

/* Remove bullet points */
.footer-menu li::before {
  display: none !important;
  content: none !important;
}

/* Base menu item styles - match header */
.footer-menu > li > a {
  color: var(--gray-100) !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 500 !important;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
  display: block;
}

/* Hover effect - match header */
.footer-menu > li > a:hover {
  color: var(--primary-300) !important;
  text-decoration: none !important;
}

/* Active/current page styling */
.footer-menu > li.current-menu-item > a,
.footer-menu > li.current-page-ancestor > a {
  color: var(--primary-300) !important;
}

/* Dropdown support for footer menu */
.footer-menu li.menu-item-has-children {
  position: relative;
}

/* Dropdown arrow - match header */
.footer-menu li.menu-item-has-children > a::after {
  content: '\f107'; /* Font Awesome down arrow */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Submenu styles */
.footer-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Show submenu on hover */
.footer-menu li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Rotate arrow on hover */
.footer-menu li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Submenu items */
.footer-menu .sub-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-menu .sub-menu li::before {
  display: none !important;
}

.footer-menu .sub-menu a {
  display: block;
  padding: 0.5rem 1.5rem !important;
  color: var(--gray-100) !important;
  font-size: 0.9rem;
  font-weight: 400 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.footer-menu .sub-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-300) !important;
  padding-left: 1.75rem !important;
}

/* Button in footer nav */
.footer-nav .nav-button {
  margin-left: 2rem;
  white-space: nowrap;
}

/* Ensure proper alignment */
.footer-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

/* ================================
   FOOTER NAVIGATION MOBILE HIDING AND LAYOUT
   Hide footer menu items at 1080px breakpoint
   Stack and center all footer elements
   ================================ */

@media (max-width: 1080px) {
  /* Hide the footer menu items */
  .footer-menu {
    display: none !important;
  }
  
  /* Adjust footer nav to only show button if present */
  .footer-nav {
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  /* Ensure nav button remains visible and properly styled */
  .footer-nav .nav-button {
    margin-left: 0;
    margin-right: 0;
  }
  
  /* If there's no button, hide the entire footer nav */
  .footer-nav:not(:has(.nav-button)) {
    display: none;
  }
  
  /* Fallback for browsers without :has() support */
  .footer-nav:empty,
  .footer-nav:not(:has(*)) {
    display: none;
  }
  
  /* Remove top padding from site footer on mobile */
  .site-footer {
    padding-top: 0;
  }
  
  /* Stack and center site footer content */
  .site-footer .container {
    text-align: center;
  }
  
  /* Main footer - stack everything vertically */
  .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Reduced from 2rem for tighter spacing */
  }
  
  /* Logo - position static and centered */
  .footer-logo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 0.5rem; /* Reduced from 1.5rem for tighter spacing */
  }
  
  .footer-logo img {
    height: 136px; /* 80% of original 170px */
    margin: 0 auto;
  }
  
  /* Footer right section - center align */
  .footer-right {
    align-items: center;
    width: 100%;
    gap: 2rem;
  }
  
  /* Social icons - centered */
  .footer-social {
    margin-top: 0;
    justify-content: center;
  }
  
  /* Footer bottom - stack vertically */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding-top: 2rem;
  }
  
  /* Terms of service links - centered */
  .footer-links {
    order: -1; /* Move to top of footer-bottom */
    justify-content: center;
    width: 100%;
    gap: 2rem;
  }
  
  /* Contact and copyright - centered */
  .footer-left-section {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  /* Ensure proper ordering:
     1. Logo (in footer-main)
     2. Social icons (in footer-right)
     3. Terms (reordered in footer-bottom)
     4. Contact (in footer-left-section)
     5. Copyright (in footer-left-section)
  */
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Hide dropdowns on mobile (redundant now since menu is hidden at 1080px) */
  .footer-menu .sub-menu {
    display: none;
  }
  
  /* Remove dropdown arrows on mobile (redundant but kept for safety) */
  .footer-menu li.menu-item-has-children > a::after {
    display: none;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Center the button if it exists */
  .footer-nav:has(.nav-button) {
    justify-content: center;
  }
  
  .footer-nav .nav-button {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  /* Ensure clean layout when nav is hidden */
  .footer-main {
    gap: 1.5rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .multi-video-container video {
    /* Ensure good performance on mobile */
    transform: translate(-50%, -50%) scale(1.05);
  }
  
  /* Reduce transition duration on mobile for better performance */
  .multi-video-container video {
    transition: opacity 0.5s ease-in-out;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .multi-video-container video {
    transition: none;
  }
}



/* Fix for footer wrapper overflow solution */
.footer-section-wrapper {
  position: relative;
  overflow: visible;
  margin-top: var(--spacing-16);
}

/* Add margin-bottom when no hero-actions follow */
.footer-section-wrapper:not(:has(+ .hero-actions-block)) {
  margin-bottom: var(--spacing-16);
}

/* Alternative for browsers without :has() support */
.footer-section-wrapper:last-child {
  margin-bottom: var(--spacing-16);
}

/* Remove margin when hero-actions exists */
.footer-section-wrapper:has(+ .hero-actions-block) {
  margin-bottom: 0;
}

.footer-style1 {
  overflow: visible; /* Allow hero-actions to overflow */
}

 /* Responsive Design for Site Footer - Smaller screens */
 @media (max-width: 768px) {
   /* Most styling handled by 1080px breakpoint above */
   /* Additional adjustments for smaller screens */
   
   .footer-logo img {
     height: 120px; /* Slightly smaller on mobile */
   }
   
   .footer-links {
     gap: 1.5rem; /* Tighter spacing */
   }
   
   .footer-links a {
     font-size: 0.875rem; /* Slightly larger for mobile tapping */
   }

   .footer-description {
    line-height:1.25rem;
    padding-right:0;
   }

   .footer-heading {
    font-size: 2.5rem;
   }

   .footer-style1 .container-medium {
    max-width: calc(100% - var(--spacing-12));
    padding-bottom: var(--spacing-12);
   }

   .footer-style1 .background-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)), linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0));
  }
 }

 @media (max-width: 480px) {
   .site-footer {
     padding: 0 0 3rem; /* No top padding, keep bottom padding */
   }

   .site-footer .container {
     padding: 0 1rem;
   }

   .footer-logo img {
     height: 100px; /* Even smaller on very small screens */
   }

   /* Footer nav button full width on very small screens */
   .footer-nav:has(.nav-button) {
     width: 100%;
     text-align: center;
   }
   
   .footer-nav .nav-button {
     display: inline-block;
     text-align: center;
     width: 100%;
     max-width: 300px;
     margin: 0 auto;
   }

   .footer-social a {
     width: 35px;
     height: 35px;
     font-size: 1.125rem;
   }

   .footer-links {
     flex-wrap: wrap; /* Allow wrapping on very small screens */
     gap: 1rem;
   }
   
   .footer-links a {
     font-size: 0.75rem;
   }
   
   /* Adjust font sizes for very small screens */
   .footer-contact p,
   .footer-copyright p {
     font-size: 0.75rem;
   }

 


 }

 /* ================================
   RESPONSIVE HERO ACTIONS POSITIONING
   Let JS handle tablet positioning, but provide mobile fallback
   ================================ */
 @media (max-width: 768px) {
  .footer-style1 + .hero-actions-block {
    /* Let JS control margin-top */
    margin-left: var(--spacing-4) !important;
    margin-right: var(--spacing-4) !important;
    width: calc(100% - var(--spacing-8)) !important;
    max-width: 100% !important;
    position: relative !important;
    transform: none !important;
  }
}

