/* CASA VEDA — Ayurveda & Yoga, Singapore */
:root {
  /* Lavender & terracotta theme */
  --cream: #f4effb;        /* page background: soft lavender */
  --sand: #e8def5;         /* light purple panels */
  --paper: #fcfaff;        /* cards */
  --terracotta: #a94b2a;   /* terracotta accent (readable on lavender) */
  --terracotta-dark: #8a3a1f;
  --saffron: #f0b36b;      /* warm gold, for dark sections */
  --forest: #4a3470;       /* plum */
  --forest-dark: #2e1f47;  /* deep plum headings */
  --band: linear-gradient(160deg, #c7b1e8 0%, #d3b4e2 38%, #e6bcd4 70%, #f0c9cc 100%); /* lavender to blush pink */
  --band-text: #463b58;
  --band-accent: #7a3119;
  --ink: #2a2236;
  --muted: #5e5272;
  --line: #ddd0ee;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(58, 38, 89, .35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--forest-dark);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Placeholder marker: anything still to be filled in */
.todo {
  background: #fff1a8;
  color: #6b4b00;
  border-radius: 4px;
  padding: 0 .3em;
  font-size: .92em;
  white-space: nowrap;
}

/* Header */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--paper); padding: 8px 14px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 251, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest-dark); }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: .14em; }
.brand-sub { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: -4px; }
.menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0; }
.menu a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--terracotta); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--terracotta); color: #fff !important;
  text-decoration: none; font-weight: 500; font-size: .98rem; letter-spacing: .02em;
  border: 1px solid var(--terracotta); transition: background .2s, transform .2s;
}
.btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--forest-dark) !important; border-color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: #fff !important; }
.btn.small { padding: 10px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--terracotta); font-weight: 500; }
.hero-art {
  aspect-ratio: 4 / 5; border-radius: 240px 240px var(--radius) var(--radius);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .45), transparent 55%),
    linear-gradient(170deg, #c7b1e8 0%, #d3b4e2 38%, #e6bcd4 70%, #f0c9cc 100%);
  display: grid; place-items: center; box-shadow: var(--shadow); position: relative;
}
.hero-art svg { width: 62%; opacity: .9; }
.hero-art .photo-note {
  position: absolute; bottom: 16px; left: 16px; right: 16px; text-align: center;
  font-size: .75rem; color: #6b2f3c; letter-spacing: .05em;
}
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2rem; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.trust li::before { content: "✦"; color: var(--saffron); margin-right: 8px; }

.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 60ch; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.dark { background: var(--band); color: var(--ink); }
.dark h2, .dark h3 { color: var(--forest-dark); }
.dark .eyebrow { color: var(--band-accent); }
.dark .lead { color: var(--band-text); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 500; text-decoration: none; }
.card .icon { width: 46px; height: 46px; margin-bottom: 18px; color: var(--terracotta); }
a.card { text-decoration: none; color: inherit; transition: transform .2s; }
a.card:hover { transform: translateY(-3px); }

.therapy { border-top: 1px solid var(--line); padding: 30px 0; display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.therapy:last-child { border-bottom: 1px solid var(--line); }
.therapy h3 { margin: 0; }
.therapy .meta { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.therapy p:last-child { margin-bottom: 0; }

.dosha { text-align: center; padding: 34px 26px; }
.dosha .el { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--saffron); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand); color: var(--terracotta-dark); font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
}
.steps strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--forest-dark); }

.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--sand); font-weight: 500; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.price-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.quote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; font-style: italic; color: var(--forest-dark); }
.dark .quote { color: var(--forest-dark); }

.prose h2 { margin-top: 1.6em; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul li::marker { color: var(--terracotta); }
.note {
  background: var(--paper); border-left: 4px solid var(--saffron); padding: 18px 22px;
  border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--muted); margin: 1.6em 0;
}

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--forest-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.6rem; color: var(--terracotta); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 12px; }

/* CTA */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-text); padding: 64px 0 28px; font-size: .94rem; }
.site-footer a { color: var(--forest-dark); text-decoration: none; }
.site-footer a:hover { color: var(--band-accent); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--band-accent); font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .brand { color: var(--forest-dark); margin-bottom: 1rem; }
.site-footer .brand-sub { color: var(--band-text); }
.disclaimer { border-top: 1px solid rgba(46, 31, 71, .18); margin-top: 44px; padding-top: 22px; font-size: .82rem; color: var(--band-text); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: #25d366; color: #fff !important; border-radius: 999px;
  padding: 12px 18px; display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 500; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}
