:root {
  --cream: #FBF5E9;
  --cream-deep: #F4E9D3;
  --paper: #FFFCF5;
  --maroon: #6B1E23;
  --maroon-deep: #3A0D10;
  --saffron: #D9731A;
  --saffron-light: #E6862F;
  --gold: #B8892B;
  --gold-light: #E6C57A;
  --ink: #2B1D16;
  --ink-soft: #5A463A;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header: 4rem;
}

:root:lang(hi) {
  --serif: "Noto Serif Devanagari", "Cormorant Garamond", Georgia, serif;
  --sans: "Noto Sans Devanagari", "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}
:root:lang(hi) body { line-height: 1.8; }

h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--maroon);
  line-height: 1.15;
  text-wrap: balance;
}
:root:lang(hi) :is(h1, h2, h3) { line-height: 1.4; font-weight: 600; }

a { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.center { text-align: center; }
.defs { position: absolute; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -5rem; left: 1rem;
  z-index: 30;
  padding: .6rem 1rem;
  background: var(--maroon);
  color: var(--cream);
}
.skip:focus { top: .5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--gold);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  min-height: var(--header);
}
.brand {
  margin-right: auto;
  font: 700 1.4rem/1.2 var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
:root:lang(hi) .brand { font-size: 1.2rem; font-weight: 600; }

.lang {
  display: flex;
  border: 1px solid var(--maroon);
  border-radius: 99px;
  overflow: hidden;
}
.lang button {
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: 0 .65rem;
  border: 0;
  background: none;
  color: var(--maroon);
  font: 600 .9rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--maroon); color: var(--cream); }
.lang button:focus-visible { outline-offset: -4px; outline-color: var(--saffron); border-radius: 99px; }

.menu-btn {
  display: none;
  width: 2.75rem; height: 2.75rem;
  padding: .6rem;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-btn svg { fill: none; stroke: var(--maroon); stroke-width: 2; stroke-linecap: round; }

.nav ul { display: flex; flex-wrap: wrap; }
.nav a {
  display: block;
  padding: .6rem .8rem;
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: .35em; }

@media (max-width: 55.99rem) {
  .js .menu-btn { display: block; }
  .nav { order: 4; width: 100%; }
  .js .nav { display: none; }
  .js .nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0;
    max-height: calc(100vh - var(--header));
    overflow-y: auto;
    padding: .5rem .5rem 1rem;
    background: var(--cream);
    border-bottom: 1px solid var(--gold);
    box-shadow: 0 12px 20px rgb(58 13 16 / .12);
  }
  .js .nav ul { flex-direction: column; }
  .js .nav a { padding: .75rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: .75rem 1.4rem;
  border: 2px solid var(--saffron);
  border-radius: 4px;
  background: var(--saffron);
  color: var(--maroon-deep);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s;
}
.btn:hover { background: var(--saffron-light); }
.btn-large { padding: .95rem 1.9rem; font-size: 1.125rem; }
.btn-outline { background: none; border-color: var(--maroon); color: var(--maroon); }
.btn-outline:hover { background: var(--cream-deep); }

/* ---------- Sections ---------- */

section { padding: 4rem 0; }
.tint { background: var(--cream-deep); }
section h2 { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); text-align: center; }
:root:lang(hi) section h2 { font-size: clamp(1.7rem, 1.4rem + 1.5vw, 2.3rem); }

.divider {
  width: 3rem; height: 1.5rem;
  margin: .9rem auto 2rem;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
}
/* the fine gold lines either side of the lotus */
section h2 + .divider {
  box-sizing: content-box;
  padding-inline: 5.5rem;
  background:
    linear-gradient(90deg, transparent, var(--gold)) left center / 4.75rem 1px no-repeat,
    linear-gradient(270deg, transparent, var(--gold)) right center / 4.75rem 1px no-repeat;
}

