/* =============================================================
   RAINBOW TIGER FACE PAINTING — Main Stylesheet
   Brand colours extracted from logo SVG:
     Purple  #4d0e79   Pink   #fd5bba
     Yellow  #fee08c   Green  #68e3aa   Blue  #00cffe
   ============================================================= */

/* ── 1. VARIABLES ─────────────────────────────────────────── */
:root {
  --purple:       #4d0e79;
  --purple-mid:   #6b1fa0;
  --purple-light: #ede0ff;
  --pink:         #fd5bba;
  --pink-light:   #ffe0f4;
  --yellow:       #fee08c;
  --yellow-light: #fffae0;
  --green:        #68e3aa;
  --green-light:  #d8fdf0;
  --blue:         #00cffe;
  --blue-light:   #d0f7ff;

  --white:        #ffffff;
  --text:         #1a0a2e;
  --text-muted:   #6b5a80;
  --bg:           #ffffff;
  --bg-tint:      #fdf9ff;
  --border:       #e8d8f8;

  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    32px;

  /* RGB channels for rgba() usage */
  --purple-rgb:   77, 14, 121;
  --pink-rgb:     253, 91, 186;
  --blue-rgb:     0, 207, 254;
  --green-rgb:    104, 227, 170;
  --white-rgb:    255, 255, 255;

  --pink-dark:    #e84da6;
  --backdrop:     rgba(10, 0, 20, 0.9);

  /* Third-party brand colours */
  --color-facebook:     #1877F2;
  --gradient-instagram: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  --color-tiktok:       #010101;

  --shadow-sm:    0 2px 8px rgba(var(--purple-rgb), 0.08);
  --shadow:       0 4px 24px rgba(var(--purple-rgb), 0.12);
  --shadow-lg:    0 8px 40px rgba(var(--purple-rgb), 0.18);

  --gradient-rainbow: linear-gradient(135deg, var(--pink) 0%, var(--yellow) 33%, var(--green) 66%, var(--blue) 100%);
  --gradient-purple:  linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);

  --font-heading: 'Delius', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --transition:   0.2s ease;
  --transition-md: 0.3s ease;

  --header-h:     72px;
  --max-w:        1180px;
  --max-w-narrow: 780px;
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--purple);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover { color: var(--pink); }

ul { list-style: none; }
ol { padding-left: 1.5em; }
ol li { margin-bottom: 0.5em; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--purple);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

strong { color: var(--purple); }

/* ── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: var(--max-w-narrow);
}

.section {
  padding: 4rem 0;
}
.section--tint {
  background: var(--bg-tint);
}
.section--purple {
  background: var(--gradient-purple);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white h1, .text-white h2, .text-white h3 { color: var(--white); }
.section--purple h2 { color: var(--white); }
.section--purple .lead { color: rgba(var(--white-rgb), 0.85); }
.text-white-soft { color: rgba(var(--white-rgb), 0.85); }

/* ── 5. HEADER & NAV ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
  /* Rainbow accent line along the bottom */
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-rainbow) 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

.header-logo svg {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--purple);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.01em;
}

.main-nav a:hover {
  background: var(--purple-light);
  color: var(--purple);
}

.main-nav a.active {
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 600;
}

.main-nav a.nav-cta {
  background: var(--pink);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  padding-inline: 1.1rem;
}

.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.active {
  background: var(--pink-dark);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--purple-light); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}
.btn--primary:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(var(--pink-rgb), 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn--outline:hover {
  background: var(--purple);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
}
.btn--white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 0 6px 24px rgba(var(--white-rgb), 0.2);
}

.btn--lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.btn--full { display: block; width: 100%; text-align: center; }

/* ── 7. HERO (HOME) ───────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--bg-tint) 0%, var(--white) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft coloured blobs in the corners */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 20%, rgba(var(--pink-rgb), 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 90% 80%, rgba(var(--blue-rgb), 0.07) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 10%, rgba(var(--green-rgb), 0.07) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo svg {
  width: min(300px, 60vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(var(--purple-rgb), 0.15));
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
  margin: 0;
}

/* ── 8. PAGE HERO (INNER PAGES) ───────────────────────────── */
.page-hero--simple {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Rainbow accent bar at the very top of each page hero */
.page-hero--simple::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-rainbow);
  pointer-events: none;
}

.page-hero--simple .container { position: relative; z-index: 1; }

.page-hero--simple h1 {
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.page-hero__sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.page-hero__breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.page-hero__breadcrumb a {
  color: var(--purple);
  text-decoration: underline;
}
.page-hero__breadcrumb a:hover { color: var(--pink); }

/* ── 9. PHOTO PLACEHOLDERS ────────────────────────────────── */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--purple);
  text-align: center;
  padding: 1rem;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.photo-placeholder::before {
  content: '📷';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  opacity: 0.5;
}

