/* Color Palette Variables */
:root {
  --amuse-blue: #3d7a9d;
  --amuse-blue-dark: #2c5974;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
}

/* ==========================================
   1. HERO SECTION STYLES (CENTERED)
   ========================================== */
.amuse-hero-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  min-height: 650px; 
  display: flex;
  justify-content: center; 
  align-items: center;     
  background-image: url(https://amusepolis.com/wp-content/uploads/2026/07/1eed7774-de30-406e-a313-cb9f376c7e06.png); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px; 
  box-sizing: border-box;
}

.amuse-hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.08); 
  z-index: 1;
}

.amuse-hero-container {
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 2;
  max-width: 800px; 
  width: 100%;
  padding: 48px; 
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-top: 5px solid var(--amuse-blue);
  box-sizing: border-box;
  text-align: center; 
}

.amuse-preheader {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--amuse-blue);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.amuse-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 32px; 
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin: 0 auto 18px auto;
}

.amuse-body {
  font-family: 'Inter', sans-serif;
  font-size: 15px; 
  font-weight: 400;
  line-height: 1.7; 
  color: var(--text-muted);
  margin: 0 auto 28px auto;
}

.amuse-cta-wrapper {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center; 
}

.amuse-cta-primary {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  background-color: var(--amuse-blue);
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.amuse-cta-primary:hover {
  background-color: var(--amuse-blue-dark);
}

.amuse-cta-secondary {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--amuse-blue);
  background-color: transparent;
  padding: 12px 26px;
  border: 2px solid var(--amuse-blue);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.amuse-cta-secondary:hover {
  background-color: rgba(61, 122, 157, 0.08);
}


/* ==========================================
   2. FIXED HEADER MENU WRAP REPAIR (DESKTOP ONLY)
   ========================================== */
@media (min-width: 992px) {
  .elementor-nav-menu--main,
  .elementor-nav-menu,
  .main-navigation ul,
  ul.menu {
    display: flex !important;
    flex-wrap: nowrap !important; 
    justify-content: flex-end !important;
  }

  .elementor-nav-menu--main .menu-item a,
  .main-navigation ul li a,
  ul.menu li a {
    font-size: 14px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    white-space: nowrap !important; 
  }
}


/* ==========================================
   3. GLOBAL DROPDOWN LAYER & SOLID READABILITY (ALL PAGES)
   ========================================== */
/* Forces header containers globally to establish a stacking context on top of subpage templates */
header,
.site-header,
.elementor-header,
.elementor-location-header,
div[data-elementor-type="header"],
.elementor-section-wrap > header,
.elementor-section-wrap > div[data-elementor-type="header"],
.elementor-widget-nav-menu,
.main-navigation,
.elementor-column,
.elementor-section,
.elementor-widget-wrap {
  position: relative !important; /* CRITICAL: Enables z-index stacking to function */
  z-index: 99999999 !important; /* Forces the header over inner page banners */
  overflow: visible !important; /* Prevents containers from clipping dropdowns */
}

/* Safeguard: Prevents sticky scroll headers from breaking because of 'position: relative' */
header.elementor-sticky--active,
.elementor-header.elementor-sticky--active,
.elementor-location-header.elementor-sticky--active,
div[data-elementor-type="header"].elementor-sticky--active {
  position: fixed !important; /* Retains sticky behavior when scrolled */
}

/* Stacking Safeguard: Forces the first banner/page section of subpages to remain behind header */
.elementor-section:first-of-type,
.page-header,
.entry-header {
  z-index: 1 !important; /* Pushes the page banner background under the header menu */
}

/* Force dropdown menu wrappers to be 100% solid white (opaque) with a soft shadow */
.sub-menu,
ul.sub-menu,
.dropdown-menu,
.elementor-nav-menu--dropdown,
.elementor-nav-menu .sub-menu,
.elementor-nav-menu--main .sub-menu,
.elementor-sub-item {
  background-color: #ffffff !important; 
  background: #ffffff !important;
  opacity: 1 !important; /* 100% opaque, zero transparency */
  z-index: 999999999 !important; /* Sits completely over page banners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important; 
  border-radius: 8px !important;
  padding: 8px 0 !important;
  list-style: none !important;
}

/* Ensure sub-menu list items and anchor links are solid white with high-contrast text */
.sub-menu li,
.sub-menu li a,
.elementor-nav-menu--dropdown li,
.elementor-nav-menu--dropdown li a,
.elementor-nav-menu .sub-menu li,
.elementor-nav-menu .sub-menu li a {
  background-color: #ffffff !important;
  background: #ffffff !important;
  opacity: 1 !important;
  color: #1f2937 !important; /* High contrast dark grey */
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  display: block !important;
  text-align: left !important;
  transition: all 0.2s ease-in-out !important;
}

/* Hover behaviors inside the sub-menus */
.sub-menu li a:hover,
.elementor-nav-menu--dropdown li a:hover,
.elementor-nav-menu .sub-menu a:hover {
  background-color: rgba(61, 122, 157, 0.08) !important; 
  color: #3d7a9d !important; 
}


/* ==========================================
   4. SCOPED REMOVAL OF HEADER SOCIALS, PHONE & EMAIL
   ========================================== */
header a[href^="tel:"],
header a[href^="mailto:"],
header li:has(a[href^="tel:"]),
header li:has(a[href^="mailto:"]),
header .elementor-icon-list-item:has(a[href^="tel:"]),
header .elementor-icon-list-item:has(a[href^="mailto:"]),
header i[class*="phone"],
header i[class*="envelope"],
header span[class*="phone"],
header span[class*="envelope"],
header .elementor-widget-social-icons,
header .elementor-social-icons-wrapper,
header .social-icons,
header .social-media-icons,
header [class*="social"] {
  display: none !important;
}


/* ==========================================
   5. MOBILE RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
  .amuse-hero-wrapper {
    min-height: auto;
    padding: 60px 15px;
  }
  .amuse-hero-container {
    padding: 32px 24px;
    max-width: 100%;
  }
  .amuse-headline {
    font-size: 26px;
  }
  .amuse-body {
    font-size: 14px;
    line-height: 1.6;
  }
  .amuse-cta-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  .amuse-cta-primary, .amuse-cta-secondary {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}
/* ====================================================================
   MOBILE OVERFLOW PREVENTER (Isolate to 768px and below)
   ==================================================================== */
@media screen and (max-width: 768px) {
    /* 1. Reset root elements to enforce physical screen boundaries */
    html, 
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important; /* Clips horizontal spilling */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 2. Secondary container safety valve for WordPress / Elementor wrappers */
    #page, 
    .site, 
    #content,
    .elementor,
    .elementor-section-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* 3. Safety reset for images and tables (often the cause of sudden breaks) */
    img, 
    video, 
    iframe,
    table {
        max-width: 100% !important;
        height: auto;
    }
}