/* =========================================================
   Terrasoma Massage & Meditation
   Colors are taken from the logo. Change them here to restyle the whole site.
   ========================================================= */
:root {
  --forest: #26331f;      /* wordmark dark green */
  --sage: #56703f;        /* lotus green */
  --sage-light: #7d9165;
  --gold: #b19a6b;        /* sun arc */
  --cream: #f6f3ea;
  --sand: #ebe5d6;
  --white: #ffffff;
  --text: #2c3328;
  --muted: #6a7064;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --header-h: 84px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--forest); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section--sage { background: var(--sage); color: var(--white); }
.section--sage h2, .section--sage h3 { color: var(--white); }
.section--dark { background: var(--forest); color: var(--cream); }
.section--dark h2 { color: var(--white); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); }
.eyebrow--light { color: var(--sand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 22px; font-size: .74rem; }
.btn--primary { background: var(--sage); color: var(--white); }
.btn--primary:hover { background: var(--forest); }
.btn--ghost { color: var(--forest); border-color: transparent; }
.btn--ghost:hover { border-color: var(--sand); }
.btn--light { background: var(--cream); color: var(--forest); }
.btn--light:hover { background: var(--white); }
.btn--outline-light { color: var(--white); border-color: rgba(255,255,255,.8); }
.btn--outline-light:hover { background: var(--white); color: var(--forest); }

.link-arrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage); text-decoration: none; white-space: nowrap;
}
.link-arrow::after { content: " \2192"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 6px; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--forest); color: var(--cream);
  text-align: center; font-size: .85rem; padding: 9px 48px; position: relative;
}
.announce p { margin: 0; }
.announce a { color: var(--gold); font-weight: 600; }
.announce__close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: inherit; font-size: 1.4rem; cursor: pointer; line-height: 1;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 4px 24px rgba(38,51,31,.08); border-color: var(--sand); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.header__logo img { height: 54px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 8px; }

.nav__list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav__item { height: var(--header-h); display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forest); text-decoration: none; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav__link:hover::after, .nav__item--has-menu:hover .nav__link::after { transform: scaleX(1); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--sand);
  box-shadow: 0 20px 40px rgba(38,51,31,.1);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav__item--has-menu:hover .mega,
.nav__item--has-menu:focus-within .mega,
.nav__item--has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 32px; padding-top: 36px; padding-bottom: 40px; }
.mega__col h4 { font-size: 1.35rem; margin-bottom: 12px; }
.mega__col a { display: block; text-decoration: none; color: var(--muted); padding: 5px 0; font-size: .92rem; }
.mega__col a:hover { color: var(--sage); }
.mega__feature { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.mega__feature img { width: 100%; height: 200px; object-fit: cover; }
.mega__feature span {
  position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--forest);
  padding: 8px 16px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* Hamburger + mobile */
.hamburger { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; padding: 10px; }
.hamburger span { display: block; height: 2px; background: var(--forest); margin: 5px 0; transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--white); overflow-y: auto; padding: 24px;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a, .mobile-menu summary {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--sand);
  font-family: var(--serif); font-size: 1.5rem; color: var(--forest); text-decoration: none; cursor: pointer;
}
.mobile-menu details a { font-family: var(--sans); font-size: 1rem; padding-left: 16px; color: var(--muted); }
.mobile-menu .btn { margin-top: 24px; font-family: var(--sans); font-size: .85rem; border: 0; color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,40,24,.72) 0%, rgba(30,40,24,.35) 55%, rgba(30,40,24,.1) 100%); }
.hero__content { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero__lead { max-width: 520px; font-size: 1.1rem; color: rgba(255,255,255,.9); margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro__text > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 28px; border: 1px solid var(--sand); border-radius: var(--radius); margin-bottom: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.cta-card:hover { border-color: var(--sage-light); box-shadow: 0 8px 24px rgba(38,51,31,.06); }
.cta-card h3 { margin-bottom: 4px; }
.cta-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.cta-card--accent { background: var(--cream); border-color: var(--cream); }

.intro__images { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.intro__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.intro__img--tall { grid-row: span 2; aspect-ratio: 3 / 4.6; }
.intro__img--square { aspect-ratio: 1; }
.intro__img--wide { aspect-ratio: 1; }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 2px; background: var(--gold); }

/* ---------- Services carousel ---------- */
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--forest);
  background: transparent; color: var(--forest); font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s;
}
.carousel-btn:hover { background: var(--forest); color: var(--white); }
.carousel {
  /* Match the .container content width so cards clip at the content edge, not the viewport */
  width: min(calc(100% - 48px), calc(var(--max) - 48px)); margin-inline: auto;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); /* exactly 4 visible */
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.svc-card { scroll-snap-align: start; text-decoration: none; color: inherit; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.svc-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s; }
.svc-card:hover img { transform: scale(1.04); }
.svc-card__body { padding: 22px 22px 26px; }
.svc-card__body h3 { margin-bottom: 6px; }
.svc-card__body p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Split sections ---------- */
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 9 / 8; object-fit: cover; }
.split__text > p { font-size: 1.05rem; color: var(--muted); }
.section--sage .split__text > p { color: rgba(255,255,255,.85); }
.split__text .btn { margin-top: 12px; }

