/* ============ Samsonvital — The Longevity Living Centre ============ */

:root {
  --green-deep: #14231c;   /* page dark */
  --green: #1b2e25;        /* section dark */
  --green-soft: #24382d;
  --sage: #9db8a4;
  --cream: #f2efe6;
  --cream-deep: #e9e4d5;
  --white: #fbfaf5;
  --text-on-dark: #d9ddd2;
  --text-muted-dark: #a3b0a3;
  --text-ink: #22322a;
  --text-muted: #5d6e62;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text-on-dark);
  background: var(--green-deep);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--white); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 1.3rem; }
h2 em { font-style: italic; color: var(--sage); }
h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }

.eyebrow {
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.32em;
  color: var(--sage); margin-bottom: 1.2rem;
}
.lead { font-size: 1.1rem; color: var(--text-muted-dark); max-width: 42rem; }
.center-block { margin-inline: auto; text-align: center; }
.center-block .lead { margin-inline: auto; }

/* ---------- Layout ---------- */
.container { width: min(1140px, 90vw); margin: 0 auto; }
.container.narrow { max-width: 720px; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section--cream { background: var(--cream); color: var(--text-muted); }
.section--cream h1, .section--cream h2, .section--cream h3 { color: var(--text-ink); }
.section--cream .lead { color: var(--text-muted); }
.section--cream .eyebrow { color: #6f8a76; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.6rem;
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  color: var(--green-deep);
  background: var(--cream);
  border: 1px solid var(--cream);
  transition: all 0.3s ease;
}
.btn:hover { background: transparent; color: var(--cream); }
.btn--dark {
  background: var(--green); border-color: var(--green); color: var(--cream);
}
.btn--dark:hover { background: transparent; color: var(--green); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.3rem 0;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}
.nav--solid {
  background: rgba(20, 35, 28, 0.96);
  padding: 0.8rem 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.nav__inner {
  width: min(1140px, 90vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 400; font-size: 0.95rem; letter-spacing: 0.32em;
  color: var(--white); text-decoration: none;
}
.nav__mark { width: 20px; height: 28px; color: var(--sage); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.73rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(251,250,245,0.78); text-decoration: none; transition: color 0.25s;
}
.nav__links a:hover { color: var(--sage); }
.nav__cta { border: 1px solid var(--sage); padding: 0.5rem 1.3rem; color: var(--sage) !important; }
.nav__cta:hover { background: var(--sage); color: var(--green-deep) !important; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { width: 22px; height: 1.5px; background: var(--white); transition: 0.3s; }

/* ---------- Hero + estate illustration ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.estate { position: absolute; inset: 0; }
.estate__svg { width: 100%; height: 100%; display: block; }
.estate__layer { will-change: transform; transition: transform 0.18s ease-out; }
.estate__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 46% at 50% 44%, rgba(16,27,22,0.5), transparent 72%),
    linear-gradient(180deg, rgba(16,27,22,0.72) 0%, rgba(16,27,22,0.2) 34%, rgba(16,27,22,0.18) 62%, rgba(16,27,22,0.8) 100%);
}

/* ambient motion */
.cloud--a { animation: drift 46s linear infinite; }
.cloud--b { animation: drift 64s linear infinite reverse; }
@keyframes drift {
  from { transform: translateX(-70px); }
  to   { transform: translateX(70px); }
}
.windows rect { animation: glow 5.5s ease-in-out infinite; }
.windows rect:nth-child(2n) { animation-delay: 1.6s; }
.windows rect:nth-child(3n) { animation-delay: 3.1s; }
@keyframes glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}
.ripples line { animation: shimmer 4.5s ease-in-out infinite; }
.ripples line:nth-child(2n) { animation-delay: 2s; }
@keyframes shimmer {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.4; }
}
.frond { transform-origin: bottom center; }
.frond--l { animation: sway 7s ease-in-out infinite; }
.frond--r { animation: sway 8.5s ease-in-out infinite reverse; }
@keyframes sway {
  0%, 100% { rotate: 0deg; }
  50% { rotate: 2.2deg; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud--a, .cloud--b, .windows rect, .ripples line, .frond--l, .frond--r { animation: none; }
}

.hero__content { position: relative; z-index: 2; padding: 7rem 1.5rem 4rem; }
.hero__mark { width: 54px; height: 76px; color: var(--cream); margin-bottom: 1.6rem; }
.hero__title {
  font-family: var(--sans);
  font-size: clamp(2.1rem, 6.5vw, 4.6rem);
  font-weight: 300; letter-spacing: 0.28em; text-indent: 0.28em;
  color: var(--white); margin-bottom: 1.4rem;
}
.hero__title span {
  display: block;
  font-size: clamp(0.85rem, 2vw, 1.35rem);
  letter-spacing: 0.62em; text-indent: 0.62em;
  color: var(--sage); margin-top: 0.9rem;
}
.hero__sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: rgba(251,250,245,0.88); margin-bottom: 2.8rem;
  text-shadow: 0 1px 14px rgba(16,27,22,0.85);
}
.hero__title { text-shadow: 0 2px 22px rgba(16,27,22,0.7); }
.hero__scroll { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ---------- Pillars ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 3.5rem; text-align: center;
}
.pillar { padding: 2.4rem 1.8rem; background: var(--white); border-top: 2px solid var(--sage); }
.pillar p { font-size: 0.93rem; color: var(--text-muted); }

/* ---------- Split + image slots ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.split--reverse .img-slot { order: 2; }

.img-slot {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 2px; background: var(--green-soft);
}
.img-slot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.img-slot:hover img { transform: scale(1.04); }

/* ---------- Gallery tiles ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; margin-top: 3.2rem;
}
.tile { position: relative; overflow: hidden; background: var(--green-soft); }
.tile img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.tile:hover img { transform: scale(1.05); }
.tile--hair img { object-position: 18% center; }
.tile--portrait img { object-position: center 22%; }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.4rem 1.3rem;
  background: linear-gradient(to top, rgba(16,27,22,0.92) 12%, rgba(16,27,22,0.45) 62%, transparent);
}
.tile figcaption strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 1.25rem; color: var(--white);
}
.tile figcaption span { font-size: 0.8rem; color: var(--text-muted-dark); }

/* ---------- Feature blocks (quantum) ---------- */
.feature { margin-top: 4rem; }
.feature:first-of-type { margin-top: 3.5rem; }
.feature__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1rem;
}
.feature .split__text > p { font-size: 1rem; margin-bottom: 0.4rem; }
.feature .eyebrow { margin-bottom: 0.9rem; }
.img-slot--hair img { object-position: 18% center; }

/* Separates two consecutive cream sections without changing their tone */
.section--divided { border-top: 1px solid rgba(34,50,42,0.1); }

/* ---------- Wellness water ---------- */
.img-slot--tall { aspect-ratio: 3 / 4; }

/* Product hero */
.product { margin-top: 3.2rem; }
.product img { width: 100%; display: block; border-radius: 2px; }
.product figcaption {
  margin-top: 0.9rem; text-align: center;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #6f8a76;
}

/* HydroTech process */
.hydro { margin-top: 4rem; }
.hydro__label {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: #6f8a76; text-align: center; margin-bottom: 2.2rem;
}
.hydro__steps {
  list-style: none; display: grid;
  grid-template-columns: repeat(5, 1fr); gap: 1.4rem;
}
.hydro__steps li {
  padding: 1.8rem 1.3rem;
  background: var(--white); border-top: 2px solid var(--sage);
}
.hydro__steps span {
  display: block; font-family: var(--serif); font-size: 1.5rem;
  color: var(--sage); line-height: 1; margin-bottom: 0.7rem;
}
.hydro__steps strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 1.15rem; color: var(--text-ink); margin-bottom: 0.5rem;
}
.hydro__steps p { font-size: 0.84rem; line-height: 1.65; color: var(--text-muted); margin: 0; }

