/* Sadguru Athreya — sadguruathreya.in
   Palette drawn from the portrait: dusk-blue sky, marigold, kumkum. */
:root {
  --night: #131F52;
  --night-2: #1C2C6B;
  --mist: #EEF2F9;
  --white: #FFFFFF;
  --ink: #1A2240;
  --ink-soft: #4A5378;
  --marigold: #E8A317;
  --marigold-deep: #B97E06;
  --kumkum: #9E1B32;
  --line: #D5DCEC;

  --display: "Marcellus", "Georgia", serif;
  --body: "Hind", "Segoe UI", system-ui, sans-serif;
  --sanskrit: "Tiro Devanagari Sanskrit", serif;
  --telugu: "Tiro Telugu", "Noto Sans Telugu", "Nirmala UI", "Gautami", serif;

  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--night-2); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--night); }
h3 { font-size: 1.375rem; color: var(--night); }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--night);
  background: var(--marigold);
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--marigold);
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: #F2B93A; border-color: #F2B93A; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-small { padding: 8px 16px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 31, 82, .96);
  backdrop-filter: blur(8px);
  color: var(--white);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em;
}
.wordmark-mark {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--marigold);
  box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 7px rgba(232,163,23,.55);
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: rgba(255,255,255,.85); text-decoration: none; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--white); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--marigold); }
.nav-toggle {
  display: none; font: inherit; font-weight: 600;
  color: var(--white); background: none;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 16px; cursor: pointer;
}

/* Hero */
.hero {
  background:
    radial-gradient(60% 80% at 78% 40%, rgba(232,163,23,.16), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--white);
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-lineage { color: var(--marigold); font-size: 1.05rem; margin-bottom: 18px; }
.hero-name {
  font-size: clamp(3.75rem, 9vw, 7.5rem);
  line-height: .95;
  letter-spacing: -.01em;
  margin-bottom: 28px;
  color: #F7F2E6;
}
.hero-lede { font-size: 1.2rem; color: rgba(255,255,255,.82); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* The halo: concentric rings around the portrait, like a prabhavali */
.halo {
  position: relative; margin: 0 auto;
  width: min(440px, 78vw); aspect-ratio: 1;
  display: grid; place-items: center;
}
.halo img {
  position: relative; z-index: 2;
  width: 78%; height: auto;
  border-radius: 50%;
  box-shadow: 0 30px 80px rgba(5, 10, 40, .55);
}
.ring { position: absolute; inset: 0; border-radius: 50%; }
.ring-1 { border: 1.5px solid var(--marigold); }
.ring-2 { inset: 5.5%; border: 1px dashed rgba(232,163,23,.55); }
.ring-3 { inset: -9%; border: 1px solid rgba(255,255,255,.12); }

@media (prefers-reduced-motion: no-preference) {
  .halo img { animation: rise .9s ease-out both; }
  .ring-3 { animation: ring-in 1s .15s ease-out both; }
  .ring-1 { animation: ring-in 1s .3s ease-out both; }
  .ring-2 { animation: ring-in 1s .45s ease-out both, turn 120s 1.5s linear infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ring-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes turn { to { transform: rotate(360deg); } }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--white); }
.section-head { margin-bottom: 44px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.col-title { font-size: 1.25rem; margin-top: .4em; }

.teachings { margin: 0; display: grid; gap: 0; }
.teachings > div { padding: 16px 0; border-top: 1px solid var(--line); }
.teachings > div:last-child { border-bottom: 1px solid var(--line); }
.teachings dt { font-family: var(--display); font-size: 1.3rem; color: var(--kumkum); }
.teachings dd { margin: 2px 0 0; color: var(--ink-soft); }

/* Quote band: a highlight from Nandakam */
.quote-band { background: var(--night); color: var(--white); padding: 72px 0; text-align: center; }
.quote-band figure { margin: 0 auto; max-width: 860px; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p {
  font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.35;
  color: #F7F2E6; margin: 0 auto 20px; max-width: 34ch;
}
.quote-band blockquote p::before { content: "“"; color: var(--marigold); }
.quote-band blockquote p::after { content: "”"; color: var(--marigold); }
.quote-band figcaption { color: var(--marigold); font-size: 1rem; }
.quote-band cite { font-style: italic; }

/* About: timeline + ladder */
.timeline { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.timeline li { border-left: 3px solid var(--marigold); padding: 2px 0 2px 14px; color: var(--ink-soft); font-size: .98rem; line-height: 1.45; }
.timeline span { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--night); }
.gurudev { margin: 0 0 40px; text-align: center; }
.gurudev img { width: min(300px, 100%); height: auto; margin: 0 auto; border-radius: 2px; box-shadow: 0 18px 40px rgba(19,31,82,.22); }
.gurudev figcaption { margin-top: 14px; font-family: var(--display); font-size: 1.15rem; color: var(--night); }
.gurudev figcaption span { display: block; font-family: var(--telugu); font-size: .98rem; color: var(--ink-soft); margin-top: 2px; }
.col-intro { color: var(--ink-soft); }
.ladder { list-style: none; counter-reset: l; padding: 0; margin: 0; }
.ladder li { counter-increment: l; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--line); display: grid; }
.ladder li:last-child { border-bottom: 1px solid var(--line); }
.ladder li::before {
  content: counter(l); position: absolute; left: 0; top: 16px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); color: var(--kumkum); border: 1.5px solid var(--kumkum);
}
.ladder li:last-child::before { background: var(--marigold); border-color: var(--marigold); color: var(--night); }
.ladder strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--kumkum); }
.ladder span { color: var(--ink-soft); }

