:root {
  --ink: #2e3b2a;
  --muted: #5b6656;
  --rose: #c2406a;
  --rose-deep: #9f2f54;
  --orange: #e8863a;
  --leaf: #5f8f2e;
  --leaf-deep: #3f6420;
  --gold: #e9b23a;
  --petal: #fdeef0;
  --sun: #fff5de;
  --line: #ecd6d9;
  --white: #fff;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --deva: "Noto Serif Devanagari", "Nirmala UI", serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--white); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: 0 0 .5em; }
h3 { font-size: 1.5rem; margin: 0 0 .3em; }
p { margin: 0 0 1em; }
a { color: var(--rose-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 66rem; margin: 0 auto; padding: 3rem 1.25rem; }
.prose { max-width: 44rem; }
.tint { background: var(--petal); }
.sun { background: var(--sun); }

.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .6rem 1.25rem; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 42px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; line-height: 1; display: flex; flex-direction: column; }
.brand-name small { font: 600 .72rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--rose-deep); border-color: var(--rose); }
.nav-toggle { display: none; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: .35rem .75rem; font: inherit; }

/* Split hero: text on the left, square photo carousel on the right. Stacks on small screens (photo first). */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem clamp(2rem, 5vw, 4.5rem); max-width: 72rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) 1.5rem; background: var(--white); }
.hero .carousel { order: 2; }
.hero-copy { order: 1; color: var(--ink); text-align: left; }
.hero-copy h1 { margin: 0 0 .4em; }
.hero-copy .lead { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem .8rem; }
.hero-actions .button { margin: .5rem 0 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: none; }

.button { display: inline-block; margin: .5rem .75rem 0 0; padding: .7rem 1.5rem; border-radius: 999px; background: var(--rose); color: var(--white); font-weight: 700; text-decoration: none; border: 2px solid var(--rose); }
.button:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.button.whatsapp { display: inline-flex; align-items: center; gap: .5rem; background: #117a3c; border-color: #117a3c; color: var(--white); }
.button.whatsapp:hover { background: #0c5f2e; border-color: #0c5f2e; }
.button.small { padding: .45rem 1.1rem; font-size: .95rem; margin-top: .25rem; }
.button.ghost { background: transparent; color: var(--rose-deep); }
.button.ghost:hover { background: var(--white); }

.ways { display: grid; gap: 1.75rem 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.way { border-left: 5px solid var(--rose); padding-left: 1.1rem; }
.way:nth-child(2) { border-color: var(--orange); }
.way:nth-child(3) { border-color: var(--gold); }
.way:nth-child(4) { border-color: var(--leaf); }
.way { display: flex; flex-direction: column; }
.way p { margin: 0; color: var(--muted); }
.way-img { margin: auto 0 0; padding-top: 1rem; }
.way-img a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.way-img img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.way-img a:hover img { transform: scale(1.03); }

/* Hero carousel (controls are added by main.js) */
.carousel { position: relative; width: 100%; }
.carousel-viewport { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 18px; background: var(--ink); box-shadow: 0 8px 28px rgba(46, 59, 42, .18); }
.carousel-track { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; transition: transform .5s ease; }
.slide { flex: 0 0 100%; min-width: 0; height: 100%; }
/* Each photo is shown whole (never cropped); a blurred copy of the same photo fills the spare space at the sides */
.slide { position: relative; overflow: hidden; background: var(--ink); }
.slide::before { content: ""; position: absolute; inset: -2rem; background: var(--bg) center / cover no-repeat; filter: blur(22px) brightness(.8); transform: scale(1.05); }
.slide img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.slide-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; border: 2px dashed var(--rose); background: linear-gradient(160deg, var(--white), var(--sun)); color: var(--rose-deep); font-weight: 600; }
.carousel-btn { z-index: 4; position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rose-deep); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: pointer; }
.carousel-btn:hover { background: var(--white); color: var(--rose); }
.carousel-btn.prev { left: .6rem; }
.carousel-btn.next { right: .6rem; }
.carousel-bar { position: absolute; left: 0; right: 0; bottom: .6rem; z-index: 4; display: flex; align-items: center; justify-content: center; gap: .75rem; }
.carousel-dots { display: flex; }
.carousel-dot { position: relative; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel-dot::before { content: ""; position: absolute; inset: .45rem; border-radius: 50%; background: rgba(255, 255, 255, .45); border: 1px solid var(--white); }
.carousel-dot.active::before { background: var(--white); }
.carousel-toggle { display: flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; padding: 0; border: 1px solid var(--rose); border-radius: 50%; background: var(--white); color: var(--rose-deep); cursor: pointer; }
.carousel-toggle:hover { background: var(--rose); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .carousel-track, .way-img img, .gallery img { transition: none; } }

/* Gallery page: columns keep each photo's own proportions */
.gallery { list-style: none; margin: 2rem 0 0; padding: 0; column-width: 16rem; column-gap: 1rem; }
.gallery li { break-inside: avoid; margin: 0 0 1rem; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--petal); box-shadow: 0 4px 14px rgba(159, 47, 84, .12); }
.gallery img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.03); }

