/* ============================================================
   Nirantaram Onam Celebration 2026 — style.css
   Luxury Cormorant Garamond & Outfit Typography · Brand Espresso & Gold
   Full Mobile & Desktop Responsive Design System
   ============================================================ */

:root {
  /* Official Brand Color Palette */
  --bg-deep: #0d0b08;
  --bg-card: rgba(18, 14, 10, 0.90);
  --bg-input: rgba(251, 248, 242, 0.06);
  
  --gold: #cf9a36;
  --gold-soft: #dcb253;
  --gold-light: #f5d98b;
  --gold-dark: #8c6717;
  
  --ivory: #fbf8f2;
  --ivory-dim: rgba(251, 248, 242, 0.85);
  --ivory-muted: rgba(251, 248, 242, 0.60);

  --line: rgba(251, 248, 242, 0.08);
  --line-gold: rgba(207, 154, 54, 0.32);

  /* Typography */
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --cinzel: "Cinzel", Georgia, serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions & Spacing */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pad: clamp(1rem, 3.5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gold-text {
  color: var(--gold-soft) !important;
  font-weight: 600;
}

/* ---------- Background Ambient Media ---------- */
.bg-media {
  position: fixed;
  inset: -20px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-media__img {
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  object-position: center right;
  filter: brightness(0.65) saturate(1.15);
  transform: scale(1.04);
  animation: kenburns 30s var(--ease) infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-10px, -6px, 0); }
}
.bg-media__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 11, 8, 0.97) 0%,
    rgba(18, 14, 10, 0.89) 48%,
    rgba(18, 14, 10, 0.68) 100%
  );
}
@media (max-width: 990px) {
  .bg-media__scrim {
    background: linear-gradient(
      to bottom,
      rgba(13, 11, 8, 0.96) 0%,
      rgba(18, 14, 10, 0.88) 50%,
      rgba(13, 11, 8, 0.97) 100%
    );
  }
}

/* ---------- Topbar Navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(207, 154, 54, 0.2);
}
.topbar__inner {
  max-width: 1320px;
  margin-inline: auto;
  padding: 0.75rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand__logo {
  height: clamp(28px, 3.5vw, 36px);
  width: auto;
  object-fit: contain;
}
.brand__badge {
  font-family: var(--cinzel);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 1px solid rgba(207, 154, 54, 0.45);
  padding-left: 0.75rem;
  line-height: 1.2;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ivory-dim);
  transition: color 0.3s;
  white-space: nowrap;
}
.topbar__phone svg {
  color: var(--gold);
  flex-shrink: 0;
}
.topbar__phone:hover {
  color: var(--gold-light);
}

/* ---------- Main Booking Wrap ---------- */
.main-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 3.5vh, 2.5rem) var(--pad);
}
.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  max-width: 1240px;
  width: 100%;
  align-items: center;
}

@media (min-width: 990px) {
  .booking-grid {
    grid-template-columns: 1.08fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

/* ---------- Left Story Pane ---------- */
.story-pane {
  display: flex;
  flex-direction: column;
}

.exclusivity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(251, 248, 242, 0.06);
  border: 1px solid rgba(207, 154, 54, 0.38);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  margin-bottom: 1rem;
  font-family: var(--cinzel);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  width: fit-content;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulseDot 2s infinite ease-in-out;
}
.badge__dot--red {
  background: #e06c53;
  box-shadow: 0 0 10px #e06c53;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}
.badge__sep {
  color: var(--gold);
  opacity: 0.7;
}
.badge__highlight {
  color: var(--gold-soft);
}

.main-title {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.title-br {
  display: none;
}
@media (min-width: 640px) {
  .title-br {
    display: block;
  }
}
.title-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-soft);
}

.main-desc {
  margin-top: 0.85rem;
  max-width: 48ch;
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  color: var(--ivory-dim);
  line-height: 1.6;
}

/* 3 Clean Highlights */
.highlights-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hl-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(251, 248, 242, 0.035);
  border: 1px solid rgba(207, 154, 54, 0.2);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}
