/* =============================================
   Pandit Anand Bhimsen Joshi — Kirana Gharana vocalist
   ============================================= */

:root {
  --ivory:        #FBF5EA;
  --ivory-dark:   #F3E9D7;
  --white:        #FFFFFF;
  --maroon:       #6D1B2B;
  --maroon-dark:  #4C1220;
  --maroon-light: #8A2E3F;
  --saffron:      #D97B1F;
  --saffron-light:#F0A848;
  --gold:         #B8923F;
  --gold-light:   #D9BD7C;
  --ink:          #2C211C;
  --ink-soft:     rgba(44, 33, 28, 0.78);
  --wa-green:     #25D366;

  --font-display: 'Marcellus', 'Noto Sans Devanagari', serif;
  --font-serif:   'Cormorant Garamond', 'Noto Sans Devanagari', serif;
  --font-sans:    'Karla', 'Noto Sans Devanagari', sans-serif;

  --shadow-soft: 0 10px 30px rgba(109, 27, 43, 0.12);
  --shadow-strong: 0 20px 45px rgba(109, 27, 43, 0.2);
  --radius-md: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--maroon);
  color: var(--ivory);
  padding: 10px 18px;
  z-index: 3000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
  z-index: 2000;
  transition: width 0.12s ease-out;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--maroon);
  color: var(--ivory);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.btn-outline {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}
.btn-outline:hover { background: var(--maroon); color: var(--ivory); transform: translateY(-2px); }
.btn-whatsapp {
  background: var(--wa-green);
  color: var(--white);
}
.btn-whatsapp:hover { opacity: 0.9; transform: translateY(-2px); }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(251, 245, 234, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(109, 27, 43, 0.08);
  padding: 12px 0;
  border-bottom: 1px solid rgba(184, 146, 63, 0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--maroon);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active, .nav-link:hover { color: var(--maroon); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}
.hamburger span {
  width: 24px; height: 1px;
  background: var(--maroon);
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 150px 0 60px;
  overflow: hidden;
}
.hero-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(217, 123, 31, 0.08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(109, 27, 43, 0.08), transparent 50%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: 16px;
}
.eyebrow.center { text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--maroon);
  margin-bottom: 18px;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 440px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  width: fit-content;
  justify-self: center;
}
.portrait-ring {
  position: absolute;
  inset: -18px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
}
.hero-portrait {
  width: 340px; height: 340px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 4px solid var(--ivory);
  box-shadow: var(--shadow-strong);
}

/* ===== Highlights strip ===== */
.highlights { background: var(--maroon); padding: 22px 0; }
.highlights-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}
.highlights-list li {
  color: var(--ivory);
  font-size: 0.95rem;
  position: relative;
  padding-left: 18px;
}
.highlights-list li:first-child { padding-left: 0; }
.highlights-list li::before {
  content: '\2726';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-size: 0.75rem;
}
.highlights-list li:first-child::before { content: none; }

/* ===== Offerings snapshot ===== */
.offerings { padding: 70px 0; }
.offerings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.offering-card {
  display: block;
  background: rgba(243, 233, 215, 0.4);
  border: 1px solid rgba(184, 146, 63, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.offering-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.offering-media { aspect-ratio: 4 / 3; overflow: hidden; }
.offering-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.offering-card:hover .offering-media img { transform: scale(1.06); }
.offering-body { padding: 28px 30px; }
.offering-body h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--maroon); margin-bottom: 2px; }
.offering-deva { font-family: var(--font-serif); color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; }
.offering-body p { color: var(--ink-soft); margin-bottom: 18px; }
.offering-link { font-size: 0.9rem; color: var(--saffron); font-weight: 600; transition: opacity 0.2s ease; }
.offering-card:hover .offering-link { text-decoration: underline; }

/* ===== Section common ===== */
.section { padding: 90px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--maroon);
  margin-bottom: 0;
}
h2.center { text-align: center; }
.rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto 0;
}

