:root {
  --primary: #236478;
  --primary-dark: #163f4c;
  --accent: #e8935c;
  --bg: #ffffff;
  --surface: #f5f8fb;
  --text: #1a2332;
  --text-light: #5a6b7e;
  --border: #e2e8f0;
  --radius: 14px;
  --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--primary); }

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

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Header — NOTE: no backdrop-filter/filter/transform here. A filter on this
   ancestor previously created a new containing block for the mobile nav's
   position:fixed, collapsing it to ~48px instead of full viewport height. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark);
  text-decoration: none;
}
.site-logo span { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-light); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--primary); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.header-phone:hover { background: var(--primary-dark); }
.header-phone svg { width: 16px; height: 16px; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger svg { width: 22px; height: 22px; }

/* Hero */
.hero {
  padding: 56px 0 64px;
  background: var(--surface);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
}
.intro-answer {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 26px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--surface); }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(22,63,76,0.18); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Sections */
section { padding: 64px 0; }
.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--primary-dark);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-lead {
  text-align: center;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: 0 8px 28px rgba(22,63,76,0.14); aspect-ratio: 4/3; object-fit: cover; }
.about-grid p { margin-bottom: 16px; }
.badge-list { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.badge-list li { display: flex; align-items: flex-start; gap: 10px; }
.badge-list svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--primary); margin-top: 3px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.service-card svg { width: 32px; height: 32px; color: var(--primary); margin-bottom: 14px; }
.service-card h3 { font-size: 1.05rem; color: var(--primary-dark); }

.anxiety-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  align-items: center;
}
.anxiety-panel img { border-radius: 10px; }

/* Reviews section */
.reviews-section { background: var(--surface); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-info-card h3 { color: var(--primary-dark); margin-bottom: 18px; }
.contact-info-card ul { list-style: none; display: grid; gap: 14px; }
.contact-info-card li { display: flex; align-items: flex-start; gap: 12px; }
.contact-info-card svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--primary); margin-top: 3px; }

.elementor-form, #contact-form {
  display: grid;
  gap: 14px;
}
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}
.form-field textarea { min-height: 120px; resize: vertical; }
#contact-form .btn { margin-top: 6px; width: fit-content; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #eaf1f4;
  padding: 40px 0 24px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand h3 { color: #fff; margin-bottom: 8px; }
.footer-content p, .footer-content a { color: #cddbe0; font-size: 0.92rem; text-decoration: none; }
.footer-content a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; text-align: center; font-size: 0.85rem; color: #a9bcc3; }

.updated-at { text-align: center; font-size: 0.82rem; color: var(--text-light); padding: 10px 0 0; }

/* FAB */
.fab-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.fab {
  pointer-events: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fab.wa { background: #25D366; }
.fab.call { background: var(--primary); }
.fab svg { width: 28px; height: 28px; fill: white; }

@media print { .fab-container { display: none; } }

/* Thanks page */
.thanks-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}
.thanks-card { text-align: center; max-width: 480px; }
.thanks-card img { margin: 0 auto 24px; max-width: 260px; }
.thanks-card h1 { color: var(--primary-dark); font-size: 1.8rem; margin-bottom: 12px; }
.thanks-card p { color: var(--text-light); margin-bottom: 26px; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--text-light); margin: 18px 0; }
.breadcrumbs a { color: var(--text-light); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .anxiety-panel { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .hamburger { display: flex; }
  .header-phone { padding: 9px 14px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  section { padding: 44px 0; }
  .hero { padding: 36px 0 44px; }
  .fab { width: 48px; height: 48px; }
  .fab svg { width: 24px; height: 24px; }
  .fab-container { bottom: 16px; left: 16px; }
}
