/*
=============================================
  HERO SECTION BUTTON FIX
=============================================
*/

/* Hero button styles in buttons.css - only hero-specific overrides here */
.hero-section .nectar-button,
#slider-section .nectar-button,
.find-more-button {
  font-size: 1.1rem; /* Larger text for hero buttons */
}

/* =============================================
  SLIDER HEADING STYLES
============================================= */
/* HS-HEADING-EL - Alternative main heading class - Desktop baseline */
html body .nectar-slider-wrap .hs-heading-el,
html body .swiper-slide .hs-heading-el,
html body #slider-section .swiper-slide .content .hs-heading-el {
  font-family: 'Stolzl', sans-serif;
  font-size: clamp(38px, 2.375rem + 2vw, 60px) !important; /* MAIN HEADING - fluid scaling mobile 38px to desktop 60px */
  font-weight: 600 !important; /* Consistent weight across all heading classes */
  text-transform: none;
  color: var(--neutral-100);
  line-height: 1.1 !important;
  margin-bottom: 0.5rem;
  position: relative;
  letter-spacing: clamp(-0.95px, -0.06rem + 0.03vw, -1.5px) !important;
}

/* Keep the decorative line for hs-heading-el */
html body .nectar-slider-wrap .hs-heading-el::after,
html body .swiper-slide .hs-heading-el::after,
html body #slider-section .swiper-slide .content .hs-heading-el::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 600px;
  height: 3px;
  background-color: var(--ul-red-200);
  margin-top: 0.5rem;
}

/* =============================================
  SLIDER SUB-HEADING STYLES
============================================= */
html body #slider-section .swiper-slide .content p {
  font-family: 'Stolzl', sans-serif;
  font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.5rem); /* Fluid paragraph */
  font-weight: 400;
  color: var(--neutral-100);
  line-height: 1.5;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Generic paragraph spans - Removed to avoid conflict with specific subheading styles
 * The specific #nectar-slider-instance-1 subheading selector takes precedence
 */

/* 
 * Typography Approach:
 * - CSS provides baseline styles with proper specificity
 * - JavaScript (fix-hero-typography.js) enforces sizes as Nectar Slider
 *   periodically overwrites them with its responsive text system
 * - Both use identical breakpoints and px values for consistency
 * - Breakpoints: Mobile 0-640px, Tablet 768-1023px, Desktop 1024px+
 */

/* SUBHEADING - Desktop baseline with fluid typography - More resilient selector */
#nectar-slider-instance-1 .swiper-slide .content p span,
.nectar-slider-wrap .swiper-slide .content p span {
  color: var(--neutral-100);
  leading-trim: both;
  text-edge: cap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 1px 1px rgba(0, 0, 0, 0.8);
  font-family: 'Stolzl', sans-serif;
  font-size: clamp(24px, 1.5rem + 1vw, 35.2px) !important; /* SUBHEADING - fluid scaling mobile 24px to desktop 35.2px */
  font-style: normal;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: clamp(-0.6px, -0.0375rem + 0.02vw, -0.88px) !important;
  text-transform: none;
}

/* =============================================
   CUSTOM NS-HEADING-EL TYPOGRAPHY - FLUID RESPONSIVE
============================================= */
.ns-heading-el,
html body .nectar-slider-wrap .ns-heading-el,
html body .swiper-slide .ns-heading-el,
html body #slider-section .swiper-slide .content .ns-heading-el {
  color: var(--neutral-100);
  leading-trim: both;
  text-edge: cap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9);
  font-family: 'Stolzl', sans-serif;
  font-size: clamp(38px, 2.375rem + 2vw, 60px) !important; /* MAIN HEADING - fluid scaling mobile 38px to desktop 60px */
  font-style: normal;
  font-weight: 600 !important; /* Consistent weight across breakpoints */
  line-height: 1.1 !important;
  letter-spacing: clamp(-0.95px, -0.06rem + 0.03vw, -1.5px) !important;
  text-transform: none;
}

/* =============================================
   NECTAR SLIDER BUTTON STYLES
============================================= */

/* Target the specific button structure from the slider */
.nectar-slider-wrap .buttons .button.solid_color,
.nectar-slider-wrap .buttons .button.solid_color_2,
.nectar-slider-wrap .buttons .button.transparent {
  /* Reset any default styles */
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  perspective: none !important;
  display: inline-block !important;
}

.nectar-slider-wrap .buttons .button.solid_color:before,
.nectar-slider-wrap .buttons .button.solid_color:after,
.nectar-slider-wrap .buttons .button.solid_color_2:before,
.nectar-slider-wrap .buttons .button.solid_color_2:after {
  display: none !important;
}

/* Style the button links to match UL button system */
.nectar-slider-wrap .buttons .button.solid_color a,
.nectar-slider-wrap .buttons .button.solid_color_2 a {
  /* Apply core UL button styles */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 14px 28px !important;
  margin: 5px 0 !important;
  border: 2px solid transparent !important;
  border-radius: 50px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  font-family: var(--font-family-base) !important;
  font-size: 1.1rem !important; /* Slightly larger for hero buttons */
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important; /* Remove underline */
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.33, 1) !important;
  transform: translateY(0) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;

  /* Default to red solid style */
  background-color: var(--ul-red-200) !important;
  color: var(--neutral-100) !important;
  border-color: var(--ul-red-200) !important;
  box-shadow: 0 4px 15px var(--ul-red-30) !important;
}

