/* ==========================================================================
   Impact Center Sigiriya — Premium Guest Landing Page
   Loaded AFTER booking.css: overrides its design tokens (booking.css is
   entirely var()-driven, so redefining :root here re-themes every existing
   wizard component — buttons, cards, forms, focus states — with zero
   changes to booking.css or booking.js) and adds the new marketing sections
   above the wizard. Distinct palette + typography from book.zeroplastic.lk
   by design — a boutique-travel identity, not a green NGO booking form.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  /* Re-themed tokens — booking.css's own rules read these directly */
  --color-primary: #B22222;        /* Buttons */
  --color-primary-dark: #8C1D18;   /* Primary — doubles as button hover */
  --color-primary-light: #F6E3D6;
  --color-primary-soft: #F0D2BC;
  --color-bg: #FFF9F4;             /* Background */
  --color-surface: #FFFFFF;
  --color-text: #2F2A28;           /* Text */
  --color-text-muted: #6E5E56;
  --color-text-faint: #8C7B71;
  --color-border: #EBDDCC;
  --color-border-strong: #DCC4A8;
  --color-danger: #8C1D18;
  --color-danger-bg: #F6E3D6;
  --color-focus: #B22222;
  --font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --xp-secondary: #C97B2C;
  --xp-accent: #D9A441;
  --xp-ink: #2F2A28;
  --xp-display: 'Playfair Display', Georgia, serif;

  /* Subtle repeating fan-petal motif (nods to batik/mask line-art without depicting a
     literal mask) — two tonal variants for dark vs. warm-gradient backgrounds. */
  --xp-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23D9A441' stroke-width='1'%3E%3Cpath d='M80 80 L80 10 A70 70 0 0 1 143 55 Z'/%3E%3Cpath d='M80 80 L143 55 A70 70 0 0 1 118 138 Z'/%3E%3Cpath d='M80 80 L118 138 A70 70 0 0 1 42 138 Z'/%3E%3Cpath d='M80 80 L42 138 A70 70 0 0 1 17 55 Z'/%3E%3Cpath d='M80 80 L17 55 A70 70 0 0 1 80 10 Z'/%3E%3Ccircle cx='80' cy='80' r='8'/%3E%3C/g%3E%3C/svg%3E");
  --xp-motif-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23FFF9F4' stroke-width='1'%3E%3Cpath d='M80 80 L80 10 A70 70 0 0 1 143 55 Z'/%3E%3Cpath d='M80 80 L143 55 A70 70 0 0 1 118 138 Z'/%3E%3Cpath d='M80 80 L118 138 A70 70 0 0 1 42 138 Z'/%3E%3Cpath d='M80 80 L42 138 A70 70 0 0 1 17 55 Z'/%3E%3Cpath d='M80 80 L17 55 A70 70 0 0 1 80 10 Z'/%3E%3Ccircle cx='80' cy='80' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

.xp-eyebrow {
  display: inline-block;
  font-family: var(--font-family);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xp-secondary);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.xp-hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) var(--sp-6) var(--sp-7);
  background:
    linear-gradient(180deg, rgba(35, 15, 12, 0.42) 0%, rgba(74, 25, 19, 0.46) 55%, rgba(107, 35, 24, 0.52) 100%),
    url('/images/hero-center.jpg');
  background-size: cover;
  background-position: center 65%;
  color: #FBEEE1;
  text-align: center;
}
.xp-hero .xp-eyebrow, .xp-hero-title, .xp-hero-sub {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.xp-hero::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.14;
  background-image: var(--xp-motif);
  background-size: 320px;
  background-repeat: repeat;
  pointer-events: none;
}
.xp-hero-content { position: relative; max-width: 46rem; margin: 0 auto; }
.xp-hero .xp-eyebrow { color: var(--xp-accent); }
.xp-hero-title {
  font-family: var(--xp-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.7rem + 2.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: var(--sp-3) 0 var(--sp-2);
  text-wrap: balance;
}
.xp-hero-sub {
  font-family: var(--xp-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  color: #F3D9BE;
  margin: 0 0 var(--sp-6);
}
.xp-hero .xp-cta {
  background: var(--xp-accent);
  color: #3A1B08;
  border: none;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.xp-hero .xp-cta:hover { background: #E8B85A; }

/* ── Section shell ────────────────────────────────────────────────────── */
.xp-section { padding: var(--sp-8) var(--sp-6); max-width: 64rem; margin: 0 auto; }
.xp-section-head { text-align: center; max-width: 40rem; margin: 0 auto var(--sp-6); }
.xp-section-head h2 {
  font-family: var(--xp-display);
  font-weight: 700;
  font-size: var(--fs-xxl);
  color: var(--xp-ink);
  margin: var(--sp-2) 0 0;
  text-wrap: balance;
}
.xp-rule {
  width: 56px; height: 3px; margin: var(--sp-4) auto 0;
  background: var(--xp-secondary); border-radius: var(--radius-pill);
}

/* ── Our Experiences (real, live data — 3 cards) ──────────────────────── */
.xp-exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}
.xp-exp-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.xp-exp-visual { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-primary-light); }
.xp-exp-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-exp-info { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.xp-exp-info h3 {
  font-family: var(--xp-display);
  font-size: var(--fs-md);
  color: var(--xp-ink);
  margin: 0;
}
.xp-meta-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.xp-meta-item {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: 500;
}
.xp-meta-item svg { width: 16px; height: 16px; color: var(--xp-secondary); flex-shrink: 0; }
.xp-price { font-weight: 600; color: var(--color-primary-dark); }
.xp-exp-info p { color: var(--color-text-muted); line-height: 1.6; margin: 0; font-size: var(--fs-sm); }
.xp-perk { color: var(--xp-secondary) !important; font-weight: 500; }
.xp-exp-info .btn { align-self: flex-start; margin-top: auto; }
.xp-reassurance {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin: 0;
}
.xp-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* ── Waste to Mask gift banner ─────────────────────────────────────────── */
.xp-gift-banner {
  margin-top: var(--sp-7);
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  background: var(--color-primary-light);
  border: 1px solid var(--xp-accent);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.xp-gift-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary-dark);
}
.xp-gift-icon svg { width: 28px; height: 28px; }
.xp-gift-banner h3 { font-family: var(--xp-display); font-size: var(--fs-md); color: var(--xp-ink); margin: 0 0 var(--sp-2); }
.xp-gift-banner p { color: var(--color-text-muted); line-height: 1.6; margin: 0; }

/* ── About / story ────────────────────────────────────────────────────── */
.xp-about { background: var(--color-surface); }
.xp-about-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.xp-about-inner p {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: var(--sp-4) 0 0;
}

/* ── Why Guests Love It ───────────────────────────────────────────────── */
.xp-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-6);
}
.xp-why-item { text-align: center; padding: 0 var(--sp-2); }
.xp-why-icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-4);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.xp-why-icon svg { width: 30px; height: 30px; }
.xp-why-item h3 {
  font-family: var(--xp-display);
  font-size: var(--fs-md);
  color: var(--xp-ink);
  margin: 0 0 var(--sp-2);
}
.xp-why-item p { color: var(--color-text-muted); font-size: var(--fs-sm); line-height: 1.6; margin: 0; }

