:root {
  /* Refined luxury palette */
  --ivory: #f8f5f0;
  --paper: #ffffff;
  --soft: #f3eee6;
  --ink: #1c1b1f;
  --muted: #6e6a67;
  --burgundy: #8a1538;
  --accent: #3658ff;
  --ok: #2ba97a;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 28px rgba(30, 25, 20, 0.1);
  --w: 1200px;

  --serif: "Cormorant Garamond", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
}

.serif {
  font-family: var(--serif);
  letter-spacing: 0.2px;
}
.shell {
  max-width: var(--w);
  margin-inline: auto;
  padding: clamp(20px, 4vw, 40px);
}
.section {
  padding: clamp(44px, 8vw, 84px) 0;
}
.section.alt {
  background: var(--soft);
}
.section.tight .shell {
  gap: 28px;
}

a {
  color: inherit;
}
a:hover {
  opacity: 0.92;
}
img {
  max-width: 100%;
  display: block;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid #e8e0d6;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
}
.brand__img {
  height: clamp(56px, 8vw, 110px);
  width: auto;
}

/* scalable logo */
.brand__img--footer {
  height: 48px;
}
.nav__toggle {
  display: none;
}
.nav__menu {
  display: flex;
  list-style: none;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav__cta .btn {
  padding: 8px 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--burgundy);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(138, 21, 56, 0.2);
}
.btn--ghost {
  border: 1px solid #e7dfd4;
  background: #fff;
}
.btn--outline {
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
}
.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.center {
  text-align: center;
}
.pad-top {
  margin-top: 18px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(248, 245, 240, 0.35),
      rgba(248, 245, 240, 0.75)
    ),
    url("https://images.unsplash.com/photo-1519710164239-da123dc03ef4?q=80&w=2000&auto=format&fit=crop")
      center/cover no-repeat;
  transform: scale(1.12);
  animation: heroZoom 9s ease-out forwards;
}
@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__content {
  max-width: 780px;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 60ch;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.badges {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.badges li {
  border: 1px solid #e7dfd4;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  background: #fff;
}
.scroll-hint {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Headings */
h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
}
h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
}
h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
}
h3 {
  font-size: 1.2rem;
}
.h4 {
  font-size: 1.05rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Programs: equal-height cards + perfectly aligned rows */
.grid--4.cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.cards .card {
  display: flex;
  flex-direction: column;
}

.cards .card p {
  margin: 0 0 12px;
}

/* Label column fixed, value column flexible */
.kv {
  list-style: none;
  padding: 0;
  margin-top: auto; /* pushes KV block down so cards match heights */
  border-top: 1px dashed #e8e0d6;
}

.kv li {
  display: grid;
  grid-template-columns: 130px 1fr; /* adjust 130px if you want wider labels */
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed #e8e0d6;
}
.kv li:first-child {
  border-top: none;
}

.kv span {
  color: var(--muted);
  text-align: left;
}
.kv b {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
}

.pad-top {
  margin-top: 24px;
} /* button spacing under grid */

@media (max-width: 980px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .nav__toggle {
    display: inline-block;
    background: #fff;
    color: var(--ink);
    border: 1px solid #e7dfd4;
    padding: 8px 12px;
    border-radius: 999px;
  }
  .nav__menu {
    position: absolute;
    inset: 58px 12px auto 12px;
    background: #fff;
    border: 1px solid #e8e0d6;
    border-radius: var(--radius);
    padding: 12px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow);
  }
  .nav__menu.show {
    display: flex;
  }
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid #e8e0d6;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card--soft {
  background: #fff;
}
.card--air {
  padding: 22px;
}

/* Key-value list */
.kv {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.kv li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px dashed #e8e0d6;
}
.kv span {
  color: var(--muted);
}

/* Lists */
.list {
  padding-left: 18px;
}
.list--check {
  list-style: none;
  padding: 0;
}
.list--check li {
  padding-left: 26px;
  position: relative;
  margin: 8px 0;
}
.list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
}

