/* Kamrai Beauty — "Glow, unhurried." Shared styles.
   Palette from research/design-language.md. Light default, dark override on [data-theme="dark"].
   NOTE on the two-role token rule from steering:
   - --on-brand / --accent-on-dark are FIXED in both themes (text on always-dark bands).
   - --surface flips dark in dark mode (card fill only) and is never reused as band text colour. */

:root {
  --ground: #FAF3EC;
  --surface: #FFFFFF;
  --ink: #20241A;
  --muted: #5A5E4E;
  --brand: #4A5A36;
  --brand-text: #3F4E2D;
  --bronze: #B67A3A;
  --bronze-text: #8A5620;

  /* Fixed-in-both-themes band tokens */
  --on-brand: #FFFFFF;        /* text sitting on brand/always-dark bands */
  --accent-on-dark: #E8BE8A;  /* light bronze text on always-dark bands */
  --band: #1E2418;            /* always-dark header/hero/footer/CTA band */

  --border: rgba(32, 36, 26, 0.14);
  --shadow: 0 10px 30px rgba(32, 36, 26, 0.08);
  --radius: 14px;
  --maxw: 1120px;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, Segoe UI, sans-serif;
}

[data-theme="dark"] {
  --ground: #14170F;
  --surface: #22271B;
  --ink: #F3EDE2;
  --muted: #B4B8A3;
  --brand: #4A5A36;
  --brand-text: #B9CF9A;
  --bronze: #B67A3A;
  --bronze-text: #E2B27B;
  --band: #0C0F08;
  --border: rgba(243, 237, 226, 0.16);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: 0.3px;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }
a { color: var(--brand-text); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bronze-text);
  margin: 0 0 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: #3c4a2c; }
.btn--bronze { background: var(--bronze); color: #231a0d; }
.btn--bronze:hover { background: #a56d31; }
/* bronze button keeps dark text on every always-dark surface (links there default to light) */
.site-header .btn--bronze, .hero .btn--bronze, .band .btn--bronze, .site-footer .btn--bronze { color: #1b1409; }
.btn--ghost { background: transparent; color: var(--brand-text); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: var(--on-brand); }
/* Ghost buttons sitting on always-dark bands must stay light */
.band .btn--ghost, .hero .btn--ghost, .site-footer .btn--ghost {
  color: var(--on-brand); border-color: rgba(255,255,255,0.6);
}
.band .btn--ghost:hover, .hero .btn--ghost:hover, .site-footer .btn--ghost:hover {
  background: rgba(255,255,255,0.14); color: var(--on-brand);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--band);
  color: var(--on-brand);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand-mark {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--on-brand); text-decoration: none; letter-spacing: 0.5px;
  display: inline-flex; align-items: baseline; gap: 0.45rem;
}
.brand-mark span { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent-on-dark); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  color: var(--on-brand); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent-on-dark); color: var(--accent-on-dark); }

.header-tools { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: var(--on-brand);
  border: 1px solid rgba(255,255,255,0.18); cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,0.18); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--band); padding: 0.5rem 20px 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: inline-grid; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--band); color: var(--on-brand);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(12,15,8,0.85), rgba(30,36,24,0.55));
}
.hero__inner { position: relative; z-index: 2; padding: clamp(4rem, 11vw, 8rem) 0; max-width: 42rem; }
.hero h1 { color: var(--on-brand); margin: 0 0 1rem; }
.hero p { color: rgba(255,255,255,0.86); font-size: 1.2rem; }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ---------- Proof / stats ---------- */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.2rem; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.stat__num { font-family: var(--serif); font-size: 2.4rem; color: var(--brand-text); line-height: 1; }
.stat__label { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.stat__src { color: var(--muted); font-size: 0.75rem; margin-top: 0.3rem; opacity: 0.8; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

/* Category tiles (CSS/SVG icons) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.cat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1rem; text-align: center; box-shadow: var(--shadow);
}
.cat__icon {
  width: 48px; height: 48px; margin: 0 auto 0.7rem;
  display: grid; place-items: center; color: var(--brand-text);
}
.cat__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }
.cat__name { font-family: var(--serif); font-size: 1.15rem; }
.cat__desc { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }

/* ---------- Bands (always dark) ---------- */
.band { background: var(--band); color: var(--on-brand); }
.band h1, .band h2, .band h3 { color: var(--on-brand); }
.band p { color: rgba(255,255,255,0.85); }
/* light/dark card sitting inside an always-dark band takes the page ink, not the band's white */
.band .card, .band .card td, .band .card th, .band .card caption { color: var(--ink); }
.band .card h3, .band .card h4 { color: var(--ink); }
.band .card p { color: var(--muted); }
.band .card th, .band .card caption { color: var(--muted); }
.band .card td.price { color: var(--bronze-text); }
.band .eyebrow { color: var(--accent-on-dark); }
.band a:not(.btn) { color: var(--accent-on-dark); }

.band--photo { position: relative; overflow: hidden; }
.band--photo .band__media { position: absolute; inset: 0; }
.band--photo .band__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.band--photo::after { content: ""; position: absolute; inset: 0; background: rgba(12,15,8,0.72); }
.band--photo .container { position: relative; z-index: 2; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- Chips ---------- */
.chip {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  background: rgba(182,122,58,0.14); color: var(--bronze-text);
  border: 1px solid rgba(182,122,58,0.35);
}
.band .chip, .hero .chip { background: rgba(232,190,138,0.16); color: var(--accent-on-dark); border-color: rgba(232,190,138,0.4); }
.chip--confirm::before { content: "⚑ "; }

/* ---------- Location strip ---------- */
.locstrip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch; }
.locstrip__text { padding: clamp(2rem, 5vw, 3.5rem); }
.locstrip__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 760px) { .locstrip { grid-template-columns: 1fr; } .locstrip__map iframe { min-height: 280px; } }

/* ---------- Pamper Planner ---------- */
.planner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 920px) { .planner { grid-template-columns: 1fr; } }
.planner__step { margin-bottom: 2.2rem; }
.planner__step h3 { margin: 0 0 0.3rem; }
.step-hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.9rem; }

