/* ============================================================
   Cabana Crafts — Design System: "Nature Distilled"
   Warm artisan palette (walnut · terracotta · warm clay · cream)
   Source of truth: design-system/cabana-crafts/MASTER.md
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colour — "Creative Escape by the Sea": sea navy + cream paper + watercolour rainbow */
  --color-primary:      #2E4372; /* sea navy (brand) */
  --color-primary-dark: #223357;
  --color-on-primary:   #FFFFFF;
  --color-secondary:    #2C9AB7; /* sea teal */
  --color-accent:       #E8795B; /* coral (accent/highlight) */
  --color-accent-dark:  #CE5C3E;
  --color-tertiary:     #F2C14E; /* sunny yellow */
  --color-background:   #F7F2E8; /* warm cream paper */
  --color-surface:      #FFFDF8;
  --color-muted:        #ECE4D4; /* soft sand */
  --color-foreground:   #263043; /* deep navy-charcoal */
  --color-foreground-soft: #55606F;
  --color-border:       #E3DBC9;
  --color-destructive:  #C0442E;
  --color-ring:         #2C9AB7;

  /* Watercolour rainbow (decorative accents only) */
  --wc-coral:  #E8795B;
  --wc-peach:  #F0B27C;
  --wc-yellow: #F2C14E;
  --wc-green:  #7FB68B;
  --wc-teal:   #2C9AB7;
  --wc-blue:   #6E9BD1;
  --wc-purple: #B49AD1;
  --wc-pink:   #E79FBE;
  /* darker rainbow variants — pass WCAG contrast when used as text on cream */
  --wc-coral-deep:  #C24E2E;
  --wc-teal-deep:   #1E7E99;
  --wc-purple-deep: #7B54A8;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Caveat", var(--font-display);

  /* Spacing scale */
  --space-xs: 0.25rem;   /*  4px */
  --space-sm: 0.5rem;    /*  8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows (soft, natural) */
  --shadow-sm: 0 1px 2px rgba(43, 35, 32, 0.06);
  --shadow-md: 0 6px 16px rgba(43, 35, 32, 0.08);
  --shadow-lg: 0 14px 30px rgba(43, 35, 32, 0.12);
  --shadow-xl: 0 24px 48px rgba(43, 35, 32, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  --maxw: 1200px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px base */
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
  /* Subtle paper grain (Nature Distilled), ~0.05 opacity */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
}

/* Fluid type for big headings */
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--color-foreground-soft); }

::selection { background: var(--color-secondary); color: #fff; }

/* Visible focus for keyboard nav (a11y) */
:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--muted { background: var(--color-muted); }

.eyebrow {
  font-family: var(--font-accent);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.section-head { max-width: 62ch; margin-bottom: var(--space-2xl); }
.section-head p { font-size: 1.125rem; margin-top: var(--space-md); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }

.btn--secondary {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn--secondary:hover { background: var(--color-primary); color: #fff; }

.btn--ghost { background: var(--color-surface); color: var(--color-primary-dark); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: #fff; }

.btn--lg { padding: 1rem 2rem; font-size: 1.075rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(247, 241, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: var(--space-md);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--color-primary); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em;
  color: var(--color-primary-dark); line-height: 1;
}
.brand__name span { color: var(--color-secondary); }

.nav__links { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.5rem); list-style: none; }
.nav__links a {
  font-weight: 600; font-size: 0.98rem; color: var(--color-foreground);
  padding: 0.4rem 0.2rem; position: relative; transition: color var(--dur) var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--color-secondary);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--color-primary-dark); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--space-sm); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: var(--radius-sm); color: var(--color-primary-dark);
}
.nav__toggle svg { width: 26px; height: 26px; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 9vw, 6.5rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--color-muted); color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600; margin-bottom: var(--space-lg);
}
.hero__badge svg { width: 1.05em; height: 1.05em; color: var(--color-tertiary); }
.hero h1 { color: var(--color-primary-dark); }
.hero h1 em { font-style: italic; color: var(--color-secondary); }
.hero__lead { font-size: 1.2rem; margin-top: var(--space-lg); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-xl); }
.hero__meta div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--color-foreground-soft); }
.hero__meta svg { width: 1.2em; height: 1.2em; color: var(--color-secondary); flex: none; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(198,123,92,0.22), rgba(107,78,61,0.28)),
    var(--color-muted);
  border: 1px dashed rgba(107, 78, 61, 0.35);
  display: grid; place-items: center; text-align: center;
  color: var(--color-primary-dark); overflow: hidden; box-shadow: var(--shadow-md);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  opacity: 0.75; padding: 0.75rem 1rem; max-width: 80%;
}
.ph svg { width: 34px; height: 34px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -140%); opacity: 0.5; }
.ph--hero { aspect-ratio: 4 / 5; }
.ph--about { aspect-ratio: 4 / 3; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }

