/* ============================================
   HOPE Behavioral Health - Mountain Serenity #9
   Architecture: Classic Multi-Page #1
   Domain: hopebehavioral.website
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Raleway:wght@400;600;700&family=Source+Sans+3:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #4A5568;
  --primary-dark: #3D4757;
  --secondary: #48624D;
  --secondary-dark: #3A5040;
  --accent: #9DC3C1;
  --accent-light: #C5DCDB;
  --text: #1A202C;
  --text-light: #4A5568;
  --bg: #F7F8F9;
  --bg-white: #FFFFFF;
  --border: #E2E6EA;
  --shadow: rgba(74,85,104,0.1);
  --shadow-md: rgba(74,85,104,0.15);
  --radius: 6px;
  --radius-lg: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Raleway', sans-serif;
  color: var(--text);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* --- Skip Nav --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 600;
}
.skip-nav:focus { top: 0; }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: 0 2px 12px var(--shadow);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--bg);
  color: var(--secondary);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: #fff !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.header-cta:hover { background: var(--secondary-dark); color: #fff; }
.header-phone {
  display: none;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-height);
  overflow: hidden;
  background-color: var(--primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,85,104,0.82) 0%, rgba(72,98,77,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
}
.btn-primary:hover { background: var(--secondary-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: var(--text);
}
.btn-accent:hover { background: var(--accent-light); color: var(--text); }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--primary);
  color: #fff;
  padding: 1.25rem 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(157,195,193,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* --- Sections --- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  position: relative;
  padding-bottom: 1rem;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  border-radius: 2px;
}
.section-header p { color: var(--text-light); margin-top: 1rem; }

/* --- Mountain Divider --- */
.mountain-divider {
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 100%, 15% 30%, 30% 70%, 50% 0%, 70% 60%, 85% 20%, 100% 100%);
  margin-top: -1px;
}
.mountain-divider-inv {
  height: 60px;
  background: var(--bg-white);
  clip-path: polygon(0 100%, 15% 30%, 30% 70%, 50% 0%, 70% 60%, 85% 20%, 100% 100%);
  margin-top: -1px;
}