/* Treat accordion */
.accordion .acc {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e8e0d6;
  border-radius: var(--radius);
  margin: 10px 0;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.accordion.big .acc {
  font-weight: 600;
}
.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.panel p {
  margin: 10px 0 0;
}

/* Therapy bubbles - even count grid */
.bubbles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .bubbles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .bubbles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.bubble {
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8e0d6;
  box-shadow: var(--shadow);
  font-weight: 700;
  cursor: pointer;
  padding: 6px;
}
.bubble:focus {
  outline: 2px solid var(--accent);
}
.refs {
  margin-top: 10px;
}

/* Placeholders */
.placeholder {
  height: 220px;
  border: 1px dashed #e2d8cc;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: #fff;
}
.ph-grid {
  width: 90%;
  height: 70%;
  border-radius: 12px;
  background: repeating-linear-gradient(
    135deg,
    #f3eee6,
    #f3eee6 10px,
    #ece4da 10px,
    #ece4da 20px
  );
}

/* Form */
.form {
  display: grid;
  gap: 12px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e0d7cc;
  border-radius: 12px;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
.form__fine {
  color: var(--muted);
  font-size: 0.9rem;
}
.form__success {
  margin-top: 8px;
  color: var(--ok);
}

/* Contact */
.contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact li {
  padding: 8px 0;
}

/* Footer */
.footer {
  border-top: 1px solid #e8e0d6;
  background: #fff;
}
.footer__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  align-items: center;
}
.footer__nav,
.footer__meta {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer a {
  text-decoration: none;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 72px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e8e0d6;
  cursor: pointer;
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
}
.to-top.show {
  display: grid;
}

/* PPO ticker */
.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: #ffffff;
  border-top: 1px solid #e8e0d6;
  box-shadow: 0 -8px 22px rgba(30, 25, 20, 0.06);
}
.ticker__track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  animation: slide 26s linear infinite;
  padding: 10px 16px;
  color: #4a4541;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid #e8e0d6;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}
.ticker .pill {
  background: #f6f0ea;
  color: var(--burgundy);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
}
@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 31, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 80;
}
.modal.show {
  display: flex;
}
.modal__card {
  background: #fff;
  color: var(--ink);
  width: min(720px, 96vw);
  border-radius: 18px;
  border: 1px solid #e8e0d6;
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}
.modal__close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 22px;
  background: #fff;
  border: 1px solid #e8e0d6;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}
.modal__close:focus {
  outline: 2px solid var(--accent);
}

/* Scroll reveal */
/* --- Replace your existing .reveal rules with these --- */
.reveal {
  opacity: 1;
  transform: none;
} /* visible by default */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
} /* only hide if JS active */
.js .reveal.show {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s, transform 0.5s;
}

/* ----- HAMBURGER MENU BASE ----- */
.icon {
  display: none;
}
.icon--menu {
  display: block;
}
.nav__toggle[aria-expanded="true"] .icon--menu {
  display: none;
}
.nav__toggle[aria-expanded="true"] .icon--close {
  display: block;
}

.nav__toggle {
  display: none;
  background: #fff;
  border: 1px solid #e5ddd2;
  padding: 8px 10px;
  border-radius: 999px;
  line-height: 0;
  color: #1a1a1a;
  cursor: pointer;
}

/* ----- MOBILE STYLING ----- */
@media (max-width: 980px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__menu {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid #e5ddd2;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    z-index: 100;
  }

  .nav__menu.show {
    display: flex;
  }

  .nav__menu li {
    text-align: center;
  }

  .nav__cta a {
    width: 100%;
    display: inline-block;
  }
}

/* ============================= */
/* 📱 MOBILE RESPONSIVENESS FIXES */
/* ============================= */

/* For tablets and below */
@media (max-width: 992px) {
  .hero-content {
    text-align: center;
    padding: 4rem 2rem;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    display: block;
    margin: 0.5rem auto;
    width: 80%;
  }

  .programs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* For phones (small screens) */
@media (max-width: 600px) {
  header nav ul {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .program-card {
    padding: 1.5rem;
  }

  footer {
    text-align: center;
    font-size: 0.9rem;
  }

  form input,
  form textarea,
  form button {
    width: 100%;
  }
}
