/* book.css — public booking page, independent from the internal admin
   app's stylesheet (style.css). English-facing, UK customers. */

:root {
  /* Brand: gold + purple on white, per the real B&S logo (witch on a
     broom, gold wordmark, purple ring). */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-gold: #d4af37;
  --color-gold-dark: #a98623;
  --color-purple: #7b5ba3;
  --color-purple-dark: #5f4480;
  --color-purple-light: #f2edf8;
  --color-primary: #7b5ba3; /* alias kept for existing rules below */
  --color-primary-dark: #1a1a1a;
  --color-primary-light: #f2edf8;
  --color-accent: #d4af37;
  --color-border: #e7e2d8;
  --color-danger: #b3452f;
  --color-success: #2f6f5e;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(26, 26, 26, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-primary-dark);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--color-primary-dark); margin: 0 0 12px; }
h1 { font-size: 44px; line-height: 1.15; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; color: #4a5560; }
a { color: var(--color-primary); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

header.site {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; flex-wrap: wrap; gap: 8px 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 56px; width: auto; display: block; }
.hero-logo {
  height: 160px;
  width: auto;
  display: block;
  margin: 0 auto 24px;
  /* Extra dark edge around the logo (including the gold lettering) so it
     keeps contrast against the wave background even when it turns gold —
     the logo's own colours are unchanged, this just rims its silhouette. */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(0, 0, 0, 0.4));
}
header.site nav { display: flex; gap: 18px; }
header.site nav a { text-decoration: none; color: var(--color-primary-dark); font-weight: 500; font-size: 14px; white-space: nowrap; }

.hero { position: relative; overflow: hidden; padding: 100px 0 84px; text-align: center; background: #150a1e; }
#wave-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }
.hero p.lead { font-size: 19px; max-width: 560px; margin: 0 auto 32px; color: #f1e9f7; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.btn { display: inline-block; padding: 14px 32px; border-radius: var(--radius); font-weight: 600; font-size: 16px; text-decoration: none; border: none; cursor: pointer; font-family: var(--font-body); transition: background-color 0.3s, transform 0.3s; }
.btn-primary { background: var(--color-gold); color: #1a1a1a; }
.btn-primary:hover { background: var(--color-gold-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1.5px solid var(--color-purple); color: var(--color-purple); }
.btn-ghost:hover { background: var(--color-purple-light); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

section { padding: 64px 0; }
section.alt { background: var(--color-surface); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 8px; }

/* Spotlight hover effect — a soft glow that follows the cursor, plain
   CSS/JS (see book.js), no framework needed. --x/--y set per-element in
   pixels relative to the card's own top-left corner. */
.card.glow-card { position: relative; overflow: hidden; --x: 50%; --y: 50%; }
.card.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(200px 200px at var(--x) var(--y), var(--color-primary), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.card.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px 260px at var(--x) var(--y), rgba(123, 91, 163, 0.16), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.card.glow-card:hover::before, .card.glow-card:hover::after { opacity: 1; }

/* Real-work photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--color-surface); }
.gallery-item img { display: block; width: 100%; height: 320px; object-fit: cover; }
.gallery-item .caption { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--color-primary-dark); }

/* Booking widget */
.booking-box { max-width: 640px; margin: 0 auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; box-shadow: var(--shadow); padding: 40px; }
.step-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-primary); font-weight: 600; margin-bottom: 8px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input:not([type="checkbox"]), .field select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--color-border); border-radius: 8px; font-size: 15px; font-family: var(--font-body); background: #fff; color: var(--color-primary-dark); }
.field input:not([type="checkbox"]):focus, .field select:focus { outline: none; border-color: var(--color-primary); }
.field input[type="checkbox"] { width: 16px; height: 16px; flex: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.error-box { background: #fbeae5; border: 1px solid var(--color-danger); color: var(--color-danger); padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin: 16px 0; }
.slot-btn { padding: 10px; border: 1.5px solid var(--color-border); border-radius: 8px; background: #fff; cursor: pointer; font-family: var(--font-body); font-size: 14px; text-align: center; }
.slot-btn:hover { border-color: var(--color-primary); }
.slot-btn.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.suggestion-box { background: var(--color-primary-light); border-radius: 10px; padding: 18px; margin: 20px 0; }
.suggestion-box .buttons { margin-top: 12px; display: flex; gap: 10px; }
.price-line { font-family: var(--font-display); font-size: 32px; color: var(--color-gold-dark); margin: 8px 0 4px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; font-size: 14px; }
.checkbox-row input { margin-top: 3px; }
.step-actions { display: flex; justify-content: space-between; margin-top: 24px; }
.confirmation { text-align: center; }
.confirmation .big-number { font-family: var(--font-display); font-size: 40px; color: var(--color-gold-dark); }

footer.site { background: var(--color-primary-dark); color: #cdd6dc; padding: 40px 0; text-align: center; font-size: 14px; }
footer.site a { color: #fff; }

#contact { position: relative; overflow: hidden; background: #150a1e; padding: 96px 0; }
#wave-bg-bottom { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#contact .wrap { position: relative; z-index: 1; }
#contact .section-head h2 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }
#contact .section-head p { color: #f1e9f7; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }

.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; background: var(--color-surface); border: 1px solid var(--color-border); padding: 12px 20px; border-radius: 999px; text-decoration: none; color: var(--color-primary-dark); font-weight: 600; font-size: 14px; }

input[type="checkbox"] { accent-color: var(--color-purple); }

/* Subtle scroll-reveal — moderate, purposeful motion only (per brand
   brief: transitions serve the experience, never distract). Respects
   prefers-reduced-motion; see book.js for the IntersectionObserver. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .booking-box { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
}