/* Interviews */
.videos { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video h3 { font-size: 1.25rem; margin: 14px 0 4px; }
.video p { color: var(--ink-soft); margin: 0; }
.video-thumb, .video iframe { position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--night); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(19,31,82,.85); border: 2px solid var(--marigold); transition: transform .15s;
}
.play::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent var(--marigold); }
.video-thumb:hover .play { transform: scale(1.08); }
.dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: .82rem; padding: 2px 8px; border-radius: 6px; }

/* Schedule */
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.slot { background: var(--night); color: var(--white); border-radius: var(--radius); padding: 28px 30px; }
.slot h3 { color: var(--white); margin-bottom: 6px; }
.slot-days { color: var(--marigold); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; margin-bottom: 8px; }
.slot-time { font-family: var(--display); font-size: 1.9rem; color: #F7F2E6; margin-bottom: 10px; }
.slot p:last-child { color: rgba(255,255,255,.78); margin: 0; }
.schedule-actions, .join-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.join-actions { justify-content: center; }
.btn-outline { background: transparent; color: var(--night); border-color: var(--night); }
.btn-outline:hover { background: var(--night); border-color: var(--night); color: var(--white); }
.zoom-id { margin: 14px 0 0; font-size: .95rem; color: var(--ink-soft); }

/* Section heads with a programme logo */
.with-logo { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; }
.logo-badge { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line); }

/* Satsang */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.vm > div { border-left: 3px solid var(--marigold); padding-left: 20px; }
.vm p { color: var(--ink-soft); margin: 0; }

.branches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.branches a {
  display: block; height: 100%;
  padding: 26px 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
.branches a:hover { border-color: var(--marigold); }
.branches strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--night); margin-bottom: 6px; }
.branches span { color: var(--ink-soft); }

/* Seva */
.seva-items { display: flex; gap: 28px; margin-top: 28px; }
.seva-items figure { margin: 0; text-align: center; }
.seva-items svg {
  width: 64px; height: 64px; padding: 12px;
  border-radius: 50%; background: var(--mist);
  fill: none; stroke: var(--kumkum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.seva-items figcaption { margin-top: 8px; font-size: .95rem; color: var(--ink-soft); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 20px; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); color: var(--night); background: var(--marigold);
}
.steps strong { color: var(--ink); font-weight: 600; }
.note { font-size: .95rem; color: var(--ink-soft); font-style: italic; }

/* Classes */
.class-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; margin-bottom: 40px; }
.facts { align-self: start; margin: 0; background: var(--night); color: var(--white); border-radius: var(--radius); padding: 10px 28px; }
.facts > div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--marigold); font-size: .95rem; }
.facts dd { margin: 2px 0 0; font-size: 1.15rem; }
.facts a { color: var(--marigold); font-weight: 600; text-underline-offset: 3px; }
.facts a:hover { color: #FFD27A; }

.weeks { list-style: none; padding: 0; margin: 0 0 20px; position: relative; }
.weeks::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.weeks li { position: relative; padding: 0 0 22px 36px; display: grid; }
.weeks li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--mist); border: 3px solid var(--marigold);
}
.weeks .wk { font-size: .92rem; color: var(--marigold-deep); font-weight: 600; }
.weeks strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--night); }
.weeks li > span:last-child { color: var(--ink-soft); }
.focus { color: var(--ink-soft); }

