/* Uttarayana Foundation – global styles (shared by every page) */

/* ---------- Self-hosted font: Mukta (latin + devanagari for the Hindi text and the ₹ sign) ---------- */

@font-face {
  font-family: Mukta;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/mukta-latin-400-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Mukta;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/mukta-devanagari-400-normal.woff2) format("woff2");
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC,
    U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

@font-face {
  font-family: Mukta;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/mukta-latin-600-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Mukta;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/mukta-devanagari-600-normal.woff2) format("woff2");
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC,
    U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

@font-face {
  font-family: Mukta;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/mukta-latin-700-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Mukta;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/mukta-devanagari-700-normal.woff2) format("woff2");
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC,
    U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

:root {
  --p: #5b2d9e;
  --pd: #2f1a54;
  --pl: #f4f0fb;
  --o: #e8730c;
  --ink: #222;
  --g: #555;
  --ln: #e2dcef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  font:
    17px/1.6 Mukta,
    system-ui,
    sans-serif;
  color: var(--g);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.w {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

h2 {
  font-size: 34px;
  color: var(--p);
  margin-bottom: 10px;
}

.sub {
  max-width: 640px;
  margin: 0 0 36px;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--o);
  outline-offset: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  font-weight: 700;
  background: var(--o);
  color: #fff;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
}

.top {
  background: var(--pd);
  color: #d9cff0;
  font-size: 14px;
}

.top .w {
  display: flex;
  justify-content: space-between;
  padding-top: 7px;
  padding-bottom: 7px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 0 var(--ln);
}

.nav .w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}

.nav img {
  height: 60px;
}

.nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: var(--ink);
}

.nav ul a {
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}

.nav ul a:hover,
.nav ul a[aria-current] {
  color: var(--p);
  border-color: var(--p);
}

.mb {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ln);
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
}

.mb span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
}

.ph {
  color: #fff;
  padding: 64px 0 56px;
  background:
    linear-gradient(
      90deg,
      rgba(47, 26, 84, 0.94) 0%,
      rgba(47, 26, 84, 0.78) 55%,
      rgba(47, 26, 84, 0.35) 100%
    ),
    url(../banner/uttarayana-faith-foundation-tNiry7UUvq3qfvPc.webp)
      center/cover;
}

.crumb {
  font-size: 14px;
  color: #d9cff0;
  margin-bottom: 14px;
}

.crumb a:hover {
  text-decoration: underline;
}

.ph h1 {
  color: #fff;
  font-size: 50px;
}

.ph p {
  font-size: 20px;
  max-width: 640px;
  margin: 12px 0 0;
  color: #efe9fb;
}

.sn {
  position: sticky;
  top: 84px;
  z-index: 15;
  background: #fff;
  border-bottom: 1px solid var(--ln);
}

.sn .w {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sn .w::-webkit-scrollbar {
  display: none;
}

.sn a {
  flex: none;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.sn a:hover {
  color: var(--p);
}

.sn a.on {
  color: var(--p);
  border-color: var(--p);
}

.grid8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--ln);
  border-top: 1px solid var(--ln);
  background: #fff;
}

.t {
  display: block;
  padding: 28px 22px;
  border-right: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
}

.t b {
  display: block;
  font-size: 44px;
  line-height: 1.1;
  color: var(--p);
}

.t > span {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--ink);
}

.t small {
  display: block;
  font-size: 14.5px;
  margin-top: 2px;
}

a.t:hover {
  background: var(--pl);
}

a.t em {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--p);
  margin-top: 8px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.grid8.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid8.three .t b {
  font-size: 36px;
}

.lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 860px;
  margin: 0 0 36px;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.trio figure {
  margin: 0;
}

.trio span {
  display: block;
  font-size: 15px;
  margin-top: 10px;
}

.trio b {
  color: var(--ink);
}

.zm {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--ln);
  border-radius: 3px;
  background: var(--pl);
  cursor: zoom-in;
  overflow: hidden;
}

.zm img {
  width: 100%;
  height: auto;
}

