/* ============================================================
   Yoga International Institute — shared stylesheet
   Zen-minimal theme · earthy palette · responsive
   ============================================================ */

:root {
  --bg: #f7f1e6;
  --bg-soft: #efe6d3;
  --surface: #fffdf7;
  --ink: #2f2a22;
  --muted: #6f6352;
  --green: #3c5a48;
  --green-deep: #2c4436;
  --terracotta: #b4643b;
  --gold: #c39a4c;
  --line: #e0d5c1;
  --white: #fffdf7;
  --shadow: 0 18px 45px -22px rgba(47, 42, 34, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font-body: "Karla", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-deep); line-height: 1.15; margin: 0 0 0.55em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 42px); }
::selection { background: rgba(196, 154, 76, 0.32); }

/* ---------- skip link & a11y ---------- */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- topbar / header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 241, 230, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--bg-soft); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark.brand-mono { background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; letter-spacing: 1px; border: 1px solid rgba(255,253,247,0.6); }
.brand-text b { font-family: var(--font-display); font-size: 1.16rem; letter-spacing: 0.5px; color: var(--green-deep); line-height: 1.05; display: block; }
.brand-text span { font-size: 0.8rem; color: var(--muted); display: block; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--green-deep); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 10px 13px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 0.97rem; font-weight: 500; }
.main-nav a:hover { color: var(--terracotta); background: rgba(180, 100, 59, 0.08); }
.main-nav li.is-active a { color: var(--green-deep); background: rgba(60, 90, 72, 0.12); font-weight: 700; }

.lang-switch { display: flex; align-items: center; gap: 3px; margin-left: 6px; border-left: 1px solid var(--line); padding-left: 10px; }
.lang-switch a { padding: 5px 8px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; color: var(--muted); border-radius: 7px; }
.lang-switch a:hover { color: var(--terracotta); }
.lang-switch a.on { color: var(--green-deep); background: rgba(60, 90, 72, 0.14); }

/* ---------- buttons & labels ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--terracotta); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; border: 0; cursor: pointer; transition: transform .18s var(--ease), background .18s ease, box-shadow .18s ease; }
.btn:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.btn-ghost { background: transparent; color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.btn-ghost:hover { background: var(--green-deep); color: #fff; }
.btn.btn-gold { background: var(--gold); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.75rem; font-weight: 700; color: var(--terracotta); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(1100px 560px at 86% -12%, rgba(196,154,76,0.18), transparent 55%),
              linear-gradient(120deg, #1d2c24 0%, #314c3c 55%, #41634e 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(56px, 9vw, 106px) 0 clamp(52px, 8vw, 90px); }
.hero-copy .eyebrow { color: var(--gold); }
.hero-copy .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 0.22em; }
.hero .lede { color: rgba(255, 253, 247, 0.93); font-size: clamp(1.05rem, 1.6vw, 1.26rem); max-width: 620px; }
.hero .lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 24px -14px -14px 26px;
  border: 1.5px solid rgba(196,154,76,0.55); border-radius: 22px; opacity: 0.6; }
.hero-art img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 34px 64px -32px rgba(0,0,0,0.6); }
.hero-cap { position: relative; z-index: 1; margin-top: 14px; text-align: center;
  font-style: italic; color: rgba(255,253,247,0.85); font-size: 0.92rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 6px auto 0; }
}

/* thin section divider with leaf mark */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--bg-soft); }
.section-tight { padding: clamp(34px, 6vw, 64px) 0; }
.center { text-align: center; }
.center .eyebrow::before, .center .eyebrow::after { display: none; }
.center .eyebrow { justify-content: center; }
.lede-lg { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 720px; margin: 0 auto 1.2em; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 46px); }
.section.center .section-head { margin-left: auto; margin-right: auto; }

/* ---------- intro / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(26px, 5vw, 64px); align-items: center; }
.split.flip .split-media { order: -1; }
.split-media img, .split-media .frame img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media-caption { margin-top: 12px; font-size: 0.86rem; color: var(--muted); font-style: italic; text-align: center; }
.frame { position: relative; }
.frame::after { content: ""; position: absolute; inset: 22px -16px -16px 22px; border: 1.5px solid var(--gold); border-radius: var(--radius); z-index: -1; opacity: 0.7; }

/* ---------- feature cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink);
  transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; position: relative; overflow: hidden; display: block; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(196,154,76,0.6); color: var(--ink); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(60,90,72,0.12); margin-bottom: 16px; color: var(--green-deep); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.5em; }
.card-more { font-weight: 700; color: var(--terracotta); font-size: 0.92rem; }
.card:hover .card-more { color: var(--green-deep); }

/* ---------- big quote ---------- */
.quote-band { text-align: center; padding: clamp(52px, 9vw, 96px) 0; position: relative; }
.quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: 0; color: var(--gold); opacity: 0.5; margin-bottom: 14px; display: block; }
.quote-text { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 500; max-width: 860px; margin: 0 auto; color: var(--green-deep); }
.quote-author { margin-top: 20px; text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; color: var(--terracotta); font-weight: 700; }

