/* ===========================
   VISTA ARENAL ADVENTURE PARK
   Main CSS Architecture
   Mobile-First Responsive Design
   =========================== */

/* CSS Custom Properties - Costa Rica Design System */
:root {
  /* Primary Colors - Inspired by Essential Costa Rica */
  --primary-green: #00A859;      /* Costa Rica's lush rainforest */
  --secondary-green: #7CB342;    /* Lighter canopy green */
  --accent-blue: #0277BD;        /* Sky and water elements */
  --earth-brown: #5D4037;        /* Tree bark, natural elements */
  
  /* Supporting Colors */
  --warm-sand: #F5E6D3;          /* Light backgrounds */
  --volcano-gray: #424242;       /* Text and volcanic rock */
  --sunset-orange: #FF6F00;      /* CTA buttons, energy */
  --cloud-white: #FFFFFF;        /* Clean spaces */
  
  /* Additional Utility Colors */
  --success-green: #4CAF50;
  --warning-orange: #FF9800;
  --error-red: #F44336;
  --info-blue: #2196F3;
  
  /* Typography - Costa Rica Adventure Theme */
  --heading-font: 'Montserrat', 'Segoe UI', sans-serif;
  --body-font: 'Open Sans', 'Roboto', sans-serif;
  --accent-font: 'Caveat', 'Dancing Script', cursive;
  
  /* Font Sizes - Mobile First with Fluid Typography */
  --h1-mobile: clamp(2rem, 5vw, 3rem);
  --h2-mobile: clamp(1.5rem, 4vw, 2.25rem);
  --h3-mobile: clamp(1.25rem, 3.5vw, 1.75rem);
  --h4-mobile: clamp(1.125rem, 3vw, 1.5rem);
  --h5-mobile: clamp(1rem, 2.5vw, 1.25rem);
  --h6-mobile: clamp(0.875rem, 2vw, 1rem);
  --body-mobile: clamp(1rem, 2.5vw, 1.125rem);
  --small-mobile: clamp(0.875rem, 2vw, 1rem);
  
  /* Spacing System */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
  --space-5xl: 8rem;      /* 128px */
  
  /* Container Widths */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-2xl: 1320px;
  
  /* Breakpoints (for reference in JS) */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1440px;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ===========================
   BASE STYLES & RESET
   =========================== */

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* 16px base */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-size: var(--body-mobile);
  line-height: 1.6;
  color: var(--volcano-gray);
  background-color: var(--cloud-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--earth-brown);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--h1-mobile); }
h2 { font-size: var(--h2-mobile); }
h3 { font-size: var(--h3-mobile); }
h4 { font-size: var(--h4-mobile); }
h5 { font-size: var(--h5-mobile); }
h6 { font-size: var(--h6-mobile); }

p {
  margin-bottom: var(--space-md);
  color: var(--volcano-gray);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--primary-green);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Lists */
ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Form Elements */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--earth-brown);
  color: var(--cloud-white);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--space-md));
}

.col {
  flex: 1;
  padding: 0 var(--space-md);
}

/* Flexbox Utilities */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-items-stretch { align-items: stretch; }

.flex-direction-row { flex-direction: row; }
.flex-direction-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Text Utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-green); }
.text-secondary { color: var(--secondary-green); }
.text-accent { color: var(--accent-blue); }
.text-muted { color: var(--volcano-gray); }
.text-white { color: var(--cloud-white); }

.font-heading { font-family: var(--heading-font); }
.font-body { font-family: var(--body-font); }
.font-accent { font-family: var(--accent-font); }

.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 800; }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

/* Generate spacing utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }
.pt-3xl { padding-top: var(--space-3xl); }

.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }
.pb-3xl { padding-bottom: var(--space-3xl); }

/* Background Utilities */
.bg-primary { background-color: var(--primary-green); }
.bg-secondary { background-color: var(--secondary-green); }
.bg-accent { background-color: var(--accent-blue); }
.bg-earth { background-color: var(--earth-brown); }
.bg-sand { background-color: var(--warm-sand); }
.bg-white { background-color: var(--cloud-white); }

/* Border Utilities */
.border { border: 1px solid var(--warm-sand); }
.border-primary { border-color: var(--primary-green); }
.border-secondary { border-color: var(--secondary-green); }