/* GenZ */
.genz { background: var(--kumkum); color: var(--white); padding: 96px 0; }
.genz h2 { color: var(--white); }
.genz-motto { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: #FFD27A; line-height: 1.2; }
.genz p { color: rgba(255,255,255,.88); }
.pillars { list-style: none; padding: 0; margin: 0; }
.pillars li { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.25); display: grid; gap: 2px; }
.pillars li:last-child { border-bottom: 1px solid rgba(255,255,255,.25); }
.pillars strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.pillars span { color: rgba(255,255,255,.8); }

/* Books */
.book { display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: center; }
.book-feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 36px; }
.book-spine {
  height: 136px; border-radius: 4px 10px 10px 4px;
  background: linear-gradient(90deg, #0E1740 0 10px, var(--night) 10px);
  color: var(--marigold);
  font-family: var(--telugu); font-size: 1rem; line-height: 1.3; word-break: break-word;
  display: grid; place-items: center; text-align: center; padding: 8px 8px 8px 18px;
  box-shadow: 6px 8px 0 rgba(19,31,82,.12);
}
.book p { color: var(--ink-soft); margin: 0; }
.book .book-tag { color: var(--marigold-deep); font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.book .book-free { color: var(--ink); font-weight: 600; margin: 18px 0 10px; }
.book-downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.book-downloads .btn small { font-weight: 400; font-size: .85rem; opacity: .75; margin-left: 4px; }
.book-downloads .te { font-family: var(--telugu); }
.book-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.book-list li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; }
.book-list strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--night); }
.book-list span { color: var(--ink-soft); font-size: .98rem; }

/* App */
.app-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.badge-soon {
  display: grid; padding: 12px 22px; border-radius: 12px;
  border: 1.5px dashed var(--ink-soft); color: var(--ink);
  font-weight: 600; min-width: 160px;
}
.badge-soon small { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0; position: relative;
  font-family: var(--display); font-size: 1.3rem; color: var(--night);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--body); font-size: 1.6rem; color: var(--marigold-deep); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); padding-bottom: 12px; }

/* Join */
.join { background: var(--night); color: var(--white); padding: 88px 0; text-align: center; }
.join h2 { color: var(--white); }
.join p { margin: 0 auto 28px; color: rgba(255,255,255,.8); }

/* Footer */
.site-footer { background: #0D1640; color: rgba(255,255,255,.7); padding: 40px 0; font-size: .95rem; }
.footer-row { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; }
.footer-name { font-family: var(--display); font-size: 1.3rem; color: var(--white); margin: 0; }
.footer-row p { margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.85); }
.footer-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-nav a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.copyright { max-width: none; grid-column: 1 / -1; padding-top: 4px; font-size: .88rem; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--night); padding: 12px 24px 24px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; font-size: 1.1rem; }
  .site-nav .btn { margin-top: 10px; }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid, .two-col, .class-grid, .app-row, .vm, .schedule, .book-list, .videos { grid-template-columns: 1fr; gap: 40px; }
  .halo { order: -1; width: min(340px, 72vw); }
  .branches { grid-template-columns: 1fr; }
  .store-badges { justify-content: flex-start; }
  .section, .genz { padding: 72px 0; }
  .footer-row { grid-template-columns: 1fr; }
  .with-logo { grid-template-columns: 1fr; gap: 20px; }
  .logo-badge { width: 140px; height: 140px; }
  .book { grid-template-columns: 72px 1fr; gap: 18px; }
  .book-feature { padding: 20px; }
  .book-spine { height: 108px; }
}
@media (max-width: 420px) {
  .timeline { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}