/* ---------- small stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--terracotta); line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* ---------- prose ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: #3a332a; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.tick-list li { padding-left: 30px; position: relative; margin-bottom: 0.7em; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); }

/* ---------- numbered steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; margin: 26px 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 20px 24px; counter-increment: step; }
.step h3 { display: flex; align-items: baseline; gap: 12px; }
.step h3::before { content: counter(step); font-family: var(--font-display); color: var(--terracotta); font-size: 1.6rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

/* ---------- doc / download list ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 720px; }
.doc-list a { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .2s var(--ease); }
.doc-list a:hover { border-color: rgba(196,154,76,0.65); transform: translateX(4px); color: var(--ink); }
.doc-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(60,90,72,0.12); color: var(--green-deep); }
.doc-ico svg { width: 22px; height: 22px; }
.doc-list b { display: block; font-size: 1rem; }
.doc-list small { color: var(--muted); }

/* ---------- members ---------- */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.member .m-role { color: var(--terracotta); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.8px; }
.member .m-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.member .m-head-text { min-width: 0; }
.member .m-head-text h3 { margin-bottom: 0.1em; font-size: 1.12rem; line-height: 1.25; }
.member .m-head-text .m-role { margin-top: 0; }
.member .m-detail { color: var(--muted); font-size: 0.95rem; margin: 0 0 4px; }
.member .m-mail { display: inline-block; margin-top: 8px; font-size: 0.92rem; word-break: break-all; }
.member.in-memoriam { border-color: rgba(111,99,82,0.4); }
.member .ribbon { display: inline-block; background: rgba(111,99,82,0.15); color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 999px; margin-top: 10px; }
.member .initials { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--green-deep); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; flex: 0 0 auto; }
.member .m-photo { width: 66px; height: 66px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft); flex: 0 0 auto; }
.member .m-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.g-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .22s var(--ease), box-shadow .22s ease; }
.g-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.g-thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-item:hover .g-thumb img { transform: scale(1.06); }
.g-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.g-body h3 { font-size: 1.12rem; margin-bottom: 0; }
.g-body span { font-size: 0.9rem; color: var(--muted); }
.g-open { margin-top: auto; font-weight: 700; color: var(--terracotta); font-size: 0.9rem; }

/* ---------- links / partners ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: transform .22s var(--ease), box-shadow .22s ease; }
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.partner-logo { height: 56px; display: flex; align-items: center; justify-content: flex-start; }
.partner-logo img { max-height: 54px; max-width: 100%; object-fit: contain; }
.partner h3 { font-size: 1.05rem; margin: 8px 0 0; }
.partner p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }
.partner .p-add { font-size: 0.85rem; color: var(--terracotta); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 60px); align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--green-deep); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(180,100,59,0.15); }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.contact-meta .meta-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.meta-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(60,90,72,0.12); color: var(--green-deep); display: grid; place-items: center; }
.meta-ico svg { width: 20px; height: 20px; }
.contact-meta .card { margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255, 253, 247, 0.9); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: clamp(46px, 7vw, 70px) 0 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,253,247,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { color: rgba(255,253,247,0.7); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-brand b { font-family: var(--font-display); font-size: 1.4rem; display: block; color: #fff; letter-spacing: 0.5px; }
.footer-brand span { color: var(--gold); letter-spacing: 2px; text-transform: uppercase; font-size: 0.72rem; }
.footer-bottom { border-top: 1px solid rgba(255,253,247,0.15); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-bottom p { margin: 0; color: rgba(255,253,247,0.65); }

/* leaf divider mark */
.divider { text-align: center; margin: 8px 0; color: var(--gold); }
.divider svg { width: 44px; height: 18px; }

/* page hero (interior) */
.page-hero { position: relative; color: #fff; background: var(--green-deep); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,40,33,0.88), rgba(44,68,54,0.55)); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-inner { position: relative; z-index: 2; padding: clamp(52px, 8vw, 92px) 0; }
.page-hero h1 { color: #fff; margin-bottom: 0.2em; }
.page-hero .crumbs { font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,253,247,0.85); margin-bottom: 12px; }
.page-hero .crumbs a { color: var(--gold); }
.page-hero .sub { max-width: 720px; color: rgba(255,253,247,0.92); font-size: 1.1rem; }

/* misc */
.lead { font-size: 1.12rem; color: var(--muted); }
.two-col { columns: 2; column-gap: 40px; }
@media (max-width: 720px) { .two-col { columns: 1; } }
.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--green-deep); font-weight: 600; text-decoration: none; }
.backlink:hover { color: var(--terracotta); }

/* ============================ responsive nav ============================ */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 74px 0 auto 0; background: var(--surface); box-shadow: 0 26px 40px -24px rgba(0,0,0,0.5);
    border-top: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  body.menu-open .main-nav { max-height: calc(100vh - 74px); overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 18px 24px; gap: 2px; }
  .main-nav a { padding: 13px 14px; font-size: 1.05rem; }
  .lang-switch { margin: 10px 18px 6px; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .brand-text span { display: none; }
}

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