.photo-placeholder span {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.photo-placeholder--pink    { background: var(--pink-light); }
.photo-placeholder--purple  { background: var(--purple-light); }
.photo-placeholder--teal    { background: var(--green-light); }
.photo-placeholder--yellow  { background: var(--yellow-light); }
.photo-placeholder--blue    { background: var(--blue-light); }
.photo-placeholder--green   { background: var(--green-light); }

.photo-placeholder--square  { aspect-ratio: 1; }
.photo-placeholder--tall    { aspect-ratio: 3/4; }
.photo-placeholder--portrait { aspect-ratio: 2/3; max-width: 300px; }

/* ── 10. PHOTO TRIO ───────────────────────────────────────── */
.photo-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.photo-trio__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* ── 11. HOME – COVERAGE ──────────────────────────────────── */
.coverage-block { }

.coverage-block h2 { margin-bottom: 1rem; }

.towns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.towns-grid h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.towns-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.towns-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.towns-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 700;
}

.reassurance-photo__img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
}

/* ── 12. HOME – REASSURANCE ───────────────────────────────── */
.reassurance-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.features-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

/* ── 13. SECTION INTRO ────────────────────────────────────── */
.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

/* ── 14. PRICING GRID ─────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-md), box-shadow var(--transition-md);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--popular {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink), var(--shadow);
}

.pricing-card__badge {
  background: var(--pink);
  color: var(--white);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
}

.pricing-card__header {
  padding: 1.5rem 1.5rem 1rem;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pricing-card__header h3 {
  font-size: 1.15rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card__price--lg { font-size: 3.5rem; }

.pricing-card__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.pricing-card__body {
  padding: 1.5rem;
  flex: 1;
}

.pricing-card__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-card__features li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pricing-card__features--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.pricing-card__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Featured (full-width) card */
.pricing-card--featured {
  background: var(--gradient-purple);
  border-color: transparent;
  border-radius: var(--radius-xl);
  color: var(--white);
  margin-top: 0;
}

.pricing-card--featured h3 { color: var(--white); }
.pricing-card--featured .pricing-card__price { color: var(--yellow); }
.pricing-card--featured .pricing-card__tagline { color: rgba(var(--white-rgb), 0.8); }
.pricing-card--featured .pricing-card__features li { color: rgba(var(--white-rgb), 0.9); }
.pricing-card--featured .pricing-card__features li::before { color: var(--green); }
.pricing-card--featured p { color: rgba(var(--white-rgb), 0.85); }

.pricing-card-featured__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 2.5rem;
}

.pricing-card-featured__text { flex: 1; }

.pricing-card-featured__price-block {
  text-align: center;
  flex-shrink: 0;
}

/* ── 15. ABOUT PAGE ───────────────────────────────────────── */
.about-block {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo { }
.about-photo__img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  aspect-ratio: 2/3;
  box-shadow: var(--shadow);
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; color: var(--text-muted); }
.about-text > p:first-of-type { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }
.about-text a.btn { margin-top: 1rem; }

/* ── 16. EVENT SERVICES PAGE ──────────────────────────────── */
.event-service { max-width: 800px; }
.event-service__text h2 { margin-bottom: 1rem; }

.event-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.event-rate-card {
  background: var(--bg-tint);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.event-rate-card h4 { color: var(--purple); margin-bottom: 0.5rem; }

.event-rate-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.event-rate-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.event-rate-best { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }

.note {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
}
.icon-list li { font-size: 0.95rem; }

.price-callout {
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

/* ── 17. BOOKING PAGE ─────────────────────────────────────── */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.booking-info h2 { margin-bottom: 1rem; }
.booking-info p { color: var(--text-muted); margin-bottom: 1rem; }
.booking-info a { color: var(--purple); }

.booking-info h3 {
  font-size: 1rem;
  color: var(--purple);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.booking-info ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.booking-info ul li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
  list-style: none;
}

.booking-info ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--pink);
}

/* ── 18. FORMS ────────────────────────────────────────────── */
.booking-form-wrap h2,
.contact-form-wrap h2 {
  margin-bottom: 1.5rem;
}

.booking-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--pink); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.1);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234d0e79' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -0.25rem;
}

.form-conditional { display: none; }
.form-conditional.is-visible { display: contents; }

.form-event-info {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--tint);
  border-left: 3px solid var(--purple);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 0.25rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.radio-option input[type="radio"] {
  accent-color: var(--purple);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  cursor: pointer;
}