.zm::after {
  content: "Zoom";
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(47, 26, 84, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.15s;
}

.zm:hover::after,
.zm:focus-visible::after {
  opacity: 1;
}

.pr {
  padding: 72px 0;
}

.pr.alt {
  background: var(--pl);
}

.pr .w {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.pr.rev .media {
  order: 2;
}

.media {
  display: grid;
  gap: 14px;
}

.eyebrow {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--p);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.pr h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.pr p {
  margin: 0 0 14px;
}

.pr b {
  color: var(--ink);
}

.pr h3 {
  font-size: 18px;
  color: var(--pd);
  margin: 24px 0 8px;
}

.ck {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ck li {
  position: relative;
  padding: 5px 0 5px 28px;
}

.ck li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--p);
  border-bottom: 2px solid var(--p);
  transform: rotate(-45deg);
}

.pr .grid8 {
  margin-top: 28px;
  background: #fff;
}

.pr .t b {
  font-size: 34px;
}

.pr .t {
  padding: 20px 18px;
}

.pr .t > span {
  font-size: 15px;
  font-weight: 600;
}

.jv {
  position: relative;
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jv::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--ln);
}

.jv li {
  position: relative;
  padding: 0 0 30px 44px;
}

.jv li:last-child {
  padding-bottom: 0;
}

.jv li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cdbfe8;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.jv li.on::before {
  background: var(--p);
  border-color: var(--p);
}

.jv h4 {
  font-size: 24px;
  color: var(--p);
}

.jv p {
  margin: 2px 0 0;
}

.jv b {
  color: var(--ink);
}

.jv a {
  color: var(--p);
  font-weight: 600;
  text-decoration: underline;
}

.inv {
  background: var(--p);
  color: #fff;
  text-align: center;
}

.inv h2 {
  color: #fff;
}

.inv .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0 0;
}

.inv .row a {
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 26px;
  font-weight: 700;
  font-size: 20px;
}

.inv .row a:hover {
  background: #fff;
  color: var(--p);
}

footer {
  background: var(--pd);
  color: #cdbfe8;
  font-size: 15px;
  padding: 56px 0 28px;
}

footer .f {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr;
  gap: 36px;
}

footer b {
  display: block;
  color: #fff;
  margin-bottom: 10px;
  font-size: 17px;
}

footer img {
  height: 64px;
  background: #fff;
  padding: 6px;
  margin-bottom: 14px;
}

dialog {
  border: 0;
  border-radius: 3px;
  padding: 0;
  width: min(900px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  background: #fff;
}

dialog::backdrop {
  background: rgba(47, 26, 84, 0.75);
}

dialog img {
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: #111;
}

#lc {
  padding: 14px 20px 6px;
  font-size: 16px;
  color: var(--ink);
}

.df {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 14px;
}

.df button {
  padding: 8px 16px;
  border: 1px solid #cdbfe8;
  background: #fff;
  border-radius: 3px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.df button:hover {
  border-color: var(--p);
  color: var(--p);
}

.df .x {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
}

.df .x:hover {
  background: var(--pd);
  color: #fff;
}

.rw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--ln);
}

