/* ==========================================================================
   Hesperia Treatment - Sunset Hope Style (#5) + Classic Multi-Page (#1)
   Generated: 2026-02-10
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --primary: #E07B53;
  --primary-dark: #C4623D;
  --secondary: #F4A261;
  --accent: #E9B4C4;
  --text: #4A3728;
  --text-light: #7A6558;
  --bg: #FFFBF7;
  --bg-alt: #FFFFFF;
  --white: #FFFFFF;
  --border: #F0E0D4;
  --shadow: rgba(224, 123, 83, 0.12);
  --shadow-lg: rgba(224, 123, 83, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --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: 'Lato', sans-serif;
  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(--primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

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

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2.1rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* --- Skip Navigation --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 2px 20px var(--shadow);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(224, 123, 83, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 15px var(--shadow);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow-lg);
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Header Phone --- */
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.header-phone svg { width: 18px; height: 18px; }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 123, 83, 0.85), rgba(244, 162, 97, 0.65));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

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

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

/* --- Inner Page Hero --- */
.page-hero {
  position: relative;
  padding: 100px 0 60px;
  margin-top: var(--header-height);
  background: linear-gradient(135deg, rgba(224, 123, 83, 0.9), rgba(244, 162, 97, 0.75));
  text-align: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 123, 83, 0.88), rgba(244, 162, 97, 0.72));
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 4px 18px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}

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

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

.section-warm {
  background: linear-gradient(180deg, #FFF5EE, var(--bg));
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

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

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 4px;
  margin: 12px auto 0;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 12px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover { gap: 10px; }

/* --- Icon Card --- */
.icon-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition);
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--shadow-lg);
}

.icon-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, rgba(224, 123, 83, 0.12), rgba(244, 162, 97, 0.12));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-card .icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.icon-card h3 { font-size: 1.15rem; }

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: center;
}

.stat-item {
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* --- Image Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* --- Testimonials --- */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 30px var(--shadow);
  text-align: center;
  display: none;
}

.testimonial-card.active { display: block; }

.testimonial-card .quote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
}

.testimonial-card .quote::before {
  content: '\201C';
  font-size: 4rem;
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

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

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

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.testimonial-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
}

.testimonial-dots button.active { background: var(--primary); transform: scale(1.2); }

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  text-align: center;
  color: var(--white);
}

.cta-section h2 { color: var(--white); font-size: 2.25rem; }
.cta-section p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }

.cta-phone {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.cta-phone:hover { color: var(--white); opacity: 0.9; }

/* --- Sidebar Layout (Inner pages) --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 60px 0;
}

.content-main { min-width: 0; }

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 20px var(--shadow);
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.sidebar-widget ul li {
  margin-bottom: 10px;
}

.sidebar-widget ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: 0.95rem;
}

.sidebar-widget ul li a:hover {
  color: var(--primary);
  background: rgba(224, 123, 83, 0.06);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 32px 24px;
}

.sidebar-cta h4 { color: var(--white); border: none; margin-bottom: 12px; padding: 0; }
.sidebar-cta p { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 10px var(--shadow);
  overflow: hidden;
}

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

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

.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.active .faq-question { color: var(--primary); }
.faq-item.active .faq-icon { transform: rotate(180deg); }

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

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

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

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition);
}

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

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

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

.blog-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(224, 123, 83, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

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

.insurance-item {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  transition: all var(--transition);
}

.insurance-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--shadow);
}

/* --- Steps / Timeline --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 18px;
}

.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.92rem; color: var(--text-light); }

/* --- Tables --- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.styled-table th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.styled-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:hover td { background: rgba(224, 123, 83, 0.04); }

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--shadow-lg);
}

.contact-card svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-card a { font-size: 1.15rem; font-weight: 600; }
.contact-card p { color: var(--text-light); font-size: 0.9rem; }

/* --- Map Container --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

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

/* --- Footer --- */
.site-footer {
  background: #3D2914;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

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

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--secondary); }

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

.footer-contact li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--secondary);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--secondary); }

/* --- Schedule Table --- */
.schedule-table {
  width: 100%;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.schedule-row:last-child { border-bottom: none; }
.schedule-time { font-weight: 600; color: var(--primary); min-width: 120px; }
.schedule-activity { color: var(--text-light); }

/* --- Content Sections --- */
.content-section { margin-bottom: 48px; }
.content-section h2 { margin-bottom: 20px; }
.content-section h3 { margin-bottom: 14px; color: var(--primary); }
.content-section ul { margin: 12px 0 20px 20px; }
.content-section ul li { margin-bottom: 8px; position: relative; padding-left: 20px; }

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* --- Privacy Page --- */
.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.privacy-content p, .privacy-content li { font-size: 0.95rem; }

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  padding: 8px;
}

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

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { min-height: 500px; }
  .page-hero h1 { font-size: 2rem; }
  .section { padding: 60px 0; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    padding: 100px 24px 40px;
    transition: right var(--transition);
    z-index: 999;
  }

  .main-nav.active { right: 0; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 18px; font-size: 1.05rem; }

  .header-phone { display: none; }
  .trust-items { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-buttons { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-phone { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  .hero { min-height: 450px; }
  .hero-content { padding: 50px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-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) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