.intro { max-width: 38rem; margin: 0 auto 2.25rem; text-align: center; color: var(--ink-soft); }

/* ---------- Hero ---------- */

.hero {
  padding: 2.5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20px 30px, rgb(184 137 43 / .3) 1.2px, transparent 1.8px) 0 0 / 190px 170px,
    radial-gradient(circle at 120px 90px, rgb(184 137 43 / .25) 1px, transparent 1.6px) 0 0 / 230px 210px,
    var(--cream);
}
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
.hero-text { text-align: center; }
.role { font-weight: 600; color: var(--ink-soft); font-size: 1.125rem; }
.hero h1 { margin: .15rem 0 .5rem; font-size: clamp(2.9rem, 2rem + 4.6vw, 5rem); font-weight: 700; line-height: 1; }
:root:lang(hi) .hero h1 { font-size: clamp(2.4rem, 1.7rem + 3.4vw, 4rem); line-height: 1.35; }
.years { font: 600 1.6rem/1.3 var(--serif); color: var(--maroon); }
:root:lang(hi) .years { font-size: 1.35rem; line-height: 1.6; }
.tagline { max-width: 30rem; margin: 1rem auto 1.9rem; font-size: 1.1875rem; }

.portrait { position: relative; width: min(70vw, 19rem); margin-inline: auto; }
.mandala {
  position: absolute;
  top: 50%; left: 50%;
  width: 165%; height: auto;
  max-width: none;
  aspect-ratio: 1;
  margin: -82.5% 0 0 -82.5%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: .42;
  animation: turn 240s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }

.arch {
  position: relative;
  padding: .6rem;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px;
  box-shadow: 0 0 0 .4rem var(--cream), 0 0 0 calc(.4rem + 1px) var(--gold);
}
.portrait-art, .portrait-photo {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 50% 50% 2px 2px / 40% 40% 2px 2px;
}
.art-mandala { fill: none; stroke: #E6C57A; stroke-width: 1.2; opacity: .6; }
.art-lotus { fill: none; stroke: #E6C57A; stroke-width: 1; }

/* ---------- About ---------- */

.about-grid { display: grid; gap: 2.5rem; }
.about-text { display: grid; gap: 1.1rem; align-content: start; max-width: 40rem; }
.about-text p:first-child { font: 600 1.45rem/1.4 var(--serif); color: var(--maroon); }
:root:lang(hi) .about-text p:first-child { font-size: 1.2rem; line-height: 1.75; }
.areas { padding-top: 1.5rem; border-top: 1px solid var(--gold); align-self: start; }
.areas h3 { margin-bottom: .75rem; font-size: 1.5rem; }
:root:lang(hi) .areas h3 { font-size: 1.3rem; }
.areas li { position: relative; padding: .3rem 0 .3rem 1.5rem; }
.areas li::before {
  content: "";
  position: absolute;
  left: .2rem; top: calc(.3rem + .82em - .25rem);
  width: .5rem; height: .5rem;
  border: 1.5px solid var(--saffron);
  transform: rotate(45deg);
}

/* ---------- Services ---------- */

.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid #DDC592;
  border-radius: 4px;
}
.card-icon { width: 2.5rem; margin-bottom: .9rem; }
.card-icon svg { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.card h3 { font-size: 1.6rem; }
:root:lang(hi) .card h3 { font-size: 1.35rem; }
.card-text { margin-top: .5rem; color: var(--ink-soft); }
.facts { display: grid; gap: .25rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid #E9D9B5; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { font-weight: 600; text-align: right; min-width: 0; }
.card .btn { margin-top: 1.25rem; }
/* buttons line up along the bottom of each row */
.card-text { flex: 1 0 auto; }

/* ---------- Videos ---------- */

.videos { display: grid; gap: 1.5rem; margin-bottom: 2.25rem; }
.video { width: 100%; max-width: 30rem; margin-inline: auto; }
.video-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--maroon-deep);
  cursor: pointer;
}
.video-btn img, .video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 0; }
.play {
  position: absolute;
  top: 50%; left: 50%;
  width: 3.75rem; height: 3.75rem;
  margin: -1.875rem 0 0 -1.875rem;
  border-radius: 50%;
  background: var(--maroon);
  border: 2px solid var(--gold-light);
}
.play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  border: solid transparent;
  border-width: .65rem 0 .65rem 1.05rem;
  border-left-color: var(--cream);
  transform: translate(-50%, -50%);
}
.video-btn:hover .play { background: var(--maroon-deep); }
.video-title { margin-top: .5rem; font-weight: 600; }

