:root {
  --brand-maroon: #661c16;
  --brand-red: #a92c1e;
  --brand-saffron: #db5b18;
  --brand-gold: #e5ad35;
  --surface-page: #fbf5e9;
  --surface-card: #fffdf8;
  --surface-muted: #f2e6d1;
  --text-main: #2c211d;
  --text-muted: #755f54;
  --border-soft: #dfc9aa;
  --focus: #1d65a8;
  --shadow-card: 0 16px 40px rgba(70, 31, 16, .09);
  --radius-card: 24px;
  --sidebar-width: 286px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--surface-page);
  color: var(--text-main);
  font-family: "Noto Sans Telugu", "Poppins", system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--surface-card); padding: 12px 18px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.side-menu {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--brand-maroon); color: #fffaf1; padding: 28px 20px;
  border-right: 5px solid var(--brand-gold);
}
.brand-mark { text-decoration: none; display: block; margin-bottom: 30px; }
.brand-symbol { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; margin-bottom: 14px; }
.brand-symbol svg { width: 30px; height: 30px; }
.brand-name { font-family: "Tiro Telugu", serif; font-size: 1.22rem; line-height: 1.45; }
.brand-subtitle { margin-top: 7px; color: #e8cfa4; font: 500 .68rem/1.45 "Poppins", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.menu-label { color: #dcbf91; font: 600 .68rem/1 "Poppins", sans-serif; letter-spacing: .16em; text-transform: uppercase; margin: 0 10px 12px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.menu-link { min-height: 48px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #f5e8d3; padding: 11px 13px; border-radius: 12px; font-weight: 600; transition: background .18s ease, transform .18s ease; }
.menu-link svg { width: 20px; height: 20px; flex: 0 0 auto; }
.menu-link:hover { background: rgba(255,255,255,.1); transform: translateX(3px); }
.menu-link[aria-current="page"] { background: #fff8e9; color: var(--brand-maroon); box-shadow: inset 4px 0 0 var(--brand-gold); }
.menu-footer { margin-top: 34px; padding: 18px 12px 0; border-top: 1px solid rgba(255,255,255,.18); color: #e8cfa4; font-size: .78rem; }
.menu-footer a { display: inline-block; margin-top: 8px; color: #fff; font-weight: 700; }

.mobile-bar { display: none; }
.main-view { min-width: 0; padding: 34px clamp(22px, 5vw, 72px) 64px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1180px; margin: 0 auto 28px; }
.eyebrow { margin: 0 0 8px; color: var(--brand-saffron); font: 700 .72rem/1 "Poppins", sans-serif; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.2; }
h1 { margin-bottom: 10px; color: var(--brand-maroon); font-family: "Tiro Telugu", Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.025em; }
.page-intro { margin: 0; max-width: 64ch; color: var(--text-muted); font-size: 1rem; }
.content { max-width: 1180px; margin: 0 auto; }

.hero-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; min-height: 410px; background: var(--brand-maroon); color: #fff8ea; border-radius: 32px; box-shadow: var(--shadow-card); }
.hero-copy { position: relative; z-index: 1; padding: clamp(34px, 6vw, 72px); align-self: center; }
.hero-copy h1 { color: #fff8ea; max-width: 15ch; }
.hero-copy p { max-width: 55ch; color: #ead8bb; }
.hero-art { min-height: 320px; background: linear-gradient(145deg, var(--brand-red), var(--brand-saffron)); display: grid; place-items: center; position: relative; overflow: hidden; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border: 1px solid rgba(255,245,215,.33); border-radius: 50%; }
.hero-art::before { width: 340px; height: 340px; }
.hero-art::after { width: 240px; height: 240px; }
.hero-art svg { width: 190px; height: 190px; z-index: 1; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 17px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 700; font-size: .9rem; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-saffron); color: #fff; box-shadow: 0 8px 24px rgba(124,42,15,.22); }
.btn-primary:hover { background: #bb4610; }
.btn-light { background: #fff8ea; color: var(--brand-maroon); }
.btn-outline { border-color: var(--border-soft); background: transparent; color: var(--brand-maroon); }
.btn svg { width: 19px; height: 19px; }

.section-block { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 3px; color: var(--brand-maroon); font-family: "Tiro Telugu", Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.section-heading p { margin: 0; color: var(--text-muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-card { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.info-card h3 { color: var(--brand-maroon); margin-bottom: 8px; }
.info-card p { color: var(--text-muted); margin: 0; }
.date-chip { width: fit-content; margin-bottom: 17px; padding: 6px 10px; background: var(--surface-muted); color: var(--brand-red); border-radius: 8px; font: 700 .74rem/1.2 "Poppins", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.event-card { display: flex; flex-direction: column; }
.event-card .button-row { margin-top: auto; padding-top: 22px; }
.event-card.featured { grid-column: span 2; background: var(--brand-maroon); color: #fff7e9; border-color: var(--brand-maroon); }
.event-card.featured h3, .event-card.featured p { color: inherit; }
.event-card.featured p { color: #ead8bb; }
.event-card.featured .date-chip { background: var(--brand-gold); color: #4f170f; }

.event-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 22px; align-items: start; }
.schedule-card { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.schedule-row { display: grid; grid-template-columns: 126px 1fr 1fr; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--surface-muted); align-items: center; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row.header { background: var(--brand-maroon); color: #fff; font-weight: 700; }
.schedule-date { color: var(--brand-red); font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule-row.header .schedule-date { color: #fff; }
.schedule-deity { font-weight: 700; }
.aside-stack { display: grid; gap: 18px; position: sticky; top: 24px; }
.detail-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.detail-list li { padding-bottom: 12px; border-bottom: 1px solid var(--surface-muted); }
.detail-list li:last-child { border: 0; padding-bottom: 0; }
.detail-list strong { display: block; color: var(--brand-maroon); }

.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px; }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; color: var(--brand-red); background: var(--surface-muted); border-radius: 16px; }
.service-icon svg { width: 28px; height: 28px; }
.service-price { color: var(--brand-red); font-weight: 800; white-space: nowrap; }
.gallery-grid-public { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 16px; }
.gallery-panel { min-height: 240px; position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--surface-muted); border: 1px solid var(--border-soft); display: grid; place-items: end start; }
.gallery-panel:first-child { grid-row: span 2; min-height: 500px; }
.gallery-panel .motif { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-red); background: radial-gradient(circle at 70% 25%, #f4c964 0 8%, transparent 9%), linear-gradient(145deg, #fff4d6, #e9c998); }
.gallery-panel:nth-child(3n) .motif { background: linear-gradient(145deg, #712118, #bf4a24); color: #f9da85; }
.gallery-panel svg { width: 42%; height: 42%; opacity: .75; }
.gallery-caption { position: relative; z-index: 1; margin: 16px; padding: 8px 12px; border-radius: 10px; background: rgba(47,24,18,.82); color: #fff; font-weight: 700; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.about-story { font-size: 1.06rem; }
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

@media (max-width: 960px) {
  .site-shell { grid-template-columns: 1fr; }
  .side-menu { position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 310px); z-index: 50; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
  body.menu-open .side-menu { transform: translateX(0); }
  .mobile-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 18px; background: var(--brand-maroon); color: #fff; border-bottom: 3px solid var(--brand-gold); }
  .mobile-brand { font-family: "Tiro Telugu", serif; font-size: 1rem; }
  .menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; }
  .menu-toggle svg { width: 23px; }
  .main-view { padding-top: 28px; }
  .hero-panel, .event-layout, .about-layout { grid-template-columns: 1fr; }
  .hero-art { min-height: 250px; }
  .aside-stack { position: static; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid-public { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-view { padding: 22px 16px 48px; }
  .page-head { align-items: start; flex-direction: column; }
  .card-grid, .service-list, .gallery-grid-public, .contact-strip { grid-template-columns: 1fr; }
  .event-card.featured { grid-column: auto; }
  .hero-panel { border-radius: 24px; }
  .hero-copy { padding: 32px 24px; }
  .gallery-panel:first-child { grid-row: auto; min-height: 300px; }
  .schedule-row, .schedule-row.header { grid-template-columns: 1fr; gap: 5px; }
  .schedule-row.header span:not(:first-child) { display: none; }
  .service-card { grid-template-columns: 52px 1fr; }
  .service-price { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