/* Real photo sits on top of its placeholder; if it fails to load it's
   removed by main.js and the labelled placeholder shows through. */
.ph > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}

/* When a real photo is present, hide the "Save as…" placeholder label.
   :has() covers modern browsers; the .has-photo class (added by main.js
   on image load) is the fallback. */
.ph:has(img)::after,
.ph.has-photo::after { content: none; }
.ph:has(img) > svg,
.ph.has-photo > svg { display: none; }

/* Brand logo image (header + footer) */
.brand__logo { height: 46px; width: auto; display: block; }
.footer .brand__logo { height: 52px; }

/* ---------- Workshops grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-secondary); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--color-muted); color: var(--color-primary); margin-bottom: var(--space-sm);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { color: var(--color-primary-dark); }
.card p { font-size: 1rem; flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700;
  color: var(--color-accent); margin-top: var(--space-sm);
}
.card__link svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* ---------- Split feature (Kids & Parties) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.feature-list { list-style: none; margin-top: var(--space-lg); display: grid; gap: var(--space-md); }
.feature-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.feature-list svg { width: 1.4em; height: 1.4em; color: var(--color-tertiary); flex: none; margin-top: 2px; }
.about-closer { font-family: var(--font-accent); font-size: 1.75rem; line-height: 1.2; color: var(--color-primary); margin-top: var(--space-lg); }

/* ---------- Bookwhen embed ---------- */
.booking-embed {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.booking-embed iframe { width: 100%; min-height: 640px; border: 0; background: #fff; }
.booking-note { margin-top: var(--space-md); font-size: 0.95rem; }

/* ---------- Two-up media strip ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-top: var(--space-md); }
.duo .ph { aspect-ratio: 16 / 10; }

/* ---------- Shop gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.gallery .ph { aspect-ratio: 1 / 1; }

/* ---------- Visit / Contact ---------- */
.visit { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.contact-list { list-style: none; display: grid; gap: var(--space-lg); }
.contact-list li { display: flex; gap: var(--space-md); align-items: flex-start; }
.contact-list .ci {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--color-muted); color: var(--color-primary);
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list b { display: block; color: var(--color-primary-dark); font-family: var(--font-display); }
.contact-list a:hover { color: var(--color-accent); text-decoration: underline; }
/* Opening hours card */
.hours {
  margin-top: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.hours__title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-md); font-size: 1.2rem; }
.hours__title svg { width: 1.25em; height: 1.25em; color: var(--color-accent); flex: none; }
.hours__table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours__table th, .hours__table td { padding: 0.45rem 0; text-align: left; }
.hours__table th { font-weight: 600; color: var(--color-foreground); width: 45%; }
.hours__table td { color: var(--color-foreground-soft); }
.hours__table tr + tr { border-top: 1px dashed var(--color-border); }
.hours__closed { color: var(--color-foreground-soft); font-style: italic; }
.hours__table tr.is-today th, .hours__table tr.is-today td {
  color: var(--color-accent); font-weight: 700;
}
.hours__note { font-size: 0.92rem; margin-top: var(--space-md); }

.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); min-height: 360px; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: sepia(0.15) saturate(1.05); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: var(--space-md) auto 0; font-size: 1.125rem; }
.cta-band .btn--primary { background: var(--color-accent); color: #22314F; }
.cta-band .btn--primary:hover { background: #fff; color: var(--color-primary-dark); }
.cta-band .hero__cta { justify-content: center; margin-top: var(--space-xl); }

/* ---------- Footer ---------- */
.footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.82); padding-block: var(--space-3xl) var(--space-xl); }
.footer a { color: rgba(255,255,255,0.82); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
.footer .brand__name, .footer h4 { color: #fff; }
.footer h4 { font-size: 1.05rem; margin-bottom: var(--space-md); }
.footer ul { list-style: none; display: grid; gap: var(--space-sm); }
.footer__social { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.footer__social a { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: background-color var(--dur) var(--ease); }
.footer__social a:hover { background: var(--color-accent); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-lg); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: space-between; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Vibrancy — watercolour rainbow accents & gentle motion
   ============================================================ */

/* Animated rainbow bar across the very top */
.rainbowbar {
  height: 6px; width: 100%;
  background: linear-gradient(90deg,
    var(--wc-coral), var(--wc-peach), var(--wc-yellow), var(--wc-green),
    var(--wc-teal), var(--wc-blue), var(--wc-purple), var(--wc-pink), var(--wc-coral));
  background-size: 200% 100%;
  animation: bar-slide 14s linear infinite;
}
@keyframes bar-slide { to { background-position: 200% 0; } }

/* Eyebrows as watercolour gradient text (deep variants for contrast) */
.eyebrow {
  background: linear-gradient(90deg, var(--wc-coral-deep), var(--wc-purple-deep), var(--wc-teal-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Colourful flourish under section headings — draws in on reveal (scaleX, no layout thrash) */
.section-head h2::after,
.split__body h2::after {
  content: ""; display: block; width: 68px; height: 5px; margin-top: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wc-coral), var(--wc-yellow), var(--wc-teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease) 0.2s;
}
.reveal.is-visible h2::after { transform: scaleX(1); }
.section-head.center h2::after, .center h2::after { margin-inline: auto; }

/* Gradient text on the hero emphasis (deep variants for contrast) */
.hero h1 em {
  background: linear-gradient(90deg, var(--wc-teal-deep), var(--wc-purple-deep), var(--wc-coral-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}

/* Hero watercolour blobs (decorative, drift gently) */
.hero { overflow: hidden; }
.hero__grid { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(44px); opacity: 0.45; z-index: 0; pointer-events: none; }
.blob--1 { width: 320px; height: 320px; background: var(--wc-teal);   top: -70px;  right: -30px; animation: float-y 9s ease-in-out infinite; }
.blob--2 { width: 260px; height: 260px; background: var(--wc-coral);  bottom: -90px; left: -50px; animation: float-xy 12s ease-in-out infinite; }
.blob--3 { width: 190px; height: 190px; background: var(--wc-yellow); top: 42%; left: 46%; animation: float-y 11s ease-in-out infinite; }
@keyframes float-y  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
@keyframes float-xy { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-20px); } }

/* Colourful workshop cards */
.cards .card { position: relative; overflow: hidden; }
.cards .card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--card-accent, var(--color-secondary));
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.cards .card:hover::before { transform: scaleX(1); }
.cards .card:nth-child(1) { --card-accent: var(--wc-coral); }
.cards .card:nth-child(2) { --card-accent: var(--wc-teal); }
.cards .card:nth-child(3) { --card-accent: var(--wc-purple); }
.cards .card:nth-child(4) { --card-accent: var(--wc-green); }
.cards .card:nth-child(5) { --card-accent: var(--wc-pink); }
.cards .card:nth-child(6) { --card-accent: var(--wc-yellow); }
.card__icon { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cards .card .card__icon { background: color-mix(in srgb, var(--card-accent) 16%, #fff); color: var(--card-accent); }
.cards .card:hover .card__icon { background: var(--card-accent); color: #fff; transform: rotate(-6deg) scale(1.06); }
.cards .card:hover .card__link { color: var(--card-accent); }

/* Staggered reveal within the workshop grid */
.cards .card:nth-child(2){transition-delay:.07s}.cards .card:nth-child(3){transition-delay:.14s}
.cards .card:nth-child(4){transition-delay:.21s}.cards .card:nth-child(5){transition-delay:.28s}.cards .card:nth-child(6){transition-delay:.35s}

/* Gallery: colour tint + zoom on hover */
.gallery .ph > img { transition: transform 0.5s var(--ease); }
.gallery .ph:hover > img { transform: scale(1.06); }
.gallery .ph::before {
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint, var(--wc-teal)) 60%, transparent), transparent 70%);
  transition: opacity var(--dur) var(--ease);
}
.gallery .ph:hover::before { opacity: 1; }
.gallery .ph:nth-child(3n+1) { --tint: var(--wc-coral); }
.gallery .ph:nth-child(3n+2) { --tint: var(--wc-teal); }
.gallery .ph:nth-child(3n)   { --tint: var(--wc-purple); }

/* CTA band: sunset-over-sea gradient + soft colour blooms */
.cta-band { background: linear-gradient(135deg, #26386A 0%, #3A2E63 58%, #6E4FA0 100%); }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(52px); opacity: 0.5; z-index: 0;
}
.cta-band::before { width: 300px; height: 300px; background: var(--wc-teal);  top: -90px; left: -40px; }
.cta-band::after  { width: 280px; height: 280px; background: var(--wc-coral); bottom: -100px; right: -30px; }
.cta-band > * { position: relative; z-index: 1; }

/* Footer top edge is now the rolling .waves divider (see Motion pop below) */

/* ============================================================
   Motion polish — entrances, shimmer, sparkle, shine
   ============================================================ */

/* Hero copy animates in, staggered, on first load */
@keyframes hero-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: hero-in 0.7s var(--ease) both; }
.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.28s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.40s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.52s; }
.hero__media { animation: hero-in 0.8s var(--ease) 0.30s both; }
/* …then the photo bobs gently */
.hero__media .ph { animation: bob 6s ease-in-out 1.1s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Shimmering gradient text (eyebrows + hero emphasis) */
@keyframes grad-move { to { background-position: 200% center; } }
.eyebrow { background-size: 200% auto; animation: grad-move 6s linear infinite; }
.hero h1 em { background-size: 200% auto; animation: grad-move 5s linear infinite; }

/* Twinkling sparkles in the hero */
.sparkle { position: absolute; z-index: 2; pointer-events: none; animation: twinkle 3.4s ease-in-out infinite; }
.sparkle svg { width: 100%; height: 100%; display: block; }
.sparkle--1 { width: 22px; height: 22px; top: 8%;  left: 41%; color: var(--wc-coral);  animation-delay: 0.2s; }
.sparkle--2 { width: 15px; height: 15px; top: 58%; left: 3%;  color: var(--wc-teal);   animation-delay: 1.1s; }
.sparkle--3 { width: 18px; height: 18px; top: 16%; right: 5%; color: var(--wc-purple); animation-delay: 1.9s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.2;  transform: scale(0.7) rotate(0deg); }
  50%      { opacity: 0.95; transform: scale(1.1) rotate(90deg); }
}

/* Shine sweep across the primary button on hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); z-index: 0;
}
.btn--primary:hover::after { animation: shine 0.85s ease; }
@keyframes shine { to { left: 150%; } }

/* ============================================================
   Shop carousel (slideshow)
   ============================================================ */
.shop-carousel-wrap { position: relative; }
.shop-carousel {
  display: flex; gap: var(--space-md);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-left: 6px;
  -ms-overflow-style: none; scrollbar-width: none;
  padding: 6px; margin: -6px;
  /* soft fade so the peeking neighbours melt away at the edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.shop-carousel::-webkit-scrollbar { display: none; }
.shop-carousel > .ph {
  flex: 0 0 30.5%;         /* ~3 across + a peek of the next */
  scroll-snap-align: start;
}
/* keep the colourful hover from the old grid */
.shop-carousel .ph > img { transition: transform 0.5s var(--ease); }
.shop-carousel .ph:hover > img { transform: scale(1.06); }
.shop-carousel .ph::before {
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint, var(--wc-teal)) 60%, transparent), transparent 70%);
  transition: opacity var(--dur) var(--ease);
}
.shop-carousel .ph:hover::before { opacity: 1; }
.shop-carousel .ph:nth-child(3n+1) { --tint: var(--wc-coral); }
.shop-carousel .ph:nth-child(3n+2) { --tint: var(--wc-teal); }
.shop-carousel .ph:nth-child(3n)   { --tint: var(--wc-purple); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--color-surface); color: var(--color-primary);
  box-shadow: var(--shadow-md); display: grid; place-items: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.carousel-btn:hover { background: var(--color-primary); color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn--prev { left: -12px; }
.carousel-btn--next { right: -12px; }

.carousel-dots { display: flex; justify-content: center; gap: 0.15rem; margin-top: var(--space-md); }
/* 28px buttons (WCAG tap target) drawn as small 10px dots via ::before */
.carousel-dots .dot {
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.carousel-dots .dot::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-border);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.carousel-dots .dot:hover::before { background: var(--color-secondary); }
.carousel-dots .dot.is-active::before { background: var(--color-accent); transform: scale(1.3); }

/* ============================================================
   Watercolour colour-blotches flowing through every section
   ============================================================ */
.section { position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section::before, .section::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(64px); z-index: 0; pointer-events: none; opacity: 0.4;
  animation: blotch 16s ease-in-out infinite;
}
.section::before { width: 340px; height: 340px; }
.section::after  { width: 280px; height: 280px; animation-delay: -8s; }
.section:nth-of-type(odd)::before  { top: -70px;  left: -90px;  background: var(--wc-teal); }
.section:nth-of-type(odd)::after   { bottom: -80px; right: -70px; background: var(--wc-coral); }
.section:nth-of-type(even)::before { top: -90px;  right: -80px; background: var(--wc-purple); }
.section:nth-of-type(even)::after  { bottom: -70px; left: -90px;  background: var(--wc-yellow); }
@keyframes blotch {
  0%, 100% { transform: scale(1);    opacity: 0.30; }
  50%      { transform: scale(1.14); opacity: 0.48; }
}

/* carry a soft glow into the footer too */
.footer { position: relative; overflow: hidden; }
.footer .container { position: relative; z-index: 1; }
.footer::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  filter: blur(72px); opacity: 0.22; background: var(--wc-teal);
  top: -120px; right: -60px; z-index: 0; pointer-events: none;
  animation: blotch 18s ease-in-out infinite;
}

/* ============================================================
   Motion pop — waves, halo, beckoning CTA, stagger, a11y helpers
   ============================================================ */

/* Skip link for keyboard users (visible only on focus) */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--color-primary); color: #fff; font-weight: 700;
  padding: 0.75rem 1.25rem; border-radius: 0 0 12px 12px;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