/* ── Souvenirs ─────────────────────────────────────────────────────────── */
.xp-souvenirs {
  background: linear-gradient(180deg, #FFF9F4 0%, #FBEEDF 100%);
}
.xp-souvenirs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.xp-souvenirs-visual {
  min-height: 260px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
}
.xp-souvenirs-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.xp-souvenirs-copy h2 { text-align: left; }
.xp-souvenirs-copy .xp-eyebrow { display: block; margin-bottom: var(--sp-2); }
.xp-souvenirs-copy p { color: var(--color-text-muted); line-height: 1.7; }
.xp-souvenirs-list { list-style: none; padding: 0; margin: var(--sp-4) 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.xp-souvenirs-list li {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-sm); color: var(--xp-ink); font-weight: 500;
}
.xp-souvenirs-list svg { width: 20px; height: 20px; color: var(--xp-secondary); flex-shrink: 0; }

/* ── Herbal Tea ───────────────────────────────────────────────────────── */
.xp-tea { background: var(--color-surface); }
.xp-tea-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  max-width: 42rem;
  margin: 0 auto;
}
.xp-tea-visual {
  flex-shrink: 0;
  width: 180px; height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.xp-tea-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-tea h2 { text-align: left; margin-top: var(--sp-2); }
.xp-tea .xp-eyebrow { display: block; }
.xp-tea p { color: var(--color-text-muted); line-height: 1.7; margin: var(--sp-3) 0 0; }

/* ── Plan Your Visit ──────────────────────────────────────────────────── */
.xp-visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-6);
  max-width: 40rem;
  margin: 0 auto;
}
.xp-visit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.xp-visit-item svg { width: 26px; height: 26px; color: var(--color-primary-dark); flex-shrink: 0; margin-top: 2px; }
.xp-visit-item h3 { font-family: var(--xp-display); font-size: var(--fs-md); color: var(--xp-ink); margin: 0 0 var(--sp-1); }
.xp-visit-item p { color: var(--color-text-muted); margin: 0; }
.xp-visit-item a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.xp-visit-item a:hover { text-decoration: underline; }

/* ── Wizard step-1 hero re-theme ──────────────────────────────────────────
   booking.css's .hero uses a hardcoded green gradient (not a var()), unlike
   every other component in that file — booking.css itself is not modified
   (it belongs to the ZeroPlastic frontend), so this one override lives here
   instead, matching the same premium palette as the rest of this page. */
.hero {
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(255,255,255,0.14), transparent 55%),
    linear-gradient(155deg, #B24326 0%, #8C1D18 42%, #4A1913 100%);
}

/* ── Booking section intro strip ──────────────────────────────────────── */
.xp-booking-lead {
  text-align: center;
  padding: var(--sp-7) var(--sp-6) 0;
  max-width: 40rem; margin: 0 auto;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.xp-footer {
  text-align: center;
  padding: var(--sp-6);
  color: var(--color-text-faint);
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
}

/* ── Quick-continue shortcut (Step 2 only) ────────────────────────────────
   A floating action button so a guest who has scrolled through several
   experience cards can proceed without scrolling back down to the wizard's
   own Continue button. Distinct gold/accent colour (not the red CTA used
   elsewhere) so it reads as a shortcut, not a duplicate primary action. */
.xp-float-continue {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--xp-accent);
  color: #3A1B08;
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), background var(--dur-fast) var(--ease);
}
.xp-float-continue.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.xp-float-continue:hover { background: #E8B85A; }

@media (max-width: 760px) {
  .xp-souvenirs-grid { grid-template-columns: 1fr; }
  .xp-souvenirs-copy h2, .xp-souvenirs-copy .xp-eyebrow { text-align: center; }
  .xp-tea-inner { flex-direction: column; text-align: center; }
  .xp-tea h2, .xp-tea .xp-eyebrow { text-align: center; }
  .xp-tea-visual { width: 140px; height: 170px; }
  .xp-gift-banner { flex-direction: column; align-items: center; text-align: center; }
  .xp-float-continue { right: var(--sp-4); bottom: var(--sp-4); }
}

@media (prefers-reduced-motion: no-preference) {
  .xp-hero-content { animation: xpFadeUp 0.7s var(--ease) both; }
}
@keyframes xpFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
