/* ============================================
   OPTIMIZE WELLNESS CLINIC — DESIGN SYSTEM
   Navy #0B2B4A / Deep navy #081D33 / Sage #7CA34A
   Off-white #F4F7F5 / Slate text #3A4750
   Display: Playfair Display / Body: Inter
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0B2B4A;
  --navy-deep: #081D33;
  --navy-black: #06141F;
  --sage: #7CA34A;
  --sage-light: #A9C687;
  --sage-pale: #E8F0DF;
  --white: #FFFFFF;
  --off-white: #F4F7F5;
  --mist: #EDF2EE;
  --slate: #3A4750;
  --slate-light: #6B7680;
  --line: rgba(11, 43, 74, 0.12);
  --shadow-soft: 0 4px 24px rgba(11, 43, 74, 0.08);
  --shadow-med: 0 12px 40px rgba(11, 43, 74, 0.14);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--slate);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--sage);
  display: inline-block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 22px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(124, 163, 74, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124, 163, 74, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-ghost-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
  padding: 13px 26px;
  font-size: 0.92rem;
}
.btn-ghost-navy:hover { background: var(--mist); border-color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(11, 43, 74, 0.25);
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11, 43, 74, 0.35); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(11,43,74,0.08); background: rgba(255,255,255,0.97); }

/* ---- TOP ROW: banner logo + utility actions ---- */
.nav-top {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.nav-logo img { height: 86px; width: auto; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.15;
  white-space: nowrap;
}
.nav-logo-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--sage);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  white-space: nowrap;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
}
.nav-phone svg { width: 17px; height: 17px; color: var(--sage); flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ---- BOTTOM ROW: nav links, own dedicated strip ---- */
.nav-links-row {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}
.nav-links {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
  position: relative;
  padding: 12px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-med);
  z-index: 999;
  max-height: calc(100vh - 79px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 8px;
  font-weight: 600;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}
.mobile-menu a.active { color: var(--sage); }
.mobile-menu .btn { margin-top: 14px; width: 100%; }

@media (max-width: 980px) {
  .nav-links-row { display: none; }
  .nav-phone-text { display: none; }
  .nav-cta .btn-ghost-navy { display: none; }
  .nav-cta > a.btn-primary,
  .nav-cta > a.btn:not(.nav-phone) { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo img { height: 60px; }
  .nav-logo-text { font-size: 1.15rem; }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .nav-phone-text { display: none; }
  .nav-links { gap: 22px; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 50px; }
  .nav-logo-text { font-size: 0.98rem; }
  .nav-logo-text span { font-size: 0.62rem; }
}

/* ---------- HERO (cloak pattern) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 55%, #103457 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(124,163,74,0.22) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(124,163,74,0.14) 0%, transparent 40%);
}

.hero-leaf-motif {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  max-width: 55vw;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 216px 32px 100px;
  width: 100%;
}

.hero-content { max-width: 620px; }

.hero .eyebrow { color: var(--sage-light); }
.hero .eyebrow::before { background: var(--sage-light); }

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  color: var(--white);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage-light);
}

.hero p.lede {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  margin-bottom: 38px;
  font-weight: 400;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-inner { padding: 150px 22px 70px; }
  .hero-leaf-motif { display: none; }
  .hero-stats { gap: 28px; }
}

/* ---------- PAGE HERO (interior pages, no full height) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 60%, #103457 100%);
  padding: 216px 0 84px;
  overflow: hidden;
}
.page-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 88% 20%, rgba(124,163,74,0.2) 0%, transparent 45%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 560px; }
.page-hero .eyebrow { color: var(--sage-light); }
.page-hero .eyebrow::before { background: var(--sage-light); }
@media (max-width: 900px) {
  .page-hero { padding: 130px 0 64px; }
}
@media (max-width: 480px) {
  .page-hero { padding: 118px 0 56px; }
}

/* ---------- SECTION HEADERS ---------- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--slate-light); font-size: 1.06rem; }

/* ---------- SUPPORTS / FEATURE GRID ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-med); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--sage); }

.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 700; }
.feature-card p { color: var(--slate-light); font-size: 0.95rem; }

/* ---------- ALT SECTION BG ---------- */
.section-alt { background: var(--mist); }
.section-navy {
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--sage-light); }
.section-navy .eyebrow::before { background: var(--sage-light); }

/* ---------- SERVICE / PRICING CARDS ---------- */
.pricing-table {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-med);
  overflow: hidden;
  border: 1px solid var(--line);
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px 34px;
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: none; }
.price-row:nth-child(odd) { background: rgba(244,247,245,0.5); }
.price-row h4 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.04rem; color: var(--navy); margin-bottom: 4px; }
.price-row p { font-size: 0.9rem; color: var(--slate-light); margin: 0; }
.price-tag {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--sage);
  white-space: nowrap;
}
.price-tag span { font-size: 0.85rem; color: var(--slate-light); font-family: 'Inter', sans-serif; font-weight: 500; }

.category-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 10px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}

/* ---------- IMAGE PANEL ---------- */
.img-panel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-med);
  position: relative;
}
.img-panel img { width: 100%; height: 100%; object-fit: cover; }
.img-panel-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(8,29,51,0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.img-panel-badge svg { width: 16px; height: 16px; color: var(--sage-light); }

/* ---------- TESTIMONIAL / QUOTE ---------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--sage);
}
.quote-card p { font-style: italic; color: var(--slate); font-size: 1.02rem; margin-bottom: 18px; }
.quote-author { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.quote-author span { display: block; font-weight: 500; color: var(--slate-light); font-size: 0.85rem; margin-top: 2px; }

/* ---------- CHECKLIST ---------- */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--slate); }
.check-list svg { width: 20px; height: 20px; color: var(--sage); flex-shrink: 0; margin-top: 2px; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--sage) 0%, #6a9440 100%);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(124,163,74,0.28);
}
.cta-band h3 { color: var(--white); font-size: 1.7rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.88); font-size: 1rem; }
.cta-band .btn-navy { background: var(--navy-deep); }

@media (max-width: 768px) {
  .cta-band { padding: 40px 28px; text-align: center; justify-content: center; }
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy-black);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 42px; filter: brightness(0) invert(1); }
.footer-brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.2;
}
.footer-brand-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--sage-light);
  font-weight: 600;
  margin-top: 2px;
}
footer p.tagline { font-size: 0.92rem; max-width: 280px; line-height: 1.6; }
footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
footer ul a { font-size: 0.92rem; transition: color 0.2s ease; }
footer ul a:hover { color: var(--sage-light); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- MISC ---------- */
.divider-leaf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 40px;
}
.divider-leaf::before, .divider-leaf::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--line);
}
.divider-leaf svg { width: 20px; height: 20px; color: var(--sage); }

.badge-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 28px 0;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
}
.badge-item svg { width: 20px; height: 20px; color: var(--sage); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
