/* ==========================================================================
   Tena Lifestyle & Wellness — stylesheet
   Palette: cream background, deep espresso ink, warm sand accent.
   Type: Heebo (display) + Assistant (body).
   ========================================================================== */

:root{
  --bg:            #F6F1EC;
  --bg-tint:       #EFE6DC;
  --ink:           #3B241E;
  --ink-soft:      rgba(59,36,30,.66);
  --ink-faint:     rgba(59,36,30,.40);
  --sand:          #C9B2A5;
  --sand-deep:     #B49685;
  --white:         #FFFFFF;
  --line:          rgba(59,36,30,.14);

  --shadow-soft:   0 20px 50px -25px rgba(59,36,30,.35);
  --shadow-card:   0 30px 60px -35px rgba(59,36,30,.30);

  --font-display:  'Heebo', system-ui, sans-serif;
  --font-body:     'Assistant', system-ui, sans-serif;

  --container:     1180px;
  --container-narrow: 720px;

  --ease: cubic-bezier(.22,.61,.32,1);
}

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

html{
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a{ color: inherit; text-decoration: none; }

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(24px, 6vw, 64px);
}
.container--narrow{ max-width: var(--container-narrow); }

/* ---------- Typography ---------- */

.eyebrow{
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .22em;
  font-weight: 500;
  color: var(--sand-deep);
  margin: 0 0 22px;
  text-transform: none;
}
.eyebrow--center{ text-align: center; }

.h2{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.28;
  letter-spacing: -.01em;
  margin: 0 0 28px;
  color: var(--ink);
}
.h2--center{ text-align: center; }

.lede{
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 46ch;
}
.lede--center{ margin-inline: auto; text-align: center; max-width: 42ch; }
.lede--start{ max-width: 50ch; }

.lede__emph{
  color: var(--ink);
  font-weight: 500;
}

/* Recurring signature — hand-drawn sprig divider */
.divider-sprig{
  width: 46px;
  height: 62px;
  margin: 0 auto 34px;
  color: var(--sand-deep);
}
.h2--center + .divider-sprig,
.divider-sprig + .h2{ }

.sprig{ width: 100%; height: 100%; overflow: visible; }
.sprig-path{
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.sprig-path:nth-child(2){ transition-delay: .12s; }
.sprig-path:nth-child(3){ transition-delay: .24s; }
.is-visible .sprig-path{ stroke-dashoffset: 0; }

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

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 19px 42px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s ease;
  will-change: transform;
}

.btn--primary{
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 26px 55px -22px rgba(59,36,30,.5);
  background: #4a2e26;
}
.btn--primary:active{ transform: translateY(-1px) scale(.99); }

.btn--form{ width: 100%; margin-top: 6px; padding: 20px 32px; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero{
  position: relative;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  background: var(--ink);
}

.hero__media{
  position: relative;
  grid-area: 1 / 1;
  height: 100svh;
  min-width: 0;
  width: 100%;
}
.hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 30%;
  transform: scale(1.08);
}
.hero__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(59,36,30,.72) 0%, rgba(59,36,30,.18) 46%, rgba(59,36,30,.05) 62%),
    linear-gradient(100deg, rgba(59,36,30,.55) 0%, rgba(59,36,30,.06) 46%, rgba(59,36,30,0) 62%);
}

.hero__content{
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 0 clamp(24px, 7vw, 96px) clamp(64px, 9vh, 112px);
  max-width: 620px;
  color: var(--bg);
}

.hero__content .eyebrow{ color: var(--sand); }

.hero__headline{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6.6vw, 68px);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 26px;
}

