/* 
   The Quiet Hour - Styling
   Calm, Inclusive, and Sensory-Friendly Design System
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-lavender: #E6E0F0;
  --text-slate: #3A4750; /* Darker slate for readability/contrast */
  --text-slate-muted: #5B6B79; /* Original muted slate blue */
  --accent-mint: #A8D8C9;
  --accent-mint-hover: #8EC9B7;
  --accent-mint-dark: #3F7564; /* Accessible text color on mint */
  --accent-sand: #EDE0CC;
  --accent-sand-hover: #DFCCA8;
  --accent-sand-dark: #665033;
  --white: #FFFFFF;
  --cream: #FAF9F6;
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Borders and Shadows */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(91, 107, 121, 0.06);
  --shadow-hover: 0 15px 35px rgba(91, 107, 121, 0.12);
  --border-calm: 1px solid rgba(91, 107, 121, 0.15);
  
  /* Transitions */
  --transition-speed: 0.3s;
  --transition-calm: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & layouts */
body {
  font-family: var(--font-body);
  background-color: var(--bg-lavender);
  color: var(--text-slate);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition-calm);
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display);
  color: var(--text-slate);
  font-weight: 600;
}

h1 {
  font-weight: 700;
}

/* Accessibility Tools - CSS Classes */
body.large-text {
  font-size: 1.25rem;
}
body.large-text p, body.large-text li, body.large-text td, body.large-text input, body.large-text select, body.large-text textarea {
  font-size: 1.25rem !important;
}
body.large-text h1, body.large-text .h1 { font-size: 3.5rem !important; }
body.large-text h2, body.large-text .h2 { font-size: 2.5rem !important; }
body.large-text h3, body.large-text .h3 { font-size: 2rem !important; }
body.large-text .btn { font-size: 1.25rem !important; padding: 0.75rem 1.5rem !important; }

body.high-contrast {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}
body.high-contrast :not(.btn-primary):not(.btn-secondary):not(i) {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border-color: #000000 !important;
}
body.high-contrast .btn-primary {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #000000 !important;
}
body.high-contrast .btn-secondary {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
body.high-contrast .card {
  border: 2px solid #000000 !important;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* Navbar */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-calm);
  padding: 0.8rem 1.5rem;
  transition: var(--transition-calm);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.navbar-brand-custom {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-slate) !important;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand-custom i {
  color: var(--accent-mint-dark);
}
.nav-link-custom {
  color: var(--text-slate-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-calm);
}
.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--text-slate) !important;
  background-color: rgba(91, 107, 121, 0.08);
}

/* Accessibility Control Bar (Top Bar) */
.access-bar {
  background-color: var(--text-slate);
  color: var(--cream);
  font-size: 0.85rem;
  padding: 0.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.access-btn {
  background: none;
  border: 1px solid rgba(250, 249, 246, 0.3);
  color: var(--cream);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-calm);
}
.access-btn:hover, .access-btn.active {
  background-color: var(--cream);
  color: var(--text-slate);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 10% 20%, rgba(230, 224, 240, 0.5) 0%, rgba(250, 249, 246, 0.8) 90%);
  border-bottom: var(--border-calm);
}
.hero-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-calm);
}
.hero-image-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Buttons */
.btn-calm-primary {
  background-color: var(--accent-mint);
  color: var(--text-slate);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-calm);
}
.btn-calm-primary:hover {
  background-color: var(--accent-mint-hover);
  color: var(--text-slate);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-calm-secondary {
  background-color: var(--accent-sand);
  color: var(--text-slate);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-calm);
}
.btn-calm-secondary:hover {
  background-color: var(--accent-sand-hover);
  color: var(--text-slate);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-calm-outline {
  background: transparent;
  color: var(--text-slate);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid var(--text-slate-muted);
  transition: var(--transition-calm);
}
.btn-calm-outline:hover {
  background-color: var(--text-slate-muted);
  color: var(--white);
  transform: translateY(-2px);
}

/* Cards */
.card-calm {
  background-color: var(--white);
  border: var(--border-calm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition-calm);
  height: 100%;
}
.card-calm:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-calm-body {
  padding: 1.8rem;
}
.card-calm-header-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.card-calm-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-calm);
}
.card-calm:hover .card-calm-header-img img {
  transform: scale(1.05);
}

/* Badge tags */
.badge-calm-mint {
  background-color: rgba(168, 216, 201, 0.25);
  color: var(--accent-mint-dark);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 0.8rem;
}
.badge-calm-sand {
  background-color: rgba(237, 224, 204, 0.5);
  color: var(--accent-sand-dark);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 0.8rem;
}