.chipset { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip-btn {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  padding: 0.6rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border); transition: all 0.15s ease;
}
.chip-btn:hover { border-color: var(--brand); }
.chip-btn[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; }
.opt-card {
  text-align: left; cursor: pointer; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1rem;
  display: flex; flex-direction: column; gap: 0.4rem; transition: all 0.15s ease;
}
.opt-card:hover { border-color: var(--brand); }
.opt-card[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.opt-card__head { display: flex; align-items: center; gap: 0.6rem; }
.opt-card__icon { width: 30px; height: 30px; color: var(--brand-text); flex: none; }
.opt-card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }
.opt-card__name { font-family: var(--serif); font-size: 1.1rem; }
.opt-card__desc { color: var(--muted); font-size: 0.85rem; display: none; }
.opt-card[aria-pressed="true"] .opt-card__desc { display: block; }

.plan-panel {
  position: sticky; top: 90px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.plan-panel h3 { margin-top: 0; }
.plan-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.plan-list li { padding: 0.6rem 0; border-bottom: 1px dashed var(--border); }
.plan-list .price { color: var(--bronze-text); font-size: 0.85rem; display: block; }
.plan-empty { color: var(--muted); font-style: italic; }
.plan-msg {
  width: 100%; font-family: var(--sans); font-size: 0.9rem; color: var(--ink);
  background: var(--ground); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.8rem; min-height: 120px; resize: vertical; margin-bottom: 0.9rem;
}
.plan-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.copy-note { font-size: 0.8rem; color: var(--muted); min-height: 1.1em; margin: 0.2rem 0 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; max-width: 560px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Price list ---------- */
.pricelist { width: 100%; border-collapse: collapse; }
.pricelist caption { text-align: left; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.8rem; }
.pricelist th, .pricelist td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border); }
.pricelist th { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.pricelist td.price { color: var(--bronze-text); font-weight: 600; white-space: nowrap; }

/* ---------- NEEDS CONTENT placeholder ---------- */
.placeholder {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 1.5rem; color: var(--muted); background: transparent; text-align: center;
  font-size: 0.9rem;
}

/* ---------- Reviews ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); position: relative;
}
.quote blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; margin: 0 0 1rem; color: var(--ink); }
.quote cite { color: var(--muted); font-style: normal; font-size: 0.9rem; }
.quote .stars { color: var(--bronze-text); margin-bottom: 0.8rem; letter-spacing: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--on-brand); padding: 3rem 0 2rem; }
.site-footer h4 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 0.8rem; color: var(--on-brand); }
.site-footer a { color: var(--accent-on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid p, .footer-grid li { color: rgba(255,255,255,0.82); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.demo-note {
  background: rgba(182,122,58,0.12); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem; text-align: center; padding: 0.6rem 20px;
}

.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 0.5rem; z-index: 100; background: var(--surface); color: var(--ink); padding: 0.5rem 1rem; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

/* narrow phones: header CTA is repeated in the page, so drop it to keep the header on one row */
@media (max-width: 480px) { .header-tools .btn { display: none; } .brand-mark span { display: none; } }
