/* ============================================================
   Purna Foundation — components
   Reusable across every page. Page-specific composition lives
   in pages.css.
   ============================================================ */

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__icon { flex: none; }

.btn--primary {
  background: var(--saffron);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(240, 124, 34, 0.7);
}
.btn--primary:hover { background: var(--saffron-dark); color: #fff; box-shadow: 0 10px 22px -8px rgba(240, 124, 34, 0.85); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }

.btn--outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding-block: calc(0.8rem - 2px);
}
.btn--outline:hover { background: var(--navy); color: #fff; }

/* For use on photographic / dark backgrounds */
.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  padding-block: calc(0.8rem - 2px);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--lg { padding: 1rem 2rem; font-size: var(--fs-base); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: var(--fs-xs); }

/* Text link with a sliding arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--saffron-dark);
  text-decoration: none;
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Section heading ------------------------------------- */
/* The deck's signature two-tone heading: navy line, saffron line. */
.section-head { margin-bottom: var(--sp-6); max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--saffron);
  flex: none;
}
.section-head--center .eyebrow::after {
  content: '';
  width: 26px; height: 2px;
  background: var(--saffron);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--fs-2xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
}
/* Line 1 inherits navy, line 2 picks up saffron — the deck's
   two-tone heading. */
.section-title span { display: block; }
.section-title span + span { color: var(--saffron); }

[data-lang='hi'] .section-title {
  font-family: var(--font-deva);
  font-weight: 800;
  line-height: 1.3;
  text-transform: none;
}

.section-intro { margin-top: var(--sp-4); font-size: var(--fs-md); color: var(--ink-soft); }

/* Dot divider used under headings in the profile */
.divider-dots {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.section-head--center .divider-dots { justify-content: center; }
.divider-dots::before, .divider-dots::after {
  content: '';
  height: 1px; width: 48px;
  background: var(--saffron);
  opacity: 0.5;
}
.divider-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--saffron);
}
.divider-dots i:nth-child(2) { background: var(--navy); }

/* ---- Cards ----------------------------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

.card__body { padding: var(--sp-5); }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.card__text { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.7; }

/* Circular tinted icon — the workhorse of the whole site */
.icon-badge {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--saffron-soft);
  color: var(--saffron-dark);
  margin-bottom: var(--sp-4);
  flex: none;
}
.icon-badge--navy  { background: var(--navy-soft);  color: var(--navy); }
.icon-badge--green { background: var(--green-soft); color: var(--green); }
.icon-badge--sm { width: 46px; height: 46px; }

/* ---- Image slot ------------------------------------------ */
/* Holds the space, keeps the aspect ratio, and — when the file
   is missing — draws a labelled outline saying what belongs
   here. See assets/js/placeholders.js. */
.img-slot {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-soft), #fff);
  border-radius: var(--r-md);
  margin: 0;
}
/* <picture> is inline by default — make it fill the slot so the img inside
   still stretches edge to edge. */
.img-slot picture {
  display: block;
  width: 100%;
  height: 100%;
}
.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-slot.is-missing img { visibility: hidden; }

.img-slot--16x9   { aspect-ratio: 16 / 9; }
.img-slot--4x3    { aspect-ratio: 4 / 3; }
.img-slot--1x1    { aspect-ratio: 1 / 1; }
.img-slot--4x5    { aspect-ratio: 4 / 5; }
.img-slot--poster { aspect-ratio: 4 / 5; }
.img-slot--cover  { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.img-slot--cover img { height: 100%; }

.img-slot__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: var(--sp-4);
  text-align: center;
  color: var(--navy);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(20, 39, 78, 0.035) 0 10px,
      transparent 10px 20px
    ),
    var(--navy-soft);
  border: 2px dashed rgba(20, 39, 78, 0.35);
  border-radius: inherit;
}
.img-slot__ph-icon { opacity: 0.5; margin-bottom: var(--sp-1); }
.img-slot__ph-id {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-dark);
}
.img-slot__ph-size { font-size: var(--fs-sm); font-weight: 700; color: var(--navy); }
.img-slot__ph-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 30ch;
}
.img-slot__ph-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  margin-top: var(--sp-1);
  word-break: break-all;
}
/* Compact slots hide the finer print so text never overflows */
.img-slot--1x1 .img-slot__ph-desc,
.img-slot--1x1 .img-slot__ph-path { display: none; }

/* Slots that carry their own fallback (the header logo) opt out
   of the panel entirely — see .brand__mark in layout.css. */
.img-slot--quiet .img-slot__ph { display: none; }

/* ---- Stat tile ------------------------------------------- */
.stat {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  box-shadow: var(--sh-sm);
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: 1;
  color: var(--saffron);
  letter-spacing: -0.02em;
}
.stat__label {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}
.stat__note {
  display: none;
  margin-top: var(--sp-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron-dark);
}
/* No verified figure yet — say so rather than invent one. */
.stat--pending { border-style: dashed; border-color: rgba(20, 39, 78, 0.35); background: var(--navy-soft); }
.stat--pending .stat__value { color: var(--muted); }
.stat--pending .stat__note { display: block; }