/* ---------- Stacked image pair ---------- */
.duo { display: grid; gap: 1rem; }
.duo figure { overflow: hidden; background: var(--green-soft); }
.duo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.duo figure:hover img { transform: scale(1.04); }
/* Images sit right of the copy on desktop, and below it on mobile */
.split--reverse .duo { order: 2; }

/* ---------- Device strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: 2.6rem;
}
.strip figure { overflow: hidden; background: var(--green-soft); }
.strip img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.strip figure:hover img { transform: scale(1.05); }

/* ---------- Video ---------- */
.video {
  margin-top: 3rem; background: #0f1b15;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(16,27,22,0.18);
}
.video video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #0f1b15; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  font-size: 0.75rem; line-height: 1.7; color: #7d8c80;
  max-width: 52rem; margin-top: 3rem;
  padding-top: 1.2rem; border-top: 1px solid rgba(157,184,164,0.18);
}
.section--cream .disclaimer { color: #8a9689; border-top-color: rgba(34,50,42,0.12); }
.disclaimer--tight { margin-top: 1.4rem; padding-top: 0.9rem; }

/* ---------- Results band ---------- */
.band { margin-top: 1.4rem; }
.band img {
  width: 100%; display: block; background: #000;
}
.band figcaption {
  font-size: 0.82rem; line-height: 1.7; color: var(--text-muted-dark);
  padding-top: 1rem; max-width: 58rem;
}
.band figcaption strong { color: var(--white); font-weight: 500; }
.band figcaption em {
  display: block; font-style: normal; font-size: 0.72rem;
  color: #7d8c80; margin-top: 0.3rem;
}

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin-top: 0.6rem; }
.feature-list li {
  padding: 0.85rem 0 0.85rem 1.8rem; position: relative;
  font-size: 0.97rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.section--cream .feature-list li { border-bottom-color: rgba(34,50,42,0.1); }
.feature-list li::before { content: "—"; position: absolute; left: 0; color: var(--sage); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.chips span {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(34,50,42,0.25); color: var(--text-muted);
}

/* ---------- Phases ---------- */
.phases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3.5rem; text-align: center;
}
.phase {
  padding: 2.2rem 1rem;
  border: 1px solid rgba(157,184,164,0.28);
}
.phase span {
  display: block; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 0.5rem;
}
.phase strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 1.7rem; color: var(--text-muted);
}
.phase em { font-style: normal; font-size: 0.85rem; color: var(--text-muted-dark); }

