@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #d4a843;
  --gold-light: #f0d78c;
  --gold-dark: #b8912e;
  --purple: #15803d;
  --purple-light: #3f9d63;
  --purple-dark: #0b4b26;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --bg: #faf5ee;
  --card: #ffffff;
  --line: #e8dcc8;
  --success: #16a34a;
  --danger: #dc2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

body { padding-top: 30px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 30px;
}

.brand {
  color: var(--gold);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-img { width: 14px !important; height: 14px !important; flex-shrink: 0; }

.brand-footer {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.site-header nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-login {
  background: var(--gold);
  color: var(--purple-dark) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 5px 14px !important;
  cursor: pointer;
  transition: all 0.2s !important;
}

.btn-login:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, #5b21b6 100%);
  color: #fff;
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.15) 0%, transparent 60%);
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { transform: translateX(-10%) translateY(-10%); }
  to { transform: translateX(10%) translateY(10%); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin: 0 0 16px;
  position: relative;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  max-width: 620px;
  margin: 0 auto 32px;
  color: #c4b5fd;
  font-size: 1.15rem;
  position: relative;
  font-weight: 300;
}

.hero .btn {
  position: relative;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--purple-dark);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 168, 67, 0.1);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Sections */
.section { padding: 60px 0; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0 0 28px;
  color: var(--purple-dark);
}

/* Hall Grid */
.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.hall-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hall-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(76, 29, 149, 0.12);
  border-color: var(--gold);
}

.hall-card h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--purple-dark);
}

.hall-card .desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f0fb;
  color: var(--purple);
}

.badge-ac {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: var(--gold-dark);
}

.hall-card .address {
  font-size: 0.85rem;
  color: var(--muted);
}

.hall-card .actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.hall-card .actions .btn { flex: 1; text-align: center; }

/* Hall Detail */
.hall-detail h2 {
  margin: 0 0 12px;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

.hall-detail .desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 14px 0;
}

.hall-detail .address { color: var(--muted); margin: 0; }

.hall-detail .map-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-dark);
  font-weight: 600;
}

.back-link a {
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-link a:hover { text-decoration: underline; }

/* Functions */
.function-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.function-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
}

.function-item .name { font-weight: 600; color: var(--purple-dark); }
.function-item .when { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* Catalog (menus / decorations / rentals) */
.catalog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.catalog-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--purple-dark);
  letter-spacing: 0.3px;
}
.cat-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.cat-row:first-of-type { border-top: none; }
.cat-row .name { font-weight: 600; font-size: 0.95rem; }
.cat-row .desc { color: var(--muted); font-size: 0.85rem; margin: 4px 0 0; }
.cat-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.cat-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple-dark);
}
.chip em { color: var(--muted); font-style: italic; font-size: 0.75rem; }

/* Enquiry Form */
.enquiry-form {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple-dark);
}

.field input,
.field textarea,
.field select {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #faf5ee;
  transition: all 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
  background: #fff;
}

.field-row { display: flex; gap: 14px; }

