/* ==========================================================================
   Serenity Springs Treatment - serenitysprings.xyz
   Style: Compassionate Care (#10) | Architecture: Mega-Menu Corporate (#2)
   Generated: 2026-02-18
   ========================================================================== */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7B68A6;
  --primary-dark: #5E4D8A;
  --primary-light: #9B8BC6;
  --secondary: #C9A0C9;
  --accent: #F0B5B5;
  --accent-dark: #D4908F;
  --text: #3D3250;
  --text-light: #6B5E7D;
  --bg: #FBF9FC;
  --bg-alt: #FFFFFF;
  --bg-soft: #F3EEF8;
  --border: #E8DFF0;
  --shadow: rgba(123,104,166,0.12);
  --shadow-lg: rgba(123,104,166,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.3;
  font-weight: 500;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

/* ---------- Skip Nav ---------- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10000;
  transition: top var(--transition);
}
.skip-nav:focus { top: 0; color: #fff; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--accent); }
.top-bar__left { display: flex; gap: 20px; align-items: center; }
.top-bar__right { display: flex; gap: 16px; align-items: center; }

/* ---------- Header / Mega-Menu ---------- */
.header {
  background: var(--bg-alt);
  box-shadow: 0 2px 16px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 4px 24px var(--shadow-lg); }
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}
.header__logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__logo span { color: var(--secondary); }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: relative; }
.main-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav__link:hover,
.main-nav__link--active {
  color: var(--primary);
  background: var(--bg-soft);
}
.main-nav__link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.main-nav__item:hover .main-nav__link svg { transform: rotate(180deg); }

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 28px 32px;
  min-width: 520px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.main-nav__item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-menu__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mega-menu__link:hover { background: var(--bg-soft); }
.mega-menu__icon {
  width: 36px;
  height: 36px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.mega-menu__link:hover .mega-menu__icon { background: var(--accent); }
.mega-menu__text strong { display: block; font-size: 0.9rem; color: var(--text); }
.mega-menu__text span { font-size: 0.8rem; color: var(--text-light); }

/* CTA Button in Header */
.header__cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.header__cta:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--shadow);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,104,166,0.82) 0%, rgba(201,160,201,0.65) 50%, rgba(240,181,181,0.5) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 0;
}
.hero__content h1 { color: #fff; font-size: 2.8rem; margin-bottom: 16px; font-weight: 600; }
.hero__content p { color: rgba(255,255,255,0.92); font-size: 1.15rem; margin-bottom: 28px; }
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px var(--shadow); }
.btn--secondary { background: #fff; color: var(--primary); }
.btn--secondary:hover { background: var(--bg-soft); color: var(--primary-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn--outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.btn--accent { background: var(--accent); color: var(--text); }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-soft); }
.section--white { background: var(--bg-alt); }
.section__header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__header h2 { margin-bottom: 12px; }
.section__header p { color: var(--text-light); font-size: 1.05rem; }
.section__label {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.trust-bar__icon {
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
  border-color: var(--secondary);
}
.card__image {
  height: 200px;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__image img { transform: scale(1.05); }
.card__body { padding: 24px; }
.card__body h3 { margin-bottom: 8px; font-size: 1.2rem; }
.card__body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 12px; }
.card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card__link:hover { gap: 8px; }

/* ---------- Program Cards ---------- */
.program-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
  border-color: var(--primary-light);
}
.program-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--bg-soft), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.program-card h3 { margin-bottom: 10px; }
.program-card p { color: var(--text-light); font-size: 0.9rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 24px;
}
.stat__number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.stat__label { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-grid__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid__item:hover img { transform: scale(1.08); }

/* ---------- Testimonials ---------- */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonial {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--secondary);
  position: absolute;
  top: 12px;
  left: 24px;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial__text { font-style: italic; font-size: 1.05rem; margin-bottom: 16px; padding-top: 20px; }
.testimonial__author { font-weight: 600; color: var(--primary); }
.testimonial__program { font-size: 0.85rem; color: var(--text-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 64px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 20px;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { margin: 0 8px; }
.cta-phone {
  display: block;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ---------- Two Column Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }
.two-col__image { border-radius: var(--radius); overflow: hidden; }
.two-col__image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Feature List ---------- */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.feature-item:hover { background: var(--bg-soft); }
.feature-item__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.feature-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0; }

/* ---------- Accordion / FAQ ---------- */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion__header {
  width: 100%;
  background: var(--bg-alt);
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  font-family: inherit;
}
.accordion__header:hover { background: var(--bg-soft); }
.accordion__header svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}
.accordion__item.active .accordion__header svg { transform: rotate(180deg); }
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion__content { padding: 0 24px 20px; color: var(--text-light); font-size: 0.95rem; }

/* ---------- Insurance Grid ---------- */
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.insurance-badge {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.insurance-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-soft);
}

/* ---------- Steps / Timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step {
  text-align: center;
  padding: 24px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: 0.9rem; }

/* ---------- Blog Cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow); }
.blog-card__image { height: 200px; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 24px; }
.blog-card__cat {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-card__body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card__body p { color: var(--text-light); font-size: 0.9rem; }
.blog-card__meta { font-size: 0.8rem; color: var(--text-light); margin-top: 12px; }

/* ---------- Contact Info ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--bg-alt);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--primary-light); box-shadow: 0 8px 24px var(--shadow); }
.contact-card__icon {
  width: 56px;
  height: 56px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
  color: var(--primary);
}
.contact-card h4 { margin-bottom: 6px; }
.contact-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0; }
.contact-card a { color: var(--primary); font-weight: 600; }

/* ---------- Map ---------- */
.map-container { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-container iframe { width: 100%; height: 450px; display: block; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0; font-size: 0.85rem; }
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--text-light); margin: 0 8px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer__about p { font-size: 0.9rem; line-height: 1.7; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__contact p { font-size: 0.9rem; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.footer__contact a { color: rgba(255,255,255,0.8); }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Privacy Page ---------- */
.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.privacy-content h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.privacy-content ul { padding-left: 24px; margin-bottom: 16px; }
.privacy-content li { margin-bottom: 6px; color: var(--text-light); }

/* ---------- Inner Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, var(--accent) 100%);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.tab-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---------- Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 500;
}
.comparison-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:nth-child(even) { background: var(--bg-soft); }
.comparison-table tr:hover { background: rgba(123,104,166,0.06); }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mega-menu { min-width: 400px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 56px 0; }
  .hero__content h1 { font-size: 2rem; }
  .hero { min-height: 440px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col--reverse { direction: ltr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { margin: 0 12px; padding: 48px 20px; }
  .cta-phone { font-size: 1.4rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .top-bar .container { justify-content: center; text-align: center; }
  .top-bar__left { display: none; }

  /* Mobile Nav */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-alt);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    box-shadow: -4px 0 24px var(--shadow-lg);
    transition: right 0.35s ease;
    overflow-y: auto;
    z-index: 999;
    gap: 0;
  }
  .main-nav.open { right: 0; }
  .main-nav__link { padding: 14px 16px; font-size: 1rem; }
  .mega-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: auto;
    padding: 0 16px 12px;
    grid-template-columns: 1fr;
    display: none;
    opacity: 1;
    visibility: visible;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    margin-top: 4px;
  }
  .main-nav__item.open .mega-menu { display: grid; }
  .hamburger { display: block; z-index: 1001; }
  .header__cta--desktop { display: none; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
  }
  .nav-overlay.active { display: block; }
}

@media (max-width: 480px) {
  .hero__content h1 { font-size: 1.7rem; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
  .trust-bar .container { flex-direction: column; gap: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
}
