/* ============================================================
   Karthika Auditorium — gold & cream luxury design system
   ============================================================ */
:root {
  --cream: #fdf8ef;
  --cream-2: #f7efdd;
  --ink: #2c2118;
  --ink-soft: #5c4f42;
  --maroon: #6b1f2a;
  --maroon-deep: #4e161f;
  --gold: #b08d2e;
  --gold-bright: #d4af37;
  --gold-soft: #e8d5a3;
  --white: #fffdf8;
  --whatsapp: #1eaa52;
  --whatsapp-dark: #178a42;
  --shadow-sm: 0 2px 10px rgba(44, 33, 24, .08);
  --shadow-md: 0 10px 34px rgba(44, 33, 24, .14);
  --radius: 14px;
  --font-display: Georgia, "Times New Roman", "Noto Serif Malayalam", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Noto Sans Malayalam", "Nirmala UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-tinted { background: var(--cream-2); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; color: var(--maroon-deep); }
h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; }

.kicker {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .7rem;
}
.kicker::after {
  content: ""; display: inline-block; width: 34px; height: 1px;
  background: var(--gold); margin-left: 10px; vertical-align: middle;
}
.kicker-light { color: var(--gold-bright); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 5vw, 54px); }
.section-head .kicker::before {
  content: ""; display: inline-block; width: 34px; height: 1px;
  background: var(--gold); margin-right: 10px; vertical-align: middle;
}
.section-sub { color: var(--ink-soft); margin-top: .8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 0;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--maroon); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--maroon-deep); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 22px rgba(30, 170, 82, .35); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); color: #fff; }
.btn-outline { background: transparent; color: var(--maroon); border: 1.5px solid var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 248, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(176, 141, 46, .25);
}
.header-inner {
  width: min(1240px, 94%); margin: 0 auto;
  display: flex; align-items: center; gap: 1.4rem;
  padding: .6rem 0;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: linear-gradient(140deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-bright); font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); color: var(--maroon-deep); font-size: 1.06rem; }
