/* ===========================
   BASE
=========================== */
body {
  background-color: #1D1612;
  color: #F5F5F0;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   HEADER
=========================== */
.glass-header {
  background: rgba(29, 22, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

/* ===========================
   BUTTONS
=========================== */
.gold-gradient-btn {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-gradient-btn:hover {
  background: linear-gradient(135deg, #E5C158 0%, #D4AF37 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* ===========================
   CARDS
=========================== */
.espresso-card {
  background-color: rgba(42, 33, 28, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
}

.espresso-card:hover {
  background-color: rgba(42, 33, 28, 0.9);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
}

.ivory-card {
  background-color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.ivory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: #D4AF37;
}

/* ===========================
   HERO
=========================== */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(29, 22, 18, 0.95) 0%,
    rgba(29, 22, 18, 0.7) 50%,
    rgba(29, 22, 18, 0.4) 100%
  );
}

/* ===========================
   NAVIGATION (FIXED)
=========================== */
.nav-link {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.8);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #D4AF37;
}

.nav-active {
  color: #D4AF37;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 0.25rem;
}

/* ===========================
   DECOR
=========================== */
.chess-pattern-light {
  background-image: radial-gradient(#D4AF37 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.05;
}

/* ===========================
   WHATSAPP FLOAT
=========================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}
/* ===========================
   ABOUT PAGE
=========================== */

.expertise-card {
  padding: 2rem; /* p-8 */
  background-color: #ffffff;
  border-radius: 1rem; /* rounded-2xl */
  border: 1px solid rgba(212, 175, 55, 0.1); /* border-primary/10 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
  transition: all 0.2s ease;
}

.expertise-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
}
/* ===========================
   PROGRAMS PAGE
=========================== */

.program-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.program-table th {
  padding: 1rem 1.5rem; /* py-4 px-6 */
  font-size: 0.75rem; /* text-xs */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1); /* border-primary/10 */
  color: inherit;
}

.program-table td {
  padding: 1rem 1.5rem; /* py-4 px-6 */
  font-size: 0.875rem; /* text-sm */
  border-bottom: 1px solid rgba(212, 175, 55, 0.05); /* border-primary/5 */
  font-family: "Manrope", sans-serif;
}

/* NOTE: this card intentionally sets NO background-color.
   It previously forced a dark espresso wash which overrode the
   bg-white / bg-espresso-light utilities and made the price tables
   unreadable (dark text on a dark card). The surface colour is now
   controlled by the utility class on the element itself. */
.program-card {
  border-radius: 1rem; /* rounded-2xl */
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1); /* border-primary/10 */
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.08); /* shadow-xl */
}

/* Keep the program tables comfortable on small phones */
@media (max-width: 480px) {
  .program-table th,
  .program-table td {
    padding: 0.85rem 0.85rem;
  }

  .program-table th {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }

  .program-table td {
    font-size: 0.8125rem;
  }
}
/* ===========================
   BOOKINGS PAGE
=========================== */

/* Disabled gold button */
.gold-gradient-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Form inputs */
.form-input {
  width: 100%;
  background-color: #F9F7F2; /* soft-ivory */
  border: 1px solid #E5E7EB; /* gray-200 */
  color: #1D1612; /* espresso */
  border-radius: 0.5rem; /* rounded-lg */
  padding: 0.75rem 1rem; /* py-3 px-4 */
  font-family: "Manrope", sans-serif;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* Selection cards */
.selection-card {
  border: 2px solid #F3F4F6; /* gray-100 */
  padding: 1.5rem;
  border-radius: 0.75rem; /* rounded-xl */
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.selection-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.selection-card.active {
  border-color: #D4AF37;
  background-color: rgba(212, 175, 55, 0.05);
}

/* Step indicator */
.step-pill {
  height: 0.375rem; /* h-1.5 */
  flex: 1;
  border-radius: 9999px;
  transition: all 0.5s ease;
}

/* Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  padding: 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.cal-day:hover {
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.cal-day.disabled {
  color: #D1D5DB; /* gray-300 */
  cursor: not-allowed;
}

.cal-day.selected {
  background-color: #D4AF37;
  color: #1D1612;
  font-weight: 700;
}

/* Time slots */
.timeslot {
  padding: 0.75rem;
  border: 2px solid #F3F4F6;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #6B7280; /* gray-500 */
  transition: all 0.2s ease;
  cursor: pointer;
}

.timeslot:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.timeslot.selected {
  border-color: #D4AF37;
  background-color: rgba(212, 175, 55, 0.1);
  color: #1D1612;
  font-weight: 700;
}

/* Errors */
.error-text {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
/* ===========================
   SUCCESS PAGE
=========================== */

.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 3rem; /* p-12 */
  background-color: #ffffff;
  border-radius: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.05); /* border-primary/5 */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); /* shadow-2xl */
}

/* md:p-24 */
@media (min-width: 768px) {
  .empty-state-card {
    padding: 6rem;
  }
}

.watermark-icon {
  margin-bottom: 2rem; /* mb-8 */
  color: rgba(212, 175, 55, 0.2);
  transform: scale(2.5);
  user-select: none;
}
/* ===========================
   LOGIN PAGE
=========================== */

/* Page-scoped body */
.login-body {
  background-color: #F5F5F0; /* ivory */
  color: #1D1612; /* espresso */
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Login-specific gold button */
.gold-gradient-btn.login-btn:hover {
  background: linear-gradient(135deg, #E5C158 0%, #D4AF37 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Chess background pattern */
.chess-pattern {
  background-color: #F5F5F0;
  background-image: radial-gradient(
    circle at 2px 2px,
    #1D1612 1px,
    transparent 0
  );
  background-size: 40px 40px;
  opacity: 0.03;
}

/* Input fields */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem; /* py-3 px-4 */
  background-color: #ffffff;
  border: 1px solid rgba(29, 22, 18, 0.1); /* espresso/10 */
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: "Manrope", sans-serif;
  color: #1D1612;
  outline: none;
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4);
}
/* ===========================
   ADMIN PAGE
=========================== */

/* Page-scoped body */
.admin-body {
  background-color: #F5F5F0; /* ivory */
  color: #1D1612; /* espresso */
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Admin navigation tabs */
.nav-tab {
  padding: 1rem 1.5rem; /* px-6 py-4 */
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Tab colours: gold at full strength is only 2.1:1 on the ivory panel,
   so the label uses a darker gold and idle tabs a readable grey-brown. */
.nav-tab.active {
  border-color: #D4AF37;
  color: #8A6410;
}

.nav-tab:not(.active) {
  color: #5A5049;
}

.nav-tab:not(.active):hover {
  color: #1D1612;
}

/* Admin form input */
.form-input-admin {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #E5E7EB; /* gray-200 */
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: "Manrope", sans-serif;
  transition: all 0.2s ease;
}

.form-input-admin:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* File dropzone */
.dropzone {
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 1rem;
  background-color: #F9F7F2; /* soft-ivory */
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover {
  background-color: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.5);
}
/* ===========================
   GLOBAL MOBILE BOTTOM NAV
=========================== */

/* IMPORTANT: every layout rule for the bottom nav lives inside the mobile
   media query. When `display: grid` sat outside it, it outranked Tailwind's
   `md:hidden` (both are single-class rules, and this file loads last) so the
   mobile nav stayed visible on desktop. */
@media (max-width: 767px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: #ffffff;
    border-top: 1px solid rgba(29, 22, 18, 0.1);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 60;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(29, 22, 18, 0.45);
  transition: all 0.2s ease;
}

.mobile-nav-item span.material-symbols-outlined {
  font-size: 22px;
}

.mobile-nav-item:hover {
  color: #1D1612;
}

.mobile-nav-item.active {
  color: #D4AF37;
}

/* Prevent content hiding behind nav */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===========================
   READABILITY HELPERS
=========================== */

/* Small uppercase eyebrow labels: a touch larger + brighter so they
   stay legible on phones and on dark panels. */
.label-xs {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
/* ===========================
   GLOBAL MOBILE OPTIMIZATION
=========================== */

@media (max-width: 768px) {
  /* Base text stays at a readable 16px on phones. The old rule
     dropped it to 14px which made body copy hard to read. */
  body {
    line-height: 1.6;
  }

  /* NOTE: the previous "main { padding-top: 1.25rem !important }" rule
     is gone on purpose. It stripped the pt-20 offset that clears the
     fixed 80px header, so page titles collided with the header. */
}

/* ===========================
   MOBILE: HORIZONTAL TESTIMONIAL SCROLLER
   (index page: swipeable rail instead of a tall stack)
=========================== */
@media (max-width: 767px) {
  .testimonials-track {
    display: flex;
    flex-direction: row;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 0;
    padding: 0.25rem 0 1.25rem;
    margin-inline: -1.5rem;
    padding-inline: 1.5rem;
    scrollbar-width: none;
  }

  .testimonials-track::-webkit-scrollbar {
    display: none;
  }

  .testimonials-track > * {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: center;
  }

  /* Keep the swiper from looking collapsed when there is only one card */
  .testimonials-track > *:only-child {
    flex-basis: 92%;
    max-width: 92%;
  }
}

/* Readability: long paragraphs get a sane measure on phones */
@media (max-width: 480px) {
  h1 {
    line-height: 1.05;
    word-break: break-word;
  }
}

/* iOS Safari zooms the entire page when a form field with a font-size
   below 16px receives focus, which made the booking wizard feel like a
   zoomed-out desktop page. The class+element selectors below win over
   the page-level .form-input rules. */
@media (max-width: 768px) {
  input.form-input,
  select.form-input,
  textarea.form-input,
  input.form-input-admin,
  textarea.form-input-admin,
  input.input-field {
    font-size: 1rem;
  }
}
/* ===========================
   WHATSAPP FLOAT – MOBILE FIX
=========================== */

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 96px; /* moves above mobile bottom nav */
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/* NOTE: the global "body { padding-top: 55px }" rule was removed.
   It pushed every page down on phones while the fixed header is 81px,
   producing a double offset. Pages that need it manage their own
   top spacing (see .bookings-shell below). */
/* NOTE: the old "bookings wizard: clear the fixed mobile summary bar"
   rule is gone. On phones the dark aside panel is replaced by the
   booking app bar, so no offset is needed (see bookings.html). */
/* Logo sizing is now handled by utility classes (h-12 / sm:h-16 / md:h-20)
   directly on the <img>, so the old alt-text based override was removed. */

