/* ============================================================
   Dietitian Hub by Zezethu Matyolo
   Brand: Sage Green, Forest Green, Off White, Cream, Charcoal, Olive
   ============================================================ */

:root {
  --sage: #87977A;
  --forest: #365129;
  --off-white: #F5F5F2;
  --cream: #F3EEE5;
  --charcoal: #434343;
  --olive: #A8B48A;

  --sage-soft: #eef0ea;
  --forest-deep: #2b4020;
  --line: rgba(67, 67, 67, .12);
  --shadow-sm: 0 4px 16px rgba(54, 81, 41, .06);
  --shadow-md: 0 18px 50px rgba(54, 81, 41, .12);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --font-head: "League Spartan", "Montserrat", sans-serif;
  --font-body: "Poppins", "Nunito Sans", sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  color: var(--forest);
  letter-spacing: -.01em;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--primary { background: var(--forest); color: var(--off-white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--forest-deep); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--sage); }
.btn--ghost:hover { background: var(--sage); color: #fff; transform: translateY(-3px); }
.btn--full { width: 100%; }

/* ---------- Shared section bits ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--tint { background: var(--cream); }
.section--forest { background: var(--forest); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--olive); }

.section__title { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section__title--light { color: var(--off-white); }

.section__head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__sub { margin-top: 1rem; color: var(--charcoal); opacity: .85; font-size: 1.08rem; }
.section__sub--light { color: var(--cream); opacity: .82; }

.pill {
  display: inline-block;
  padding: .5rem 1.1rem;
  background: var(--sage-soft);
  color: var(--forest);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 1.6rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 242, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(54, 81, 41, .05); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--sage-soft);
  border-radius: 12px;
  flex: none;
}
.brand__mark img { width: 34px; height: 34px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__eyebrow {
  font-family: var(--font-head);
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sage); font-weight: 600;
}
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--forest); letter-spacing: .01em; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
  position: relative;
  transition: color .25s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--sage); border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--forest); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--forest); color: var(--off-white) !important;
  padding: .65rem 1.4rem; border-radius: 100px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav__cta:hover { background: var(--forest-deep); transform: translateY(-2px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(120% 90% at 85% 0%, var(--sage-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--off-white) 0%, var(--cream) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.hero__title span { color: var(--sage); font-style: italic; font-weight: 500; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 34ch; color: var(--charcoal); opacity: .9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero__trust li {
  position: relative; padding-left: 1.4rem;
  font-size: .92rem; font-weight: 400; color: var(--forest);
}
.hero__trust li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--olive);
}

/* Hero media */
.hero__media { position: relative; justify-self: center; }
.hero__photo {
  position: relative;
  width: clamp(260px, 38vw, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 8px solid #fff;
  z-index: 2;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__badge {
  position: absolute; bottom: 26px; left: -28px; z-index: 3;
  background: #fff; padding: .85rem 1.3rem; border-radius: 16px;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
}
.hero__badge-name { font-family: var(--font-head); font-weight: 600; color: var(--forest); font-size: 1.05rem; }
.hero__badge-role { font-size: .8rem; color: var(--sage); letter-spacing: .04em; }
.hero__leaf { position: absolute; color: var(--olive); z-index: 1; }
.hero__leaf--1 { width: 78px; top: -26px; right: 6%; transform: rotate(20deg); animation: float 7s var(--ease) infinite; }
.hero__leaf--2 { width: 54px; bottom: -18px; right: -14px; transform: rotate(-140deg); opacity: .7; animation: float 9s var(--ease) infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(20deg); } 50% { transform: translateY(-14px) rotate(20deg); } }

/* ============================================================
   STRIP / MARQUEE
   ============================================================ */
.strip { background: var(--forest); overflow: hidden; padding: 1.1rem 0; }
.strip__track {
  display: flex; align-items: center; gap: 2.4rem; width: max-content;
  animation: marquee 34s linear infinite;
}
.strip__track span {
  font-family: var(--font-head); font-weight: 500; letter-spacing: .06em;
  color: var(--cream); font-size: 1.02rem; text-transform: uppercase; white-space: nowrap;
}
.strip__track span:nth-child(even) { color: var(--olive); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__inner {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media > img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center top;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.about__logo {
  position: absolute; right: -22px; bottom: -22px;
  width: clamp(110px, 16vw, 150px); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 6px solid #fff;
}
.about__logo img { width: 100%; }
.about__content p { margin-top: 1.1rem; font-size: 1.08rem; }
.about__signature {
  margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
}
.about__signature strong { font-family: var(--font-head); color: var(--forest); display: block; font-size: 1.15rem; }
.about__signature span { font-size: .9rem; color: var(--sage); }
.about__pno {
  font-family: var(--font-head); font-size: .85rem; color: var(--forest);
  background: var(--sage-soft); padding: .5rem 1rem; border-radius: 100px; letter-spacing: .02em;
}

/* ============================================================
   SERVICES CARDS
   ============================================================ */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; background: #fff; }
.card__icon {
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 14px; background: var(--sage-soft); color: var(--forest);
  margin-bottom: 1.2rem; transition: background .4s var(--ease), color .4s var(--ease);
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--forest); color: var(--cream); }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--charcoal); opacity: .82; }

/* ============================================================
   COACHING
   ============================================================ */
.coaching__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.coaching__intro p { margin: 1.2rem 0 2rem; font-size: 1.08rem; }
.coaching__list { display: grid; gap: 1rem; }
.coaching__list li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--cream); border-radius: var(--radius); padding: 1.3rem 1.5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.coaching__list li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.tick {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sage); color: #fff; display: grid; place-items: center;
  font-size: .9rem; font-weight: 700;
}
.coaching__list strong { font-family: var(--font-head); color: var(--forest); font-size: 1.08rem; display: block; }
.coaching__list span { font-size: .93rem; color: var(--charcoal); opacity: .82; }

