/* Nuven Therapy - Premium Medical & Holistic Styling Enhancements */
:root {
  --navy: #08365c;
  --navy-dark: #05223a;
  --navy-light: #0d4b7e;
  --deep: #062943;
  --blue: #1b75bb;
  --blue-light: #388ecc;
  --pale: #e9f5fb;
  --mist: #f8fcfe;
  --gold: #d8a53a;
  --gold-hover: #c4922b;
  --gold-light: #fef8eb;
  --ink: #18384f;
  --muted: #527084;
  --line: #c8e1ec;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-card: 1.5rem;
  --shadow-sm: 0 2px 8px rgba(8, 54, 92, 0.04);
  --shadow-md: 0 10px 25px rgba(8, 54, 92, 0.08);
  --shadow-lg: 0 20px 45px rgba(8, 54, 92, 0.12);
}

/* Base enhancements */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background-color: var(--mist);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif, .display {
  font-family: 'Playfair Display', serif;
}

/* Glassmorphism & Cards */
.glass-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 225, 236, 0.7);
  box-shadow: 0 4px 20px rgba(8, 54, 92, 0.04);
}

/* Brand Logos - Harmonious scale with header typography */
.site-header-logo {
  height: 38px;
  width: auto;
  max-height: 52px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

@media (min-width: 640px) {
  .site-header-logo {
    height: 44px;
  }
}

@media (min-width: 1024px) {
  .site-header-logo {
    height: 48px;
  }
}

.site-footer-logo {
  height: 68px;
  width: auto;
  max-width: 320px;
  max-height: 110px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

@media (min-width: 640px) {
  .site-footer-logo {
    height: 84px;
  }
}

@media (min-width: 1024px) {
  .site-footer-logo {
    height: 96px;
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}

.service-card-enhanced {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--blue);
}

/* Buttons & Interactive Elements */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-pill:hover {
  transform: translateY(-2px);
}

.btn-primary-custom {
  background: var(--navy);
  color: #ffffff;
  border: 1px solid var(--navy);
}

.btn-primary-custom:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  box-shadow: 0 8px 20px rgba(8, 54, 92, 0.2);
}

.btn-gold-custom {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}

.btn-gold-custom:hover {
  background: var(--gold-hover);
  box-shadow: 0 8px 20px rgba(216, 165, 58, 0.3);
}

.btn-outline-custom {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}

.btn-outline-custom:hover {
  background: var(--pale);
  border-color: var(--blue);
}

/* Trust Badges & Accents */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.gold-accent-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 41, 67, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #ffffff;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(8, 54, 92, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.no-scrollbar,
.hide-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch;
}

.no-scrollbar::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.modal-backdrop.is-open .modal-container {
  transform: translateY(0) scale(1);
}

/* Floating Mobile Quick Action Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(8, 54, 92, 0.08);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  max-width: 380px;
  background: #ffffff;
  border-left: 4px solid var(--blue);
  box-shadow: 0 15px 35px rgba(8, 54, 92, 0.18);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
}

.toast-notice.success {
  border-left-color: var(--success);
}

.toast-notice.error {
  border-left-color: var(--danger);
}

/* Accordion FAQ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: var(--blue);
}

.faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.is-open .faq-content {
  display: block;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

/* Language selector active state */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid #c8e1ec;
  border-radius: 9999px;
  background: #e9f5fb;
  gap: 2px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #31536b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  text-align: center;
  user-select: none;
  box-shadow: none;
}

.lang-option:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.5);
}

.lang-option.is-active,
.lang-option.active {
  background: var(--navy) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(8, 54, 92, 0.18) !important;
}

.lang-badge {
  cursor: pointer;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.lang-badge.active {
  background: var(--navy);
  color: #ffffff;
}

/* Desktop Dropdowns (Services and About) */
.nav-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 60;
  transform: translateX(-50%);
  border-radius: 1.25rem;
  border: 1px solid rgba(200, 225, 236, 0.9);
  background: #ffffff;
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(8, 54, 92, 0.12);
  min-width: 240px;
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.18s ease;
}

.nav-dropdown-link:hover {
  background-color: var(--pale);
  color: var(--blue);
  transform: translateX(3px);
}

/* Smooth status badges for dashboard */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-confirmed {
  background: #d1fae5;
  color: #065f46;
}

.badge-completed {
  background: #e0e7ff;
  color: #3730a3;
}

.badge-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

/* ==========================================================================
   Mobile Application & Navigation Drawer Enhancements
   ========================================================================== */

/* Input & Form Styling: Shift placeholder away from rounded border outline */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  font-size: 16px !important;
  padding-left: 1.45rem !important;
  padding-right: 1.35rem !important;
  border-radius: 1rem;
}

.booking-form-card input:not([type="checkbox"]):not([type="radio"]),
.booking-form-card select,
.booking-form-card textarea,
#booking-form input:not([type="checkbox"]):not([type="radio"]),
#booking-form select,
#booking-form textarea {
  padding-left: 1.5rem !important;
  padding-right: 1.35rem !important;
  border: 1.5px solid #8fb9cc !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-form-card input:focus,
.booking-form-card select:focus,
.booking-form-card textarea:focus,
#booking-form input:focus,
#booking-form select:focus,
#booking-form textarea:focus {
  border-color: #1b75bb !important;
  box-shadow: 0 0 0 3px rgba(27, 117, 187, 0.15) !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: #7b9aaa !important;
  opacity: 0.95;
}

/* Specific styling for inputs with icons (e.g. Lead Magnet email field) */
#lead-email-input,
.input-with-icon,
input.input-with-icon {
  padding-left: 3.25rem !important; /* 52px - completely clears the icon */
  padding-right: 1.25rem !important;
}

/* Safe area padding on mobile devices for the sticky bottom bar */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important;
  }
}

/* Mobile Drawer Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 41, 67, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Slide-in Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 360px;
  background: #ffffff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(8, 54, 92, 0.22);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.mobile-drawer-link:hover, .mobile-drawer-link:active {
  background-color: var(--pale);
  color: var(--blue);
  transform: translateX(3px);
}

.mobile-drawer-link.is-active {
  background-color: var(--pale);
  color: var(--navy);
  border-left: 3px solid var(--gold);
}

.mobile-drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-align: left;
}

.mobile-drawer-toggle:hover, .mobile-drawer-toggle:active {
  background-color: var(--pale);
  color: var(--blue);
}

/* Mobile Bottom Dock (Floating Action Bar) */
.mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(200, 225, 236, 0.8);
  box-shadow: 0 -4px 20px rgba(8, 54, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  .mobile-dock {
    display: none !important;
  }
}

.mobile-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 12px;
  transition: color 0.2s, transform 0.15s;
  cursor: pointer;
  min-width: 60px;
}

.mobile-dock-btn:hover, .mobile-dock-btn:active {
  color: var(--navy);
}

.mobile-dock-btn.is-cta {
  background: linear-gradient(135deg, var(--navy), #0d4b7e);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(8, 54, 92, 0.25);
  transform: translateY(-4px);
}

.mobile-dock-btn.is-cta:active {
  transform: translateY(-2px) scale(0.97);
}

/* PWA App Install Banner */
.pwa-install-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin: 12px;
  background: linear-gradient(135deg, #e9f5fb, #f8fcfe);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.pwa-install-banner.is-visible {
  display: flex;
}

