:root {
  --cream: #fbf7ee;
  --cream-2: #f3ecdc;
  --paper: #ffffff;
  --green: #1f3b2d;
  --green-2: #2c5440;
  --green-ink: #13261c;
  --gold: #b8892b;
  --gold-2: #d4a849;
  --gold-soft: #f1e2bd;
  --ink: #23271f;
  --muted: #6b6f64;
  --line: #e6dfcd;
  --free: #4f9a6b;
  --held: #e0a63a;
  --booked: #c0533f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 38, 28, .06), 0 8px 28px rgba(19, 38, 28, .08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--green-ink); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-weight: 400; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { padding: .55em 1.1em; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(184, 137, 43, .35); }
.btn-gold:hover { background: #a67a22; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-ghost-dark { border-color: var(--line); color: var(--green); background: transparent; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--green);
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 238, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.monogram {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: var(--gold-2); font: 700 1.15rem var(--serif);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.logo { height: 46px; width: auto; max-width: 150px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 700 1.2rem var(--serif); color: var(--green-ink); }
.brand-text small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--green); }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--green); transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 16px 1rem; background: var(--cream); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: .8rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--green-ink); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(212, 168, 73, .28), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(79, 154, 107, .25), transparent 60%),
    linear-gradient(160deg, #1f3b2d 0%, #13261c 70%);
}
.hero-bg::after {
  /* subtle lattice pattern inspired by traditional wooden jali work */
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image:
    linear-gradient(45deg, #fff 1px, transparent 1px),
    linear-gradient(-45deg, #fff 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero.has-image .hero-bg { background-size: cover; background-position: center; }
.hero.has-image .hero-bg::after { display: none; }
.hero-inner { position: relative; padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 6.5rem); max-width: 760px; margin-left: max(16px, calc((100% - 1160px) / 2)); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 600; letter-spacing: -.01em; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .82); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 3rem; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
}
.hero .eyebrow { color: var(--gold-2); }
.highlights { display: flex; flex-wrap: wrap; gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.highlights li { display: flex; flex-direction: column; }
.highlights strong { font: 600 2.2rem/1 var(--serif); color: var(--gold-2); }
.highlights span { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-top: .35rem; }
.kasavu {
  position: relative; height: 14px;
  background: linear-gradient(to bottom, var(--gold) 0 3px, var(--cream) 3px 6px, var(--gold-2) 6px 11px, var(--cream) 11px);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--cream-2); }
.section-dark { background: var(--green-ink); color: #fff; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-head.left { text-align: left; margin: 0; }

/* ---------- Halls ---------- */
.halls { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.hall {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.hall-media { aspect-ratio: 16 / 10; position: relative; }
.hall-media img { width: 100%; height: 100%; object-fit: cover; }
.hall-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.hall-body p { color: var(--muted); font-size: .95rem; }
.hall-stats { display: flex; gap: 1.5rem; margin: .2rem 0 1rem; }
.hall-stats div { display: flex; flex-direction: column; }
.hall-stats strong { font: 600 1.6rem/1 var(--serif); color: var(--green); }
.hall-stats span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.4rem; }
.tags li { font-size: .78rem; padding: .3em .75em; border-radius: 999px; background: var(--cream-2); color: var(--green); }
.hall .btn { margin-top: auto; align-self: flex-start; }

/* Placeholder used wherever a real photo hasn't been added yet */
.placeholder {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem 1.2rem;
  background:
    radial-gradient(circle at 75% 25%, rgba(212, 168, 73, .55), transparent 55%),
    linear-gradient(140deg, var(--green-2), var(--green-ink));
  color: rgba(255, 255, 255, .92); font: 600 1.35rem var(--serif);
}
.placeholder::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(212, 168, 73, .45); border-radius: 8px;
}
.placeholder.v1 { background: radial-gradient(circle at 20% 30%, rgba(212, 168, 73, .5), transparent 55%), linear-gradient(200deg, #6b4a1d, #2b1d0c); }
.placeholder.v2 { background: radial-gradient(circle at 80% 70%, rgba(241, 226, 189, .45), transparent 55%), linear-gradient(160deg, #2c5440, #0f1f17); }
.placeholder.v3 { background: radial-gradient(circle at 50% 20%, rgba(192, 83, 63, .45), transparent 55%), linear-gradient(180deg, #5a2a22, #1e0f0b); }

/* ---------- Events ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.event { background: var(--paper); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); }
.event svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.event h3 { font-size: 1.4rem; margin-bottom: .3em; }
.event p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Amenities ---------- */
.amenities-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; }
.amenities li { padding-left: 1.4rem; border-left: 2px solid var(--gold-soft); }
.amenities h3 { font-size: 1.3rem; margin-bottom: .2em; }
.amenities p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 860px) {
  .amenities-wrap { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; }
.gallery figure:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(6n + 4),
.gallery figure:nth-child(6n + 5),
.gallery figure:nth-child(6n + 6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6)); font-size: .88rem; font-weight: 500;
}
.gallery .placeholder { font-size: 1.15rem; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery figure:nth-child(6n + 1) { grid-column: span 2; grid-row: span 1; }
  .gallery figure:nth-child(6n + 5),
  .gallery figure:nth-child(6n + 6) { grid-column: span 1; }
}

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.5rem; align-items: start; }
.booking > * { min-width: 0; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .card { padding: 1.15rem; } }

.hall-tabs { display: flex; gap: .4rem; padding: .3rem; background: var(--cream); border-radius: 999px; margin-bottom: 1.4rem; overflow-x: auto; }
.hall-tabs button {
  flex: 1; white-space: nowrap; border: 0; background: transparent; padding: .6em 1em; border-radius: 999px;
  font: 500 .88rem var(--sans); color: var(--green); cursor: pointer;
}
.hall-tabs button[aria-selected="true"] { background: var(--green); color: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-head h3 { margin: 0; font-size: 1.6rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow span { text-align: center; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: .4rem; }
.day {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; padding: 6px;
  font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.day:hover:not(:disabled) { border-color: var(--gold); }
.day:disabled { cursor: default; color: #bfbcb2; background: #faf8f3; }
.day.selected { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.day.today { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.day .bars { display: flex; flex-direction: column; gap: 3px; }
.day .bars i { height: 4px; border-radius: 2px; background: var(--free); }
.day .bars i.held { background: var(--held); }
.day .bars i.booked { background: var(--booked); }
.day:disabled .bars { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.1rem; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend-note { flex-basis: 100%; font-size: .78rem; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot.free { background: var(--free); } .dot.held { background: var(--held); } .dot.booked { background: var(--booked); }
@media (max-width: 420px) {
  .cal-grid { gap: 4px; }
  .day { padding: 4px; font-size: .8rem; border-radius: 8px; }
  .day .bars i { height: 3px; }
}

.field { margin: 0 0 1.05rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: .85rem; font-weight: 600; color: var(--green); margin-bottom: .4rem; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
input, select, textarea {
  width: 100%; padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px;
  font: 400 .95rem var(--sans); color: var(--ink); background: #fffdf8;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; border-color: transparent; }
.field.invalid input, .field.invalid select { border-color: var(--booked); }
.field-msg { font-size: .8rem; color: var(--booked); margin-top: .3rem; }
textarea { resize: vertical; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot label {
  display: flex; flex-direction: column; padding: .7em .8em; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; margin: 0; font-weight: 600; font-size: .9rem; color: var(--ink); height: 100%;
}
.slot label small { font-weight: 400; font-size: .74rem; color: var(--muted); }
.slot input:checked + label { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.slot input:focus-visible + label { outline: 2px solid var(--gold-2); }
.slot input:disabled + label { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
@media (max-width: 420px) { .slots { grid-template-columns: 1fr; } }
.form-error { background: #fbeae6; color: #8a2f1f; padding: .7em 1em; border-radius: 10px; font-size: .9rem; }
.fineprint { font-size: .8rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }

.success { text-align: center; padding: 1.5rem 0; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
  background: var(--free); color: #fff; font-size: 2rem;
}
.ref { font: 700 2rem var(--serif); letter-spacing: .08em; color: var(--gold); margin: 0 0 1rem; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; text-align: left; max-width: 340px; margin: 0 auto 1.2rem; font-size: .92rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }

.status-check { margin-top: 1.5rem; padding: 1.1rem 1.5rem; }
.status-check summary { cursor: pointer; font-weight: 600; color: var(--green); }
.status-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.status-form input { flex: 1 1 200px; }
#status-result { margin-top: .9rem; font-size: .93rem; }
.badge { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .78rem; font-weight: 600; text-transform: capitalize; }
.badge.pending { background: #fbf0d9; color: #8a5a00; }
.badge.confirmed { background: #e2f1e7; color: #1f6b3c; }
.badge.rejected, .badge.cancelled { background: #fbeae6; color: #8a2f1f; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
address { font-style: normal; font-size: 1.05rem; margin-bottom: 1.2rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.contact-list a { text-decoration: none; color: var(--green); font-weight: 500; }
.contact-list span { color: var(--muted); font-size: .85rem; display: block; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--green-ink); color: rgba(255, 255, 255, .7); font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.5rem 0; }
.footer a { color: var(--gold-2); text-decoration: none; }
