/* ==========================================================
   The Living Thread Classical Homeopathy — site styles
   Colors: soft white, warm gold, deep ink
   ========================================================== */

:root {
  --cream: #fbf8f2;       /* soft white background */
  --cream-2: #f4eee2;     /* slightly deeper panels */
  --gold: #b8913a;        /* main gold */
  --gold-light: #e2c47a;  /* glow / highlight gold */
  --gold-deep: #8a6a22;   /* text-safe gold */
  --ink: #3a332b;         /* body text */
  --ink-soft: #6e655a;    /* secondary text */
  --line: #e6dcc8;        /* hairlines */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }

/* ---------- Language switching ----------
   Every bilingual bit of text is written twice:
   <span class="en">Hello</span><span class="es">Hola</span>
   The script sets data-lang on <html>, and CSS hides the other one. */
html[data-lang="en"] .es,
html[data-lang="es"] .en { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand svg { width: 38px; height: 38px; flex: none; }

.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.nav { display: flex; gap: 26px; }
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 0;
}
/* a gold "thread" draws under the link on hover / current page */
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.lang-switch button {
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 2px;
}
.lang-switch button.active { color: var(--gold-deep); font-weight: 500; }
.lang-switch span { color: var(--line); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 32px; height: 32px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 7px 4px;
}

/* ---------- Hero (home page) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 60px 24px;
  background:
    radial-gradient(circle at 50% 48%, #fffdf8 0%, var(--cream) 55%, var(--cream-2) 100%);
}

.yantra {
  position: absolute;
  width: min(92vh, 92vw);
  height: auto;
  opacity: 0.8;
  animation: breathe 14s ease-in-out infinite;
}
.yantra .lines {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.yantra .glow {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 6;
  opacity: 0.6;
  filter: url(#soft);
}
.yantra .bindu { fill: var(--gold); }
.yantra .spark { fill: #fff6d8; filter: url(#sparkGlow); animation: twinkle 4s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.025) rotate(0.6deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1); }
}
.spark { transform-box: fill-box; transform-origin: center; }

.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.12;
  color: var(--ink);
  text-shadow: 0 0 30px var(--cream), 0 0 12px var(--cream), 0 0 4px var(--cream);
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero p.lead {
  margin: 22px auto 34px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink-soft);
  text-shadow: 0 0 18px var(--cream);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  background: rgba(255, 253, 248, 0.7);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { background: var(--gold); color: #fff; }
.btn.solid { background: var(--gold); color: #fff; }
.btn.solid:hover { background: var(--gold-deep); }

/* ---------- The "thread" divider: warp threads crossed by a gold weft ---------- */
.thread {
  height: 46px;
  position: relative;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 9px,
    rgba(184, 145, 58, 0.18) 9px 10px
  );
}
.thread::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
}

/* ---------- Page sections ---------- */
.section { padding: 90px 24px; }
.section.alt { background: var(--cream-2); }
.wrap { max-width: 1040px; margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 22px;
}
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
  margin-bottom: 10px;
}
p + p { margin-top: 16px; }
.center { text-align: center; }

.page-title {
  padding: 90px 24px 70px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #fffdf8, var(--cream) 70%);
}
.page-title h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 58px);
}
.page-title p { color: var(--ink-soft); margin-top: 10px; font-family: var(--serif); font-size: 21px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 34px 30px;
}
.card .num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.45;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
blockquote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.portrait {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(184,145,58,0.22) 7px 8px),
    var(--cream-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 20px;
}

.fees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin: 40px 0;
}
.fee { border-top: 1px solid var(--gold); padding-top: 18px; }
.fee .price { font-family: var(--serif); font-size: 40px; color: var(--gold-deep); }

/* ---------- Forms ---------- */
form { display: grid; gap: 18px; margin-top: 30px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
input, textarea, select {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fffdf8;
  font: inherit;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 150px; resize: vertical; }

.contact-list { list-style: none; margin-top: 20px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list strong {
  display: block;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fffdf8;
  border-top: 1px solid var(--line);
  padding: 50px 24px 30px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-inner { max-width: 1040px; margin: 0 auto; text-align: center; }
.footer-inner .brand-name { color: var(--ink); }
.disclaimer {
  max-width: 760px;
  margin: 22px auto;
  font-size: 13px;
  line-height: 1.6;
}
.copyright { font-size: 12px; letter-spacing: 0.1em; margin-top: 18px; }

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  .menu-toggle { display: block; order: 3; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .split, .row { grid-template-columns: 1fr; gap: 30px; }
  .brand-sub { display: none; }
  .section { padding: 64px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .yantra, .yantra .spark { animation: none; }
  .yantra .spark { opacity: 0.8; }
}