/* ===== About ===== */
.about-section { background: var(--ivory-dark); }
.about-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.about-row:last-child { margin-bottom: 0; }
.about-row-reverse { grid-template-columns: 1.3fr 0.7fr; }
.about-row-reverse .about-portrait { order: 2; }
.about-row-reverse .about-copy { order: 1; }
.about-portrait {
  width: 260px; height: 260px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(217, 189, 124, 0.5);
  box-shadow: var(--shadow-soft);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h3 { font-family: var(--font-display); font-size: 1.7rem; color: var(--maroon); margin: 8px 0 16px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 14px; }
.about-copy p:last-child { margin-bottom: 0; }

/* ===== Services / Tabs ===== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  color: var(--maroon);
  border: 1px solid rgba(109, 27, 43, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.tab-btn:hover { border-color: var(--maroon); }
.tab-btn.active { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelFade 0.4s ease; }
@keyframes panelFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.panel-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.panel-col h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--maroon); margin-bottom: 16px; }
.panel-col h3:not(:first-child) { margin-top: 32px; }
.plain-text { color: var(--ink-soft); margin-bottom: 32px; line-height: 1.7; }

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  padding: 6px 0;
}
.tick-list li::before { content: '\2726'; color: var(--gold); margin-top: 2px; font-size: 0.85rem; }

.timeline {
  border-left: 2px solid rgba(217, 189, 124, 0.6);
  padding-left: 24px;
}
.timeline li { position: relative; margin-bottom: 22px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -30px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--maroon); line-height: 1.3; }
.timeline-detail { color: var(--ink-soft); font-size: 0.95rem; }

.offering-block { margin-bottom: 22px; }
.offering-block-title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--maroon); }
.offering-block-detail { color: var(--ink-soft); margin-top: 2px; }

/* ===== Gallery ===== */
.gallery-section { background: var(--ivory-dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--ivory);
  font-size: 0.9rem;
}
.gallery-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: 700;
}
/* ===== YouTube ===== */
.youtube-subscribe {
  margin-top: 24px;
  display: inline-flex;
}
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
}
.youtube-card { display: flex; flex-direction: column; }
.youtube-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
}
.youtube-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.4s ease; }
.youtube-thumb:hover img { transform: scale(1.05); opacity: 0.85; }
.youtube-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(109, 27, 43, 0.88);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.youtube-thumb:hover .youtube-play { background: var(--maroon); transform: translate(-50%, -50%) scale(1.08); }
.youtube-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  display: block;
}
.youtube-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--maroon);
  line-height: 1.35;
}
.youtube-title-deva { display: block; font-family: var(--font-serif); font-size: 1rem; color: var(--gold); margin-top: 2px; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.contact-info h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--maroon); margin-bottom: 20px; }
.contact-item { margin-bottom: 20px; }
.contact-item dt {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--saffron);
  margin-bottom: 4px;
}
.contact-item dd { color: var(--ink-soft); }
.contact-item a:hover { color: var(--maroon); }

.map-embed {
  margin-top: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(184, 146, 63, 0.4);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--saffron);
}
.map-link:hover { color: var(--maroon); text-decoration: underline; }

.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--saffron);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(184, 146, 63, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--maroon);
}
.form-row textarea { resize: vertical; }
.form-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.form-confirm {
  border: 1px solid rgba(184, 146, 63, 0.5);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
}
.form-confirm-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--maroon); margin-bottom: 10px; }
.form-confirm p:not(.form-confirm-title) { color: var(--ink-soft); margin-bottom: 24px; }

/* ===== Footer ===== */
.site-footer { background: var(--maroon-dark); color: rgba(251, 245, 234, 0.8); padding: 32px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}
.footer-deva { font-family: var(--font-serif); color: var(--gold-light); }

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { color: var(--white); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-media { order: -1; margin-bottom: 20px; }
  .hero-portrait { width: 260px; height: 260px; }
  .offerings-grid { grid-template-columns: 1fr; }
  .about-row, .about-row-reverse { grid-template-columns: 1fr; text-align: center; }
  .about-row-reverse .about-portrait,
  .about-row-reverse .about-copy { order: initial; }
  .panel-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline { padding-left: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .youtube-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--ivory);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 26px;
    padding: 100px 40px 40px;
    box-shadow: -10px 0 40px rgba(109, 27, 43, 0.15);
    transition: right 0.4s ease;
    z-index: 1100;
  }
  .nav-links.open { right: 0; }
  .hero { padding: 120px 0 50px; }
  .form-row-group { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .youtube-grid { grid-template-columns: 1fr; gap: 26px; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 18px; right: 18px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
