:root {
  --maroon: #6b1020;
  --maroon-dark: #4a0a16;
  --gold: #c9a227;
  --sky: #dcebf7;
  --leaf: #2e7d32;
  --paper: #fffdf8;
  --ink: #2a1a1d;
  --muted: #6a5a5d;
  --line: #e6d9c8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: 'Mukta', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3 { font-family: 'Yatra One', 'Mukta', serif; font-weight: 400; line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--maroon); }
h3 { font-size: 1.2rem; color: var(--maroon-dark); }
p { margin: 0 0 1em; max-width: 70ch; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem clamp(1rem, 4vw, 3rem);
  background: var(--maroon); color: #fff;
  border-bottom: 3px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-family: 'Yatra One', serif; font-size: 1.15rem; }
.brand img { border-radius: 50%; background: #fff; }
nav { display: flex; gap: .2rem; align-items: center; flex-wrap: wrap; }
nav a { color: #fff; text-decoration: none; padding: .35rem .65rem; border-radius: 6px; font-weight: 600; font-size: .95rem; }
nav a:hover { background: rgba(255,255,255,.15); }
nav .nav-cta { background: var(--gold); color: var(--maroon-dark); }
.menu-btn { display: none; background: none; border: 2px solid #fff; color: #fff; border-radius: 6px; padding: .3rem .8rem; font: inherit; cursor: pointer; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  background: linear-gradient(120deg, var(--sky), var(--paper) 70%);
}
.motto { font-family: 'Yatra One', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: .2rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); color: var(--maroon); }
.lead { font-size: 1.2rem; color: var(--muted); }
.hero-img img { width: 100%; height: 360px; object-fit: cover; border-radius: 16px; border: 4px solid var(--gold); background: var(--sky); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--maroon); color: #fff; text-decoration: none;
  padding: .65rem 1.4rem; border-radius: 8px; border: 2px solid var(--maroon);
  font: 700 1rem 'Mukta', sans-serif; cursor: pointer;
}
.btn:hover { background: var(--maroon-dark); }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: var(--maroon); color: #fff; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem); max-width: 1200px; margin: 0 auto; }
.section.alt { max-width: none; background: #f7efe2; }
.section.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin-bottom: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.cards.small { grid-template-columns: 1fr; }
.cards article { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 10px; padding: 1.1rem 1.3rem; }
.cards article p { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: .95rem; margin-top: 1rem; }

/* Notice */
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.notice-list time { flex: 0 0 110px; font-weight: 700; color: var(--maroon); }

/* Result */
.result-box { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; }
.result-box label { display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; gap: .25rem; }
.result-box select, .result-box input { font: inherit; padding: .5rem .7rem; border: 1px solid #bba; border-radius: 6px; min-width: 150px; }

/* Sports */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { background: #fff; border: 2px solid var(--leaf); color: var(--leaf); padding: .35rem 1rem; border-radius: 999px; font-weight: 700; }


/* Contact */
.contact-info p { margin-bottom: .9rem; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: 12px; }

footer { background: var(--maroon-dark); color: #f3e8d0; text-align: center; padding: 1.2rem 1rem; border-top: 3px solid var(--gold); }
footer p { margin: 0 auto; }

/* Mobile */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--maroon); padding: .6rem 1rem 1rem; }
  nav.open { display: flex; }
  .hero, .two-col { grid-template-columns: 1fr; }
  .hero-img img { height: 240px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Messages */
.cards article .sign { margin-top: .8rem; font-weight: 700; color: var(--maroon); }

/* Result viewer */
.res-view { margin-top: 1.2rem; }
.res-view .btn-row { margin-bottom: .8rem; }
.res-view img { width: 100%; max-width: 1000px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.res-view[hidden], .lightbox[hidden] { display: none; }
@media print { body > *:not(main), .section:not(#result), .result-box, #resMsg, .res-view .btn-row { display: none !important; } }


/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,5,8,.92); display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: .6rem; font-weight: 600; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--maroon-dark); }
.lb-close { top: 1rem; right: 1rem; }
.lb-nav.prev { left: .8rem; } .lb-nav.next { right: .8rem; }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 1rem; } }

/* Pinterest-style gallery */
.gallery { columns: 4 220px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; border-radius: 10px; overflow: hidden; background: var(--sky); border: 1px solid var(--line); }
.gallery img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: transform .25s; }
.gallery img:hover { transform: scale(1.03); }