.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ===========================
   COMPONENT BASE STYLES
   =========================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: var(--body-mobile);
  line-height: 1.5;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px; /* Touch-friendly minimum */
  min-width: 44px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--sunset-orange) 0%,
    #ff8f00 50%,
    var(--sunset-orange) 100%
  );
  background-size: 200% 200%;
  color: var(--cloud-white);
  border-color: var(--sunset-orange);
  /* Organic button shape */
  border-radius: 25px 25px 25px 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(255, 111, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-base);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover,
.btn-primary:focus {
  background-position: 100% 100%;
  border-color: #e65100;
  color: var(--cloud-white);
  text-decoration: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(255, 111, 0, 0.4),
    0 4px 15px rgba(0, 168, 89, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-radius: 8px 25px 25px 25px;
  animation: pulseGlow 0.6s ease-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3); }
  50% { box-shadow: 0 8px 30px rgba(255, 111, 0, 0.6), 0 0 20px rgba(0, 168, 89, 0.3); }
  100% { box-shadow: 0 8px 25px rgba(255, 111, 0, 0.4), 0 4px 15px rgba(0, 168, 89, 0.2); }
}

.btn-secondary {
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(93, 64, 55, 0.05) 50%,
    transparent 100%
  );
  color: var(--earth-brown);
  border: 2px solid var(--earth-brown);
  border-radius: 8px 25px 8px 25px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(93, 64, 55, 0.1) 0%,
    transparent 70%
  );
  transition: all var(--transition-base);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(
    135deg,
    var(--earth-brown) 0%,
    #6d4c41 50%,
    var(--earth-brown) 100%
  );
  color: var(--cloud-white);
  text-decoration: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 20px rgba(93, 64, 55, 0.3),
    0 4px 10px rgba(0, 168, 89, 0.1);
  border-radius: 25px 8px 25px 8px;
  border-color: var(--earth-brown);
}

.btn-secondary:hover::after {
  width: 300px;
  height: 300px;
}

.btn-whatsapp {
  background: linear-gradient(
    135deg,
    #25D366 0%,
    #20b358 50%,
    #25D366 100%
  );
  background-size: 200% 200%;
  color: var(--cloud-white);
  border-color: #25D366;
  gap: var(--space-xs);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(37, 211, 102, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-whatsapp::before {
  content: '💬';
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  transition: left var(--transition-base);
  opacity: 0;
}

.btn-whatsapp:hover::before {
  left: 10px;
  opacity: 1;
}

.btn-whatsapp:hover {
  padding-left: calc(var(--space-xl) + 20px);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background-position: 100% 100%;
  border-color: #128C7E;
  color: var(--cloud-white);
  text-decoration: none;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(37, 211, 102, 0.4),
    0 4px 15px rgba(18, 140, 126, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: whatsappPulse 1s ease-in-out;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6), 0 0 25px rgba(37, 211, 102, 0.3); }
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  min-height: 56px;
}

.btn-small {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  min-height: 36px;
}

/* Cards */
.card {
  background-color: var(--cloud-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--warm-sand);
}

.card-body {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--warm-sand);
  background-color: var(--warm-sand);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  color: var(--earth-brown);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  color: var(--volcano-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   RESPONSIVE BREAKPOINTS
   =========================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: var(--container-sm);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
    padding: 0 var(--space-lg);
  }
  
  /* Typography scaling for tablets */
  :root {
    --h1-mobile: clamp(2.5rem, 6vw, 4rem);
    --h2-mobile: clamp(2rem, 5vw, 3rem);
    --body-mobile: clamp(1.125rem, 3vw, 1.25rem);
  }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
  
  /* Typography scaling for desktop */
  :root {
    --h1-mobile: clamp(3rem, 7vw, 5rem);
    --h2-mobile: clamp(2.25rem, 6vw, 3.5rem);
    --body-mobile: 1.125rem;
  }
}

/* Extra large devices (large desktops, 1440px and up) */
@media (min-width: 1440px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* ===========================
   PHASE 4: INTERACTIVE FEATURES
   WhatsApp CTA, Video, Social Media
   =========================== */

/* Enhanced Floating WhatsApp Button */
.whatsapp-float-enhanced {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-fixed);
  opacity: 0;
  transform: translateY(100px) scale(0.8);
  animation: slideInFloat 0.8s ease-out 2s forwards;
}

