/* ==========================================================
   Kerala Exotics — site styles
   Palette inspired by kasavu (cream + gold) and Kerala greens
   ========================================================== */

:root {
  --green-900: #1e3312;
  --green-800: #2b4a19;
  --green-700: #3f6a22;
  --leaf: #5f8c2d;
  --green-100: #ecf1e2;
  --cream: #f8f3e8;
  --cream-2: #f1e8d6;
  --ink: #1d231f;
  --muted: #5d665f;
  --gold: #c8a04a;
  --gold-deep: #a9832f;

  --momsy: #2a6878;
  --momsy-deep: #174552;
  --momsy-soft: #e4eff0;
  --weavaa: #9a5ce0;
  --weavaa-red: #ef3349;
  --weavaa-deep: #7b3fc4;
  --weavaa-soft: #f3ecfc;
  --weavaa-gradient: linear-gradient(135deg, var(--weavaa-red), var(--weavaa));

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --shadow: 0 20px 50px -20px rgba(30, 51, 18, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}

h1 em, h2 em, .brand-text em {
  font-style: italic;
  color: var(--gold-deep);
}

h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; }

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

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  background: var(--green-800);
  color: var(--cream);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid var(--green-800);
  cursor: pointer;
  font-family: inherit;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--green-700); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: var(--cream); }
.btn-small { padding: .6rem 1.2rem; font-size: .88rem; }
.btn-full { width: 100%; }
.btn-momsy { background: var(--momsy-deep); border-color: var(--momsy-deep); }
.btn-momsy:hover { background: #0f333d; }
.btn-weavaa { background: var(--weavaa-gradient); border-color: transparent; }
.btn-weavaa:hover { background: var(--weavaa-gradient); filter: saturate(1.15) brightness(1.05); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 1.1rem 0;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header bar. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 243, 232, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(30, 51, 18, .08);
  opacity: 0;
  transition: opacity .35s;
}
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled { padding: .65rem 0; }

.nav { display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--green-800);
}
.brand-logo { height: 46px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand-logo { height: 38px; }
.site-footer .brand-logo { height: 54px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--green-800);
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--green-800);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Kasavu border ---------- */
.kasavu {
  height: 26px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 6px / 100% 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 19px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 14px) 0 0 / 100% 3px no-repeat,
    var(--cream-2);
}
.kasavu-top { transform: scaleY(-1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  background:
    radial-gradient(1000px 600px at 85% 20%, rgba(200, 160, 74, .14), transparent 60%),
    radial-gradient(800px 600px at 5% 90%, rgba(95, 140, 45, .12), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 6rem; max-width: 980px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  font-weight: 300;
  color: var(--green-900);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero .kasavu { position: absolute; bottom: 0; left: 0; right: 0; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.palm { position: absolute; color: var(--leaf); opacity: .08; }
.palm-left { width: 360px; left: -110px; bottom: -30px; transform: rotate(-8deg); }
.palm-right { width: 520px; right: -150px; top: 40px; transform: rotate(12deg); opacity: .1; animation: sway 9s ease-in-out infinite; transform-origin: 50% 100%; }

@keyframes sway {
  0%, 100% { transform: rotate(12deg); }
  50% { transform: rotate(9deg); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-head { margin-bottom: 3.5rem; max-width: 720px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-stats { display: grid; gap: 1.2rem; }
.stat {
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(30, 51, 18, .07);
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.stat:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--green-800);
  line-height: 1;
  min-width: 4.2ch;
}
.stat-label { color: var(--muted); font-weight: 500; }

/* ---------- Brands ---------- */
.brands { background: var(--green-100); }
.brand-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3.5rem);
  border-radius: calc(var(--radius) * 1.5);
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}
.brand-card:last-child { margin-bottom: 0; }
.brand-card.weavaa { grid-template-columns: 1.1fr 1fr; }
.brand-card.weavaa .brand-art { order: 2; }
.brand-card.momsy { background: linear-gradient(135deg, #fff 55%, var(--momsy-soft)); }
.brand-card.weavaa { background: linear-gradient(225deg, #fff 55%, var(--weavaa-soft)); }

.brand-art img { height: auto; transition: transform .8s var(--ease); }
.momsy .brand-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
  border-radius: calc(var(--radius) * 1.4);
  background: radial-gradient(ellipse at center, #fff 25%, var(--momsy-soft) 80%);
}
.momsy .brand-art img { width: 82%; }
.momsy:hover .brand-art img { transform: scale(1.04); }
.momsy .pill-list li { border-color: rgba(23, 69, 82, .2); }
.weavaa .brand-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 30%, var(--weavaa-soft) 70%);
}
.weavaa .brand-art img { width: 50%; }
.weavaa:hover .brand-art img { transform: scale(1.05); }

.brand-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.momsy .brand-tag { background: var(--momsy-soft); color: var(--momsy-deep); }
.weavaa .brand-tag { background: var(--weavaa-soft); color: var(--weavaa-deep); }
.weavaa .pill-list li { border-color: rgba(154, 92, 224, .25); }
.brand-body h3 { font-size: clamp(2.2rem, 4vw, 3rem); color: var(--green-900); }
.brand-body p { color: var(--muted); }

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.pill-list li {
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .95rem;
  border: 1px solid rgba(30, 51, 18, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}

/* ---------- Promise ---------- */
.promise { background: var(--cream); }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.promise-item {
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(30, 51, 18, .07);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.promise-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.promise-item svg {
  width: 48px; height: 48px;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.3rem;
}
.promise-item h3 { font-size: 1.3rem; color: var(--green-900); }
.promise-item p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Quote band ---------- */
.quote-band { background: var(--green-800); color: var(--cream); }
.quote-band .container { padding: clamp(4rem, 9vw, 7rem) 0; }
.quote-band blockquote {
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  line-height: 1.3;
}
.quote-band cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote-band .kasavu { background-color: var(--green-900); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-grid > div > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.3rem; }
.contact-list li { display: grid; gap: .15rem; padding-bottom: 1.3rem; border-bottom: 1px solid rgba(30, 51, 18, .1); }
.contact-label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.contact-list a, .contact-list span:not(.contact-label) { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; color: var(--green-900); }
.contact-list a:hover { color: var(--gold-deep); }

.contact-form {
  background: #fff;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: calc(var(--radius) * 1.3);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45rem; color: var(--green-800); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: border-color .25s, background .25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.field .invalid { border-color: #c0392b; }
.form-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(248, 243, 232, .75); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.brand-light { color: var(--cream); }
.footer-tag { margin-top: 1rem; max-width: 320px; }
.footer-col { display: grid; gap: .6rem; align-content: start; }
.footer-col h4 {
  margin: 0 0 .4rem;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col a { text-decoration: none; transition: color .25s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(248, 243, 232, .12);
  font-size: .85rem;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--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; }
  .palm-right { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand-card, .brand-card.weavaa { grid-template-columns: 1fr; }
  .brand-card.weavaa .brand-art { order: 0; }
  .weavaa .brand-art { max-width: 300px; }
  .momsy .brand-art { max-width: 380px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav-links a:not(.btn) { font-family: var(--serif); font-size: 1.8rem; }
  .nav-links.open { opacity: 1; visibility: visible; }
  .promise-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .palm-right { width: 340px; right: -140px; top: 90px; }
  .palm-left { display: none; }
  .stat { flex-direction: column; gap: .4rem; }
}
