/* ==========================================================================
   Joy D'Vivre Wellness — style.css
   Palette: turquoise / grey / white · flowing, open, uncluttered
   ========================================================================== */

:root {
  --teal: #2A9D8F;
  --teal-dark: #1F7468;
  --teal-deep: #14443E;
  --teal-soft: #E6F2F0;
  --tint: #EFF7F6;
  --white: #FFFFFF;
  --off-white: #FCFEFD;
  --ink: #26413D;
  --grey: #5C6B70;
  --grey-light: #93A3A8;
  --shadow: 0 10px 30px rgba(20, 68, 62, 0.08);
  --shadow-lift: 0 18px 40px rgba(20, 68, 62, 0.13);
  --radius: 18px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--grey);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--teal-dark); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--teal); }

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.45rem; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.container.narrow { max-width: 720px; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section.tint { background: var(--tint); }

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.25rem; font-weight: 300; color: var(--ink); }
.lead.center { text-align: center; max-width: 620px; margin: 0 auto 1rem; }

/* Center headings in centered sections */
.mission, .specialties, .testimonials, .gallery, .contact, .courses { text-align: center; }
.courses { text-align: left; }
.courses .section-eyebrow, .courses > .container > h2 { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 2.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(42, 157, 143, 0.35);
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(42, 157, 143, 0.42); }

.btn-ghost {
  border: 1.5px solid rgba(42, 157, 143, 0.5);
  color: var(--teal-dark);
  background: transparent;
}
.btn-ghost:hover { background: var(--teal-soft); transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(252, 254, 253, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { background: rgba(252, 254, 253, 0.97); box-shadow: 0 4px 24px rgba(20, 68, 62, 0.09); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }

.logo { display: block; flex-shrink: 0; }
.logo-img {
  display: block;
  height: 88px;
  width: auto;
  margin: -6px 0;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; gap: 1.5rem; }

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--grey);
  position: relative;
  padding: 0.3rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--teal-dark); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.nav-social { display: flex; gap: 0.7rem; padding-left: 1.2rem; border-left: 1px solid rgba(42, 157, 143, 0.25); }
.nav-social a, .social-row a { color: var(--teal); display: inline-flex; transition: color 0.25s ease, transform 0.25s ease; }
.nav-social a:hover, .social-row a:hover { color: var(--teal-dark); transform: translateY(-2px); }
.nav-social svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--teal-deep);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  background: linear-gradient(180deg, var(--tint) 0%, var(--off-white) 100%);
  overflow: hidden;
}

.hero-blob { position: absolute; width: 620px; top: -140px; left: -180px; pointer-events: none; }
.hero-blob--right { top: auto; left: auto; right: -200px; bottom: -160px; width: 560px; }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.hero-logo {
  width: clamp(200px, 28vw, 260px);
  height: clamp(200px, 28vw, 260px);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.9rem;
}
.hero-logo img {
  width: 128%;
  flex-shrink: 0;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.hero h1 { max-width: 17ch; margin-bottom: 1.4rem; font-style: italic; }

.hero-sub { max-width: 46ch; font-size: 1.15rem; font-weight: 300; margin-bottom: 2.3rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(42, 157, 143, 0.45);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--teal);
  border-radius: 2px;
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0.2; }
}

/* ---------- Waves ---------- */

.wave { line-height: 0; background: var(--off-white); }
.wave svg { width: 100%; height: clamp(40px, 7vw, 90px); display: block; }
.wave.flip { background: var(--tint); }
.wave.flip svg { transform: rotate(180deg); }
.wave.flip path { fill: var(--off-white); }

/* ---------- Mission ---------- */

.mission p { margin-bottom: 1.1rem; }
.mission-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--teal-dark);
  margin-top: 1.6rem;
}

/* ---------- Specialties ---------- */

.specialties { padding-bottom: clamp(3rem, 6vw, 5rem); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.3rem 1.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.card-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 27px; height: 27px; }

.card h3 { margin-bottom: 0.6rem; font-size: 1.35rem; }
.card p { font-size: 0.98rem; }

/* ---------- Testimonials ---------- */

.testimonials { padding-top: clamp(3rem, 6vw, 5rem); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}