/* --- Program Cards --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.program-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 16px var(--shadow);
  border-top: 3px solid var(--secondary);
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-md);
}
.program-card .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.program-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.program-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }
.card-link {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}
.card-link:hover { color: var(--primary-dark); }

/* --- Why Choose Us --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature-item {
  text-align: center;
  padding: 1.5rem;
}
.feature-item .feat-icon {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--secondary);
  border: 2px solid var(--accent-light);
}
.feature-item h4 { margin-bottom: 0.5rem; }
.feature-item p { color: var(--text-light); font-size: 0.95rem; }

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 3rem 0;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item .stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}
.stat-item .stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* --- Gallery Preview --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(26,32,44,0.75));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Testimonials --- */
.testimonials-slider { max-width: 800px; margin: 0 auto; }
.testimonial-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px var(--shadow);
  text-align: center;
  border-left: 4px solid var(--accent);
  margin-bottom: 2rem;
}
.testimonial-card .quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.testimonial-card .quote::before { content: '\201C'; font-size: 2rem; color: var(--accent); line-height: 0; vertical-align: -0.4rem; margin-right: 0.25rem; }
.testimonial-card .author {
  font-weight: 600;
  color: var(--secondary);
}
.testimonial-card .program-type {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn-outline { border-color: #fff; color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.15); }
.cta-phone {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
}
.cta-phone a { color: #fff; }
.cta-phone a:hover { color: var(--accent-light); }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  margin-top: var(--header-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.breadcrumb-list a { color: var(--secondary); font-weight: 500; }
.breadcrumb-list .separator { color: var(--border); }

/* --- Page Hero (Inner) --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 3.5rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg-white);
  clip-path: polygon(0 100%, 20% 40%, 40% 80%, 60% 20%, 80% 60%, 100% 100%);
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; font-size: 2.25rem; }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Content Layout (Inner Pages) --- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
}
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }

/* --- Sidebar Widgets --- */
.sidebar-widget {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}
.sidebar-widget ul li {
  margin-bottom: 0.5rem;
}
.sidebar-widget ul li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.sidebar-widget ul li a:hover,
.sidebar-widget ul li a.active {
  background: var(--bg-white);
  color: var(--secondary);
  padding-left: 1rem;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  text-align: center;
  border: none;
}
.sidebar-cta h3 { color: #fff; border-bottom-color: var(--accent); }
.sidebar-cta p { color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.sidebar-cta .cta-tel {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
  margin: 1rem 0;
}
.sidebar-cta .cta-tel a { color: #fff; }

/* --- Content Sections --- */
.content-section { margin-bottom: 3rem; }
.content-section h2 {
  font-size: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}
.content-section h3 { font-size: 1.25rem; color: var(--secondary); }

/* --- Modalities / Lists --- */
.modalities-grid,
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.modality-item,
.amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.modality-item .mod-icon,
.amenity-item .am-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--secondary);
}
.modality-item h4,
.amenity-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.modality-item p,
.amenity-item p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0; }

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}
.team-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border-top: 3px solid var(--accent);
}
.team-card .team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.team-card h4 { margin-bottom: 0.25rem; }
.team-card .title { color: var(--secondary); font-size: 0.9rem; font-weight: 600; }
.team-card .credentials { color: var(--text-light); font-size: 0.85rem; margin-top: 0.25rem; }

/* --- Timeline / Steps --- */
.steps-list { counter-reset: steps; margin: 2rem 0; }
.step-item {
  counter-increment: steps;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 0.5rem;
}
.step-item::before {
  content: counter(steps);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-item::after {
  content: '';
  position: absolute;
  left: calc(0.5rem + 23px);
  top: 52px;
  bottom: -2rem;
  width: 2px;
  background: var(--border);
}
.step-item:last-child::after { display: none; }
.step-content h4 { margin-bottom: 0.25rem; }
.step-content p { color: var(--text-light); font-size: 0.95rem; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg-white);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
  font-size: 1.2rem;
  color: var(--secondary);
}
.faq-item.active .faq-question { background: var(--bg); color: var(--secondary); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p { color: var(--text-light); font-size: 0.95rem; }

/* --- Insurance Grid --- */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.insurance-item {
  background: var(--bg);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.insurance-item:hover {
  border-color: var(--accent);
  background: var(--bg-white);
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-md);
}
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-body .category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--secondary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--secondary); }
.blog-card-body p { color: var(--text-light); font-size: 0.9rem; }
.blog-card-body .meta { font-size: 0.85rem; color: var(--text-light); margin-top: 0.75rem; }

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.contact-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border-top: 3px solid var(--accent);
}
.contact-card .c-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: var(--secondary);
  border: 2px solid var(--accent-light);
}
.contact-card h4 { margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }
.contact-card a { color: var(--secondary); font-weight: 600; }

/* --- Map --- */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  margin: 2rem 0;
}
.map-wrapper iframe { width: 100%; height: 400px; border: none; display: block; }

/* --- Daily Schedule Table --- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.schedule-table th,
.schedule-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.schedule-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.schedule-table tr:nth-child(even) { background: var(--bg); }
.schedule-table tr:hover { background: var(--accent-light); }

/* --- Footer --- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--secondary);
}
.footer-about p { font-size: 0.95rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.footer-contact-item .fc-icon {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* --- Privacy Policy --- */
.privacy-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; border-bottom: none; }
.privacy-content h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.privacy-content ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.privacy-content ul li { list-style: disc; margin-bottom: 0.4rem; color: var(--text-light); font-size: 0.95rem; }

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
}
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:nth-child(even) { background: var(--bg); }

/* --- Substances List --- */
.substances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.substance-tag {
  background: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border-left: 3px solid var(--secondary);
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-sidebar { position: static; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-content h1 { font-size: 2.25rem; }
  .hero { min-height: 500px; }
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 8px 24px var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    padding: 1rem;
    z-index: 999;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 0.85rem 1rem; border-radius: 0; border-bottom: 1px solid var(--border); }
  .header-cta { display: none; }
  .header-phone { display: flex; }

  .trust-bar .container { gap: 1.5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .programs-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p { font-size: 1rem; }
  .section { padding: 2.5rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cta-phone { font-size: 1.5rem; }
}