.rw small {
  display: block;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rw b {
  color: var(--ink);
  font-size: 18px;
  word-break: break-word;
}

.cp {
  flex: none;
  padding: 6px 14px;
  border: 1px solid #cdbfe8;
  background: #fff;
  border-radius: 3px;
  font-weight: 600;
  color: var(--p);
  cursor: pointer;
  min-width: 78px;
}

.cp:hover {
  border-color: var(--p);
}

.cp.ok {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

.ph2 img {
  width: 100%;
  border-radius: 3px;
  aspect-ratio: 601/307;
  object-fit: cover;
}

.btn.p {
  background: var(--p);
}

.btn.o {
  background: transparent;
  box-shadow: inset 0 0 0 2px #fff;
}

.imp {
  background: var(--pl);
}

.sl {
  position: relative;
}

.tr {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.tr::-webkit-scrollbar {
  display: none;
}

.tr.drag {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.tr > * {
  scroll-snap-align: start;
}

.tr img {
  -webkit-user-drag: none;
  user-select: none;
}

.nw img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--ln);
  margin-bottom: 10px;
}

.nw span {
  display: block;
  font-size: 14.5px;
}

.nw:hover span {
  color: var(--p);
}

.nb {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nb:disabled {
  opacity: 0.3;
  cursor: default;
}

.nb.pv {
  left: -20px;
}

.nb.nx {
  right: -20px;
}

.gl .tr {
  gap: 8px;
}

.gl .tr img {
  flex: 0 0 28%;
  height: 240px;
  object-fit: cover;
}

.gl .pv {
  left: 16px;
}

.gl .nx {
  right: 16px;
}

@media (hover: none) {
  .zm::after {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  section,
  .pr {
    padding: 48px 0;
  }

  html {
    scroll-padding-top: 130px;
  }

  .top .em {
    display: none;
  }

  .mb {
    display: block;
  }

  .nav ul {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 84px;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--ln);
    padding: 8px 24px 16px;
  }

  .nav ul.open {
    display: flex;
  }

  .nav ul a {
    display: block;
    padding: 12px 0;
    border: 0;
  }

  .nav .btn {
    margin-left: auto;
  }

  .ph {
    padding: 44px 0 40px;
  }

  .ph h1 {
    font-size: 36px;
  }

  .ph p {
    font-size: 18px;
  }

  .lead {
    font-size: 19px;
  }

  .trio,
  .inv .row {
    grid-template-columns: 1fr;
  }

  .pr .w {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pr.rev .media {
    order: 0;
  }

  .pr h2 {
    font-size: 28px;
  }

  .grid8,
  .grid8.three {
    grid-template-columns: 1fr 1fr;
  }

  .t b,
  .grid8.three .t b {
    font-size: 32px;
  }

  .jv h4 {
    font-size: 21px;
  }

  footer .f {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 48px 0;
  }

  .grid8 {
    grid-template-columns: 1fr 1fr;
  }

  .t b {
    font-size: 34px;
  }

  .gl .tr img {
    flex-basis: 70%;
  }

  .nb.pv {
    left: -8px;
  }

  .nb.nx {
    right: -8px;
  }
}

@media (max-width: 480px) {
  .nav .btn {
    display: none;
  }

  .nav .mb {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .jv li::before {
    transition: none;
  }
}

/* ---------- Forms (.fm): used on Support and Contact ---------- */

.fm {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 3px;
  padding: 28px;
}

.fm .in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.fm .full {
  grid-column: 1 / -1;
}

.fm label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}

.fm label i {
  font-style: normal;
  color: #b3261e;
}

.fm input,
.fm select,
.fm textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #b9aad6;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}

.fm textarea {
  min-height: 120px;
  resize: vertical;
}

.fm input:focus,
.fm select:focus,
.fm textarea:focus {
  outline: 3px solid var(--o);
  outline-offset: 0;
  border-color: var(--p);
}

.fm [aria-invalid="true"] {
  border-color: #b3261e;
}

.er {
  color: #b3261e;
  font-size: 14px;
  min-height: 1px;
  margin: 3px 0 0;
}

.fm .act {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.fm .msg {
  font-size: 15px;
  margin: 0;
  max-width: 520px;
}

@media (max-width: 860px) {
  .fm .in {
    grid-template-columns: 1fr;
  }

  .fm {
    padding: 20px;
  }
}

/* ---------- Language switch in the top bar ---------- */

.top .r {
  display: flex;
  align-items: center;
}

.top .em::after {
  content: "|";
  margin: 0 10px;
}

.top .lg a {
  color: inherit;
}

.top .lg a:hover {
  text-decoration: underline;
}

.top .lg a[aria-current="true"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Floating WhatsApp button (footer.php, every page) ---------- */

.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.wa:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.wa:focus-visible {
  outline: 3px solid var(--pd);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .wa {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa {
    transition: none;
  }
}
