/* =========================================
   ELLIS RESTORATIVE THERAPIES - MASTER CSS
   THEME: iOS Glassmorphism / Dark Mode
========================================= */

:root {
  --bg-deep: #050914;
  --bg-mesh: radial-gradient(at 0% 0%, rgba(26, 127, 165, 0.15) 0px, transparent 50%), 
             radial-gradient(at 100% 100%, rgba(35, 160, 204, 0.1) 0px, transparent 50%);
  --glass-bg: rgba(18, 25, 40, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --blur: blur(24px);
  --teal: #1a7fa5;
  --teal-glow: #23a0cc;
  --text-main: #f5f5f7;
  --text-muted: #a1a1a6;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  background-image: var(--bg-mesh);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================
   GLOBAL GLASS COMPONENTS & ANIMATIONS
========================================= */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s var(--spring);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================
   NAVIGATION (iOS Dynamic Header)
========================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(5, 9, 20, 0.5);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}
nav.scrolled { padding: 0.8rem 4rem; background: rgba(5, 9, 20, 0.8); }

.nav-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.nav-logo img { height: 40px; border-radius: 8px; }
.nav-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--text-main); letter-spacing: 1.5px; }
.nav-logo-text span { color: var(--teal-glow); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

.nav-book, .btn-primary, .btn-submit, .popup-btn {
  background: rgba(26, 127, 165, 0.2);
  border: 1px solid var(--glass-highlight);
  color: var(--text-main) !important;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--spring);
  cursor: pointer;
  display: inline-flex; justify-content: center; align-items: center;
}
.nav-book:hover, .btn-primary:hover, .btn-submit:hover:not(:disabled) {
  background: var(--teal);
  border-color: var(--teal-glow);
  box-shadow: 0 0 25px rgba(26, 127, 165, 0.4);
  transform: translateY(-3px) scale(1.02);
}
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* =========================================
   HERO SECTIONS
========================================= */
.hero, .page-hero {
  padding: 10rem 2rem 5rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero h1, .page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  letter-spacing: 2px; line-height: 1.1; margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 span, .page-hero h1 span {
  background: linear-gradient(135deg, var(--teal-glow), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub, .page-hero p {
  font-size: 1.1rem; color: var(--text-muted); max-width: 600px;
  margin: 0 auto 2rem; font-family: 'Lora', serif; font-style: italic;
}

/* =========================================
   CARDS & GRIDS
========================================= */
main { flex: 1; position: relative; z-index: 1; padding: 4rem 2rem; }
.blog-grid, .modality-grid, .cred-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}

.blog-card, .modality-item, .cred-item, .info-block {
  background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 2.5rem; transition: all 0.4s var(--spring);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.blog-card:hover, .modality-item:hover {
  transform: translateY(-8px);
  border-color: var(--glass-highlight);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  background: rgba(25, 35, 55, 0.6);
}

.modality-icon { font-size: 2.5rem; margin-bottom: 1rem; }
h2, h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; color: var(--text-main); }
.blog-card h3, .modality-item h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }

/* =========================================
   FORMS & BOOKING 
========================================= */
.booking-wrap, .contact-wrap { max-width: 900px; margin: 0 auto; }
.booking-panel, .contact-form-wrap {
  background: var(--glass-bg); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 3rem; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.5rem; letter-spacing: 1px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main); font-family: 'Inter', sans-serif; font-size: 1rem;
  transition: all 0.3s ease; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--teal-glow);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(26, 127, 165, 0.2);
}

.session-selector { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.session-opt, .time-slot {
  flex: 1; min-width: 120px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 1.5rem 1rem; text-align: center;
  cursor: pointer; transition: all 0.3s var(--spring);
}
.session-opt:hover, .time-slot:hover { background: rgba(26, 127, 165, 0.1); border-color: var(--glass-highlight); }
.session-opt.selected, .time-slot.selected {
  background: rgba(26, 127, 165, 0.2); border-color: var(--teal-glow);
  transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.session-opt .dur { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--teal-glow); display: block; line-height: 1;}
.session-opt .unit { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.session-opt .name { font-weight: 600; font-size: 0.9rem; }

/* =========================================
   FOOTER
========================================= */
footer {
  background: rgba(5, 9, 20, 0.8); backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem; margin-top: auto;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 0.8rem; color: var(--teal-glow); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 0.8rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--text-main); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem; }

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media(max-width: 900px) {
  nav { padding: 1rem; }
  .nav-links {
    display: none; position: fixed; inset: 0; top: 70px;
    background: rgba(5, 9, 20, 0.95); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 2rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
  .session-selector { flex-direction: column; }
}
/* =========================================
   PULSATING SPOTLIGHT LOGO (HERO)
========================================= */
.nav-logo img {
  height: 45px; /* Keeps the corner logo clean and professional */
  border-radius: 8px;
}

.hero-logo {
  max-width: 320px; /* Massive and detailed */
  height: auto;
  margin: 0 auto 2.5rem; /* Centers it perfectly above the text */
  display: block;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(35, 160, 204, 0.6), 0 0 40px rgba(35, 160, 204, 0.4);
  animation: pulse-spotlight 2.5s infinite alternate var(--spring);
  position: relative;
  z-index: 10;
}

@keyframes pulse-spotlight {
  0% { 
    box-shadow: 0 0 15px rgba(35, 160, 204, 0.5), 0 0 30px rgba(35, 160, 204, 0.3); 
    filter: brightness(1) contrast(1.1); 
  }
  100% { 
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.8), 0 0 70px rgba(35, 160, 204, 0.8), 0 0 100px rgba(26, 127, 165, 0.6); 
    filter: brightness(1.25) contrast(1.2); 
  }
}

/* =========================================
   MOTHER'S DAY EVENT SECTION
========================================= */
.promo-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.promo-glass {
  background: rgba(26, 127, 165, 0.05);
  border: 1px solid var(--teal-glow);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(26, 127, 165, 0.1);
}
.promo-title { font-size: 3rem; margin-bottom: 0.5rem; line-height: 1; }
.promo-title span { color: var(--teal-glow); }
.promo-dates { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; color: var(--text-main); margin-bottom: 1.5rem; text-transform: uppercase; }
.promo-desc { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.promo-alert {
  background: rgba(139, 42, 42, 0.15);
  border-left: 4px solid #e07070;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #ffcccc;
  margin-bottom: 2rem;
}
.promo-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  border: 1px solid var(--glass-border);
}

/* =========================================
   CERTIFICATION LOGOS (About Page)
========================================= */
.cert-logos {
  display: flex; gap: 2rem; align-items: center; justify-content: center;
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--glass-border);
}
.cert-logos img { height: 60px; filter: grayscale(100%) brightness(1.5); transition: filter 0.3s; }
.cert-logos img:hover { filter: grayscale(0%) brightness(1); }

@media(max-width: 900px) {
  .promo-glass { grid-template-columns: 1fr; padding: 2rem; }
}