/* ==========================================================================
   Remote Wellness Now — Design System v1.0
   "Serenity meets science." Earth and ocean meet the human biofield.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Foundation */
  --c-warm-white:  #FAF7F1;
  --c-sand:        #E8DCC8;
  --c-sand-light:  #F3EDE1;
  --c-ink:         #1C2B2D;
  --c-ink-soft:    #3E5254;

  /* Ocean */
  --c-deep-ocean:  #123C4F;
  --c-ocean:       #1F5E70;
  --c-sea-glass:   #7FB8AE;
  --c-sea-glass-soft: #D4E7E3;

  /* Earth */
  --c-sage:        #A9BCA0;
  --c-teal-deep:   #2E7D74;
  --c-teal-deeper: #24645D;

  /* Biofield glow */
  --c-field-gold:  #D9A45B;
  --c-field-glow:  #F0C98A;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  --fs-xs:   clamp(0.78rem, 0.75rem + 0.15vw, 0.85rem);
  --fs-sm:   clamp(0.9rem,  0.86rem + 0.2vw,  1rem);
  --fs-base: clamp(1.02rem, 0.96rem + 0.3vw,  1.15rem);
  --fs-md:   clamp(1.2rem,  1.1rem  + 0.5vw,  1.45rem);
  --fs-lg:   clamp(1.5rem,  1.3rem  + 1vw,    2rem);
  --fs-xl:   clamp(2rem,    1.6rem  + 2vw,    2.9rem);
  --fs-hero: clamp(2.3rem,  1.7rem  + 3vw,    4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 26px;

  --shadow-soft: 0 8px 30px rgba(18, 60, 79, 0.08);
  --shadow-lift: 0 14px 44px rgba(18, 60, 79, 0.14);

  --measure: 68ch;
  --container: 1160px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-warm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-deep-ocean);
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p, ul, ol { margin: 0 0 var(--space-2); max-width: var(--measure); }

a { color: var(--c-ocean); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-teal-deep); }

:focus-visible {
  outline: 3px solid var(--c-field-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--c-deep-ocean); color: #fff;
  padding: 0.6rem 1.2rem; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-4); }
.section--sand { background: var(--c-sand-light); }
.section--ocean {
  background: linear-gradient(160deg, var(--c-deep-ocean) 0%, #0D2E3E 100%);
  color: #EAF2F1;
}

/* Ambient particle field (canvas injected by JS into [data-particles] sections) */
[data-particles] { position: relative; overflow: hidden; }
[data-particles] > .container { position: relative; z-index: 1; }
canvas.particle-field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.section--ocean h2, .section--ocean h3 { color: #fff; }
.section--ocean a { color: var(--c-field-glow); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-teal-deep);
  margin-bottom: var(--space-1);
}
.section--ocean .eyebrow { color: var(--c-field-gold); }

.lede { font-size: var(--fs-md); color: var(--c-ink-soft); line-height: 1.6; }
.section--ocean .lede { color: #C9DBD8; }

.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.95rem 2.1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-teal-deep); color: #fff; }
.btn--primary:hover { background: var(--c-teal-deeper); color: #fff; }

.btn--ghost {
  background: transparent; color: var(--c-deep-ocean);
  border-color: var(--c-sea-glass);
}
.btn--ghost:hover { background: var(--c-sea-glass-soft); color: var(--c-deep-ocean); }

.btn--light { background: #fff; color: var(--c-deep-ocean); }
.btn--light:hover { color: var(--c-teal-deep); }

.btn--lg { padding: 1.1rem 2.6rem; font-size: var(--fs-base); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 60, 79, 0.08);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); padding-block: 0.85rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem; color: var(--c-deep-ocean);
  text-decoration: none; display: flex; align-items: center; gap: 0.6rem;
  white-space: nowrap; flex-shrink: 0;
}
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand strong { font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.15rem; flex-wrap: nowrap; }
.nav a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--c-ink); text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 1250px) {
  .nav { gap: 0.85rem; }
  .nav a { font-size: 0.82rem; }
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-teal-deep); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--c-field-gold); }
.nav .btn { padding: 0.6rem 1.3rem; white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--c-deep-ocean);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--c-warm-white);
    padding: var(--space-3);
    border-bottom: 1px solid rgba(18, 60, 79, 0.1);
    box-shadow: var(--shadow-soft);
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: var(--fs-base); }
}