/* Rolling seaside waves into the footer */
.waves { position: relative; height: 64px; overflow: hidden; margin-bottom: -1px; }
.wave-layer {
  position: absolute; bottom: 0; left: 0; height: 100%;
  width: calc(100% + 1440px);
  background-repeat: repeat-x; background-position: 0 bottom; background-size: 720px 100%;
  animation: wave-drift 13s linear infinite;
  will-change: transform;
}
.wave-layer--back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 64' preserveAspectRatio='none'%3E%3Cpath d='M0 32 C120 56 240 56 360 32 C480 8 600 8 720 32 L720 64 L0 64 Z' fill='%232C9AB7'/%3E%3C/svg%3E");
  opacity: 0.35; animation-duration: 19s; animation-direction: reverse;
}
.wave-layer--front {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 64' preserveAspectRatio='none'%3E%3Cpath d='M0 32 C120 56 240 56 360 32 C480 8 600 8 720 32 L720 64 L0 64 Z' fill='%23223357'/%3E%3C/svg%3E");
}
@keyframes wave-drift { to { transform: translateX(-720px); } }

/* Slowly-turning watercolour halo behind the hero photo */
.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; inset: -8%; z-index: 0; border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--wc-coral), var(--wc-yellow), var(--wc-green), var(--wc-teal),
    var(--wc-blue), var(--wc-purple), var(--wc-pink), var(--wc-coral));
  filter: blur(34px); opacity: 0.35;
  animation: halo-spin 16s linear infinite;
  will-change: transform;
}
.hero__media .ph { position: relative; z-index: 1; }
@keyframes halo-spin { to { transform: rotate(360deg); } }