.form-status { margin: 0; font-size: 0.92rem; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

.loading { color: var(--muted); padding: 12px 0; text-align: center; }

/* Login Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--card);
  border-radius: 20px;
  padding: 36px;
  width: min(420px, 92%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}

.modal h2 {
  font-family: 'Playfair Display', serif;
  color: var(--purple-dark);
  margin: 0;
  font-size: 1.5rem;
}

.modal-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.modal-logo { width: 36px; height: 36px; }

.modal-sub { font-size: 0.85rem; color: #673ab7; font-weight: 600; }
.modal-sub.muted { font-size: 0.75rem; color: #94a3b8; font-weight: 500; }

.modal .subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.9rem;
}

.modal .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal .close-btn:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Portal Dashboard */
.portal-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.portal-section h3 {
  font-family: 'Playfair Display', serif;
  color: var(--purple-dark);
  margin: 0 0 16px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
}

.stat-card .label {
  font-size: 0.82rem;
  color: #c4b5fd;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.enquiry-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.enquiry-table th {
  background: var(--purple-dark);
  color: var(--gold-light);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.enquiry-table th:first-child { border-radius: 10px 0 0 0; }
.enquiry-table th:last-child { border-radius: 0 10px 0 0; }

.enquiry-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.enquiry-table tr:hover td {
  background: #faf5ee;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-new { background: #dbeafe; color: #1d4ed8; }
.status-follow_up { background: #fef3c7; color: #b45309; }
.status-site_visit { background: #ede9fe; color: #7c3aed; }
.status-quoted { background: #d1fae5; color: #047857; }
.status-negotiation { background: #fce7f3; color: #be185d; }
.status-won { background: #dcfce7; color: #166534; }
.status-lost { background: #fee2e2; color: #991b1b; }
.status-closed { background: #f1f5f9; color: #475569; }

/* User badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.user-badge .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: #94a3b8;
  margin-top: auto;
}

.site-footer #footer-phone {
  color: var(--gold-light);
  font-weight: 600;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.9rem;
}

.footer-inner .brand-footer {
  font-size: 1.1rem;
}

/* Hall sub-navigation */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 6px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 38px;
  z-index: 60;
  align-items: center;
}

.subnav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: 10px;
  transition: all 0.2s;
}

.subnav a:hover {
  background: #faf5ee;
  color: var(--purple-dark);
}

.subnav a.active {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(21, 128, 61, 0.3);
}

/* Professional catalog pages */
.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
  font-size: 0.95rem;
}

.block-title {
  font-family: 'Playfair Display', serif;
  color: var(--purple-dark);
  margin: 28px 0 14px;
  font-size: 1.3rem;
}

.hall-detail .actions { margin-top: 20px; }

.overview-gallery { margin-top: 8px; }
.overview-gallery img { height: 170px; }

.gallery-grid { margin-top: 8px; }
.gallery-grid img { height: 220px; }
.gallery-item { display: block; }
.gallery-item:hover img { transform: scale(1.03); }

.pkg-card { padding: 20px 22px; }

.pkg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.pkg-head h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--purple-dark);
}

.pkg-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}

.pkg-price span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.view-note { margin: -14px 0 20px; font-size: 0.85rem; }

.cat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 0.92rem;
}

.cat-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  padding: 8px 12px;
}

.cat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.cat-table tr:last-child td { border-bottom: none; }
.cat-table td.amt { text-align: right; white-space: nowrap; }
.cat-table .sub { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--muted); }
.item-name { font-weight: 600; color: var(--ink); }
.opt { color: var(--muted); font-style: italic; font-size: 0.75rem; }

.mini-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.mini-tag.veg { background: #dcfce7; color: #15803d; }
.mini-tag.nonveg { background: #fee2e2; color: #b91c1c; }

/* Catering dropdown + meal filtering */
.nav-dd { position: relative; display: flex; }
.nav-dd > a { display: flex; align-items: center; }
.nav-dd .caret { font-size: 0.7rem; line-height: 1; margin-left: 5px; opacity: 0.85; }

.nav-dd .drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  padding: 6px;
  display: none;
  z-index: 80;
}

.nav-dd:hover .drop,
.nav-dd:focus-within .drop { display: block; }

.nav-dd .drop a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.nav-dd .drop a:hover { background: #faf5ee; color: var(--purple-dark); }

.meal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.meal-tabs a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: all 0.2s;
}

.meal-tabs a:hover { border-color: var(--gold); color: var(--purple-dark); }

.meal-tabs a.on {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  border-color: transparent;
}

.pkg-link {
  text-decoration: none;
  color: var(--purple-dark);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.pkg-link:hover { border-bottom-color: var(--gold); }

.pkg-count { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.view-menu { margin-top: 12px; }

.menu-cat h4 {
  margin: 18px 0 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  font-weight: 700;
}

.menu-detail .actions { margin-top: 18px; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 0 50px; }
  .field-row { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .hall-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 4px; }
  .portal-stats { grid-template-columns: 1fr 1fr; }
  .enquiry-table { font-size: 0.8rem; }
  .enquiry-table th, .enquiry-table td { padding: 8px 10px; }
  .logo-img { width: 18px; height: 18px; }
  .brand { font-size: 1.1rem; }
}