/* ---------- Hero (video) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  color: #fff;
  background: var(--c-deep-ocean);
}
.hero__media, .hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(175deg,
    rgba(13, 46, 62, 0.72) 0%,
    rgba(18, 60, 79, 0.45) 45%,
    rgba(13, 46, 62, 0.78) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding-block: var(--space-6);
  max-width: 780px;
}
.hero h1 { color: #fff; margin-bottom: var(--space-2); }
.hero .lede { color: #DCE9E7; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.hero__note { margin-top: var(--space-2); font-size: var(--fs-xs); color: #B7CDC9; }

.hero--inner { min-height: 46vh; }
.hero--inner .hero__content { padding-block: var(--space-5); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid rgba(18, 60, 79, 0.07);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
}
.card h3, .card h4 { margin-top: 0; }

.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.split {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr 1fr; align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.step { text-align: center; padding: var(--space-3) var(--space-2); }
.step__icon {
  width: 84px; height: 84px; margin: 0 auto var(--space-2);
  display: grid; place-items: center;
  background: var(--c-sea-glass-soft);
  border-radius: 50%;
}
.step__icon svg { width: 44px; height: 44px; }
.step h3 { font-size: var(--fs-md); }
.step p { margin-inline: auto; font-size: var(--fs-sm); color: var(--c-ink-soft); }

/* ---------- Pricing ---------- */
.plans { align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 60, 79, 0.09);
  padding: var(--space-4) var(--space-3) var(--space-3);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.plan--featured {
  border: 2px solid var(--c-teal-deep);
  box-shadow: var(--shadow-lift);
}
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c-field-gold); color: var(--c-deep-ocean);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em;
  padding: 0.3rem 1rem; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-family: var(--font-display); font-size: var(--fs-md); color: var(--c-deep-ocean); }
.plan__price { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--c-ink); margin: 0.4rem 0 0; }
.plan__price small { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--c-ink-soft); }
.plan__equiv { color: var(--c-teal-deep); font-weight: 600; font-size: var(--fs-sm); margin: 0.3rem 0 0; }
.plan__renew { font-size: var(--fs-xs); color: var(--c-ink-soft); margin: 0.5rem 0 var(--space-2); }
.plan ul {
  list-style: none; padding: 0; text-align: left;
  margin: var(--space-2) auto; font-size: var(--fs-sm); max-width: 30ch;
}
.plan ul li { padding-left: 1.6em; position: relative; margin-bottom: 0.55em; }
.plan ul li::before {
  content: "✦"; position: absolute; left: 0; color: var(--c-field-gold);
}
.plan .btn { margin-top: auto; }

/* ---------- Testimonials ---------- */
.carousel { position: relative; max-width: 820px; margin-inline: auto; }
.carousel__track { overflow: hidden; }
.testimonial {
  display: none;
  background: #fff; border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.testimonial.is-active { display: block; }
.testimonial blockquote {
  margin: 0; font-family: var(--font-display);
  font-size: var(--fs-md); line-height: 1.5; color: var(--c-ink);
}
.testimonial blockquote::before { content: "“"; color: var(--c-field-gold); font-size: 2em; line-height: 0; vertical-align: -0.35em; margin-right: 0.1em; }
.testimonial figcaption { margin-top: var(--space-2); font-weight: 600; color: var(--c-teal-deep); }
.testimonial figcaption span { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--c-ink-soft); }

.carousel__controls { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); align-items: center; }
.carousel__btn {
  background: #fff; border: 1px solid var(--c-sea-glass);
  border-radius: 50%; width: 44px; height: 44px;
  display: grid; place-items: center; cursor: pointer; color: var(--c-deep-ocean);
}
.carousel__btn:hover { background: var(--c-sea-glass-soft); }
.carousel__dots { display: flex; gap: 0.5rem; }
.carousel__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: var(--c-sand);
}
.carousel__dot.is-active { background: var(--c-teal-deep); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid rgba(18, 60, 79, 0.12);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  padding: 1.1rem 0.2rem;
  font-family: var(--font-display); font-size: var(--fs-md); color: var(--c-deep-ocean);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5em; color: var(--c-field-gold); flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-item__body { padding: 0 0.2rem 1.2rem; color: var(--c-ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-deep-ocean); color: #B9CDCA;
  padding-block: var(--space-5) var(--space-3);
  font-size: var(--fs-sm);
}
.site-footer a { color: #DCE9E7; }
.site-footer a:hover { color: var(--c-field-glow); }
.site-footer__grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: var(--space-4);
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: var(--fs-base); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5em; }
.site-footer__disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--space-3);
  font-size: var(--fs-xs); line-height: 1.65; color: #93ACA8;
  max-width: none;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities ---------- */
.badge {
  display: inline-block; background: var(--c-sage); color: var(--c-deep-ocean);
  font-size: var(--fs-xs); font-weight: 600; padding: 0.25rem 0.85rem;
  border-radius: 999px;
}
.divider-wave { display: block; width: 100%; height: auto; }
.img-rounded { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--c-deep-ocean);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.img-feather {
  border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 52%, transparent 97%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 52%, transparent 97%);
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.stack > * + * { margin-top: var(--space-2); }

.notice {
  background: var(--c-sea-glass-soft);
  border-left: 4px solid var(--c-teal-deep);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
}

/* Forms (contact) */
.form-field { margin-bottom: var(--space-2); }
.form-field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.35rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font: inherit; color: var(--c-ink);
  background: #fff; border: 1px solid rgba(18, 60, 79, 0.25);
  border-radius: var(--radius-sm); padding: 0.8rem 1rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 3px solid var(--c-field-gold); outline-offset: 1px; border-color: var(--c-teal-deep);
}

/* Legal pages */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--space-4); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--space-3); }
