/* ===========================================================
   Euphoria Photography — demo site
   Signature move: "The Set Change" — an occasion switcher that
   crossfades the hero photo + the page's whole accent theme at
   once, mirroring the real studio building a new balloon-arch
   backdrop for every occasion.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Gloock&family=Onest:wght@400;500;600;700;800&display=swap');

/* ---------- animatable colour custom properties ----------
   Registering these as <color> lets the browser interpolate them
   smoothly on transition, which is what makes "The Set Change"
   crossfade the whole theme instead of hard-cutting it. Falls back
   to an instant (non-animated) swap in browsers without @property
   support — same outcome the reduced-motion path already uses. */
@property --accent      { syntax: '<color>'; inherits: true; initial-value: #6B4EFF; }
@property --accent-2    { syntax: '<color>'; inherits: true; initial-value: #C9A227; }
@property --accent-soft { syntax: '<color>'; inherits: true; initial-value: #EFE9FF; }

:root {
  /* base palette — warm, light, not on the ledger */
  --paper:      #FBF8F4;
  --paper-alt:  #F3EEE6;
  --surface:    #FFFFFF;
  --ink:        #241E2E;
  --ink-soft:   #55506A;
  --ink-mute:   #8B8598;
  --line:       #E4DDD0;

  /* seed + derived — overridden per occasion below */
  --accent:      #6B4EFF;
  --accent-2:    #C9A227;
  --accent-soft: #EFE9FF;

  --whatsapp: #25D366;
  --whatsapp-ink: #0B1F14;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --set-change-duration: 450ms;
}

/* ---------- per-occasion theme tokens ----------
   Selecting an occasion swaps these; --accent/--accent-2/--accent-soft
   transition smoothly wherever they're used (buttons, active pill,
   dividers, the trust-strip rule, etc). */
body[data-occasion="matric"] {
  --accent: #17140E;
  --accent-2: #C9A227;
  --accent-soft: #F2E9CF;
}
body[data-occasion="cake-smash"] {
  --accent: #8FA88A;
  --accent-2: #E8899A;
  --accent-soft: #F9E7EA;
}
body[data-occasion="maternity"] {
  --accent: #A8916F;
  --accent-2: #C7B9A8;
  --accent-soft: #F1EBE0;
}
body[data-occasion="family"] {
  --accent: #C97B5A;
  --accent-2: #E8A57C;
  --accent-soft: #F7E7DB;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    transition:
      --accent var(--set-change-duration) ease-out,
      --accent-2 var(--set-change-duration) ease-out,
      --accent-soft var(--set-change-duration) ease-out;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Gloock', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms;
}
.btn:active { transform: scale(0.97); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { box-shadow: 0 8px 24px -8px rgba(37,211,102,0.55); }
.btn-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- header ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251,248,244,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
.logo {
  font-family: 'Gloock', serif;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
nav.primary-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
nav.primary-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 150ms;
}
nav.primary-nav a:hover { color: var(--ink); }
header.top .btn { flex-shrink: 0; }
@media (max-width: 820px) {
  nav.primary-nav { display: none; }
}
@media (max-width: 720px) {
  /* the sticky .mobile-book-bar already gives mobile a WhatsApp CTA */
  header.top .btn { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
  transition: color var(--set-change-duration) ease-out, background-color var(--set-change-duration) ease-out;
}
.hero-copy .eyebrow svg { width: 14px; height: 14px; }

.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  max-width: 14ch;
  margin-bottom: 20px;
}
.hero-copy p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-trust .stars { display: flex; gap: 2px; color: var(--accent-2); transition: color var(--set-change-duration) ease-out; }
.hero-trust .stars svg { width: 15px; height: 15px; }

/* ---------- the set change: hero photo + occasion switcher ---------- */
.set-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-alt);
  box-shadow: 0 30px 60px -30px rgba(36,30,46,0.35);
}
.set-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--set-change-duration) ease-out;
  will-change: opacity;
}
.set-photo.is-active { opacity: 1; }