/* ── 19. GALLERY ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  transition: transform var(--transition-md), box-shadow var(--transition-md);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  flex-direction: column;
}

.lightbox__image {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80vw;
  max-height: 75vh;
}

.lightbox__img {
  display: block;
  max-width: 80vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
}

.lightbox__caption {
  color: rgba(var(--white-rgb), 0.8);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(var(--white-rgb), 0.15);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox__close:hover { background: rgba(var(--white-rgb), 0.25); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(var(--white-rgb), 0.15);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox__prev { left: -3.5rem; }
.lightbox__next { right: -3.5rem; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(var(--white-rgb), 0.3); }

/* ── 20. CONTACT PAGE ─────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.75rem 1rem;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.contact-detail:hover { border-color: var(--purple); background: var(--purple-light); color: var(--purple); }
.contact-detail svg { color: var(--purple); flex-shrink: 0; }

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}
.social-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.social-link--facebook  { background: var(--color-facebook); color: var(--white); }
.social-link--instagram { background: var(--gradient-instagram); color: var(--white); }
.social-link--tiktok    { background: var(--color-tiktok); color: var(--white); }

/* ── 21. FAQ ──────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-tint); }

.faq-question[aria-expanded="true"] {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--purple-light);
  border-radius: 50%;
  position: relative;
  transition: background var(--transition), transform var(--transition-md);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--purple);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after  { width: 2px;  height: 10px; transition: opacity var(--transition); }

.faq-question[aria-expanded="true"] .faq-icon { background: var(--pink); transform: rotate(45deg); }
.faq-question[aria-expanded="true"] .faq-icon::before,
.faq-question[aria-expanded="true"] .faq-icon::after { background: var(--white); }

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
}

.faq-answer.is-open {
  max-height: 1000px;
  padding: 1.25rem 1.5rem;
}

.faq-answer p { color: var(--text-muted); margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ol { color: var(--text-muted); margin-bottom: 0.75rem; }
.faq-answer a { color: var(--purple); }

.faq-cta {
  background: var(--bg-tint);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.faq-cta h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.faq-cta p  { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── 22. PAGE CONTENT (generic) ───────────────────────────── */
.page-content {
  padding: 3rem 1.5rem;
}
.page-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.page-content p  { color: var(--text-muted); margin-bottom: 1rem; }
.page-content ul { list-style: disc; padding-left: 1.5rem; }
.page-content ul li { color: var(--text-muted); margin-bottom: 0.5rem; }

/* ── 23. THANK YOU ───────────────────────────────────────── */
.section--tall { padding-block: 6rem; }

.thankyou {
  max-width: 540px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thankyou__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--green-light);
  color: #1a8a5a;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.thankyou h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.thankyou p { color: var(--text-muted); margin-bottom: 1rem; }
.thankyou > p:first-of-type { color: var(--text); font-size: 1.1rem; }

.thankyou__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── 24. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  /* Rainbow accent bar at the very top */
  position: relative;
  padding: 3rem 1.5rem 2.5rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-rainbow);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

/* Logo shows in natural colours on light background */
.footer-logo svg {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--purple); }

.footer-divider { color: var(--border); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.footer-social a:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.footer-jorpo-link {
  display: inline-block;
  width: 60px;
  height: 15px;
  background: url('/images/jorpo_footer_tag.svg') no-repeat center / contain;
  font-size: 0;
  color: transparent;
  vertical-align: middle;
}

/* ── 24. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pricing-card-featured__inner { flex-direction: column; text-align: center; }
  .towns-grid { grid-template-columns: 1fr 1fr; }
  .reassurance-block { grid-template-columns: 1fr; }
  .reassurance-photo { display: none; }
  .about-block { grid-template-columns: 1fr; }
  .about-photo { display: flex; justify-content: center; }
  .about-photo .photo-placeholder--portrait { max-width: 220px; }
  .booking-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .event-rates { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  :root { --header-h: 60px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-md), opacity var(--transition-md), visibility var(--transition-md);
    box-shadow: 0 8px 24px rgba(var(--purple-rgb), 0.12);
    z-index: 99;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    color: var(--purple);
  }

  .photo-trio { grid-template-columns: 1fr; }
  .photo-trio__img:first-child, .photo-trio__img:last-child { display: none; }
  .towns-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 1.5rem 2.5rem; }

  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }

  .social-links { flex-direction: column; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 25. PAGE TRANSITIONS ─────────────────────────────────── */
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Fade in automatically on every page load */
body {
  animation: page-fade-in 0.3s ease both;
}

/* Fade out class added by JS before navigation */
body.is-leaving {
  opacity: 0;
  transition: opacity 0.2s ease;
  /* Override the load animation so the transition wins */
  animation: none;
}
