/* Kayapalat Wellness – landing page styles */

:root {
  --green-900: #17352a;
  --green-700: #245240;
  --green-600: #2e6a52;
  --green-50: #eef4ef;
  --sun: #f2a33a;
  --sun-dark: #d98a1f;
  --cream: #fbf8f2;
  --ink: #1d2420;
  --muted: #5b6660;
  --line: #e4e0d6;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(23, 53, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(23, 53, 42, 0.14);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-700);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}
h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-dark);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s,
    box-shadow 0.2s;
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(36, 82, 64, 0.25);
}
.btn-primary:hover {
  background: var(--green-900);
}
.btn-ghost {
  background: transparent;
  color: var(--green-900);
  border-color: var(--green-700);
}
.btn-ghost:hover {
  background: var(--green-50);
}
.btn-sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.92rem;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-900);
}
.brand em {
  font-style: normal;
  color: var(--sun-dark);
}
.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav a:hover {
  color: var(--green-600);
}
.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  background: radial-gradient(
      1000px 500px at 85% 10%,
      rgba(242, 163, 58, 0.14),
      transparent 60%
    ),
    var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.75rem 0 2.25rem;
}
.proof {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.proof strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--green-700);
  line-height: 1.1;
}
.proof span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
  display: block;
  margin-top: 0.3rem;
}
.hero-media {
  position: relative;
  margin: 0;
}
.hero-media > img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute;
  left: -1.5rem;
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  padding: 0.8rem 1.1rem 0.8rem 0.8rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 290px;
}
.hero-badge img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-badge strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-tint {
  background: var(--green-50);
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

/* Results */
.stories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.story {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.story img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.story-body {
  padding: 1.75rem;
}
.story-stat {
  display: inline-block;
  background: rgba(242, 163, 58, 0.16);
  color: #8a5410;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.story blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.who {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.who strong {
  color: var(--ink);
}
.disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 2rem 0 0;
}

/* Programs */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-body {
  padding: 1.5rem 1.6rem 1.75rem;
}
.card-body p {
  color: var(--muted);
  margin: 0;
}
.tags {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.tags li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--green-700);
  font-weight: 500;
}

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--sun);
  color: var(--green-900);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}
.steps p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* Health assessment callout */
.assess {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(242, 163, 58, 0.16), rgba(242, 163, 58, 0.06));
  border: 1px solid rgba(242, 163, 58, 0.35);
}
.assess-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--green-900);
}
.assess-icon svg {
  width: 28px;
  height: 28px;
}
.assess h3 {
  margin-bottom: 0.35rem;
}
.assess p {
  margin: 0;
  color: var(--muted);
}
.assess .btn {
  white-space: nowrap;
}
.assess .btn svg {
  width: 18px;
  height: 18px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.about-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}
.about-copy .btn {
  margin-top: 0.75rem;
}

/* Community gallery */
.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
  height: clamp(420px, 48vw, 600px);
}
.gallery-wide {
  grid-row: 1 / 3;
}
.gallery-wide img {
  object-position: center 85%;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-item figcaption {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 38, 30, 0.78);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.quote {
  margin: 0;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote::before {
  content: "“";
  position: absolute;
  top: 0.4rem;
  right: 1.4rem;
  font-family: var(--font-head);
  font-size: 5rem;
  line-height: 1;
  color: rgba(242, 163, 58, 0.35);
}
.quote blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
.quote figcaption img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--sun);
}
.quote figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 0.97rem;
}

/* Booking */
.book {
  background: var(--green-900);
  color: #dfe9e3;
}
.book h2 {
  color: var(--white);
}
.book .eyebrow {
  color: var(--sun);
}
.book-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.checks li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sun)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317352a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
.book-alt {
  font-size: 0.95rem;
  color: #b9cbc1;
}
.book-alt a {
  color: var(--sun);
}

