/* ==========================================================================
   Leela Spa West Hollywood - Main Stylesheet
   Responsive Design & WCAG 2.2 AA Accessibility Enhancements
   ========================================================================== */

/* 1. Global Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #442a11;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Skip Link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f39c12;
  color: #211103;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #ffeb3b;
  outline-offset: 2px;
}

/* 3. Page Layout Container */
.page-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1 0 auto;
}

.spa-card {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 30px 20px;
  border-radius: 12px;
  background-color: rgba(68, 42, 17, 0.6);
  text-align: center;
}

/* 4. Logo & Header */
.spa-header {
  margin-bottom: 24px;
}

.spa-heading {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.spa-logo {
  display: inline-block;
  max-width: 100%;
  width: 241px;
  height: auto;
  aspect-ratio: 241 / 191;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

/* 5. Contact Information & Semantic Address */
.spa-content {
  margin-bottom: 32px;
}

.spa-contact-info {
  font-style: normal;
  margin: 0;
  padding: 0;
}

.contact-item {
  margin: 12px 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f8f9fa;
  word-break: break-word;
}

.contact-item.address-item {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.contact-item.phone-item {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 10px;
}

.contact-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  padding: 4px 6px;
  display: inline-block;
  border-radius: 4px;
}

.contact-link:hover {
  color: #f9d776;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-link:focus-visible {
  outline: 3px solid #f39c12;
  outline-offset: 3px;
  border-radius: 4px;
  background-color: rgba(243, 156, 18, 0.15);
}

.contact-icon {
  margin-right: 6px;
  font-size: 0.95em;
  opacity: 0.9;
}

/* 6. Action Button (Services PDF) */
.action-wrapper {
  margin-top: 8px;
  margin-bottom: 16px;
}

.btn-services {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #f39c12;
  color: #211103 !important; /* High contrast: 8.2:1 against #f39c12, passes WCAG AAA */
  border: 2px solid #d68910;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  min-height: 50px; /* Touch Target Size standard (WCAG 2.5.5 / 2.5.8) */
  min-width: 200px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-services:hover {
  background-color: #ffb732;
  border-color: #f39c12;
  color: #1a0d02 !important;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.btn-services:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-services:focus-visible {
  outline: 3px solid #ffeb3b !important;
  outline-offset: 4px !important;
}

/* 7. Footer */
.spa-footer {
  width: 100%;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: #d1b89d;
  flex-shrink: 0;
}

.spa-footer p {
  margin: 0;
}

/* 8. Screen Reader Only Utility */
.sr-only {
  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;
}

/* 9. Responsive Adjustments */
@media (max-width: 768px) {
  body {
    padding: 16px 0;
  }

  .page-wrapper {
    padding: 24px 16px;
  }

  .spa-card {
    padding: 24px 12px;
  }

  .spa-logo {
    width: 200px;
  }

  .contact-item {
    font-size: 1rem;
  }

  .contact-item.phone-item {
    font-size: 1.1rem;
  }

  .btn-services {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 16px 12px;
  }

  .spa-card {
    padding: 16px 8px;
  }

  .spa-logo {
    width: 180px;
  }

  .contact-item {
    font-size: 0.95rem;
  }

  .contact-item.phone-item {
    font-size: 1.05rem;
  }

  .btn-services {
    width: 100%;
    max-width: 260px;
  }
}

/* Landscape orientation on mobile devices with short viewport */
@media (max-height: 540px) and (orientation: landscape) {
  body {
    justify-content: flex-start;
  }

  .page-wrapper {
    padding: 16px 20px;
  }

  .spa-logo {
    width: 140px;
  }

  .spa-header {
    margin-bottom: 12px;
  }

  .spa-content {
    margin-bottom: 16px;
  }

  .contact-item {
    margin: 6px 0;
  }

  .action-wrapper {
    margin-top: 4px;
  }
}
