/* ============================================================
   GINGERBREAD AESTHETIC — book.css
   Styles specific to the booking page (book.html).
   Requires foundation.css and style.css to be loaded first.
   ============================================================ */


/* ============================================================
   PAGE HERO — compact dark header used on interior pages
   Reusable on about.html, contact.html, faq.html etc.
   Copy the .page-hero block into those pages too.
   ============================================================ */

.page-hero {
  background-color: var(--espresso);
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative background texture */
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.08);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.06);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: var(--leading-tight);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

.page-hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--leading-snug);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space-5);
}


/* ============================================================
   BOOKING METHODS — WhatsApp and Phone cards
   ============================================================ */

.book-primary {
  background-color: var(--ivory);
}

.book-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Shared card styles */
.book-method {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.book-method:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* WhatsApp card — green tinted */
.book-method-whatsapp {
  background-color: #fff;
  border-color: rgba(37, 211, 102, 0.25);
}

.book-method-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
}

/* Phone card — champagne tinted */
.book-method-phone {
  background-color: var(--champagne);
  border-color: var(--color-border);
}

.book-method-phone:hover {
  border-color: var(--color-border-strong);
}

/* Icon circle */
.book-method-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-method-icon svg {
  width: 28px;
  height: 28px;
}

.book-method-whatsapp .book-method-icon {
  background-color: #25D366;
  color: #fff;
}

.book-method-phone .book-method-icon {
  background-color: var(--espresso);
  color: var(--gold);
}

/* Text content */
.book-method-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: var(--space-1);
}

.book-method-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--espresso);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}

.book-method-whatsapp .book-method-title {
  color: #1a7a3c;
}

.book-method-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
  max-width: 100%;
}

.book-method-action {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  transition: transform var(--transition-fast);
  display: inline-block;
}

.book-method-whatsapp .book-method-action {
  color: #25D366;
}

.book-method-phone .book-method-action {
  color: var(--gold);
}

.book-method:hover .book-method-action {
  transform: translateX(4px);
}


/* ============================================================
   BOOKSY COMING SOON BANNER
   ============================================================ */

.booksy-banner {
  background-color: var(--espresso);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.booksy-banner-inner {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.booksy-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--espresso);
  background-color: var(--gold);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
}

.booksy-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: var(--space-4);
}

.booksy-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--leading-normal);
  max-width: 100%;
}


/* ============================================================
   WHAT TO EXPECT — numbered steps
   ============================================================ */

.expect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.expect-item {
  position: relative;
  padding-top: var(--space-4);
}

/* Gold top border accent */
.expect-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--gold);
}

.expect-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--weight-bold);
  color: var(--champagne);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.expect-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-heading);
  color: var(--espresso);
  margin-bottom: var(--space-3);
}

.expect-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: var(--leading-normal);
  max-width: 100%;
}


/* ============================================================
   TREATMENTS QUICK LIST
   ============================================================ */

.treatments-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  max-width: 800px;
}

.treatments-quick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background-color: var(--off-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast);
}

.treatments-quick-item:hover {
  background-color: var(--champagne);
  border-color: var(--color-border);
  transform: translateX(3px);
}

.treatments-quick-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--espresso);
}

.treatments-quick-price {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {

  /* Booking cards stack */
  .book-methods {
    grid-template-columns: 1fr;
  }

  /* Steps: 2 columns on tablet */
  .expect-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Treatment list: full width */
  .treatments-quick-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {

  /* Steps: single column on phone */
  .expect-grid {
    grid-template-columns: 1fr;
  }

  /* Booking cards: less padding on phone */
  .book-method {
    padding: var(--space-6);
  }

}


/* ============================================================
   BOOKSY LIVE WIDGET SECTION
   Replaces the old "coming soon" banner.
   ============================================================ */

.booksy-section {
  background-color: var(--ivory);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.booksy-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.booksy-section-text {
  max-width: 560px;
}

.booksy-section-text h2 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-1);
}

.booksy-section-text p {
  margin-top: var(--space-4);
  color: var(--text-mid);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  max-width: 100%;
}

/* "Live Availability" badge */
.booksy-live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--espresso);
  background-color: var(--gold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-xl);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Green pulsing dot before the badge text */
.booksy-live-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16a34a;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Widget container — gives the Booksy iframe space to breathe */
.booksy-widget-wrap {
  width: 100%;
  /* Booksy renders a compact button — no need for a tall container */
  /* It opens a full overlay modal when clicked */
  padding: var(--space-6) 0;
}

@media (max-width: 640px) {
  .booksy-section-header {
    flex-direction: column;
  }
}

/* WhatsApp/phone as secondary section — tinted background, less visual weight */
.book-secondary {
  background-color: var(--champagne);
}

.book-secondary .book-method-whatsapp {
  background-color: #fff;
}

.book-secondary .book-method-phone {
  background-color: var(--off-white);
}

/* Force Booksy's injected iframe to not leave a grey void.
   Booksy sets a fixed height on its iframe via their script —
   this overrides it so only the button area shows, not empty space. */
.booksy-widget-wrap iframe {
  max-height: 120px !important;
  min-height: 0 !important;
}