.wa-float svg { width: 22px; height: 22px; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
  }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; }
  .hero-grid, .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 380px; margin-inline: auto; width: 100%; }
  .therapy { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-4, .grid-3, .foot-grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* Journal */
.byline { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.posts { margin-top: 32px; }
.card.post .eyebrow { margin-bottom: .6rem; font-size: .7rem; }
.card.post h3 { font-size: 1.4rem; }
.price-note { color: var(--muted); }

/* Dosha quiz */
.quiz-q { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px; }
.quiz-q legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--forest-dark); padding: 0; margin-bottom: 12px; }
.quiz-q fieldset { border: 0; padding: 0; margin: 0; }
.quiz-q label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.quiz-q label:hover { background: var(--cream); }
.quiz-q input { margin-top: 6px; accent-color: var(--terracotta); }
.quiz-progress { position: sticky; top: 74px; z-index: 5; background: var(--cream); padding: 10px 0; font-size: .9rem; color: var(--muted); }
.quiz-bar { height: 6px; background: var(--sand); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.quiz-bar span { display: block; height: 100%; width: 0; background: var(--terracotta); transition: width .3s; }
.quiz-result { display: none; }
.quiz-result.show { display: block; }
.dosha-bars { display: grid; gap: 14px; margin: 20px 0 28px; }
.dosha-bar strong { display: flex; justify-content: space-between; font-weight: 500; }
.dosha-bar .track { height: 12px; background: var(--sand); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.dosha-bar .fill { height: 100%; border-radius: 99px; }

/* Compact menu sooner so the brand and links never wrap */
.brand, .menu a { white-space: nowrap; }
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
  }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; }
}

/* Article images */
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5em; text-align: center; }

/* WhatsApp pop-up chat */
.wa-widget { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-widget .wa-float { position: static; }
.wa-float { animation: wa-pop .5s ease-out 1s both; }
@keyframes wa-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wa-panel {
  width: min(340px, calc(100vw - 36px)); background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.35); border: 1px solid var(--line);
  animation: wa-up .25s ease-out;
}
.wa-panel[hidden], .wa-teaser[hidden] { display: none; }
@keyframes wa-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.wa-head { display: flex; align-items: center; gap: 12px; background: #075e54; color: #fff; padding: 14px 16px; }
.wa-head strong { display: block; font-weight: 500; font-size: .98rem; }
.wa-head small { display: block; font-size: .78rem; opacity: .85; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--cream); color: var(--terracotta); display: grid; place-items: center; flex: none; }
.wa-avatar svg { width: 26px; height: 26px; }
.wa-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 6px; }
.wa-body { background: #ece5dd; padding: 16px; }
.wa-msg { background: #fff; border-radius: 0 12px 12px 12px; padding: 10px 14px; font-size: .92rem; line-height: 1.5; margin: 0 0 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-options { display: grid; gap: 8px; }
.wa-opt { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #25d366; color: #075e54 !important; border-radius: 999px; padding: 9px 16px; text-decoration: none; font-size: .9rem; font-weight: 500; }
.wa-opt:hover { background: #25d366; color: #fff !important; }
.wa-teaser {
  position: relative; max-width: 240px; background: #fff; color: var(--ink); border-radius: 14px 14px 4px 14px;
  padding: 12px 30px 12px 14px; font-size: .9rem; line-height: 1.45; box-shadow: 0 12px 28px -10px rgba(0,0,0,.3); cursor: pointer;
  animation: wa-up .3s ease-out;
}
.wa-teaser strong { color: #075e54; font-weight: 500; }
.wa-teaser-close { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 1.1rem; color: var(--muted); cursor: pointer; }
@media (max-width: 600px) { .wa-teaser { max-width: 200px; } }

/* Light purple hero band */
.hero, .page-hero { background: linear-gradient(180deg, #ebe1f8 0%, var(--cream) 100%); }
.btn.ghost { border-color: var(--forest); }