.hero__text{
  font-size: clamp(16px, 1.8vw, 18.5px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(246,241,236,.86);
  margin: 0 0 40px;
  max-width: 40ch;
}

.hero__scroll-cue{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 46px;
  background: rgba(246,241,236,.35);
}
.hero__scroll-cue span{
  position: absolute;
  top: 0; left: -1.5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sand);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue{
  0%{ top: 0; opacity: 0; }
  20%{ opacity: 1; }
  85%{ opacity: 1; }
  100%{ top: 42px; opacity: 0; }
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */

.section{
  position: relative;
  padding: clamp(88px, 14vh, 168px) 0;
}
.section--tinted{ background: var(--bg-tint); }
.section--quiet{ text-align: center; }

.section__blob{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.section__blob::before{
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  top: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(201,178,165,.35) 0%, rgba(201,178,165,0) 70%);
}
.section__blob--form::before{
  right: auto;
  left: -200px;
  top: auto;
  bottom: -260px;
}

#mirror .container, #form .container{ position: relative; z-index: 1; }

/* ---------- Section 3: About ---------- */

.about{
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about__media, .about__text{ min-width: 0; }

.about__media img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.about__text .h2{ margin-bottom: 22px; }

/* ---------- Section 4: Process cards ---------- */

.cards{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card{ min-width: 0; }

.card{
  background: var(--white);
  border-radius: 20px;
  padding: 44px 38px;
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -30px rgba(59,36,30,.32);
}

.card__mark{
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  color: var(--sand-deep);
  line-height: 1;
  margin-bottom: 18px;
}
.card__mark--word{
  font-size: 16px;
  letter-spacing: .04em;
  font-weight: 500;
}

.card__title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--ink);
}

.card__text{
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- Section 5: Testimonials ---------- */

.testimonials{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}
.testimonial{ min-width: 0; }
.testimonial img{ height: auto; }

.testimonial{
  margin: 0;
  background: var(--white);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease);
}
.testimonial img{
  border-radius: 12px;
  width: 100%;
}
.testimonial:hover{ transform: translateY(-6px); }

/* ---------- Section 6: Lead form ---------- */

.section--form{ text-align: center; }

.lead-form{
  margin-top: 48px;
  text-align: right;
  background: var(--white);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hp-field{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.field{
  position: relative;
}
.field input{
  width: 100%;
  padding: 20px 4px 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  outline: none;
  transition: border-color .3s ease;
}
.field input:focus{ border-color: var(--sand-deep); }
.field input:focus-visible{ outline: 2px solid var(--sand-deep); outline-offset: 4px; }

.field label{
  position: absolute;
  right: 4px;
  top: 20px;
  font-size: 17px;
  color: var(--ink-faint);
  pointer-events: none;
  transition: all .25s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label{
  top: -2px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--sand-deep);
}

.form-note{
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ---------- Thank-you page ---------- */

.thank-you{
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}
.thank-you__inner{ text-align: center; }
.thank-you__inner .divider-sprig{ margin-bottom: 30px; }
.thank-you__inner .h2{ margin-bottom: 34px; }

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

.site-footer{
  padding: 40px 0 48px;
  text-align: center;
}
.site-footer p{
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink-faint);
  margin: 0;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
/* staggered children within a section */
.hero__content .reveal:nth-child(1){ transition-delay: .05s; }
.hero__content .reveal:nth-child(2){ transition-delay: .16s; }
.hero__content .reveal:nth-child(3){ transition-delay: .28s; }
.hero__content .reveal:nth-child(4){ transition-delay: .40s; }

.cards .card:nth-child(1){ transition-delay: 0s; }
.cards .card:nth-child(2){ transition-delay: .08s; }
.cards .card:nth-child(3){ transition-delay: .16s; }
.cards .card:nth-child(4){ transition-delay: .24s; }

.testimonials .testimonial:nth-child(1){ transition-delay: 0s; }
.testimonials .testimonial:nth-child(2){ transition-delay: .1s; }
.testimonials .testimonial:nth-child(3){ transition-delay: .2s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px){
  .about{ grid-template-columns: 1fr; }
  .about__media{ order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .testimonials{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .cards{ grid-template-columns: 1fr; }
  .hero{ min-height: 100svh; }
  .hero__content{ padding-bottom: 56px; max-width: 100%; }
  .hero__img{ object-position: 68% 22%; }
  .hero__scrim{
    background:
      linear-gradient(0deg, rgba(59,36,30,.88) 10%, rgba(59,36,30,.3) 55%, rgba(59,36,30,.08) 75%);
  }
}

@media (max-width: 480px){
  .hero__headline{ font-size: clamp(34px, 10vw, 44px); }
  .card, .lead-form{ padding: 32px 26px; }
}