/* Noise-Level Indicator styling */
.noise-widget-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--cream);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: var(--border-calm);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}
.noise-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.noise-dot.calm {
  background-color: #55c57a;
  box-shadow: 0 0 8px rgba(85, 197, 122, 0.6);
}
.noise-dot.moderate {
  background-color: #f39c12;
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.6);
}
.noise-dot.lively {
  background-color: #e74c3c;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
}
.noise-dot-pulse {
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

/* Full Noise Monitor Component */
.noise-monitor-panel {
  background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  border: var(--border-calm);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
}
.decibel-display {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin: 1rem 0 0.5rem 0;
  color: var(--text-slate);
}
.decibel-unit {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-slate-muted);
}
.noise-status-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.noise-status-badge.calm {
  background-color: rgba(85, 197, 122, 0.15);
  color: #27ae60;
}
.noise-status-badge.moderate {
  background-color: rgba(243, 156, 18, 0.15);
  color: #d35400;
}
.noise-status-badge.lively {
  background-color: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.noise-bar-container {
  height: 12px;
  background-color: rgba(91, 107, 121, 0.1);
  border-radius: 50px;
  overflow: hidden;
  margin: 1rem auto;
  max-width: 300px;
}
.noise-bar {
  height: 100%;
  border-radius: 50px;
  width: 30%;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s;
}
.noise-bar.calm { background-color: #55c57a; }
.noise-bar.moderate { background-color: #f39c12; }
.noise-bar.lively { background-color: #e74c3c; }

/* Interactive Simulator controls */
.sim-controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-sim-option {
  background: var(--white);
  border: var(--border-calm);
  color: var(--text-slate-muted);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-calm);
}
.btn-sim-option:hover, .btn-sim-option.active {
  background-color: var(--text-slate-muted);
  color: var(--white);
}

/* Sensory Zones Styles */
.zone-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background-color: var(--white);
  border: var(--border-calm);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: var(--transition-calm);
}
.zone-pill:hover, .zone-pill.active {
  background-color: var(--accent-mint);
  border-color: var(--accent-mint);
  transform: translateX(5px);
}
.zone-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-slate);
  font-size: 1.1rem;
  transition: var(--transition-calm);
}
.zone-pill:hover .zone-icon, .zone-pill.active .zone-icon {
  background-color: var(--white);
  color: var(--accent-mint-dark);
}

/* Booking wizard styling */
.booking-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: var(--border-calm);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.booking-header {
  background-color: var(--text-slate);
  color: var(--cream);
  padding: 1.5rem 2rem;
}
.booking-body {
  padding: 2rem;
}
.booking-step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}
.booking-step-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(91, 107, 121, 0.1);
  z-index: 1;
  transform: translateY(-50%);
}
.booking-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid rgba(91, 107, 121, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-slate-muted);
  z-index: 2;
  transition: var(--transition-calm);
  font-family: var(--font-display);
}
.booking-step.active {
  background-color: var(--accent-mint);
  border-color: var(--accent-mint-dark);
  color: var(--accent-mint-dark);
}
.booking-step.completed {
  background-color: var(--text-slate);
  border-color: var(--text-slate);
  color: var(--white);
}

.capacity-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.capacity-badge.safe {
  background-color: rgba(85, 197, 122, 0.15);
  color: #27ae60;
}
.capacity-badge.warning {
  background-color: rgba(243, 156, 18, 0.15);
  color: #d35400;
}
.capacity-badge.full {
  background-color: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

/* Pricing / Member Cards */
.pricing-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-calm);
  background-color: var(--white);
  transition: var(--transition-calm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing-card.featured {
  border: 2px solid var(--accent-mint-hover);
  box-shadow: 0 10px 40px rgba(168, 216, 201, 0.15);
}
.pricing-card:hover {
  transform: translateY(-8px);
}
.pricing-card-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(91, 107, 121, 0.1);
}
.pricing-card-header.featured {
  background-color: rgba(168, 216, 201, 0.1);
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--text-slate);
}
.pricing-price span {
  font-size: 1rem;
  color: var(--text-slate-muted);
  font-weight: 400;
}
.pricing-features {
  padding: 2rem;
  flex-grow: 1;
}
.pricing-features ul {
  padding: 0;
  list-style: none;
}
.pricing-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pricing-features i {
  color: var(--accent-mint-dark);
}

/* Footer Section */
.footer-custom {
  background-color: var(--text-slate);
  color: var(--cream);
  padding: 4rem 0 2rem 0;
  border-top: var(--border-calm);
}
.footer-custom h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-custom p, .footer-custom a, .footer-custom li {
  color: rgba(250, 249, 246, 0.7);
  text-decoration: none;
  transition: var(--transition-calm);
}
.footer-custom a:hover {
  color: var(--accent-mint);
  padding-left: 3px;
}
.footer-policy-list {
  list-style: none;
  padding: 0;
}
.footer-policy-list li {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(250, 249, 246, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(250, 249, 246, 0.5);
}

/* Social story layout */
.social-story-card {
  display: flex;
  background-color: var(--white);
  border: var(--border-calm);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.social-story-number {
  background-color: var(--accent-sand);
  color: var(--accent-sand-dark);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-story-content {
  padding: 1.5rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .social-story-card {
    flex-direction: column;
  }
  .social-story-number {
    width: 100%;
    height: 60px;
  }
  .hero-section {
    padding: 3rem 0;
  }
  .access-bar {
    justify-content: center;
  }
}