.testimonial {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.8rem 2rem 2.1rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.quote-mark {
  position: absolute;
  top: 6px; left: 22px;
  font-family: var(--font-serif);
  font-size: 4.2rem;
  line-height: 1;
  color: rgba(42, 157, 143, 0.28);
  pointer-events: none;
}

.testimonial blockquote {
  font-size: 1rem;
  font-style: italic;
  color: var(--grey);
  margin-bottom: 1.2rem;
}

.testimonial figcaption {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.testimonial figcaption::before {
  content: '';
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------- About ---------- */

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-text p { margin-bottom: 1.1rem; }
.about-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--teal);
  margin-bottom: 1.3rem !important;
}
.about-signoff {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--teal-dark);
  margin-top: 1.4rem;
}

.about-side { display: flex; flex-direction: column; gap: 1.6rem; }

.about-photo {
  max-width: 290px;
  width: 100%;
  margin: 0 auto;
  border-radius: 160px 160px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--white);
  outline: 1.5px solid rgba(42, 157, 143, 0.35);
  outline-offset: 7px;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
}

.about-stats { display: flex; flex-direction: column; gap: 1.3rem; }

.stat {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
  min-width: 58px;
  text-align: center;
}

.stat-label { font-size: 0.93rem; line-height: 1.5; }

/* ---------- What We Offer ---------- */

.offer .section-eyebrow, .offer h2 { text-align: center; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}

.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.offer-card h3 {
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--teal-soft);
}

.offer-card li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
  font-size: 0.98rem;
}
.offer-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.65;
}

/* ---------- Wellness Courses ---------- */

.courses-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  margin-top: 2.4rem;
}

.courses-text p { margin-bottom: 1.1rem; }
.courses-note {
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  font-size: 0.98rem;
}
.courses-note a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.courses-elements { display: flex; flex-direction: column; gap: 0.9rem; }

.element {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 0.95rem 1.6rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
}

.element-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px var(--teal-soft);
  flex-shrink: 0;
}

.topics { margin-top: 3.5rem; text-align: center; }
.topics h3 { margin-bottom: 1.4rem; }

.topic-chips { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

.chip {
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid rgba(42, 157, 143, 0.4);
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--white);
  transition: background 0.25s ease, transform 0.25s ease;
}
.chip:hover { background: var(--teal-soft); transform: translateY(-2px); }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.6rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-lift); }
/* portrait shot: keep the subject's face in frame */
.gallery-grid img:nth-child(9) { object-position: 50% 12%; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}

.contact-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem 1.9rem;
  box-shadow: var(--shadow);
  color: var(--grey);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); color: var(--grey); }

.contact-card h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.contact-card p { font-size: 1rem; }
.contact-card p a { font-weight: 600; }

.contact-hint { display: block; margin-top: 0.6rem; font-size: 0.85rem; color: var(--grey-light); }
.contact-hint a { font-weight: 700; }

.contact-social { margin-top: 3rem; }
.contact-social p { margin-bottom: 1rem; font-size: 0.95rem; }

.social-row { display: flex; gap: 1.1rem; justify-content: center; }
.social-row svg { width: 24px; height: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.6rem;
}

.site-footer .social-row { margin-bottom: 1.8rem; }
.site-footer .social-row a { color: rgba(255, 255, 255, 0.8); }
.site-footer .social-row a:hover { color: var(--white); }

.footer-copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-inner, .courses-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-elements { flex-direction: row; flex-wrap: wrap; }
  .element { font-size: 1.05rem; padding: 0.7rem 1.3rem; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 82vw);
    height: calc(100dvh - var(--header-h));
    background: var(--off-white);
    box-shadow: -12px 0 34px rgba(20, 68, 62, 0.12);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.2rem 2rem;
    gap: 2rem;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .site-nav.open { transform: translateX(0); }

  .site-nav ul { flex-direction: column; gap: 1.2rem; }
  .nav-link { font-size: 1.05rem; }
  .nav-social { border-left: none; padding-left: 0; border-top: 1px solid rgba(42, 157, 143, 0.25); padding-top: 1.4rem; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .hero h1 { font-size: 1.9rem; }
  .btn { padding: 0.8rem 1.7rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
