/* Hotel Sun Shine - Custom CSS Styles & Accessibility */

:root {
  --color-sun-dark: #30348C;
  --color-sun-blue: #117DBF;
  --color-sun-cyan: #22CCF2;
  --color-sun-gold: #BFA41B;
  --color-sun-light: #F2F2F2;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  color: #1e293b; /* Slate 800 - crisp, high-contrast readable text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-sun-blue);
  outline-offset: 2px;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Custom transitions and hover states */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(48, 52, 140, 0.15);
}

/* Pulsing effect for WhatsApp floating button */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: pulse-ring 2.5s infinite;
}

/* Placeholder graphic container */
.img-placeholder-card {
  background: linear-gradient(135deg, #117DBF0D 0%, #30348C18 100%);
  border: 2px dashed rgba(17, 125, 191, 0.25);
  min-height: 240px;
}

/* ==========================================================================
   Mobile Accessibility & Legibility Enhancements (WCAG 2.1 AA)
   ========================================================================== */

/* Prevent micro-fonts on mobile displays */
@media (max-width: 640px) {
  /* Prevent any text from being rendered smaller than 13.5px on small screens */
  .text-xs {
    font-size: 0.85rem !important; /* ~13.6px instead of 12px */
    line-height: 1.35rem !important;
  }

  .text-sm {
    font-size: 0.95rem !important; /* ~15.2px instead of 14px */
    line-height: 1.45rem !important;
  }

  .text-base {
    font-size: 1.05rem !important; /* ~16.8px */
    line-height: 1.6rem !important;
  }

  /* Accessible touch targets on mobile (min 44px for primary interactions) */
  nav a, 
  #mobile-menu a, 
  .btn-accessible {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Form controls font size safeguard against iOS Safari automatic zoom */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Higher contrast for footer sub-items on dark background */
  footer ul li a, 
  footer ul li span {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* High readability helpers */
.text-high-contrast {
  color: #1e293b;
}

.text-high-contrast-muted {
  color: #475569;
}