@keyframes slideInFloat {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whatsapp-float-btn-enhanced {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, #25D366 0%, #20b358 50%, #1da851 100%);
  color: var(--cloud-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: 50px;
  box-shadow: 
    0 8px 25px rgba(37, 211, 102, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  min-height: 56px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float-btn-enhanced:hover,
.whatsapp-float-btn-enhanced:focus {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 12px 35px rgba(37, 211, 102, 0.5),
    0 8px 15px rgba(0, 0, 0, 0.2);
  color: var(--cloud-white);
  text-decoration: none;
}

.whatsapp-icon-enhanced {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-icon-enhanced svg {
  width: 100%;
  height: 100%;
}

.whatsapp-text-enhanced {
  font-family: var(--heading-font);
  white-space: nowrap;
}

/* Pulse Animation Rings */
.pulse-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 3px solid rgba(37, 211, 102, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulsate 2s ease-out infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 1s;
}

@keyframes pulsate {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

/* Mobile WhatsApp Button Adjustments */
@media (max-width: 768px) {
  .whatsapp-float-enhanced {
    bottom: 1rem;
    right: 1rem;
  }
  
  .whatsapp-float-btn-enhanced {
    padding: var(--space-sm) var(--space-md);
    min-height: 50px;
  }
  
  .whatsapp-text-enhanced {
    font-size: 0.9rem;
  }
}

/* Video Showcase Section */
.video-showcase {
  padding: var(--space-4xl) 0;
  background: linear-gradient(
    135deg,
    var(--warm-sand) 0%,
    #f8f4e6 50%,
    var(--warm-sand) 100%
  );
  position: relative;
}

.video-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 168, 89, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(2, 119, 189, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background: var(--cloud-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 25px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.video-container:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.15),
    0 12px 35px rgba(0, 0, 0, 0.08);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--volcano-gray);
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  border: none;
  border-radius: 50%;
  color: var(--primary-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.play-button:hover,
.play-button:focus {
  transform: translate(-50%, -50%) scale(1.1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.2),
    0 8px 15px rgba(0, 0, 0, 0.15);
}

.play-button svg {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.video-caption {
  padding: var(--space-lg);
  text-align: center;
  color: var(--volcano-gray);
  font-style: italic;
  margin: 0;
  background: linear-gradient(
    to right,
    rgba(0, 168, 89, 0.05) 0%,
    transparent 50%,
    rgba(2, 119, 189, 0.05) 100%
  );
}

/* Video iframe styles for when loaded */
.video-thumbnail iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Enhanced Social Media Icons */
.social-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--earth-brown) 0%,
    #6d4c41 50%,
    var(--earth-brown) 100%
  );
  color: var(--cloud-white);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-width: 44px; /* Touch-friendly minimum */
  min-height: 44px;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-base);
}

.social-links a:hover::before {
  left: 100%;
}

.social-links a:hover,
.social-links a:focus {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 
    0 8px 25px rgba(93, 64, 55, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--cloud-white);
  text-decoration: none;
}

/* Platform-specific colors */
.social-links a[href*="facebook"]:hover {
  background: linear-gradient(135deg, #1877F2 0%, #166fe5 100%);
}

.social-links a[href*="instagram"]:hover {
  background: linear-gradient(135deg, #E4405F 0%, #833AB4 50%, #FCAF45 100%);
}

.social-links a[href*="wa.me"]:hover {
  background: linear-gradient(135deg, #25D366 0%, #20b358 100%);
}

.social-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Touch-friendly enhancements for mobile */
@media (max-width: 768px) {
  .social-links a {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  
  .play-button {
    width: 70px;
    height: 70px;
  }
  
  .play-button svg {
    width: 28px;
    height: 28px;
  }
}

/* Scroll Progress Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 168, 89, 0.1);
  z-index: var(--z-sticky);
  backdrop-filter: blur(10px);
}

.scroll-progress {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-green) 0%,
    var(--accent-blue) 50%,
    var(--sunset-orange) 100%
  );
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Costa Rica Icons Enhancement */
.costa-rica-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: inline-block;
  animation: gentleBob 3s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Page Loader for Phase 4 Features */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--secondary-green) 50%,
    var(--primary-green) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-slow);
}

.page-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: var(--cloud-white);
}

.loader-logo {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--cloud-white);
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.loader-subtext {
  font-size: 1rem;
  opacity: 0.8;
}

/* Feedback Messages */
.feedback-success,
.feedback-error,
.feedback-info {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  color: var(--cloud-white);
  font-weight: 600;
  z-index: var(--z-toast);
  transform: translateX(400px);
  opacity: 0;
  transition: all var(--transition-base);
}

.feedback-success.show,
.feedback-error.show,
.feedback-info.show {
  transform: translateX(0);
  opacity: 1;
}

.feedback-success {
  background: linear-gradient(135deg, var(--success-green) 0%, #45a049 100%);
}

.feedback-error {
  background: linear-gradient(135deg, var(--error-red) 0%, #d32f2f 100%);
}

.feedback-info {
  background: linear-gradient(135deg, var(--info-blue) 0%, #1976d2 100%);
}

/* ===========================
   TOUCH-FRIENDLY ENHANCEMENTS
   Ensure 44x44px minimum for all interactive elements
   =========================== */

/* Universal touch-friendly baseline */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.btn,
.btn,
.nav-link,
.activity-cta,
.play-button,
.social-links a,
.whatsapp-float-btn-enhanced,
[role="button"],
[tabindex="0"] {
  min-height: 44px;
  min-width: 44px;
}

/* Navigation elements */
.nav-toggle {
  min-height: 48px;
  min-width: 48px;
  padding: var(--space-sm);
}

.nav-list a {
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
}

/* Form elements */
input,
textarea,
select {
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--warm-sand);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: inherit;
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-color: var(--primary-green);
}

/* Activity cards CTAs */
.activity-cta {
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Gallery items (ensure adequate click target) */
.gallery-item {
  min-height: 200px;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.gallery-item:hover,
.gallery-item:focus {
  transform: scale(1.05);
}

/* Skip links and accessibility */
.skip-link:focus {
  min-height: 44px;
  padding: var(--space-md);
}

/* Mobile-specific touch enhancements */
@media (max-width: 768px) {
  /* Increase touch targets on mobile */
  button,
  .btn,
  .nav-link,
  .activity-cta,
  .social-links a {
    min-height: 48px;
    min-width: 48px;
  }
  
  /* Navigation mobile touch targets */
  .nav-list a {
    min-height: 56px;
    padding: var(--space-md);
    font-size: 1.1rem;
  }
  
  /* Form elements on mobile */
  input,
  textarea,
  select {
    min-height: 48px;
    font-size: 1rem; /* Prevent zoom on iOS */
  }
  
  /* Floating button enhanced for mobile */
  .whatsapp-float-btn-enhanced {
    min-height: 56px;
    min-width: 56px;
  }
  
  /* Hero CTAs on mobile */
  .hero-cta .btn {
    min-height: 56px;
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  button,
  .btn,
  .nav-link,
  .activity-cta {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .pulse-ring {
    animation: none;
  }
  
  .costa-rica-icon {
    animation: none;
  }
}

/* Focus visible enhancement for better accessibility */
@supports selector(:focus-visible) {
  button:focus:not(:focus-visible),
  .btn:focus:not(:focus-visible),
  a:focus:not(:focus-visible) {
    outline: none;
  }
  
  button:focus-visible,
  .btn:focus-visible,
  a:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
  }
}

/* Print styles for accessibility */
@media print {
  .whatsapp-float-enhanced,
  .video-showcase,
  .pulse-rings,
  .scroll-indicator {
    display: none;
  }
  
  a[href^="https://wa.me"]::after {
    content: " (WhatsApp: +506 8553 6000)";
    font-size: 0.8em;
    color: var(--volcano-gray);
  }
}

/* ===========================
   DATA SAVER MODE OPTIMIZATIONS
   Reduce resource usage for slow connections
   =========================== */

.data-saver-mode .pulse-rings,
.data-saver-mode .pulse-ring {
  display: none;
}

.data-saver-mode .video-showcase::before,
.data-saver-mode .hero::before {
  display: none;
}

.data-saver-mode .parallax-background {
  transform: none !important;
}

.data-saver-mode img {
  filter: none;
  transform: none !important;
}

.reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Performance optimization CSS */
.loaded {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Optimize for Core Web Vitals */
.hero-background img,
.video-thumbnail img {
  content-visibility: auto;
  contain-intrinsic-size: 1920px 1080px;
}

/* Prevent layout shifts */
.activity-card,
.gallery-item,
.testimonial-item {
  contain: layout style paint;
}

/* Optimize text rendering */
h1, h2, h3, h4, h5, h6 {
  text-rendering: optimizeLegibility;
  font-display: swap;
}

/* GPU acceleration for animations */
.whatsapp-float-enhanced,
.play-button,
.social-links a {
  transform: translateZ(0);
  will-change: transform;
}

/* Clean up will-change after animations */
.animation-complete {
  will-change: auto;
}

/* ===========================
   ENHANCED ACCESSIBILITY & CONTRAST
   WCAG AA Compliance Improvements
   =========================== */

/* Improved Color Contrast Variables */
:root {
  /* Enhanced contrast variants for better accessibility */
  --text-high-contrast: #2C1B13;        /* Higher contrast than volcano-gray */
  --text-medium-contrast: #3D2B1E;      /* Medium contrast for secondary text */
  --earth-brown-dark: #4A2C1F;          /* Darker earth brown for better contrast */
  --warm-sand-dark: #E8D1B8;            /* Slightly darker warm sand */
  --primary-green-dark: #007A47;        /* Darker green for better contrast */
  --accent-blue-dark: #01579B;          /* Darker blue for better contrast */
}

/* Enhanced Text Contrast */
body {
  color: var(--text-high-contrast);
}

p, li, span {
  color: var(--text-high-contrast);
}

/* Improved heading contrast */
h1, h2, h3, h4, h5, h6 {
  color: var(--earth-brown-dark);
}

/* Enhanced link contrast */
a {
  color: var(--accent-blue-dark);
}

a:hover,
a:focus {
  color: var(--primary-green-dark);
}

/* Better footer contrast */
.site-footer {
  background: linear-gradient(
    135deg,
    var(--earth-brown-dark) 0%,
    var(--earth-brown) 50%,
    var(--earth-brown-dark) 100%
  );
}

.footer-column a {
  color: var(--cloud-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-column a:hover {
  color: var(--warm-sand);
  text-decoration: underline;
}

.footer-tagline {
  color: var(--warm-sand);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced social media icons contrast */
.social-links a {
  background: linear-gradient(
    135deg,
    var(--earth-brown-dark) 0%,
    #3E261A 50%,
    var(--earth-brown-dark) 100%
  );
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-links a:hover,
.social-links a:focus {
  box-shadow: 
    0 8px 25px rgba(93, 64, 55, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Enhanced button contrast */
.btn-secondary {
  border: 2px solid var(--earth-brown-dark);
  color: var(--earth-brown-dark);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(
    135deg,
    var(--earth-brown-dark) 0%,
    #3E261A 50%,
    var(--earth-brown-dark) 100%
  );
  border-color: var(--earth-brown-dark);
}

/* Improved card text contrast */
.card-body p,
.card-body h3,
.card-body h4 {
  color: var(--text-high-contrast);
}

/* Enhanced hero section text contrast */
.hero h1,
.hero .hero-subtitle {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Better testimonial contrast */
.testimonial-text {
  color: var(--text-high-contrast);
}

.testimonial-author {
  color: var(--text-medium-contrast);
}

/* Enhanced form element contrast */
input,
textarea,
select {
  border: 2px solid var(--warm-sand-dark);
  color: var(--text-high-contrast);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-blue-dark);
  box-shadow: 0 0 0 3px rgba(1, 87, 155, 0.1);
}

/* Improved navigation contrast */
.nav-list a {
  color: var(--earth-brown-dark);
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--primary-green-dark);
}

/* Enhanced section subtitle contrast */
.section-subtitle {
  color: var(--text-medium-contrast);
}

/* Better CTA text contrast */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(0, 122, 71, 0.95) 0%,
    rgba(0, 168, 89, 0.95) 50%,
    rgba(0, 122, 71, 0.95) 100%
  );
}

.cta-section h2,
.cta-section p {
  color: var(--cloud-white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Enhanced adventure card contrast */
.adventure-card .card-title {
  color: var(--earth-brown-dark);
}

.adventure-card .card-text {
  color: var(--text-high-contrast);
}

/* Improved gallery caption contrast */
.gallery-caption {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(44, 27, 19, 0.9) 100%
  );
  color: var(--cloud-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Enhanced contact information contrast */
.contact-info h3 {
  color: var(--earth-brown-dark);
}

.contact-info p,
.contact-info a {
  color: var(--text-high-contrast);
}

/* Better activity pricing contrast */
.pricing-card .price {
  color: var(--primary-green-dark);
  font-weight: 700;
}

/* Enhanced accessibility focus indicators */
*:focus {
  outline: 3px solid var(--accent-blue-dark);
  outline-offset: 2px;
}

/* Improved keyboard navigation visibility */
.btn:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  box-shadow: 
    0 0 0 3px rgba(1, 87, 155, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced high contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --earth-brown: #2C1B13;
    --earth-brown-dark: #1A0F0A;
    --volcano-gray: #1A1A1A;
    --text-high-contrast: #000000;
    --accent-blue: #0066CC;
    --accent-blue-dark: #004499;
    --primary-green: #006633;
    --primary-green-dark: #004422;
  }
  
  .social-links a,
  .btn-secondary,
  .card {
    border: 2px solid currentColor;
  }
  
  .hero h1,
  .hero .hero-subtitle {
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  }
}

/* Enhanced error and success message contrast */
.feedback-success {
  background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
  border-left: 4px solid #1B5E20;
}

.feedback-error {
  background: linear-gradient(135deg, #C62828 0%, #D32F2F 100%);
  border-left: 4px solid #B71C1C;
}

.feedback-info {
  background: linear-gradient(135deg, var(--accent-blue-dark) 0%, #1976D2 100%);
  border-left: 4px solid #0D47A1;
}

/* Text Selection Enhancement */
::selection {
  background: var(--primary-green-dark);
  color: var(--cloud-white);
  text-shadow: none;
}

::-moz-selection {
  background: var(--primary-green-dark);
  color: var(--cloud-white);
  text-shadow: none;
}

/* Enhanced readability for small text */
small,
.small-text,
.footer-bottom {
  font-size: 0.9rem;
  color: var(--text-medium-contrast);
  line-height: 1.5;
}

/* Improved table contrast (if any) */
table {
  color: var(--text-high-contrast);
  border-collapse: collapse;
}

th {
  background: var(--warm-sand-dark);
  color: var(--earth-brown-dark);
  font-weight: 600;
}

td, th {
  border: 1px solid var(--warm-sand-dark);
  padding: var(--space-sm);
}

/* Enhanced loading states contrast */
.loading {
  color: var(--text-medium-contrast);
}

.spinner {
  border-color: var(--warm-sand-dark);
  border-top-color: var(--primary-green-dark);
}

/* ===========================
   TEXT LAYOUT & READABILITY IMPROVEMENTS
   Ensuring optimal text fitting and flow
   =========================== */

/* Improved text wrapping and line height */
p, li, blockquote {
  line-height: 1.6;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Better heading text flow */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

/* Enhanced single-line text elements */
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  max-width: 100%;
  word-spacing: -0.05em;
  letter-spacing: -0.02em;
}

.hero .hero-subtitle {
  /* font-size: clamp(1.125rem, 4vw, 1.5rem); */
  line-height: 1.4;
  max-width: 600px;
  margin: 0 auto;
}

/* Improved button text layout */
.btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.btn-large {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

/* Better navigation text fitting */
.nav-list a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 200px;
}

/* Enhanced card title layout */
.card-title {
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Improved section title layout */
.section-title {
  line-height: 1.2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

.section-subtitle {
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Better adventure card text layout */
.adventure-card h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.adventure-card p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

/* Enhanced footer text layout */
.footer-column h3 {
  line-height: 1.3;
  margin-bottom: var(--space-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-column li {
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.4;
  font-style: italic;
  max-width: 300px;
}

/* Improved contact information layout */
.contact-info p {
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.contact-info a {
  word-break: break-all;
  line-height: 1.4;
}

/* Better testimonial text layout */
.testimonial-text {
  font-size: clamp(1rem, 3vw, 1.125rem);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.4;
  font-weight: 600;
}

/* Enhanced form label layout */
label {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
  display: block;
  font-weight: 600;
  color: var(--earth-brown-dark);
}

/* Better pricing text layout */
.pricing-card .price {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card .price-period {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.3;
  opacity: 0.8;
}

/* Improved gallery caption layout */
.gallery-caption {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.4;
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

/* Enhanced breadcrumb text layout */
.breadcrumb {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb a {
  text-decoration: none;
  margin-right: var(--space-xs);
}

/* Better alert/notification text layout */
.alert {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.5;
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

/* Enhanced meta information layout */
.meta-info {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  line-height: 1.4;
  color: var(--text-medium-contrast);
}

/* Improved table text layout */
table {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.4;
}

th {
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

td {
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Enhanced mobile text adjustments */
@media (max-width: 767px) {
  /* Better mobile heading hierarchy */
  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
  }
  
  h2 {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
  }
  
  h3 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.3;
    margin-bottom: var(--space-sm);
  }
  
  /* Mobile paragraph improvements */
  p {
    font-size: clamp(1rem, 4vw, 1.125rem);
    line-height: 1.6;
    margin-bottom: var(--space-md);
  }
  
  /* Mobile button text */
  .btn {
    font-size: clamp(0.9rem, 4vw, 1rem);
    padding: var(--space-sm) var(--space-md);
    line-height: 1.4;
    white-space: normal;
    text-align: center;
  }
  
  /* Mobile navigation text */
  .nav-list a {
    font-size: clamp(1rem, 4vw, 1.125rem);
    line-height: 1.4;
    max-width: none;
    white-space: normal;
    text-align: center;
  }
  
  /* Mobile footer improvements */
  .footer-column h3 {
    font-size: clamp(1.125rem, 4vw, 1.25rem);
    white-space: normal;
    text-align: center;
  }
  
  .footer-tagline {
    text-align: center;
    max-width: none;
  }
}

/* Enhanced tablet text adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet heading adjustments */
  h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.1;
  }
  
  h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.2;
  }
  
  /* Tablet paragraph text */
  p {
    font-size: clamp(1.075rem, 3vw, 1.125rem);
    line-height: 1.6;
  }
  
  /* Tablet navigation spacing */
  .nav-list a {
    font-size: 1rem;
    padding: var(--space-sm) var(--space-md);
  }
}

/* Text overflow handling for specific components */
.overflow-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-break {
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.no-wrap {
  white-space: nowrap;
}

/* Enhanced readability utilities */
.text-readable {
  max-width: 65ch;
  line-height: 1.6;
}

.text-center-readable {
  max-width: 65ch;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

/* Improved focus state text contrast */
*:focus {
  outline: 3px solid var(--accent-blue-dark);
  outline-offset: 2px;
}

*:focus-visible {
  outline: 3px solid var(--accent-blue-dark);
  outline-offset: 2px;
}

/* ===========================
   FLOATING WHATSAPP ICON ENHANCEMENT
   Updated to use SVG instead of emoji
   =========================== */

.whatsapp-icon-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--cloud-white);
  line-height: 1;
}

.whatsapp-icon-float svg {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px;
  max-height: 32px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  display: block;
}

/* Enhanced floating button contrast */
.whatsapp-float-btn {
  background: linear-gradient(
    135deg,
    #25D366 0%,
    #20b358 50%,
    #1da851 100%
  );
  box-shadow:
    0 4px 15px rgba(37, 211, 102, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-base);
  overflow: hidden;
}

.whatsapp-float-btn:hover,
.whatsapp-float-btn:focus {
  background: linear-gradient(
    135deg,
    #1da851 0%,
    #20b358 50%,
    #25D366 100%
  );
  box-shadow: 
    0 8px 25px rgba(37, 211, 102, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.05);
}

.whatsapp-float-btn:hover .whatsapp-icon-float svg,
.whatsapp-float-btn:focus .whatsapp-icon-float svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transform: scale(1.1);
}