/* ---------- Testimonials ---------- */

.quotes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.quotes li { width: 100%; }
.quote { height: 100%; padding: 1.5rem; background: var(--paper); border: 1px solid #DDC592; border-radius: 4px; }
.quote blockquote { font: 600 1.3rem/1.45 var(--serif); }
:root:lang(hi) .quote blockquote { font-size: 1.1rem; line-height: 1.75; }
.quote figcaption { margin-top: 1rem; color: var(--ink-soft); }
.quote figcaption span { display: block; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid #DDC592; }
.faq details { border-bottom: 1px solid #DDC592; }
.faq summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--maroon);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .6rem; top: 50%;
  width: .6rem; height: .6rem;
  margin-top: -.5rem;
  border: solid #8A5A12;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -.1rem; }
.faq details p { padding: 0 2.5rem 1.35rem 0; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: 4.25rem 0 2.5rem;
  background: var(--maroon);
  color: #F4E9D3;
  text-align: center;
}
/* temple border */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='22'%3E%3Cg fill='none' stroke='%23E6C57A' stroke-width='1.2'%3E%3Cpath d='M0 1.5h28M0 5h28M2 5l12 13L26 5M8 5l6 6.5L20 5'/%3E%3C/g%3E%3Ccircle cx='0' cy='15' r='1.4' fill='%23E6C57A'/%3E%3Ccircle cx='28' cy='15' r='1.4' fill='%23E6C57A'/%3E%3C/svg%3E") center 0 repeat-x;
}
.site-footer h2 { margin-bottom: .75rem; font-size: 2rem; color: var(--cream); }
:root:lang(hi) .site-footer h2 { font-size: 1.7rem; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem; margin-bottom: 1.75rem; }
.contact-list a { display: inline-block; padding: .5rem 0; color: var(--gold-light); font-weight: 600; text-underline-offset: .25em; }
.site-footer :focus-visible { outline-color: var(--gold-light); }
.note { max-width: 36rem; margin: 0 auto 1rem; font-size: .9375rem; }

/* ---------- 404 ---------- */

.lost { display: grid; place-items: center; min-height: 100vh; padding: 2rem 1.25rem; text-align: center; }
.lost svg { width: 9rem; height: 9rem; margin: 0 auto 1.5rem; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.lost h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.25rem); }
.lost p { margin: .75rem 0 1.75rem; }

/* ---------- Larger screens ---------- */

@media (min-width: 40rem) {
  .card { width: calc(50% - .625rem); }
  .quotes li { width: calc(50% - .625rem); }
  .videos { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}

@media (min-width: 56rem) {
  section { padding: 5.5rem 0; }
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .hero-text { text-align: left; }
  .tagline { margin-inline: 0; }
  .portrait { width: 21rem; }
  .about-grid { grid-template-columns: 1.7fr 1fr; gap: 4rem; }
  .areas { padding: 0 0 0 2rem; border-top: 0; border-left: 1px solid var(--gold); }
  .card, .quotes li { width: calc((100% - 2.5rem) / 3); }
  .lang { order: 5; margin-left: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mandala { animation: none; }
  .btn { transition: none; }
}

/* avoids a double gap while testimonials are hidden */
#videos:has(+ #testimonials[hidden]) { padding-bottom: 0; }