/* Beckoning pulse on the main Book buttons (stops while hovered) */
@keyframes beckon {
  0%, 82%, 100% { transform: none; }
  88% { transform: translateY(-3px) scale(1.035); }
  94% { transform: none; }
}
.hero__cta .btn--primary, .cta-band .btn--primary { animation: beckon 4.5s var(--ease) 2.5s infinite; }
.hero__cta .btn--primary:hover, .cta-band .btn--primary:hover { animation: none; }

/* Checklist items cascade in one by one */
.reveal .feature-list li { opacity: 0; transform: translateX(-14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible .feature-list li { opacity: 1; transform: none; }
.reveal.is-visible .feature-list li:nth-child(2) { transition-delay: 0.12s; }
.reveal.is-visible .feature-list li:nth-child(3) { transition-delay: 0.24s; }

/* Compositor hints for the always-moving blurred layers */
.blob, .sparkle,
.section::before, .section::after,
.footer::after, .cta-band::before, .cta-band::after { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .shop-carousel > .ph { flex-basis: 45%; }
  .split, .visit { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links, .nav__actions .btn--desktop { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) clamp(1.25rem, 4vw, 2.5rem) var(--space-lg); gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links a { width: 100%; padding-block: 0.6rem; }
  .cards, .gallery, .duo { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .sparkle { display: none; }
  .hero__media .ph { animation: none; }
  .hero__media::before { display: none; }
  .waves { height: 40px; }
  .shop-carousel > .ph { flex-basis: 82%; }
  .carousel-btn--prev { left: 2px; } .carousel-btn--next { right: 2px; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