.hl-row:hover {
  border-color: rgba(207, 154, 54, 0.45);
  background: rgba(251, 248, 242, 0.055);
}
.hl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(207, 154, 54, 0.14);
  border: 1px solid rgba(207, 154, 54, 0.38);
  color: var(--gold);
  flex-shrink: 0;
}
.hl-content {
  display: flex;
  flex-direction: column;
}
.hl-content strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.25;
}
.hl-content span {
  font-size: 0.8rem;
  color: var(--ivory-muted);
  line-height: 1.35;
}

/* ---------- Right Form Pane & Card ---------- */
.form-pane {
  width: 100%;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--line-gold);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(251, 248, 242, 0.08);
  border-radius: 14px;
}

.form-card {
  padding: clamp(1.2rem, 2.8vw, 2.2rem);
  position: relative;
}

.card__head {
  margin-bottom: 1rem;
}
.card__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.card__sub {
  color: var(--ivory-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Fields */
.field {
  margin-bottom: 0.9rem;
}
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}
.label__opt {
  font-weight: 400;
  color: var(--ivory-muted);
  text-transform: none;
  font-size: 0.72rem;
  margin-left: 0.3rem;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 0.9rem;
  color: rgba(207, 154, 54, 0.7);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-wrap input {
  padding-left: 2.5rem !important;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid rgba(207, 154, 54, 0.3);
  border-radius: 6px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.96rem;
  transition: all 0.3s var(--ease);
}
.field input::placeholder {
  color: rgba(251, 248, 242, 0.3);
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(251, 248, 242, 0.1);
  box-shadow: 0 0 0 3px rgba(207, 154, 54, 0.22);
}
.field.has-error input {
  border-color: #e0705a;
}
.error {
  min-height: 0;
  font-size: 0.76rem;
  color: #f7a292;
  margin-top: 0.25rem;
  font-weight: 500;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* Quick Member Selector Pills */
.member-pills-wrap {
  margin-bottom: 1rem;
}
.member-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pill {
  padding: 0.35rem 0.75rem;
  background: rgba(251, 248, 242, 0.04);
  border: 1px solid rgba(207, 154, 54, 0.28);
  border-radius: 100px;
  color: var(--ivory-dim);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.pill:hover {
  background: rgba(207, 154, 54, 0.2);
  border-color: var(--gold);
  color: var(--ivory);
}
.pill.is-active {
  background: linear-gradient(135deg, #dcb253, #b88628);
  border-color: var(--gold-soft);
  color: #0d0b08;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(207, 154, 54, 0.35);
}

.form-note {
  font-size: 0.84rem;
  color: #f7a292;
  min-height: 1.2em;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

/* Primary Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  font-family: var(--cinzel);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn--gold {
  background: linear-gradient(135deg, #dcb253, #b88628);
  color: #0d0b08;
  border-color: #e5bf67;
  box-shadow: 0 8px 24px -6px rgba(184, 134, 40, 0.6);
}
.btn--gold:hover {
  background: linear-gradient(135deg, #e5bf67, #c99430);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(184, 134, 40, 0.8);
  color: #060503;
}
.btn--block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.fineprint {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ivory-muted);
  line-height: 1.4;
}

/* Closed State */
.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(207, 154, 54, 0.14);
  border: 1px solid rgba(207, 154, 54, 0.4);
  border-radius: 100px;
  font-family: var(--cinzel);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}
.card__tag--closed {
  background: rgba(224, 108, 83, 0.14);
  border-color: rgba(224, 108, 83, 0.4);
  color: #f7b1a1;
}

.card__closed {
  text-align: center;
  padding: 1.2rem 0.5rem;
  animation: fadeUp 0.6s var(--ease) both;
}
.closed__note {
  font-size: 0.88rem;
  color: var(--ivory-muted);
  margin: 0.8rem auto 1.4rem;
  max-width: 42ch;
}
.card__closed .btn {
  margin-inline: auto;
}

/* Success State */
.card__success {
  text-align: center;
  position: relative;
  animation: fadeUp 0.6s var(--ease) both;
}
.summary {
  margin: 1.1rem auto;
  max-width: 440px;
  text-align: left;
  border: 1px solid rgba(207, 154, 54, 0.35);
  background: rgba(251, 248, 242, 0.03);
  border-radius: 8px;
  padding: 0.5rem 1rem;
}
.summary div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(251, 248, 242, 0.06);
}
.summary div:last-child {
  border-bottom: 0;
}
.summary dt {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.summary dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ivory);
  text-align: right;
}
.linklike {
  background: none;
  border: 0;
  padding: 0.6rem 0;
  color: var(--gold);
  font-family: var(--cinzel);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  display: block;
  margin: 0.8rem auto 0;
  transition: opacity 0.3s;
}
.linklike:hover {
  opacity: 0.75;
}

.petals {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -8%;
  width: 10px;
  height: 14px;
  border-radius: 60% 0 60% 0;
  transform: rotate(20deg);
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translate3d(60px, 120vh, 0) rotate(420deg); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.footer {
  background: #080705;
  border-top: 1px solid rgba(207, 154, 54, 0.18);
  color: var(--ivory-muted);
  font-size: 0.82rem;
}
.footer__inner {
  max-width: 1320px;
  margin-inline: auto;
  padding: 1.2rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 520px;
}
.footer__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.footer__addr {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ivory-muted);
}
.footer__meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}
.footer__contact a {
  color: var(--gold);
}
.footer__copy {
  font-size: 0.72rem;
  color: rgba(251, 248, 242, 0.38);
}

/* ============================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (768px, 480px, 360px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --pad: 1rem;
  }

  .topbar__inner {
    padding: 0.65rem var(--pad);
  }
  .brand__logo {
    height: 28px;
  }
  .brand__badge {
    font-size: 0.58rem;
    padding-left: 0.5rem;
  }
  .topbar__phone {
    font-size: 0.8rem;
  }

  .main-wrap {
    padding: 1rem var(--pad) 2rem;
  }
  .booking-grid {
    gap: 1.5rem;
  }

  .exclusivity-badge {
    font-size: 0.64rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
  }
  .main-title {
    font-size: clamp(2rem, 7.5vw, 2.6rem);
    line-height: 1.12;
  }
  .main-desc {
    font-size: 0.9rem;
    margin-top: 0.6rem;
  }

  .highlights-list {
    margin-top: 1rem;
    gap: 0.6rem;
  }
  .hl-row {
    padding: 0.6rem 0.8rem;
    gap: 0.75rem;
  }
  .hl-icon {
    width: 30px;
    height: 30px;
  }
  .hl-icon svg {
    width: 14px;
    height: 14px;
  }
  .hl-content strong {
    font-size: 1rem;
  }
  .hl-content span {
    font-size: 0.76rem;
  }

  /* Form on Mobile */
  .form-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }
  .card__head {
    margin-bottom: 0.85rem;
  }
  .card__title {
    font-size: 1.8rem;
  }
  .card__sub {
    font-size: 0.82rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .field {
    margin-bottom: 0.8rem;
  }
  .field input {
    min-height: 48px;
    font-size: 1rem; /* Prevents auto-zoom on iOS */
    padding: 0.7rem 0.85rem;
  }

  .member-pills-wrap {
    margin-bottom: 0.85rem;
  }
  .member-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .pill {
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
    text-align: center;
  }

  .btn {
    min-height: 48px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  /* Success View on Mobile */
  .summary {
    margin: 1rem 0;
    padding: 0.5rem 0.8rem;
  }
  .summary div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.45rem 0;
  }
  .summary dt {
    font-size: 0.68rem;
  }
  .summary dd {
    text-align: left;
    font-size: 1.05rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem var(--pad);
  }
  .footer__meta-col {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .brand__badge {
    display: none;
  }
  .member-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bg-media__img {
    animation: none;
    transform: none;
  }
  .petals {
    display: none;
  }
}
