/* =============================================================================
   ACUTUS MAHAL & CONVENTIONS — Wedding Venue / Kalyana Mandapam Demo Template
   Architecture: Silk Cream + Kanjeevaram Maroon + Antique Zari Gold · Cinzel
   Crafted by Acutus Digital Dynamics (https://acutusdigitaldynamics.com)
   ============================================================================= */

:root {
  --bg-silk: #fdf9f2;
  --bg-silk-alt: #f5ede0;
  --surface: #ffffff;
  --maroon: #4a1525;
  --maroon-deep: #320c18;
  --gold: #b58938;
  --gold-light: #dfbe78;
  --text: #2a1d20;
  --text-muted: #665458;
  --border: rgba(74, 21, 37, 0.14);
  --border-gold: rgba(181, 137, 56, 0.42);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-sm: 0 6px 24px rgba(74, 21, 37, 0.08);
  --shadow-md: 0 16px 40px rgba(74, 21, 37, 0.14);
  --transition: 0.25s ease;
}

/* ===================== RESET & BASE ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--bg-silk);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

.wrap {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ===================== DEMO RIBBON ===================== */
.mahal-demo-bar {
  background: var(--maroon-deep);
  color: #ebd9dc;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(223, 190, 120, 0.25);
}

.mahal-demo-bar a {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===================== TRANSPARENT-TO-SILK OVERLAY HEADER ===================== */
.mahal-header {
  position: sticky;
  top: 0;
  z-index: 950;
  background: rgba(50, 12, 24, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border-bottom: 1px solid rgba(223, 190, 120, 0.25);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.mahal-header.scrolled {
  background: rgba(253, 249, 242, 0.97);
  color: var(--maroon);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.mahal-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.mahal-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.mahal-logo strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.mahal-logo span {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.mahal-header.scrolled .mahal-logo span {
  color: var(--gold);
}

.mahal-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.mahal-nav a {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
  transition: opacity var(--transition), color var(--transition);
}

.mahal-nav a:hover,
.mahal-nav a.active {
  opacity: 1;
  color: var(--gold-light);
}

.mahal-header.scrolled .mahal-nav a:hover,
.mahal-header.scrolled .mahal-nav a.active {
  color: var(--gold);
}

.mahal-mobile-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(223, 190, 120, 0.45);
  color: inherit;
  align-items: center;
  justify-content: center;
}

.mahal-mobile-panel {
  display: none;
  background: var(--maroon-deep);
  color: #ffffff;
  padding: 0.5rem clamp(1rem, 4vw, 2rem) 1.25rem;
}

.mahal-mobile-panel.open {
  display: block;
}

.mahal-mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.65rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-maroon {
  background: var(--maroon);
  color: #ffffff;
  border-color: var(--maroon);
}

.btn-maroon:hover {
  background: var(--maroon-deep);
  border-color: var(--maroon-deep);
}

.btn-gold {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #987028;
  border-color: #987028;
}

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

.btn-outline-gold:hover {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

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

.btn-outline-maroon:hover {
  background: var(--maroon);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

/* ===================== CEREMONIAL FRAMED HERO ===================== */
.ceremonial-hero {
  position: relative;
  min-height: clamp(560px, 84vh, 840px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) 1rem;
  background: var(--maroon-deep);
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(50, 12, 24, 0.7) 0%, rgba(36, 8, 17, 0.88) 100%);
}

.hero-ornate-frame {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  border: 1px solid rgba(223, 190, 120, 0.45);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  background: rgba(36, 8, 17, 0.42);
  backdrop-filter: blur(4px);
}

.ornament-line {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.ceremonial-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.ceremonial-sub {
  margin: 1.15rem auto 0;
  max-width: 620px;
  color: #eddde0;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Muhurtham Quick Availability Bar */
.muhurtham-bar-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.muhurtham-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
}

.mb-field {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mb-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.mb-input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  width: 100%;
  min-width: 0;
  min-height: 32px;
  outline: none;
}

.mb-btn {
  border-radius: 0;
  padding: 0 2rem;
  min-height: 68px;
}

/* Sub-page Header */
.sub-hero {
  background: var(--maroon);
  color: #ffffff;
  text-align: center;
  padding: clamp(3rem, 6vw, 4.75rem) 1rem;
  border-bottom: 2px solid var(--gold);
}

.sub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sub-hero p {
  max-width: 620px;
  margin: 0.75rem auto 0;
  color: #ecdbe0;
}

/* ===================== SECTIONS ===================== */
.sec {
  padding: clamp(3.5rem, 6.5vw, 5.75rem) 0;
  border-bottom: 1px solid var(--border);
}

.sec-alt {
  background: var(--bg-silk-alt);
}

.sec-maroon {
  background: var(--maroon);
  color: #f8f0f2;
}

.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.sec-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.sec-maroon .sec-kicker {
  color: var(--gold-light);
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--maroon);
  line-height: 1.2;
}

.sec-maroon .sec-title {
  color: #ffffff;
}

.sec-sub {
  margin-top: 0.7rem;
  color: var(--text-muted);
}

.sec-maroon .sec-sub {
  color: #e4d2d6;
}

/* ===================== HALL CAPACITY SWITCHER ===================== */
.hall-tabs {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hall-tab {
  padding: 0.65rem 1.4rem;
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: all var(--transition);
}

.hall-tab:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

.hall-tab.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #ffffff;
}

.hall-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: 1.15fr 1fr;
  gap: 2.25rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.hall-panel.active {
  display: grid;
}

.hall-photo {
  overflow: hidden;
  border: 1px solid var(--border);
}

.hall-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hall-panel h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--maroon);
  margin-bottom: 0.55rem;
}

.hall-panel p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.hall-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1.1rem 0;
  margin-bottom: 1.35rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hs-item span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.hs-item strong {
  font-size: 0.96rem;
  color: var(--maroon);
}

/* ===================== WEDDING & VIRUNDHU ESTIMATOR ===================== */
.est-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}

.est-card,
.est-summary {
  padding: clamp(1.4rem, 3.5vw, 2.35rem);
  border: 1px solid var(--border-gold);
  min-width: 0;
}

.est-card {
  background: var(--surface);
}

.est-summary {
  background: var(--maroon);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.est-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-light);
  margin: 0.35rem 0 1.25rem;
}

.est-lines {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1rem 0;
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.est-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #e8d8dc;
}

/* ===================== AMENITIES & GALLERY ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.6rem;
  text-align: center;
}

.feat-box i {
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.feat-box h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--maroon);
  margin-bottom: 0.45rem;
}

.feat-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-tile {
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  height: 230px;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 6, 13, 0.92);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--gold-light);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--maroon);
  border: 1px solid var(--gold-light);
  color: #ffffff;
}

/* ===================== DEFENSIVE FORMS ===================== */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
  min-width: 0;
}

