/* ================================================================
   IESL NAV — nav.css
   Brand colors:
     Primary  : #3E7DB9  (medium blue)
     Secondary: #203A72  (deep navy blue)
     Accent   : #F97316  (orange)
     Text     : #FFFFFF
   ================================================================ */

:root {
  /* Brand palette */
  --primary:       #3E7DB9;
  --primary-dark:  #2F6A9F;
  --primary-light: #5B96CC;
  --secondary:     #203A72;
  --secondary-dark:#162B57;
  --orange:        #ff8f0f;
  --orange-dark:   #EA6C0A;
  --orange-light:  #ffbf00;
  --white:         #FFFFFF;
  --nav-height:    68px;

  /* Shared tokens used across pages */
  --cream:         #F4F7FB;
  --cream-dark:    #E6EDF6;
  --border:        #D0DDED;
  --text-body:     #1E3A5F;
  --text-muted:    #5A7A9E;
  --shadow-sm:     0 2px 8px rgba(32,58,114,.08);
  --shadow-md:     0 6px 24px rgba(32,58,114,.13);
  --shadow-lg:     0 16px 48px rgba(32,58,114,.18);
  --radius:        12px;
  --radius-lg:     18px;
  --transition:    .22s cubic-bezier(.4,0,.2,1);

  /* Calendar / booking status colours kept for compatibility */
  --booked-bg:     #1A6B4A;
  --reserved-bg:   #D97706;
  --gold:          #D97706;
  --gold-light:    #FBB040;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* ── NAVBAR SHELL ────────────────────────────────────────────── */
.iesl-navbar {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 0;
  min-height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(32,58,114,.25);
}

.iesl-nav-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 50%, transparent 100%);
}

/* ── BRAND ───────────────────────────────────────────────────── */
.iesl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 0;
}

.brand-emblem svg { display: block; flex-shrink: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-org {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.brand-country {
  color: rgba(255,255,255,.6);
  font-size: .68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── TOGGLER ─────────────────────────────────────────────────── */
.iesl-toggler {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background var(--transition);
}

.iesl-toggler:focus { outline: none; box-shadow: none; }
.iesl-toggler:hover { background: rgba(255,255,255,.18); }

.toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── NAV LINKS ───────────────────────────────────────────────── */
.iesl-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.75) !important;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 13px !important;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .2px;
}

.iesl-nav-link i {
  font-size: 1rem;
  flex-shrink: 0;
}

.iesl-nav-link:hover {
  background: rgba(255,255,255,.1) !important;
  color: var(--white) !important;
  border-color: rgba(255,255,255,.12);
}

.iesl-nav-link.active {
  background: rgba(255,255,255,.15) !important;
  color: var(--white) !important;
  border-color: rgba(255,255,255,.25);
}

/* ── MAKE RESERVATION BUTTON ─────────────────────────────────── */
.btn-reserve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white) !important;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .3px;
  position: relative;
  overflow: hidden;
}

.btn-reserve::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-reserve:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.5);
  color: var(--white) !important;
}

.btn-reserve:hover::before { opacity: 1; }
.btn-reserve:active { transform: translateY(0); }

.btn-reserve.reserve-active {
  background: linear-gradient(135deg, var(--orange-dark) 0%, #C2570A 100%);
  box-shadow: 0 2px 8px rgba(249,115,22,.3);
}

.btn-reserve i { font-size: 1rem; }

/* Pulse animation on the button to draw attention */
@keyframes reservePulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(249,115,22,.4); }
  50%       { box-shadow: 0 4px 24px rgba(249,115,22,.7); }
}
.btn-reserve:not(.reserve-active) {
  animation: reservePulse 2.5s ease-in-out infinite;
}

/* ── MOBILE COLLAPSED MENU ───────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--secondary-dark);
    border-radius: 0 0 12px 12px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    margin: 0 -12px;
  }

  .navbar-nav { gap: 4px !important; }

  .iesl-nav-link {
    padding: 10px 14px !important;
    border-radius: 8px;
  }

  .btn-reserve {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .iesl-navbar .container-xl { padding: 0 16px; }
}

/* ── PAGE WRAPPER (for sticky nav offset) ────────────────────── */
.page-wrap { min-height: calc(100vh - var(--nav-height) - 3px); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  padding: 24px 0;
  border-top: 3px solid var(--orange);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-org {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255,255,255,.6);
  font-size: .79rem;
}

.footer-org strong {
  color: var(--white);
  font-size: .9rem;
}

.footer-note {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
}

/* ── SHARED PAGE BANNER ──────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 36px 0 30px;
  border-bottom: 3px solid var(--orange);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
}

.banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}

.banner-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-light);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.banner-eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--white);
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.banner-sub {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  margin-top: 6px;
}

.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(249,115,22,.2);
  color: var(--orange-light);
  border: 1.5px solid rgba(249,115,22,.4);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.banner-link:hover {
  background: rgba(249,115,22,.35);
  color: var(--white);
  border-color: rgba(249,115,22,.6);
}

/* ── SPINNER (shared) ────────────────────────────────────────── */
.iesl-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(62,125,185,.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ieslSpin .7s linear infinite;
  vertical-align: middle;
}

@keyframes ieslSpin { to { transform: rotate(360deg); } }

/* ── RATE REFERENCE MODAL ────────────────────────────────────── */
.rate-modal-content {
  border-radius: var(--radius) !important;
  overflow: hidden;
  border: none !important;
}

.rate-modal-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 22px 28px;
  border-bottom: 3px solid var(--orange) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rate-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rate-modal-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(249,115,22,.2);
  border: 1px solid rgba(249,115,22,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-light);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.rate-modal-header .modal-title {
  color: var(--white) !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.rate-modal-sub {
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  margin: 2px 0 0;
}

.rate-modal-close {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: var(--white);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  transition: all var(--transition);
}
.rate-modal-close:hover { background: rgba(255,255,255,.22); }

.rate-modal-body { padding: 28px; background: var(--white); }

.rate-modal-loading {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); padding: 20px 0; font-size: .9rem;
}

.rate-section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--secondary);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}

.rate-modal-table { font-size: .84rem; border-collapse: collapse; width: 100%; margin: 0; }
.rate-modal-table thead th {
  background: var(--secondary);
  color: var(--white);
  font-size: .73rem; letter-spacing: .8px; text-transform: uppercase;
  font-weight: 700; padding: 10px 14px; border: none;
}
.rate-modal-table tbody tr { border-bottom: 1px solid var(--cream-dark); }
.rate-modal-table tbody tr:hover td { background: var(--cream); }
.rate-modal-table tbody td { padding: 10px 14px; border: none; vertical-align: middle; }
.rate-no { font-weight: 700; color: var(--text-muted); font-size: .78rem; width: 36px; }
.rate-venue-name { font-weight: 600; color: var(--secondary); }
.rate-amount { font-weight: 700; color: var(--primary-dark); }

.rate-modal-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.rate-modal-note { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.btn-modal-close {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 7px;
  background: var(--secondary); color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .84rem; font-weight: 700; border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-modal-close:hover { background: var(--primary); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 575px) {
  .banner-title   { white-space: normal; font-size: 1.5rem; }
  .banner-inner   { flex-direction: column; align-items: flex-start; }
  .footer-inner   { flex-direction: column; text-align: center; }
}
