/* ==========================================================================
   Serenity Springs Treatment — serenitysprings.website
   Style: Nature Healing (#4) | Architecture: Card-Grid Dashboard (#6)
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #2D5A3D;
  --primary-light: #3a7350;
  --secondary: #7CB083;
  --accent: #E8B84A;
  --text: #1A2E1A;
  --text-light: #4a5e4a;
  --bg: #F5F9F5;
  --bg-alt: #FFFFFF;
  --bg-card: #FFFFFF;
  --shadow: 0 4px 20px rgba(45, 90, 61, 0.10);
  --shadow-hover: 0 8px 32px rgba(45, 90, 61, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --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: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
}

h1 { font-size: 2.6rem; font-weight: 600; margin-bottom: 1rem; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 0.8rem; }
h3 { font-size: 1.45rem; font-weight: 600; margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--accent);
  color: var(--text);
}
.btn-secondary:hover {
  background: #d4a53e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-phone {
  background: var(--accent);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius);
}
.btn-phone:hover {
  background: #d4a53e;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-alt);
  box-shadow: 0 2px 12px rgba(45, 90, 61, 0.08);
  height: var(--header-height);
}

.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 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.logo:hover { color: var(--primary); }

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}
.header-phone:hover { color: var(--accent); }

.header-cta {
  padding: 10px 24px;
  font-size: 0.92rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--bg);
  color: var(--primary);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,90,61,0.82) 0%, rgba(45,90,61,0.55) 50%, rgba(124,176,131,0.3) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 80px 0;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--primary);
  padding: 20px 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---------- Card Grid (Architecture #6 Core) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 20px 0;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin-bottom: 0.6rem;
}

.card-body p {
  flex: 1;
  color: var(--text-light);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.card-link:hover { color: var(--accent); gap: 10px; }

/* Card icon variant */
.card-icon {
  text-align: center;
  padding: 36px 24px;
}

.card-icon .icon-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  border: 2px solid var(--secondary);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Leaf divider */
.leaf-divider {
  text-align: center;
  padding: 12px 0;
  color: var(--secondary);
  font-size: 1.4rem;
  opacity: 0.5;
}

/* ---------- About Preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-preview-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-preview-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.stat-box {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--secondary);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ---------- Amenities Gallery ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.amenity-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition);
}

.amenity-thumb:hover { transform: scale(1.03); }

.amenity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--secondary);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 16px;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

.testimonial-program {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-banner .btn-phone {
  font-size: 1.2rem;
  padding: 18px 42px;
}

/* ---------- Programs Page ---------- */
.program-detail {
  padding: 60px 0;
  border-bottom: 1px solid rgba(45,90,61,0.08);
}

.program-detail:last-child { border-bottom: none; }

.program-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.program-detail-grid.reverse { direction: rtl; }
.program-detail-grid.reverse > * { direction: ltr; }

.program-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.program-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Timeline steps */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h4 { margin-bottom: 4px; }
.step-content p { margin-bottom: 0; font-size: 0.95rem; color: var(--text-light); }

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(45,90,61,0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  content: '\2212';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

/* ---------- Insurance Grid ---------- */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.insurance-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45,90,61,0.06);
  border: 1px solid rgba(45,90,61,0.08);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-body h3 { font-size: 1.2rem; }
.blog-card-body p { font-size: 0.92rem; color: var(--text-light); }

.blog-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* ---------- Blog Article (Full) ---------- */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0;
}

.blog-article h2 { font-size: 1.6rem; margin-top: 2rem; }
.blog-article h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.blog-article ul, .blog-article ol {
  padding-left: 24px;
  margin-bottom: 1rem;
}
.blog-article li {
  list-style: disc;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* ---------- Inner Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Tab Navigation (within pages) ---------- */
.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.section-tab {
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid var(--secondary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.section-tab:hover,
.section-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--bg);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  border: 3px solid var(--secondary);
}

.team-card h4 { color: var(--primary); margin-bottom: 4px; }
.team-role { font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.team-credentials { font-size: 0.85rem; color: var(--text-light); }

/* ---------- Amenity List ---------- */
.amenity-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(45,90,61,0.06);
}

.amenity-item-icon {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- Schedule Table ---------- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
}

.schedule-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(45,90,61,0.06);
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) { background: var(--bg); }

/* ---------- Comparison Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
}

.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}

.comparison-table th:first-child { text-align: left; }

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(45,90,61,0.06);
  text-align: center;
  font-size: 0.92rem;
}

.comparison-table td:first-child { text-align: left; font-weight: 600; }
.comparison-table tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Privacy Page ---------- */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.privacy-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.8rem; }
.privacy-content h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.privacy-content ul {
  padding-left: 24px;
  margin-bottom: 1rem;
}
.privacy-content li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

/* ---------- Skip Nav (Accessibility) ---------- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
}
.skip-nav:focus { top: 16px; }

/* ---------- HIPAA Notice ---------- */
.hipaa-notice {
  background: var(--bg);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 24px;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-preview { grid-template-columns: 1fr; }
  .program-detail-grid { grid-template-columns: 1fr; }
  .program-detail-grid.reverse { direction: ltr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero { min-height: 440px; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
    width: 100%;
  }

  .header-phone { display: none; }
  .header-cta { display: none; }

  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .insurance-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-items { gap: 20px; }
  .section { padding: 56px 0; }

  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .insurance-grid { grid-template-columns: 1fr; }
  .section-tabs { gap: 6px; }
  .section-tab { padding: 8px 16px; font-size: 0.85rem; }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header, .site-footer, .back-to-top, .cta-banner, .trust-bar { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}