.info-list { list-style: none; padding: 0; margin: 24px 0 28px; }
.info-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sand); }
.info-list strong { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); padding-top: 2px; }

.features { list-style: none; padding: 0; margin: 28px 0; }
.features li { padding: 18px 0 18px 32px; border-top: 1px solid rgba(255,255,255,.2); position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.features h3 { font-size: 1.35rem; margin-bottom: 2px; }
.features p { margin: 0; color: rgba(255,255,255,.8); font-size: .95rem; }

/* ---------- Ready to relax tiles ---------- */
.relax__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(30,40,24,.65)); }
.tile__label {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1;
  font-family: var(--serif); font-size: 1.7rem; color: var(--white);
}
.tile__label::after { content: " \2192"; font-family: var(--sans); font-size: 1rem; }

/* ---------- Full-width banners ---------- */
.banner { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__overlay { position: absolute; inset: 0; background: rgba(30,40,24,.55); }
.banner__content { position: relative; padding-top: 80px; padding-bottom: 80px; }
.banner__content > * { max-width: 560px; }
.banner h2 { color: var(--white); }
.banner p { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.banner--right .banner__content { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.banner--right .eyebrow { flex-direction: row-reverse; }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--sand); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.4rem; color: var(--forest);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--gold); transition: transform .25s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 72px 0; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter__inner p { margin: 0; color: rgba(246,243,234,.8); }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 420px; max-width: 520px; }
.newsletter__form input {
  flex: 1 1 240px; padding: 15px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  background: transparent; color: var(--white); font: inherit;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter__msg { width: 100%; margin: 6px 0 0; color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--cream); padding: 72px 0 36px; font-size: .9rem; }
.footer__top { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--sand); }
.footer__logo img { width: 220px; mix-blend-mode: multiply; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer__cols h4 { font-size: 1.25rem; margin-bottom: 14px; }
.footer__cols a { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; }
.footer__cols a:hover { color: var(--sage); }
.footer__social { display: flex; gap: 12px; padding: 28px 0; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sand);
  display: grid; place-items: center; color: var(--forest); transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--forest); color: var(--white); }
.footer__social svg { width: 18px; height: 18px; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.footer__legal p { margin: 0; }
.footer__legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal-links a { color: var(--muted); }
.footer__disclaimer { margin-top: 24px; font-size: .75rem; color: var(--muted); opacity: .85; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header__account { display: none; }
  .hamburger { display: block; }
  .carousel { grid-auto-columns: calc((100% - 22px) / 2); }
}
@media (max-width: 860px) {
  .hero__bg { object-position: 65% center; }
  #practitioners .banner__bg { object-position: 75% center; }
  #classes .banner__bg { object-position: 25% center; }
  :root { --header-h: 72px; }
  .header__logo img { height: 42px; }
  .intro__grid, .split__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .relax__grid { grid-template-columns: 1fr; }
  .tile img { aspect-ratio: 16 / 10; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .banner--right .banner__content { align-items: flex-start; text-align: left; }
  .banner--right .eyebrow { flex-direction: row; }
}
@media (max-width: 560px) {
  .header__actions .btn--primary { padding: 9px 16px; }
  .carousel { grid-auto-columns: 78%; }
  .carousel-controls { display: none; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .announce { font-size: .78rem; }
}