.contact-layout-grid > * {
  min-width: 0;
}

.venue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.venue-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--maroon);
  margin-bottom: 0.75rem;
}

.vc-line {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.vc-line i {
  color: var(--gold);
  margin-top: 0.25rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--maroon);
  margin-bottom: 0.35rem;
}

.form-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
  min-width: 0;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.38rem;
}

.form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 44px;
  background: var(--bg-silk);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.68rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.form-row-2 > div {
  min-width: 0;
}

/* ===================== CENTERED CEREMONIAL CREST FOOTER ===================== */
.mahal-footer {
  background: var(--maroon-deep);
  color: #dfc9ce;
  text-align: center;
  padding: 3rem 0 2rem;
}

.footer-crest {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-divider {
  width: 140px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto;
}

.mahal-footer a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  background: var(--maroon-deep);
  color: #ffffff;
  border-left: 4px solid var(--gold-light);
  padding: 1rem 1.35rem;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all 0.25s ease;
  max-width: 350px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.toast-msg {
  font-size: 0.84rem;
  color: #ead7dc;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hall-panel.active,
  .est-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .muhurtham-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mb-field {
    border-bottom: 1px solid var(--border);
  }

  .mb-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .mahal-nav {
    display: none;
  }

  .mahal-mobile-btn {
    display: flex;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row-2,
  .muhurtham-bar,
  .features-grid,
  .gallery-grid,
  .hall-specs {
    grid-template-columns: 1fr;
  }

  .mb-field {
    border-right: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
