/* Namma Temple. Colours, type and spacing follow Vinay's design canvas (design/). */
:root {
  --bg: #FAF5EB;
  --card: #FFFDF8;
  --ink: #2A211C;
  --muted: #63564B;
  --faint: #8A7A6B;
  --line: #E8DCC8;
  --line-2: #D9C9A8;
  --maroon: #7E1F1F;
  --maroon-dark: #5C1414;
  --gold: #ECB44C;
  --gold-ink: #3A2300;
  --date-bg: #F4E8CE;
  --date-ink: #6B4A12;
  --date-day: #8F5400;
  --ok: #3F6B2D;
  --tile: #E9DCC2;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans Kannada', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); }
h1, h2, h3, .serif { font-family: Fraunces, Georgia, serif; font-weight: 600; }
h1 { font-size: 30px; line-height: 1.14; margin: 8px 0 10px; }
h2 { font-size: 20px; margin: 0; }
p { margin: 0 0 12px; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand .name { font-family: Fraunces, serif; font-weight: 600; font-size: 19px; line-height: 1; }
.brand .name span { color: var(--maroon); }
.brand .city { font-size: 9.5px; letter-spacing: 0.22em; color: var(--faint); margin-top: 3px; line-height: 1; }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 600; }
.top nav .nav-only { display: none; }
@media (min-width: 900px) { .top nav .nav-only { display: inline; } }

/* hero + search */
.hero { padding: 26px 0 22px; }
.kicker { font-family: Fraunces, serif; font-weight: 600; font-size: 14.5px; color: var(--maroon); }
.lede { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.search { display: flex; align-items: stretch; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: #9C8C7B; }
.search button { border: 0; cursor: pointer; background: var(--maroon); color: #fff; display: flex; align-items: center; gap: 7px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; }
.note { margin-top: 10px; font-size: 12px; color: var(--faint); }

/* sections */
section { padding: 22px 0 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head a { font-size: 13px; font-weight: 600; }
.small { font-size: 12.5px; color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }

/* chips */
.chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 10px 15px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; min-height: 40px; }
.chip[aria-pressed="true"], .chip.on { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* cards */
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); }
a.card:hover { border-color: var(--line-2); color: var(--ink); }
.card.dashed { border-style: dashed; border-color: #DACBB2; }
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.t-name { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.t-kn { font-size: 13px; color: var(--muted); margin-top: 1px; }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.tag { display: inline-block; background: var(--date-bg); color: var(--date-ink); border-radius: 6px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; }
.tag.muzrai { background: #EFE3E3; color: var(--maroon); }
.t-line { margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.t-line a { font-weight: 700; }
.ok { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.area-tile .a-name { font-size: 14.5px; font-weight: 600; }
.area-tile .a-n { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (min-width: 900px) { .grid2.wide4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* event rows */
.ev { display: flex; gap: 12px; align-items: flex-start; }
.date { flex-shrink: 0; width: 46px; text-align: center; background: var(--date-bg); border-radius: 9px; padding: 5px 0; }
.date .d1 { font-size: 10px; font-weight: 700; color: var(--date-day); }
.date .d2 { font-size: 15px; font-weight: 700; color: var(--date-ink); }
.empty { background: var(--card); border: 1px dashed #DACBB2; border-radius: var(--radius); padding: 16px; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.empty strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 14.5px; }

/* CTA band */
.band { margin: 22px 0 0; background: var(--maroon); border-radius: 16px; padding: 22px 20px; color: #FBF3E4; }
.band .serif { font-size: 19px; line-height: 1.3; }
.band p { margin: 9px 0 15px; font-size: 13.5px; color: rgba(251, 243, 228, 0.9); }
.btn-gold { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--gold-ink); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(0.97); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--maroon); color: #fff; border-radius: 12px; padding: 13px 18px; font-size: 15px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; min-height: 46px; }
.btn:hover { color: #fff; background: var(--maroon-dark); }
.btn.full { width: 100%; }
.btn-ghost { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); border-radius: 12px; padding: 11px 15px; font-weight: 600; font-size: 14px; }

/* temple page */
.crumb { font-size: 12.5px; color: var(--muted); padding-top: 16px; }
.t-head { padding: 10px 0 4px; }
.t-head h1 { font-size: 27px; margin: 6px 0 4px; }
.t-head .kn { font-size: 16px; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.banner { margin-top: 14px; background: #F6EEDF; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.block h2 { font-size: 18px; margin-bottom: 6px; }
.block .muted { color: var(--muted); font-size: 13.5px; }
.block .go { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; }
.rate { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rate:last-child { border-bottom: 0; }

/* forms */
form.f { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.f label.q { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.f .hint { font-size: 12px; color: var(--faint); margin-top: 6px; }
.f input[type=text], .f input[type=tel], .f textarea, .f select {
  width: 100%; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 12px 13px; font: inherit; font-size: 16px; color: var(--ink);
}
.f textarea { min-height: 110px; resize: vertical; }
.f .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.f .opts label { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.f .opts input { width: 18px; height: 18px; accent-color: var(--maroon); }
.f .opts label:has(input:checked) { border-color: var(--maroon); background: #F7EAEA; }
.f .err { color: #A01818; font-size: 13px; font-weight: 600; display: none; }
.f .err.show { display: block; }
#map { height: 260px; border-radius: 12px; border: 1.5px solid var(--line-2); }
.photo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--card); border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; font-weight: 700; }
.photo-drop img { max-height: 220px; border-radius: 8px; }
.suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.suggest button { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.suggest button span { color: var(--muted); font-size: 12.5px; }

/* footer */
footer { margin-top: 32px; border-top: 1px solid var(--line); padding: 16px 0 28px; font-size: 12px; color: var(--muted); line-height: 1.6; }
footer .links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; font-weight: 600; margin-top: 4px; }

/* home on a computer */
@media (min-width: 900px) {
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; }
  .hero h1 { font-size: 40px; }
}
[hidden] { display: none !important; }
