/* Shree Anjar Shaher Kshatriya Samaaj - public website.
   Mobile-first. Brand colours from the logo: saffron #F38411, red #C13823,
   cream #FAE0C4. White text only on red (WCAG AA). */
:root {
  --brand-red: #C13823;
  --brand-red-dark: #9E2C1B;
  --brand-saffron: #F38411;
  --brand-cream: #FAE0C4;
  --brand-cream-soft: #FDF4EA;
  --bs-primary: #C13823;
  --bs-primary-rgb: 193, 56, 35;
  --bs-link-color: #A8301E;
  --bs-link-color-rgb: 168, 48, 30;
  --bs-link-hover-color: #7E2416;
  --bs-body-font-size: 1rem;
}
body { background: #fffdfa; color: #2b2622; }
h1, h2, h3, .h1, .h2, .h3 { color: #3a2a20; }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-sm { min-height: 36px; }
.form-control, .form-select { min-height: 48px; font-size: 1rem; } /* 16px stops iOS zoom */
textarea.form-control { min-height: 96px; }
.btn-primary {
  --bs-btn-bg: var(--brand-red); --bs-btn-border-color: var(--brand-red);
  --bs-btn-hover-bg: var(--brand-red-dark); --bs-btn-hover-border-color: var(--brand-red-dark);
  --bs-btn-active-bg: var(--brand-red-dark); --bs-btn-active-border-color: var(--brand-red-dark);
  --bs-btn-disabled-bg: var(--brand-red); --bs-btn-disabled-border-color: var(--brand-red);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand-red); --bs-btn-border-color: var(--brand-red);
  --bs-btn-hover-bg: var(--brand-red); --bs-btn-hover-border-color: var(--brand-red);
  --bs-btn-active-bg: var(--brand-red-dark); --bs-btn-active-border-color: var(--brand-red-dark);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--brand-saffron); box-shadow: 0 0 0 .2rem rgba(243, 132, 17, .25);
}
.form-check-input:checked { background-color: var(--brand-red); border-color: var(--brand-red); }
.form-check-input { width: 1.25em; height: 1.25em; }
.page-link { color: var(--brand-red); }
.active > .page-link { background-color: var(--brand-red); border-color: var(--brand-red); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--brand-saffron); outline-offset: 2px; }