.brand-text small { color: var(--gold); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.main-nav { display: flex; gap: 1.3rem; margin-left: auto; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; position: relative; padding: .3rem 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .22s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.lang-toggle {
  border: 1.5px solid var(--gold); color: var(--maroon); background: transparent;
  border-radius: 999px; padding: .42rem .95rem; font-weight: 700; font-size: .88rem;
  cursor: pointer; font-family: var(--font-body); transition: background .18s ease, color .18s ease;
}
.lang-toggle:hover { background: var(--gold); color: #fff; }
.btn-call { padding: .45rem 1rem; font-size: .9rem; }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-burger span { display: block; width: 24px; height: 2.6px; background: var(--maroon); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 780px); display: grid; place-items: center; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,18,12,.55) 0%, rgba(30,18,12,.35) 45%, rgba(46,20,16,.72) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 7rem 1.2rem 6rem; max-width: 860px; }
.hero-content h1 { color: #fff; text-shadow: 0 3px 26px rgba(0,0,0,.45); margin-bottom: 1rem; }
.hero-sub {
  color: rgba(255,253,246,.94); font-size: clamp(1rem, 2.1vw, 1.2rem);
  max-width: 620px; margin: 0 auto 2rem; text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.hero-ctas { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; gap: 9px; justify-content: center; z-index: 3; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: .25s;
}
.hero-dots button.is-active { background: var(--gold-bright); transform: scale(1.3); }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(140deg, var(--maroon), var(--maroon-deep)); color: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.9rem 0; }
.stat { text-align: center; padding: .4rem .6rem; }
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--gold-bright); line-height: 1.1;
}
.stat span { font-size: .88rem; opacity: .92; letter-spacing: .04em; }
.stat + .stat { border-left: 1px solid rgba(232, 213, 163, .25); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { position: relative; padding-bottom: 3.4rem; padding-right: 3rem; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-media-b {
  position: absolute; right: 0; bottom: 0; width: 58%;
  border: 6px solid var(--cream); border-radius: var(--radius);
}
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-copy h2 { margin-bottom: 1.1rem; }
.checklist { list-style: none; margin-top: 1.2rem; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: .7rem; font-weight: 600; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--gold-soft); color: var(--maroon);
  font-size: .85rem; font-weight: 800; display: grid; place-items: center;
}

/* ---------- Events ---------- */
.event-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
.event-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.event-media { aspect-ratio: 16 / 9.5; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.event-card:hover .event-media img { transform: scale(1.05); }
.event-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.event-body p { color: var(--ink-soft); flex: 1; }

/* ---------- Facilities ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.fac-card {
  background: var(--white); border: 1px solid rgba(176,141,46,.22);
  border-radius: var(--radius); padding: 1.7rem 1.5rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.fac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.fac-icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 1rem;
  background: linear-gradient(140deg, var(--gold-soft), #f3e6c4);
  display: grid; place-items: center;
}
.fac-icon svg { width: 26px; height: 26px; fill: var(--maroon); }
.fac-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.fac-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.chip {
  border: 1.5px solid rgba(176,141,46,.5); background: transparent; color: var(--ink);
  padding: .5rem 1.2rem; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  transition: .2s;
}
.chip:hover { border-color: var(--gold); color: var(--maroon); }
.chip.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid figure {
  border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative;
  aspect-ratio: 4 / 3; background: var(--gold-soft);
}
.gallery-grid figure.is-hidden { display: none; }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); filter: brightness(1.06); }

/* ---------- Moments ---------- */
.moments { background: linear-gradient(160deg, var(--maroon-deep), var(--maroon) 75%); }
.moments .kicker { color: var(--gold-bright); }
.moments h2 { color: var(--cream); }
.moments .section-sub { color: rgba(253,248,239,.85); }
.moments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.moment { border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.06); }
.moment img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.moment figcaption { padding: 1rem 1.15rem 1.2rem; color: rgba(253,248,239,.92); font-size: .93rem; }

/* ---------- Testimonials ---------- */
.testimonial-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; align-items: stretch; }
.testimonial {
  background: var(--white); border-radius: var(--radius); padding: 2rem 2.1rem;
  box-shadow: var(--shadow-sm); position: relative;
}
.testimonial::before {
  content: "“"; position: absolute; top: -4px; right: 22px;
  font-family: var(--font-display); font-size: 6rem; color: var(--gold-soft); line-height: 1;
}
.stars { color: var(--gold-bright); font-size: 1.15rem; letter-spacing: 3px; margin-bottom: .8rem; }
.star-dim { color: #d8cdb5; }
.testimonial p { font-size: 1.06rem; color: var(--ink); margin-bottom: 1.1rem; }
.testimonial footer { display: flex; flex-direction: column; }
.testimonial footer strong { color: var(--maroon-deep); }
.testimonial footer span { color: var(--ink-soft); font-size: .86rem; }
.google-card {
  background: var(--white); border: 1.5px dashed rgba(176,141,46,.5); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; text-align: center; padding: 2rem 1.6rem;
}
.google-badge {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold-soft); display: grid; place-items: center;
}
.google-badge svg { width: 28px; height: 28px; fill: var(--maroon); }
.google-card p { font-weight: 700; color: var(--maroon-deep); }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.loc-info h2 { margin-bottom: 1.4rem; }
.loc-list { margin-bottom: 1.7rem; display: grid; gap: 1.1rem; }
.loc-list dt { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.loc-list dd { font-size: 1.02rem; }
.loc-list dd a { font-weight: 700; }
.loc-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.loc-map iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ---------- Enquiry ---------- */
.enquiry { background: linear-gradient(150deg, var(--maroon-deep) 0%, var(--maroon) 60%, #7d2a35 100%); }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.enquiry-copy h2 { color: var(--cream); margin-bottom: 1rem; }
.enquiry-copy p { color: rgba(253,248,239,.88); margin-bottom: .8rem; }
.enquiry-note { font-size: .9rem; opacity: .85; }
.enquiry-form {
  background: var(--white); border-radius: 18px; padding: 2rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  display: grid; gap: 1.05rem;
}
.enquiry-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--maroon-deep); }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .7rem .9rem; border: 1.5px solid #e4d9c3; border-radius: 10px;
  background: #fffdf8; width: 100%;
}
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.enquiry-form textarea { resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: #241713; color: rgba(253,248,239,.82); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem; padding: clamp(40px, 6vw, 64px) 0 2rem;
}
.brand-footer .brand-text strong { color: var(--cream); }
.site-footer h4 {
  font-family: var(--font-display); color: var(--gold-bright);
  margin-bottom: .9rem; font-size: 1.02rem;
}
.site-footer p { font-size: .93rem; margin-bottom: .5rem; }
.site-footer a { color: var(--gold-soft); }
.footer-nav { display: grid; gap: .45rem; }
.footer-nav a { font-size: .93rem; }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-base { border-top: 1px solid rgba(232,213,163,.18); padding: 1.1rem 0; text-align: center; }
.footer-base p { font-size: .82rem; opacity: .75; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(24, 138, 66, .45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(30,170,82,.5); animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(.85); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 12, 8, .93);
  display: grid; place-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lb-close, .lb-nav {
  position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 0;
  cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.7rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.1rem; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity .5s ease; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .moments-grid { grid-template-columns: 1fr; }
  .testimonial-row, .loc-grid, .enquiry-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-cards { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed; top: 59px; left: 0; right: 0; z-index: 55;
    background: var(--cream); flex-direction: column; gap: 0;
    border-bottom: 1px solid rgba(176,141,46,.3);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 350px; box-shadow: var(--shadow-md); }
  .main-nav a { padding: .85rem 6%; border-top: 1px solid rgba(176,141,46,.15); }
  .nav-burger { display: block; }
  .btn-call span { display: none; }
  .btn-call { padding: .55rem .7rem; border-radius: 50%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .stat:nth-child(3) { border-left: 0; }
  .header-inner { gap: .7rem; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .hero { min-height: 88vh; }
  .about-media { padding-right: 1.2rem; }
}