.form {
  background: var(--white);
  color: var(--ink);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1rem;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-900);
}
.form input {
  width: 100%;
  font: 400 1rem var(--font-body);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
  min-height: 48px;
}
.form .optional {
  font-weight: 400;
  color: var(--muted);
}
.form input:focus {
  border-color: var(--green-600);
  background: var(--white);
  outline: none;
}
.form input.is-invalid {
  border-color: #c0392b;
  background: #fdf3f2;
}
.phone {
  display: flex;
}
.phone-code {
  display: grid;
  place-items: center;
  padding: 0 0.9rem;
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--green-50);
  font-weight: 600;
  color: var(--green-700);
}
.phone input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.form .btn {
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 1.05rem;
}
.form-status {
  margin: 0;
  font-size: 0.92rem;
  text-align: center;
  min-height: 1.4em;
}
.form-status.ok {
  color: var(--green-600);
  font-weight: 600;
}
.form-status.err {
  color: #c0392b;
}

/* Booking confirmation */
.form-success {
  text-align: center;
  justify-items: center;
  animation: pop-in 0.35s ease;
}
.form-success[hidden],
.form[hidden] {
  display: none;
}
.success-tick {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-600);
  box-shadow: 0 0 0 8px rgba(46, 106, 82, 0.08);
  margin-bottom: 0.25rem;
}
.success-tick svg {
  width: 34px;
  height: 34px;
}
.form-success h3 {
  font-size: 1.5rem;
  margin: 0;
  outline: none;
}
.form-success p {
  margin: 0;
  color: var(--muted);
}
.form-success strong {
  color: var(--ink);
}
.success-note {
  font-size: 0.92rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  width: 100%;
}
.btn-whatsapp {
  background: #25d366;
  color: #0b3d1f;
}
.btn-whatsapp:hover {
  background: #1fbe5a;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0.25rem;
  font: 500 0.92rem var(--font-body);
  color: var(--green-700);
  text-decoration: underline;
  cursor: pointer;
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-success {
    animation: none;
  }
}

/* Footer */
.site-footer {
  background: #10261e;
  color: #a9bcb2;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.site-footer a {
  color: #dfe9e3;
  text-decoration: none;
  word-break: break-word;
}
.site-footer a:hover {
  color: var(--sun);
}
.brand-light {
  color: var(--white);
  margin-bottom: 1rem;
}
.site-footer .brand-light {
  color: var(--white);
}
.footer-inner p {
  max-width: 30em;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}
.footer-bottom p {
  margin: 0;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s;
}
.wa-float:hover {
  transform: scale(1.07);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}

/* Scroll reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  .header-cta {
    margin-left: auto;
  }
  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--green-900);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 1rem 20px;
    border-top: 1px solid var(--line);
  }

  .hero-inner,
  .about,
  .book-inner,
  .stories,
  .quotes {
    grid-template-columns: 1fr;
  }
  .hero-media {
    max-width: 560px;
  }
  .assess {
    grid-template-columns: auto 1fr;
  }
  .assess .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .hero-badge {
    left: 1rem;
    bottom: 1rem;
  }
  .about-photo {
    max-width: 480px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 0.75rem;
  }
  .brand {
    font-size: 1.1rem;
  }
  .brand img {
    width: 32px;
    height: auto;
  }
  .header-cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .assess {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }
  .gallery-wide {
    grid-row: auto;
  }
  .gallery-item img {
    aspect-ratio: 3 / 2;
    height: auto;
  }
  .assess .btn {
    width: 100%;
  }
  .proof {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.6rem;
  }
  .proof strong {
    font-size: 1.4rem;
  }
  .proof span {
    font-size: 0.78rem;
  }
  .cards,
  .steps,
  .form .row,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .brand,
  .header-cta {
    white-space: nowrap;
  }
}

/* Small phones: the hero already has the booking button + floating WhatsApp */
@media (max-width: 420px) {
  .header-cta {
    display: none;
  }
  .nav-toggle {
    margin-left: auto;
  }
}