/* Header */
.topline { background: var(--brand-red); color: #fff; font-size: .85rem; }
.lang-switch a, .lang-switch span { color: #fff; padding: .35rem .45rem; border-radius: .25rem; line-height: 1; text-decoration: none; }
.lang-switch a:hover, .lang-switch a:focus { background: rgba(255, 255, 255, .18); }
.lang-switch .active { background: #fff; color: var(--brand-red); font-weight: 600; }
.site-header { background: #fff; border-bottom: 3px solid var(--brand-saffron); }
.site-header .brand img { height: 52px; width: auto; flex: none; }
/* The brand must shrink and wrap so the header never exceeds a 360px screen. */
.site-header .navbar-brand { white-space: normal; min-width: 0; flex: 1 1 0%; margin-right: .5rem; }
.site-header .brand-name { line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .site-header .brand img { height: 44px; }
  .site-header .brand-name .en { font-size: .82rem; }
  .site-header .brand-name .gu { font-size: .8rem; }
}
.site-header .brand-name .en { font-weight: 700; color: #3a2a20; font-size: .98rem; }
.site-header .brand-name .gu { color: var(--brand-red); font-size: .9rem; }
.site-header .nav-link { color: #3a2a20; font-weight: 500; padding: .7rem .8rem; }
.site-header .nav-link.active, .site-header .nav-link:hover { color: var(--brand-red); }
.site-header .navbar-collapse .navbar-nav { padding: .25rem 0 .5rem; }
/* Full menu from 1200 px; below that the menu button keeps the name readable. */
@media (min-width: 1200px) {
  .site-header .brand img { height: 64px; }
  .site-header .brand-name { min-width: 13rem; }
  .site-header .navbar-collapse .navbar-nav { padding: 0; }
  .site-header .nav-link { padding: .6rem .55rem; white-space: nowrap; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--brand-cream-soft), #fff 60%); }
.hero .lead { color: #5a4a40; }
.hero-banner { overflow: hidden; background: #2b1d16; }
.hero-banner .carousel-item { overflow: hidden; }
.hero-banner img { width: 100%; height: 240px; object-fit: cover; transform-origin: center; }
@media (min-width: 768px) { .hero-banner img { height: 440px; } }
.carousel-caption { background: rgba(0,0,0,.45); border-radius: .5rem; padding: .5rem 1rem; bottom: 2.2rem; }

/* Animated tour: each photo slowly zooms and pans while the slides crossfade. */
@keyframes tour-zoom-in { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes tour-zoom-out { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes tour-pan-left { from { transform: scale(1.12) translateX(3%); } to { transform: scale(1.12) translateX(-3%); } }
@keyframes tour-pan-right { from { transform: scale(1.12) translateX(-3%); } to { transform: scale(1.12) translateX(3%); } }
@keyframes tour-caption { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
.hero-banner .carousel-item.active img { animation: 7s ease-out both; }
.hero-banner .tour-0.active img { animation-name: tour-zoom-in; }
.hero-banner .tour-1.active img { animation-name: tour-pan-left; }
.hero-banner .tour-2.active img { animation-name: tour-zoom-out; }
.hero-banner .tour-3.active img { animation-name: tour-pan-right; }
.hero-banner .carousel-item.active .carousel-caption { animation: tour-caption .9s .4s ease-out both; }
.hero-banner.carousel-fade .carousel-item { transition-duration: 1.2s; }
.hero-banner .carousel-indicators [data-bs-target] { width: 22px; height: 4px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hero-banner .carousel-item.active img, .hero-banner .carousel-item.active .carousel-caption { animation: none; }
}

.section { padding: 2.25rem 0; }
.section-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.section-title::before { content: ""; width: .35rem; height: 1.4rem; background: var(--brand-saffron); border-radius: .2rem; }
.bg-cream { background: var(--brand-cream-soft); }

.card { border: 1px solid #f0e6dc; border-radius: .75rem; }
.card-img-top { height: 180px; object-fit: cover; }
.card-img-placeholder { height: 140px; background: var(--brand-cream-soft); display: flex; align-items: center; justify-content: center; color: var(--brand-saffron); font-size: 2.5rem; border-radius: .75rem .75rem 0 0; }
.price-tag { font-weight: 700; color: var(--brand-red-dark); }

.quick-actions a { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem .5rem; border-radius: .75rem; background: #fff; border: 1px solid #f0e6dc; color: #3a2a20; text-decoration: none; font-weight: 600; text-align: center; height: 100%; }
.quick-actions a i { font-size: 1.6rem; color: var(--brand-red); }
.quick-actions a:hover { border-color: var(--brand-saffron); }

/* Booking calendar */
.cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.cal th { text-align: center; font-size: .8rem; color: #6c5f55; font-weight: 600; }
.cal td { padding: 0; }
.cal .day { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 48px; border-radius: .5rem; font-weight: 600; text-decoration: none; font-size: .95rem; border: 2px solid transparent; }
.cal .day small { font-size: .62rem; font-weight: 500; line-height: 1; }
.cal .available { background: #e6f4ea; color: #1e6b34; }
.cal .partial { background: #fff4d6; color: #7a5a00; }
.cal .booked { background: #fbe1dc; color: #8e2a1a; }
.cal .closed { background: #ececec; color: #666; }
.cal .unavailable { color: #767676; } /* 4.5:1 on white (WCAG AA) */
.cal a.day:hover { border-color: var(--brand-saffron); }
.cal .selected { border-color: var(--brand-red) !important; box-shadow: 0 0 0 2px rgba(193,56,35,.25); }
.legend span { display: inline-flex; align-items: center; gap: .3rem; margin-right: .75rem; font-size: .82rem; }
.legend i { width: .9rem; height: .9rem; border-radius: .2rem; display: inline-block; }

.option-card { border: 2px solid #eadfd4; border-radius: .6rem; padding: .75rem; display: block; cursor: pointer; }
.option-card:has(input:checked) { border-color: var(--brand-red); background: var(--brand-cream-soft); }
.option-card.disabled { opacity: .55; cursor: not-allowed; }

.price-box { background: var(--brand-cream-soft); border: 1px solid var(--brand-cream); border-radius: .75rem; }
.step-badge { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex: none; }

.reference { font-size: 1.8rem; font-weight: 800; letter-spacing: .06em; color: var(--brand-red-dark); word-break: break-all; }

.prose img { max-width: 100%; height: auto; }
.prose h2 { font-size: 1.35rem; margin-top: 1.5rem; }

/* Sticky bottom bar on phones */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid #eee; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom)); }
@media (max-width: 767.98px) { body.has-mobile-cta { padding-bottom: 72px; } }

.site-footer { background: #3a2a20; color: #eadfd4; }
.site-footer a { color: #fff; }
.site-footer .footer-title { color: var(--brand-saffron); font-weight: 700; }

.visually-hidden-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Committee */
.person-card { background: #fff; border: 1px solid #eadfd3; border-radius: .75rem; padding: 1rem .75rem; }
.person-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-cream); }
.person-placeholder { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-cream); color: var(--brand-red); font-size: 3rem; }
.person-title { color: var(--brand-red); font-weight: 600; font-size: .9rem; }
@media (max-width: 400px) { .person-photo { width: 96px; height: 96px; } }

/* Photo gallery */
.album-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: .75rem; overflow: hidden; background: #f3eee8; color: #fff; text-decoration: none; }
.album-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-tile:hover img, .album-tile:focus img { transform: scale(1.04); }
.album-tile-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #b9a99a; }
.album-tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .6rem .5rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); line-height: 1.25; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.photo-grid-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: .5rem; background: #f3eee8; }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.lightbox .modal-body img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; background: rgba(0, 0, 0, .45); color: #fff; width: 44px; height: 64px; font-size: 1.5rem; }
.lightbox-nav.prev { left: 0; border-radius: 0 .5rem .5rem 0; }
.lightbox-nav.next { right: 0; border-radius: .5rem 0 0 .5rem; }

/* History page: animated cover, count-up highlights, story and a timeline that
   draws itself as you scroll. Content is only hidden for the animation once
   site.js has added .reveal-ready, so it always shows without JavaScript. */
.history-hero { position: relative; overflow: hidden; min-height: min(78vh, 680px); display: flex; flex-direction: column; justify-content: center; color: #fff;
  background: linear-gradient(125deg, #4a1408, var(--brand-red-dark) 45%, var(--brand-saffron) 85%, var(--brand-red)); background-size: 220% 220%; animation: history-drift 18s ease-in-out infinite alternate; }
@keyframes history-drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.history-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: history-kenburns 14s ease-out both; }
@keyframes history-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.history-hero.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(30, 10, 4, .55), rgba(30, 10, 4, .3) 40%, rgba(30, 10, 4, .85)); }
.history-hero-pattern { position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .14) 1px, transparent 0); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.history-hero-body { position: relative; z-index: 2; padding-top: 3rem; padding-bottom: 6rem; }
.history-eyebrow { color: #ffd99a; font-weight: 700; letter-spacing: .12em; margin-bottom: .5rem; }
.history-title { color: #fff; font-family: Georgia, "Noto Serif Gujarati", "Noto Serif", serif; font-weight: 700; font-size: clamp(2.1rem, 6.5vw, 4rem); line-height: 1.12; margin: 0 auto; max-width: 18ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.history-subtitle { font-size: 1.15rem; margin: .9rem auto 0; max-width: 40ch; opacity: .95; }
.history-rule { display: block; width: 96px; height: 3px; margin: 1.25rem auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, #ffd99a, transparent); }
.history-caption { font-size: .85rem; margin: 1rem 0 0; opacity: .85; }
.history-scroll { position: absolute; left: 50%; bottom: 4.5rem; z-index: 2; margin-left: -22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); color: #fff; display: grid; place-items: center; }
.history-scroll i { animation: history-bounce 2s ease-in-out infinite; }
@keyframes history-bounce { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.hero-in { opacity: 0; animation: history-in .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.history-title.hero-in { animation-delay: .15s; }
.history-subtitle.hero-in { animation-delay: .35s; }
.history-rule.hero-in { animation-name: history-rule-in; animation-delay: .55s; }
.history-caption.hero-in { animation-delay: .7s; }
.history-scroll.hero-in { animation-delay: 1s; }
@keyframes history-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes history-rule-in { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

.reveal-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0ms); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

.history-highlights { position: relative; z-index: 3; margin-top: -3.5rem; }
.history-stat { background: #fff; border: 1px solid #f0e6dc; border-radius: .9rem; padding: 1.1rem .5rem; text-align: center; box-shadow: 0 8px 24px rgba(58, 42, 32, .1); height: 100%; }
.history-stat-value { display: block; font-family: Georgia, serif; font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--brand-red); line-height: 1.1; font-variant-numeric: tabular-nums; }
.history-stat-label { display: block; margin-top: .35rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6c5f55; }

.history-story { max-width: 760px; padding-top: 3rem; }
.history-story p { font-size: 1.08rem; line-height: 1.85; white-space: pre-line; }
.history-story p:first-child::first-letter { float: left; font-family: Georgia, serif; font-size: 3.6em; line-height: .85; font-weight: 700; margin: .08em .12em 0 0; color: var(--brand-red); }

.history-journey { padding-top: 3rem; padding-bottom: 3.5rem; }
.history-section-title { display: flex; align-items: center; justify-content: center; gap: 1rem; font-family: Georgia, serif; font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 2.5rem; text-align: center; }
.history-section-title::before, .history-section-title::after { content: ""; flex: 0 1 80px; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-saffron)); }
.history-section-title::after { background: linear-gradient(90deg, var(--brand-saffron), transparent); }

.history-timeline-wrap { position: relative; }
.history-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #eadfd4; border-radius: 2px; }
.history-line-fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(var(--brand-saffron), var(--brand-red)); transform: scaleY(0); transform-origin: top; }
.history-timeline { list-style: none; margin: 0; padding: 0; }
.history-item { position: relative; width: 50%; padding: 0 2.75rem 3rem 0; }
.history-item.from-right { margin-left: 50%; padding: 0 0 3rem 2.75rem; }
.history-item:last-child { padding-bottom: 0; }
.history-dot { position: absolute; top: 1.4rem; right: -11px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #fffdfa; border: 3px solid #eadfd4; transition: background .4s .25s, border-color .4s .25s; }
.history-item.from-right .history-dot { right: auto; left: -11px; }
.history-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--brand-red); opacity: 0; }
.is-visible .history-dot { background: var(--brand-red); border-color: var(--brand-red); }
.is-visible .history-dot::after { animation: history-ping 1.4s .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes history-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }
.reveal-ready .history-item.from-left { transform: translateX(-36px); }
.reveal-ready .history-item.from-right { transform: translateX(36px); }
.reveal-ready .history-item.is-visible { transform: none; }

.history-card { background: #fff; border: 1px solid #f0e6dc; border-radius: .9rem; overflow: hidden; box-shadow: 0 8px 24px rgba(58, 42, 32, .08); transition: transform .35s, box-shadow .35s; }
.history-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(58, 42, 32, .16); }
.history-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f3eee8; cursor: zoom-in; }
.history-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.history-photo:hover img, .history-photo:focus img { transform: scale(1.05); }
.history-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.history-year { display: inline-block; padding: .15rem .75rem; border-radius: 999px; background: var(--brand-cream-soft); border: 1px solid var(--brand-cream); color: var(--brand-red); font-family: Georgia, serif; font-weight: 700; }
.history-event-title { font-family: Georgia, "Noto Serif Gujarati", serif; font-size: 1.25rem; margin: .6rem 0 .4rem; }
.history-card-body p { margin: 0 0 .6rem; line-height: 1.7; white-space: pre-line; }
.history-card-body p:last-child { margin-bottom: 0; }
.history-photo-caption { color: #6c5f55; font-size: .85rem; font-style: italic; }
.history-empty { max-width: 460px; margin: 0 auto; padding: 2rem 1.5rem; text-align: center; background: #fff; border: 1px dashed #eadfd4; border-radius: .9rem; }
.history-empty > i { font-size: 2.5rem; color: var(--brand-saffron); }

@media (max-width: 767.98px) {
  .history-line { left: 15px; }
  .history-item, .history-item.from-right { width: auto; margin-left: 0; padding: 0 0 2rem 2.75rem; }
  .history-dot, .history-item.from-right .history-dot { left: 4px; right: auto; }
  .reveal-ready .history-item.from-left, .reveal-ready .history-item.from-right { transform: translateY(28px); }
  .history-highlights { margin-top: -2.75rem; }
  .history-hero-body { padding-bottom: 5.5rem; }
  .history-scroll { bottom: 3.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .history-hero, .history-hero-img, .history-scroll i, .is-visible .history-dot::after { animation: none; }
  .hero-in { opacity: 1; animation: none; }
  .history-card, .history-photo img { transition: none; }
  .history-card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .topline, .mobile-cta, .no-print { display: none !important; }
}