/* ---------- CTA ---------- */
.cta__mark { width: 44px; height: 62px; color: #6f8a76; margin-bottom: 1.4rem; }
.cta .btn--dark { margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.footer { background: #0f1b15; padding: 3.4rem 0 2.2rem; }

.footer__top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(157,184,164,0.14);
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__mark { width: 26px; height: 36px; color: var(--sage); flex: none; }
.footer__logo {
  display: block; letter-spacing: 0.3em; font-size: 0.85rem; color: var(--white);
}
.footer__note {
  display: block; font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #8fa093; margin-top: 0.25rem;
}
.footer__mail {
  font-size: 0.8rem; letter-spacing: 0.08em;
  color: var(--sage); text-decoration: none;
  border-bottom: 1px solid rgba(157,184,164,0.35); padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.footer__mail:hover { color: var(--white); border-bottom-color: var(--white); }

/* Legal / compliance */
.legal { padding: 2.4rem 0 0; }
.legal__heading {
  font-family: var(--sans); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: #6f8a76; margin-bottom: 1.8rem;
}
.legal__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem 2.4rem;
}
.legal__item h3 {
  font-family: var(--sans); font-weight: 500;
  font-size: 0.8rem; letter-spacing: 0.04em;
  color: #c2cec5; margin-bottom: 0.5rem; line-height: 1.45;
}
/* Disclosures must be legible, not merely present — keeps body text above
   the 4.5:1 contrast minimum against the footer background. */
.legal__item p {
  font-size: 0.78rem; line-height: 1.8; color: #8fa093; margin: 0;
}

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.8rem;
  margin-top: 2.8rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(157,184,164,0.14);
  font-size: 0.74rem; letter-spacing: 0.08em; color: #8fa093;
}
.footer__bottom a { color: #8fa093; text-decoration: none; }
.footer__bottom a:hover { color: var(--sage); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .img-slot { order: 0; }
  .pillars { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .band { overflow-x: auto; }
  .band img { min-width: 640px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .feature { margin-top: 3rem; }
  .split--reverse.feature .img-slot { order: 0; }
  .legal__grid { grid-template-columns: 1fr 1fr; }
  .hydro__steps { grid-template-columns: repeat(2, 1fr); }
  .img-slot--tall { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .strip { grid-template-columns: 1fr; }
  .legal__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__top { align-items: flex-start; }
  .hydro__steps { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0; background: rgba(15, 27, 21, 0.98);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    transform: translateX(100%); transition: transform 0.35s ease;
  }
  .nav__links.open { transform: none; }
  .nav__links a { font-size: 1rem; }
  .nav__toggle { display: flex; z-index: 110; }
}