/* ============================================================
   APPROACH
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step {
  background: rgba(245, 245, 242, .06);
  border: 1px solid rgba(245, 245, 242, .14);
  border-radius: var(--radius); padding: 2rem 1.6rem;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.step:hover { transform: translateY(-8px); background: rgba(245, 245, 242, .11); }
.step__num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 700;
  color: var(--olive); display: block; margin-bottom: .6rem;
}
.step h3 { color: var(--off-white); font-size: 1.3rem; margin-bottom: .5rem; }
.step p { color: var(--cream); opacity: .8; font-size: .96rem; }

/* ============================================================
   QUOTE
   ============================================================ */
.quote { background: var(--off-white); }
.quote__inner { max-width: 820px; margin-inline: auto; text-align: center; position: relative; }
.quote__mark {
  font-family: var(--font-head); font-size: 6rem; line-height: .5; color: var(--olive);
  display: block; height: 3rem;
}
.quote__text {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.05rem); line-height: 1.4; color: var(--forest);
}
.quote__author { margin-top: 1.6rem; letter-spacing: .04em; color: var(--sage); font-weight: 500; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info p { margin: 1.1rem 0 2rem; font-size: 1.08rem; max-width: 44ch; }
.contact__details { display: grid; gap: 1.1rem; }
.contact__details li { display: flex; align-items: center; gap: 1rem; }
.contact__ico {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: #fff; color: var(--forest); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.contact__ico svg { width: 24px; height: 24px; }
.contact__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sage); }
.contact__details a, .contact__details div > span:last-child { font-size: 1.05rem; color: var(--charcoal); font-weight: 400; }
.contact__details a:hover { color: var(--forest); }

.contact__form { background: #fff; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; color: var(--forest); margin-bottom: .45rem; font-size: .95rem; }
.field__hint { font-weight: 400; color: var(--charcoal); opacity: .6; font-size: .85em; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; color: var(--charcoal); background: var(--off-white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); background: #fff;
  box-shadow: 0 0 0 4px rgba(135, 151, 122, .15);
}
.form__note { margin-top: 1rem; text-align: center; font-size: .95rem; color: var(--forest); min-height: 1.2em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--forest-deep); color: var(--cream); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__brand img { width: 132px; border-radius: 14px; margin-bottom: 1rem; }
.footer__brand p { font-family: var(--font-head); font-style: italic; color: var(--olive); }
.footer__nav { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a { color: var(--cream); opacity: .85; transition: opacity .25s var(--ease), padding-left .25s var(--ease); font-size: .98rem; }
.footer__nav a:hover { opacity: 1; padding-left: 6px; color: #fff; }
.footer__contact { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.footer__contact a, .footer__contact span { color: var(--cream); opacity: .85; font-size: .98rem; }
.footer__contact a:hover { opacity: 1; color: #fff; }
.footer__social { display: flex; gap: .55rem; margin-top: .4rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream); background: rgba(255, 255, 255, .06);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  opacity: 1;
}
.footer__social a:hover, .footer__social a:focus-visible {
  background: var(--sage); color: #fff; transform: translateY(-2px); outline: none;
}
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid rgba(245, 245, 242, .12); padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem 1.4rem;
  text-align: center;
}
.footer__bottom span { font-size: .85rem; color: var(--cream); opacity: .7; }
.footer__credit a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; opacity: 1; transition: color .25s var(--ease); }
.footer__credit a:hover { color: #fff; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip__track, .hero__leaf { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__media { margin-top: 1rem; }
  .about__inner, .coaching__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .coaching__intro { text-align: center; }
  .coaching__intro .btn { margin-inline: auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--off-white); padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .4s var(--ease); z-index: 90;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { text-align: center; margin-top: 1rem; }
  .nav__toggle { display: flex; }
}

@media (max-width: 560px) {
  .cards, .steps, .footer__inner { grid-template-columns: 1fr; }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -22px; }
  .hero__title span { display: block; }
}

/* ---------- Honeypot (hidden from users) ---------- */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35), 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.wa-float:hover,
.wa-float:focus-visible {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, .45), 0 6px 14px rgba(0, 0, 0, .14);
  outline: none;
}
.wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .35); outline-offset: 3px; }
.wa-float__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.wa-float__label { white-space: nowrap; }

@media (max-width: 560px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    padding: 14px;
    border-radius: 50%;
  }
  .wa-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .wa-float__icon { width: 28px; height: 28px; }
}