/* Lightbox (built by main.js) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: var(--white); }
.lightbox::backdrop { background: rgba(20, 24, 18, .88); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.lightbox img { display: block; max-width: 92vw; max-height: calc(92vh - 3rem); width: auto; height: auto; border-radius: 8px; background: var(--white); }
.lightbox figcaption { font-size: .95rem; text-align: center; max-width: 40rem; }
.lightbox-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rose-deep); cursor: pointer; }
.lightbox-btn:hover { background: var(--white); color: var(--rose); }
.lightbox-btn.close { top: .75rem; right: .75rem; }
.lightbox-btn.prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox-btn.next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox-btn[hidden] { display: none; }

.dims { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.dims li { padding: .45rem 1.1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; }

.verse { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.sanskrit { font-family: var(--deva); font-size: 1.5rem; line-height: 1.8; margin: 0 0 .75rem; }
.translit { font-style: italic; color: var(--muted); }
.source { font-size: .9rem; color: var(--muted); }
blockquote { margin: 0; }

/* Justified body text on every page. Words are never split across lines. */
main p, main li { text-align: justify; text-wrap: pretty; hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal; }
.cta p, .sanskrit, .translit, .source, .eyebrow, .foot-title, .role, .photo-slot, .slide-placeholder, .dims li, .week h3 span { text-align: left; hyphens: manual; }
.cta p { text-align: center; }
.sanskrit, .translit, .source { text-align: left; }

.weeks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.week { padding: 1.4rem; border-radius: 14px; background: var(--petal); }
.week:nth-child(2) { background: var(--sun); }
.week:nth-child(3) { background: #eef5e4; }
.week h3 span { display: block; font: 700 .85rem/1.6 var(--sans); color: var(--rose-deep); }
.week:nth-child(2) h3 span { color: #a45a14; }
.week:nth-child(3) h3 span { color: var(--leaf-deep); }
.week ul, .plain-list { margin: 0; padding-left: 1.2rem; }

.service-row { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem 2.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.service-row:first-of-type { border-top: 0; }
.service-row h2 { font-size: 1.8rem; margin: 0; }
.service-row ul { margin: 0 0 1em; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: .8rem; }


.person { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem 3rem; align-items: start; padding-block: 2rem; }
.person + .person { border-top: 1px solid var(--line); }
.photo-slot { aspect-ratio: 1 / 1; border: 2px dashed var(--rose); border-radius: 50%; background: var(--petal); display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; color: var(--rose-deep); font-weight: 600; font-size: .95rem; }
.photo-slot.has-photo { border: 0; padding: 0; background: none; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.role { font-family: var(--serif); font-size: 1.3rem; color: var(--rose-deep); margin: 0 0 .8rem; }
.creds { list-style: none; padding: 0; margin: 0 0 1rem; }
.creds li { padding: .15rem 0; }

.cta { background: var(--leaf-deep); color: var(--white); text-align: center; }
.cta .wrap { padding-block: 3.5rem; }
.cta p { color: #e6f0da; }
.cta a.button { background: var(--white); color: var(--leaf-deep); border-color: var(--white); }
.cta a.button:hover { background: var(--sun); }
.cta a.button.whatsapp { background: transparent; color: var(--white); border-color: var(--white); }
.cta a.button.whatsapp:hover { background: var(--white); color: var(--leaf-deep); }
.site-footer { background: var(--petal); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem 2rem; padding-block: 2.25rem; }
.foot-brand { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 .3em; }
.site-footer nav { display: flex; flex-direction: column; gap: .3rem; }
.site-footer .fine { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); margin: 0; border-top: 1px solid var(--line); padding-top: 1rem; }

.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 1.15rem; }
.contact-list li { padding: .3rem 0; }

@media (max-width: 960px) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .verse, .person, .service-row, .foot-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 1rem; }
  .hero .carousel { order: 1; }
  .hero-copy { order: 2; }
  .service-row ul { columns: 1; }
  .person .photo-slot { max-width: 14rem; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: .25rem; }
  .site-nav.open { display: flex; }
}
@media (max-width: 520px) {
  .ways { grid-template-columns: 1fr; }
}

/* ================================================================== *
 * Visual polish (loaded last, so it refines the rules above)
 * ================================================================== */
:root { --shadow-sm: 0 2px 10px rgba(46, 59, 42, .08); --shadow-md: 0 10px 30px rgba(46, 59, 42, .12); --radius: 16px; }
html { scroll-behavior: smooth; }
::selection { background: var(--gold); color: var(--ink); }
body {
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(52rem 26rem at 92% -6rem, rgba(253, 238, 240, .95), transparent 70%),
    radial-gradient(40rem 22rem at -4% 6rem, rgba(255, 245, 222, .9), transparent 70%),
    var(--white);
  background-repeat: no-repeat;
}
h1, h2, h3 { color: var(--ink); letter-spacing: -.005em; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.wrap { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

/* Header: stays in view, soft glass effect */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(46, 59, 42, .04); }
.brand img { transition: transform .3s ease; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.site-nav { align-items: center; gap: .15rem .35rem; }
.site-nav a { padding: .4rem .85rem; border: 0; border-radius: 999px; transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--petal); color: var(--rose-deep); }
.site-nav a.active { background: var(--petal); color: var(--rose-deep); box-shadow: inset 0 0 0 1px var(--line); }
.site-nav a.nav-cta { margin-left: .5rem; background: var(--rose); color: var(--white); font-weight: 700; box-shadow: 0 4px 12px rgba(194, 64, 106, .28); }
.site-nav a.nav-cta:hover { background: var(--rose-deep); color: var(--white); }

/* Hero */
.eyebrow { display: inline-block; margin: 0 0 1rem; padding: .3rem .9rem; border-radius: 999px; background: var(--petal); border: 1px solid var(--line); color: var(--rose-deep); font: 700 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: left; }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; }
.hero-copy .lead { font-size: 1.25rem; }
.carousel-viewport { border-radius: 24px; box-shadow: var(--shadow-md); outline: 6px solid rgba(255, 255, 255, .9); }

/* Buttons */
.button { transition: transform .18s ease, box-shadow .18s ease, background .2s, color .2s; box-shadow: 0 4px 14px rgba(194, 64, 106, .25); }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(194, 64, 106, .3); }
.button.ghost { box-shadow: none; }
.button.ghost:hover { background: var(--petal); box-shadow: none; }
.button.whatsapp { box-shadow: 0 4px 14px rgba(17, 122, 60, .25); }
.cta a.button { box-shadow: none; }