/* subtle grain wash unifying the bright photos — texture, not a filter over everything */
.set-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}

.set-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 84px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--set-change-duration) ease-out, transform var(--set-change-duration) ease-out;
}
.set-caption.is-active { opacity: 1; transform: translateY(0); }

/* the switcher itself — light, warm-tinted glass, not the dark/vibrant default */
.set-switcher {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 100px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 30px -12px rgba(36,30,46,0.4);
  overflow-x: auto;
  scrollbar-width: none;
}
.set-switcher::-webkit-scrollbar { display: none; }
.set-switcher button {
  flex: 1 0 auto;
  scroll-snap-align: start;
  border: none;
  background: transparent;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 200ms, background-color 200ms;
}
.set-switcher button.is-active {
  color: #fff;
  background: var(--accent);
  transition: color 200ms, background-color var(--set-change-duration) ease-out;
}
@media (max-width: 480px) {
  .set-switcher { overflow-x: scroll; scroll-snap-type: x mandatory; justify-content: flex-start; }
  .set-switcher button { flex: 0 0 auto; }
}

/* ---------- trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.trust-strip .item { display: flex; align-items: center; gap: 10px; }
.trust-strip svg { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; transition: color var(--set-change-duration) ease-out; }
.trust-strip strong { color: var(--ink); font-weight: 600; }

/* ---------- section shell ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head .eyebrow-plain {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  transition: color var(--set-change-duration) ease-out;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; max-width: 62ch; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } }
.about-copy p { color: var(--ink-soft); font-size: 17px; max-width: 60ch; }
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- occasion detail cards (drive the hero state) ---------- */
.occasion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.occasion-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms, transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.occasion-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(36,30,46,0.28); }
.occasion-card.is-active { border-color: var(--accent); }
.occasion-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  transition: background-color var(--set-change-duration) ease-out, color var(--set-change-duration) ease-out;
}
.occasion-card .icon svg { width: 22px; height: 22px; }
.occasion-card h3 { font-size: 19px; font-family: 'Onest', sans-serif; font-weight: 700; margin-bottom: 8px; }
.occasion-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 16px; line-height: 1.55; }
.occasion-card .card-cta {
  font-size: 13.5px; font-weight: 600; color: var(--whatsapp-ink);
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.occasion-card .card-cta svg { width: 15px; height: 15px; color: var(--whatsapp); }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 400ms var(--ease-out);
}
.gallery-grid img:hover { transform: scale(1.03); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---------- reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
}
.review-card .stars { display: flex; gap: 2px; color: var(--accent-2); margin-bottom: 14px; transition: color var(--set-change-duration) ease-out; }
.review-card .stars svg { width: 15px; height: 15px; }
.review-card p.quote { font-size: 15.5px; color: var(--ink); margin: 0 0 16px; line-height: 1.6; }
.review-card .who { font-size: 13.5px; color: var(--ink-mute); font-weight: 600; }

/* ---------- find us / book ---------- */
.book-panel {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  color: #fff;
}
@media (max-width: 860px) { .book-panel { grid-template-columns: 1fr; padding: 40px 28px; } }
.book-panel h2 { color: #fff; }
.book-panel p { color: rgba(255,255,255,0.72); max-width: 46ch; }
.book-details { display: flex; flex-direction: column; gap: 18px; }
.book-details .row { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; color: rgba(255,255,255,0.9); }
.book-details svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; margin-top: 1px; transition: color var(--set-change-duration) ease-out; }
.book-details a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); }

/* ---------- FAQ-ish nothing / footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13.5px;
  color: var(--ink-mute);
}
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- sticky mobile WhatsApp bar ---------- */
.mobile-book-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251,248,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-book-bar .btn-whatsapp { width: 100%; justify-content: center; }
@media (max-width: 720px) {
  .mobile-book-bar { display: block; }
  body { padding-bottom: 78px; }
}

/* ---------- focus states (accessibility) ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