/* ---- Quote band ------------------------------------------ */
.quote-band {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.quote-band::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(240, 124, 34, 0.12);
}
.quote-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  text-align: center;
  position: relative;
  z-index: 1;
}
.quote-band__mark { color: var(--saffron); flex: none; opacity: 0.9; }
.quote-band__text {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  line-height: 1.45;
  color: #fff;
  font-weight: 700;
}
[data-lang='hi'] .quote-band__text { font-family: var(--font-deva); }

.quote-band--green { background: var(--green-deep); }
.quote-band--green::after { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 600px) {
  .quote-band__mark { display: none; }
}

/* ---- Pull quote (inline, light background) ---------------- */
.pull-quote {
  border-left: 4px solid var(--saffron);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--green);
  font-weight: 700;
}
[data-lang='hi'] .pull-quote { font-family: var(--font-deva); }

/* ---- Language toggle ------------------------------------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--navy-soft);
  border-radius: var(--r-pill);
  padding: 3px;
  flex: none;
}
.lang-toggle button {
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-toggle button:hover { color: var(--saffron-dark); }
.lang-toggle button.is-active { background: var(--navy); color: #fff; }
.lang-toggle button[data-lang-set='hi'] { font-family: var(--font-deva); }

/* ---- Trust / meta strip ---------------------------------- */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  overflow: hidden;
}
.meta-strip__item {
  background: var(--navy);
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
}
.meta-strip__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.meta-strip__value {
  margin-top: 2px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--saffron);
}
@media (min-width: 860px) {
  .meta-strip { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Page banner (every inner page) ----------------------- */
.page-banner {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: #fff;
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem);
  overflow: hidden;
}
/* The deck's orange swoosh, top-right */
.page-banner::after {
  content: '';
  position: absolute;
  top: -55%; right: -12%;
  width: 46%; aspect-ratio: 1;
  border-radius: 50%;
  border: 14px solid var(--saffron);
  border-inline-end-color: transparent;
  border-block-end-color: transparent;
  opacity: 0.55;
  z-index: -1;
}
.page-banner__inner { position: relative; z-index: 1; }
.page-banner .eyebrow { color: var(--saffron); }
.page-banner .eyebrow::before { background: var(--saffron); }

.page-banner__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--fs-3xl);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #fff;
}
.page-banner__title span { display: block; color: var(--saffron); }
[data-lang='hi'] .page-banner__title {
  font-family: var(--font-deva);
  font-weight: 800;
  text-transform: none;
  line-height: 1.28;
  letter-spacing: 0;
}
.page-banner__lead {
  margin-top: var(--sp-4);
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-md);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--saffron); }
.breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before { content: '/'; opacity: 0.5; }

/* ---- Event card ------------------------------------------ */
.event-card {
  display: grid;
  gap: 0;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  overflow: hidden;
  position: relative;
}
.event-card__sample {
  grid-column: 1 / -1;
  background: var(--saffron);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem var(--sp-4);
}
.event-card__media { position: relative; }
.event-card__media .img-slot { border-radius: 0; height: 100%; }

.event-card__date {
  position: absolute;
  top: var(--sp-4); left: var(--sp-4);
  background: var(--saffron);
  color: #fff;
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  text-align: center;
  line-height: 1;
  box-shadow: var(--sh-md);
}
.event-card__day { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.event-card__month { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; margin-top: 3px; }

.event-card__body { padding: var(--sp-5); }
@media (min-width: 768px) { .event-card__body { padding: var(--sp-6); } }

.event-card__type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
}
.event-card__title { font-size: var(--fs-xl); }
.event-card__subtitle { margin-top: var(--sp-2); color: var(--saffron-dark); font-weight: 600; }

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-4);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.event-card__meta li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.event-card__meta svg { color: var(--saffron); flex: none; }

.event-card__desc { margin-top: var(--sp-4); color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.7; }

.event-card__actions { margin-top: var(--sp-5); }
.event-card__fallback { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.event-card__fallback .btn--ghost { border-color: var(--navy); color: var(--navy); }
.event-card__fallback .btn--ghost:hover { background: var(--navy); color: #fff; }

.event-card__redirect {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted);
}

@media (min-width: 768px) {
  .event-card { grid-template-columns: 340px 1fr; align-items: stretch; }
  .event-card__sample { grid-column: 1 / -1; }
}

/* ---- Event empty state ----------------------------------- */
.event-empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--r-xl);
}
.event-empty__icon { margin: 0 auto var(--sp-4); color: var(--saffron); opacity: 0.7; }
.event-empty__title { font-size: var(--fs-lg); }
.event-empty__desc {
  margin-top: var(--sp-3);
  margin-inline: auto;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.event-empty .btn { margin-top: var(--sp-5); }
/* Same card, but holding real content rather than a "nothing here" message —
   solid border so it does not read as a placeholder. */
.event-empty--filled { border-style: solid; border-color: var(--line); box-shadow: var(--sh-sm); }
.event-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}