/* Section headings get a small accent bar */
.wrap > h2::after, .wrap > div > h2::after { content: ""; display: block; width: 3.25rem; height: 4px; margin-top: .5rem; border-radius: 4px; background: linear-gradient(90deg, var(--rose), var(--orange), var(--gold)); }
.cta h2::after { margin-inline: auto; }
.wrap > .lead { margin-bottom: 2rem; }

/* Cards */
.way { background: var(--white); border: 1px solid var(--line); border-left-width: 1px; border-top: 5px solid var(--rose); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.way:nth-child(2) { border-top-color: var(--orange); }
.way:nth-child(3) { border-top-color: var(--gold); }
.way:nth-child(4) { border-top-color: var(--leaf); }
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.way h3 { margin-bottom: .45rem; }
.way-img a { border-radius: 12px; }
.tint .way { background: var(--white); }
.week { border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(255, 255, 255, .8); transition: transform .2s ease, box-shadow .2s ease; }
.week:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.week h3 { font-size: 1.65rem; }
.tint { background: linear-gradient(180deg, var(--petal), #fff7f8); }
.sun { background: linear-gradient(180deg, var(--sun), #fffaf0); }
li::marker { color: var(--rose); }
.service-row { padding: 2.5rem 0; }
.service-row h2 { color: var(--rose-deep); }
.service-row h2::after { display: none; }

/* Verse */
.verse blockquote { padding: 1.75rem 1.75rem 1.5rem; border-radius: var(--radius); background: var(--sun); border-left: 5px solid var(--gold); box-shadow: var(--shadow-sm); }
.sanskrit { color: var(--rose-deep); }

/* Call-to-action band and footer */
.cta { background: linear-gradient(135deg, var(--leaf-deep), #2f4d17); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(circle, rgba(233, 178, 58, .28), transparent 70%); }
.cta .wrap { position: relative; }
.cta h2 { color: var(--white); }
.site-footer { border-top: 0; background: linear-gradient(180deg, var(--petal), #fbe3e8); }
.foot-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 1.75rem 2.5rem; }
.foot-title { margin: 0 0 .35rem; font: 700 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); text-align: left; }
.site-footer nav a { color: var(--ink); text-decoration: none; width: fit-content; }
.site-footer nav a:hover { color: var(--rose-deep); text-decoration: underline; }
.site-footer nav p.foot-title { text-align: left; }

/* Legal pages and 404 */
.legal h2 { font-size: 1.55rem; margin-top: 2rem; }
.legal h2::after { display: none; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: .4rem; }
.updated { color: var(--muted); font-size: .95rem; text-align: left; }
.error-page { text-align: center; padding-block: clamp(3.5rem, 10vw, 7rem); }
.error-page p, .error-page h1 { text-align: center; }
.error-page .lead { margin-inline: auto; max-width: 34rem; }
.error-page .hero-actions { justify-content: center; }
.error-code { margin: 0; font: 500 clamp(6rem, 22vw, 11rem)/1 var(--serif); background: linear-gradient(135deg, var(--rose), var(--orange) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Gentle fade-in as sections scroll into view (added by main.js; never hides content without JavaScript) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .way.reveal.in:hover { transform: translateY(-4px); }
.js .week.reveal.in:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } .button, .way, .week { transition: none; } }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; }
  .site-nav a { padding: .55rem .9rem; }
  .site-nav a.nav-cta { margin: .4rem 0 .2rem; text-align: center; }
  .site-header { position: sticky; }
  .carousel-viewport { border-radius: 18px; outline-width: 4px; }
}