/* Make transparent variant inherit identical size & radius */
.nectar-slider-wrap .buttons .button.transparent a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 28px !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 50px !important;
  box-sizing: border-box !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.33, 1) !important;
  transform: translateY(0) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Secondary button (transparent outline) - covers both slider variants */
.nectar-slider-wrap .buttons .button.solid_color_2 a,
.nectar-slider-wrap .buttons .button.transparent a {
  background-color: transparent !important;
  color: var(--neutral-100) !important; /* white */
  border-color: var(--neutral-100) !important; /* white */
  box-shadow: none !important;
}

/* Hover states - remove underline and apply UL button hover effects */
.nectar-slider-wrap .buttons .button.solid_color a:hover,
.nectar-slider-wrap .buttons .button.solid_color_2 a:hover {
  background-color: var(--ul-red-300) !important;
  border-color: var(--ul-red-300) !important;
  color: var(--neutral-100) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px var(--ul-red-50) !important;
  text-decoration: none !important; /* Ensure no underline on hover */
}

/* Secondary outline hover/focus states */
.nectar-slider-wrap .buttons .button.solid_color_2 a:hover,
.nectar-slider-wrap .buttons .button.solid_color_2 a:focus,
.nectar-slider-wrap .buttons .button.transparent a:hover,
.nectar-slider-wrap .buttons .button.transparent a:focus {
  background-color: var(--ul-red-200) !important;
  border-color: var(--ul-red-200) !important;
  color: var(--neutral-100) !important;
  box-shadow: 0 6px 20px var(--ul-red-30) !important;
}

/* Ensure text colour wins over theme helpers like .primary-color */
.nectar-slider-wrap .buttons .button.transparent a.primary-color {
  color: var(--neutral-100) !important;
}

/* Prevent outline cropping and tidy spacing due to wrapper nesting */
.nectar-slider-wrap .buttons .button,
.nectar-slider-wrap .buttons .button * {
  overflow: visible !important;
}

.nectar-slider-wrap .buttons .button {
  padding: 0 !important;
  margin: 0 !important;
}

/* Align buttons horizontally with consistent spacing */
.nectar-slider-wrap .buttons {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.nectar-slider-wrap .buttons .button a {
  margin: 0 !important; /* avoid nested margins causing clipped borders */
}

/* Remove any pseudo-elements that might cause styling issues */
.nectar-slider-wrap .buttons .button.solid_color a:before,
.nectar-slider-wrap .buttons .button.solid_color a:after,
.nectar-slider-wrap .buttons .button.solid_color_2 a:before,
.nectar-slider-wrap .buttons .button.solid_color_2 a:after {
  display: none !important;
}

/* Remove button wrap styling */
.nectar-slider-wrap .buttons .button.solid_color .button-wrap,
.nectar-slider-wrap .buttons .button.solid_color_2 .button-wrap {
  overflow: visible !important;
  padding: 0 !important;
  display: inline !important;
}

/* Focus states for accessibility */
.nectar-slider-wrap .buttons .button.solid_color a:focus-visible,
.nectar-slider-wrap .buttons .button.solid_color_2 a:focus-visible {
  outline: 3px solid var(--ul-blue-200) !important;
  outline-offset: 2px !important;
}

/* Active states */
.nectar-slider-wrap .buttons .button.solid_color a:active,
.nectar-slider-wrap .buttons .button.solid_color_2 a:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Disabled states */
.nectar-slider-wrap .buttons .button.solid_color a:disabled,
.nectar-slider-wrap .buttons .button.solid_color_2 a:disabled,
.nectar-slider-wrap .buttons .button.solid_color.disabled a,
.nectar-slider-wrap .buttons .button.solid_color_2.disabled a {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .nectar-slider-wrap .buttons .button.solid_color a,
  .nectar-slider-wrap .buttons .button.solid_color_2 a {
    transition: none !important;
  }
  
  .nectar-slider-wrap .buttons .button.solid_color a:hover,
  .nectar-slider-wrap .buttons .button.solid_color_2 a:hover {
    transform: none !important;
  }
}

/* =============================================
   MOBILE RESPONSIVE STYLES - FLUID TYPOGRAPHY
============================================= */
/* Typography now uses fluid clamp() for automatic scaling */
/* Media queries removed - fluid typography handles all breakpoints */
/* Button sizing still uses media queries for stepped responsive design */

/* TABLET - 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Buttons - slightly smaller */
  .nectar-slider-wrap .buttons .button.solid_color a,
  .nectar-slider-wrap .buttons .button.solid_color_2 a,
  .nectar-slider-wrap .buttons .button.transparent a {
    padding: 12px 24px !important;
    border-radius: 40px !important;
    font-size: 1rem !important;
  }
}

/* MOBILE - 0 to 640px */
@media (max-width: 640px) /* Mobile breakpoint - standardised */ {
  /* Buttons - more compact */
  .nectar-slider-wrap .buttons .button.solid_color a,
  .nectar-slider-wrap .buttons .button.solid_color_2 a,
  .nectar-slider-wrap .buttons .button.transparent a {
    padding: 10px 18px !important;
    border-radius: 36px !important;
    font-size: 0.95rem !important;
  }
}




