/* =========================================================
   CakesForYou — Elegant Boutique Cake Website
   Design system: Blush · Cream · Gold
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --blush-50:  #FDF6F4;
  --blush-100: #F9E7E6;
  --blush-200: #F4D0D1;
  --blush-300: #EDB4B8;
  --blush-400: #E295A0;
  --blush-500: #D17A8A;

  --cream-50:  #FFFCF7;
  --cream-100: #FBF4EA;
  --cream-200: #F4E9D8;

  --gold-300:  #E8CF95;
  --gold-400:  #D4B567;
  --gold-500:  #C9A961;
  --gold-600:  #B38F3E;

  --ink-900:   #2E2420;
  --ink-700:   #4A3A33;
  --ink-500:   #7A6A62;
  --ink-300:   #B8A99F;

  --white:     #FFFFFF;

  /* Type */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-script:  "Allura", "Great Vibes", cursive;
  --font-body:    "Lato", "Helvetica Neue", Arial, sans-serif;

  /* Shadows */
  --shadow-soft:  0 10px 40px rgba(46, 36, 32, 0.08);
  --shadow-lift:  0 20px 60px rgba(46, 36, 32, 0.14);
  --shadow-card:  0 6px 24px rgba(46, 36, 32, 0.06);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 36px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --dur-sm: 200ms;
  --dur-md: 450ms;
  --dur-lg: 800ms;

  /* Layout */
  --container: 1200px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--cream-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-sm) var(--ease); }
a:hover { color: var(--gold-600); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

p { margin: 0 0 1em; }

/* ---------- Utilities ---------- */
.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}

.script {
  font-family: var(--font-script);
  font-size: 1.4em;
  color: var(--blush-500);
  font-weight: 400;
  line-height: 1;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 1.25rem 0 2rem;
  color: var(--gold-500);
}
.divider::before,
.divider::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: .95rem 2rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: transform var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease),
              background var(--dur-md) var(--ease),
              color var(--dur-md) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink-900);
  color: var(--cream-50);
  box-shadow: 0 10px 25px rgba(46,36,32,.18);
}
.btn-primary:hover {
  background: var(--gold-600);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(179,143,62,.32);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--ink-900);
}
.btn-ghost:hover {
  background: var(--ink-900);
  color: var(--cream-50);
  transform: translateY(-3px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(201,169,97,.35);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(201,169,97,.45);
}

.btn .arrow {
  transition: transform var(--dur-md) var(--ease);
}
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(255, 252, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: padding var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease),
              border-color var(--dur-md) var(--ease),
              top var(--dur-md) var(--ease);
}

/* When an event banner sits above the navbar, push the navbar down so both fit. */
body:has(.event-banner:not(.is-hidden)) .navbar {
  top: var(--banner-h, 44px);
}

/* When the mobile menu is open, remove backdrop-filter so the fixed-position
   nav panel anchors to the viewport (backdrop-filter otherwise creates a
   containing block for its fixed descendants, trapping the panel inside the
   navbar's bounds and making it look transparent/half-height). */
.navbar:has(.nav-links.open) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
}

.navbar.scrolled {
  padding: .7rem 0;
  box-shadow: 0 2px 20px rgba(46,36,32,.06);
  border-bottom-color: var(--blush-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-main {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: .02em;
}
.brand-main .amp {
  color: var(--blush-500);
  font-style: italic;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-700);
  padding: .5rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold-500);
  transition: width var(--dur-md) var(--ease), left var(--dur-md) var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%; left: 0;
}
.nav-links a.active { color: var(--ink-900); }

.nav-cta {
  background: var(--ink-900);
  color: var(--cream-50) !important;
  padding: .7rem 1.4rem !important;
  border-radius: 999px;
  transition: all var(--dur-md) var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--gold-600);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  width: 32px; height: 24px;
  position: relative;
  z-index: 110;
}
.hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: all var(--dur-md) var(--ease);
}
.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--blush-50) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 60%; height: 120%;
  background: radial-gradient(circle at center,
              rgba(237, 180, 184, .35) 0%,
              transparent 60%);
  pointer-events: none;
  animation: floatGlow 14s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%; left: -10%;
  width: 50%; height: 80%;
  background: radial-gradient(circle at center,
              rgba(232, 207, 149, .28) 0%,
              transparent 60%);
  pointer-events: none;
  animation: floatGlow 18s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-20px, 30px) scale(1.08); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text .eyebrow { opacity: 0; animation: fadeUp 1s var(--ease) .3s forwards; }
.hero-text h1      { opacity: 0; animation: fadeUp 1s var(--ease) .5s forwards; }
.hero-text .lead   { opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards; }
.hero-text .hero-cta{opacity: 0; animation: fadeUp 1s var(--ease) .9s forwards; }

.hero h1 .accent {
  font-family: var(--font-script);
  color: var(--blush-500);
  font-weight: 400;
  display: inline-block;
  transform: rotate(-3deg);
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--ink-500);
  max-width: 480px;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  opacity: 0;
  animation: fadeIn 1.4s var(--ease) .6s forwards;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

.hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  width: 150px; height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  animation: spinSlow 22s linear infinite;
}
.hero-badge-1 {
  top: -30px; left: -30px;
  animation: spinSlow 22s linear infinite, floatImage 6s ease-in-out infinite;
}
.hero-badge-2 {
  bottom: -20px; right: -20px;
  background: var(--blush-300);
  color: var(--white);
  width: 110px; height: 110px;
  text-align: center;
  animation: spinSlow 30s linear infinite reverse, floatImage 7s ease-in-out infinite;
}

.hero-badge-1 span {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-600);
  line-height: 1;
}
.hero-badge-1 small {
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 4px;
}

.hero-badge-2 .script {
  color: var(--white);
  font-size: 1.4rem;
}

@keyframes spinSlow {
  /* intentionally not rotating — "spinSlow" is just the shared name */
  0%,100% { transform: rotate(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-500);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.4s forwards;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px; height: 44px;
  margin: 12px auto 0;
  background: linear-gradient(180deg, var(--gold-500), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Section base ---------- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-cream { background: var(--cream-100); }
.section-blush { background: var(--blush-50); }
.section-dark  { background: var(--ink-900); color: var(--cream-100); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream-50); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-head p { color: var(--ink-500); font-size: 1.05rem; }
.section-dark .section-head p { color: var(--ink-300); }

/* ---------- Featured cakes ---------- */
.cake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.cake-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease);
}
.cake-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.cake-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.cake-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-lg) var(--ease);
}
.cake-card:hover .cake-card-img img { transform: scale(1.08); }

.cake-card-body { padding: 1.5rem 1.75rem 2rem; }
.cake-card-body h3 { margin-bottom: .35rem; }
.cake-card-body .meta {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.cake-card-body p { font-size: .95rem; color: var(--ink-500); margin-top: .6rem; }

/* ---------- Story / About strip ---------- */
.story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
.story-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4/5;
  position: relative;
}
.story-img img { width: 100%; height: 100%; object-fit: cover; }

.story-img::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
  z-index: 2;
}

.story-text .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink-900);
  border-left: 2px solid var(--gold-500);
  padding-left: 1.25rem;
  margin: 2rem 0;
  line-height: 1.6;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature {
  text-align: center;
  padding: 2rem 1.25rem;
}
.feature-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--blush-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blush-500);
  transition: transform var(--dur-md) var(--ease), background var(--dur-md) var(--ease);
}
.feature:hover .feature-icon {
  transform: translateY(-6px) rotate(-6deg);
  background: var(--gold-300);
  color: var(--ink-900);
}
.feature h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feature p  { font-size: .95rem; color: var(--ink-500); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -10px; left: 18px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--blush-200);
  line-height: 1;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink-700);
}
.testimonial .author {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
}
.testimonial .stars {
  color: var(--gold-500);
  letter-spacing: 3px;
  margin-bottom: .75rem;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  text-align: center;
  padding: 5rem 1rem;
  background: linear-gradient(135deg, var(--blush-200), var(--blush-100));
  border-radius: var(--radius-xl);
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}
.cta-strip::before,
.cta-strip::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.cta-strip::before {
  width: 300px; height: 300px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(255,255,255,.6), transparent 70%);
}
.cta-strip::after {
  width: 240px; height: 240px;
  bottom: -120px; right: -80px;
  background: radial-gradient(circle, rgba(201,169,97,.45), transparent 70%);
}
.cta-strip > * { position: relative; z-index: 2; }
.cta-strip h2 { margin-bottom: .5rem; }
.cta-strip p  { max-width: 500px; margin: 0 auto 2rem; color: var(--ink-700); }

/* ---------- Gallery ---------- */
.gallery-head {
  padding: 10rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-50), var(--blush-50));
}

.filter-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-tab {
  padding: .7rem 1.5rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-500);
  border: 1px solid transparent;
  transition: all var(--dur-md) var(--ease);
}
.filter-tab:hover { color: var(--ink-900); }
.filter-tab.active {
  background: var(--ink-900);
  color: var(--cream-50);
  box-shadow: 0 8px 20px rgba(46,36,32,.15);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding-bottom: var(--section-pad);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Uniform 3:4 portrait frame for every cake — matches the first image. */
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: var(--cream-50);   /* soft fill so any letterboxing blends in */
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease);
}

.gallery-item img {
  width: 100%; height: 100%;
  /* `contain` shows each photo in full (no cropping) regardless of its
     native shape; portrait photos fill the frame, others sit centered
     against the cream background. */
  object-fit: contain;
  object-position: center;
  transition: transform 1s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,36,32,0) 40%, rgba(46,36,32,.85) 100%);
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-inner {
  color: var(--cream-50);
  transform: translateY(20px);
  transition: transform var(--dur-md) var(--ease);
}
.gallery-item:hover .gallery-overlay-inner { transform: translateY(0); }

.gallery-overlay-inner .tag {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-300);
  display: block;
  margin-bottom: .25rem;
}
.gallery-overlay-inner h3 {
  color: var(--cream-50);
  font-size: 1.35rem;
  margin: 0;
}

.gallery-item.hidden { display: none; }

/* ---------- Gallery CTA tile (Instagram link) ----------
   The 28th tile in the gallery — same 3:4 frame as the cake photos but with
   a soft cream-to-blush gradient and a hairline gold border so it reads as
   intentional rather than "another cake." Clicking opens Instagram in a
   new tab. */
.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg,
              var(--cream-50) 0%,
              var(--blush-100) 100%);
  border: 1px solid var(--gold-300);
  color: var(--ink-900);
  text-align: center;
}

.gallery-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.2rem;
}

.gallery-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--gold-600);
  box-shadow: 0 4px 14px rgba(74, 58, 51, 0.10);
  transition: transform var(--dur-md) var(--ease);
}

.gallery-cta-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-900);
  max-width: 14rem;
}

.gallery-cta-arrow {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--gold-600);
  font-weight: 300;
  transition: transform var(--dur-md) var(--ease);
}

/* Hover state — inherits the .gallery-item lift, plus its own embellishments */
.gallery-cta:hover {
  border-color: var(--gold-600);
}
.gallery-cta:hover .gallery-cta-arrow { transform: translateX(8px); }
.gallery-cta:hover .gallery-cta-icon  { transform: scale(1.06); }

/* ---------- About page ---------- */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-50), var(--blush-50));
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.page-hero h1 { margin-bottom: .25rem; }
.page-hero p  { color: var(--ink-500); max-width: 580px; margin: 0 auto; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-md) var(--ease);
}
.value-card:hover { transform: translateY(-6px); }
.value-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-500);
  display: block;
  margin-bottom: .25rem;
  line-height: 1;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-400), var(--blush-200));
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px; left: -7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold-500);
}
.timeline-item .year {
  font-family: var(--font-script);
  color: var(--blush-500);
  font-size: 1.5rem;
}
.timeline-item h3 { margin: 0 0 .25rem; }
.timeline-item p  { color: var(--ink-500); margin: 0; }

/* ---------- Order form ---------- */
.form-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  position: relative;
}
.form-wrap::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 4px;
  background: var(--gold-500);
  border-radius: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: .5rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  padding: .85rem 1rem;
  border: 1px solid var(--blush-200);
  border-radius: var(--radius-sm);
  background: var(--cream-50);
  color: var(--ink-900);
  transition: border var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease),
              background var(--dur-md) var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,169,97,.18);
}
.form-field textarea { min-height: 130px; resize: vertical; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.chip {
  padding: .55rem 1rem;
  border: 1px solid var(--blush-200);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--ink-700);
  background: var(--cream-50);
  cursor: pointer;
  transition: all var(--dur-md) var(--ease);
}
.chip input {
  /* Visually hidden but still focusable for keyboard users. */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.chip:hover { border-color: var(--gold-500); color: var(--ink-900); }
.chip.selected,
.chip:has(input:checked) {
  background: var(--ink-900);
  color: var(--cream-50);
  border-color: var(--ink-900);
  box-shadow: 0 4px 14px rgba(74,58,51,.18);
}
/* Keyboard focus ring for accessibility */
.chip:focus-within {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* ---------- Form validation error state ---------- */
.form-field.error label {
  color: #B3261E;
}
.form-field.error input,
.form-field.error textarea,
.form-field.error select {
  border-color: #B3261E;
  background: #FFF7F6;
}
.form-field.error input:focus,
.form-field.error textarea:focus,
.form-field.error select:focus {
  border-color: #B3261E;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18);
}
.form-field.error .chips {
  padding: .35rem;
  border: 1px dashed #B3261E;
  border-radius: var(--radius-sm);
  background: #FFF7F6;
}
.form-field .error-msg {
  display: none;
  font-size: .78rem;
  font-weight: 600;
  color: #B3261E;
  margin-top: .4rem;
  letter-spacing: .02em;
}
.form-field.error .error-msg { display: block; }

.form-banner {
  margin: 1.5rem 0 0;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  display: none;
}
.form-banner.error {
  display: block;
  background: #FFF0EE;
  color: #B3261E;
  border: 1px solid #F3C8C4;
}
.form-banner.success {
  display: block;
  background: #F1F7EF;
  color: #2E6B3D;
  border: 1px solid #C9E3CB;
}

.form-note {
  font-size: .82rem;
  color: var(--ink-500);
  margin-top: .25rem;
}

/* ---------- Cakes menu (boutique-style listing) ---------- */
.menu-block {
  max-width: 820px;
  margin: 0 auto;
}
.menu-block + .menu-block { margin-top: 4rem; }

.menu-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink-500);
  max-width: 620px;
  margin: -.5rem auto 2.5rem;
  line-height: 1.7;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.6rem;
}
.menu-list li {
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease);
}
.menu-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.menu-list .item-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0 0 .35rem;
  line-height: 1.2;
}
.menu-list .item-name .native {
  font-style: italic;
  color: var(--blush-500);
  font-size: .92em;
  font-weight: 400;
  margin-left: .35rem;
}
.menu-list .item-desc {
  margin: 0;
  color: var(--ink-500);
  font-size: .98rem;
  line-height: 1.65;
}

.menu-closing {
  text-align: center;
  max-width: 620px;
  margin: 3.5rem auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink-700);
  line-height: 1.5;
}

.menu-cta {
  text-align: center;
  margin-top: 2rem;
}

.menu-allergen-note {
  text-align: center;
  font-size: .85rem;
  color: var(--ink-500);
  max-width: 560px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--blush-100);
  font-style: italic;
}

/* ---------- Event banner (top-of-home announcement) ----------
   Slim ribbon strip above the navbar promoting the next upcoming event.
   Click anywhere on the link area to navigate; small × dismisses for the
   session via sessionStorage; auto-hides after the event date passes
   (handled in main.js via the data-expires attribute). */
.event-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;            /* above the navbar (z-index: 100) */
  background: linear-gradient(90deg,
              var(--blush-200) 0%,
              var(--blush-100) 50%,
              var(--blush-200) 100%);
  border-bottom: 1px solid var(--blush-300);
  /* Soft fade-in on first load so it doesn't feel jarring */
  opacity: 0;
  animation: ebFadeIn 0.7s var(--ease) 0.2s forwards;
}

@keyframes ebFadeIn {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.eb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem;
  padding: .65rem 3rem .65rem 1.5rem;
  text-decoration: none;
  color: var(--ink-900);
  font-size: .88rem;
  transition: background var(--dur-md) var(--ease);
}
.eb-link:hover { background: rgba(255, 255, 255, 0.30); }

.eb-icon {
  display: inline-flex;
  align-items: center;
  color: var(--gold-600);
}

.eb-text {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
}
.eb-text strong { font-weight: 600; letter-spacing: .01em; }
.eb-date {
  color: var(--gold-600);
  font-weight: 500;
  letter-spacing: .02em;
}

.eb-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-left: 1rem;
  margin-left: .25rem;
  border-left: 1px solid var(--blush-300);
}

.eb-arrow {
  display: inline-block;
  animation: ebArrowPulse 1.8s ease-in-out infinite;
}
@keyframes ebArrowPulse {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}
.eb-link:hover .eb-arrow {
  animation: none;
  transform: translateX(8px);
  transition: transform var(--dur-md) var(--ease);
}

.eb-close {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-500);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .55rem;
  border-radius: 50%;
  transition: color var(--dur-md) var(--ease),
              background var(--dur-md) var(--ease);
}
.eb-close:hover {
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.45);
}

.event-banner.is-hidden { display: none; }

/* Mobile: stack onto two lines, drop the divider */
@media (max-width: 720px) {
  .eb-link {
    flex-direction: column;
    gap: .15rem;
    padding: .55rem 2.6rem;
    font-size: .8rem;
    text-align: center;
  }
  .eb-text { flex-direction: column; gap: .1rem; align-items: center; }
  .eb-cta {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: .15rem;
    font-size: .68rem;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--blush-100);
  padding: 1.25rem 0;
  cursor: pointer;
  transition: padding var(--dur-md) var(--ease);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-900);
  font-weight: 500;
  transition: color var(--dur-md) var(--ease);
}
.faq-item:hover .faq-q { color: var(--gold-600); }

.faq-toggle {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blush-100);
  display: grid;
  place-items: center;
  color: var(--blush-500);
  transition: transform var(--dur-md) var(--ease), background var(--dur-md) var(--ease);
}
.faq-item.open .faq-toggle {
  background: var(--gold-500);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-lg) var(--ease),
              padding var(--dur-md) var(--ease);
  color: var(--ink-500);
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding-top: 1rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: var(--ink-900);
  color: var(--cream-100);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--gold-500) 0%, transparent 70%);
  opacity: .4;
}
.contact-info > * { position: relative; }
.contact-info h2 { color: var(--cream-50); }

.contact-list {
  list-style: none;
  padding: 0; margin: 2rem 0 0;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: flex-start;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(201,169,97,.15);
  color: var(--gold-400);
  display: grid; place-items: center;
}
.contact-list .label {
  display: block;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 2px;
}
.contact-list .value {
  display: block;
  color: var(--cream-50);
  font-size: 1rem;
}

.social-row {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
}
.social-row a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--cream-100);
  display: grid; place-items: center;
  transition: all var(--dur-md) var(--ease);
}
.social-row a:hover {
  background: var(--gold-500);
  color: var(--ink-900);
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: var(--cream-200);
  padding: 4rem 0 2rem;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: var(--cream-50);
  font-size: 1rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .6rem; }
.footer a { color: var(--cream-200); opacity: .8; font-size: .95rem; }
.footer a:hover { opacity: 1; color: var(--gold-400); }

.footer .brand-main { color: var(--cream-50); }
.footer .brand-sub  { color: var(--gold-400); }
.footer .tagline    { margin-top: 1rem; color: var(--ink-300); font-size: .95rem; max-width: 300px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--ink-300);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .25s; }
.reveal-delay-3 { transition-delay: .4s; }
.reveal-delay-4 { transition-delay: .55s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .story,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hamburger { display: block; }

  /* Disable backdrop-filter on mobile entirely — it creates a containing
     block for position:fixed descendants (including .nav-links), which
     causes first-open layout miscalculations for the nested dropdown.
     The navbar stays readable with its solid background. */
  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 252, 247, 0.98);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    background-color: #FFFCF7 !important;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2.5rem 3rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--dur-md) var(--ease);
    align-items: center;
    text-align: center;
    overflow-y: auto;
    z-index: 105;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links .nav-cta { margin-top: .5rem; }

  /* Mobile submenu: keep items centered under Events */
  .has-dropdown { text-align: center; }
  .has-dropdown > a { justify-content: center; }

  /* Lock background scroll when the menu is open */
  body:has(.nav-links.open) { overflow: hidden; }

  .hero { min-height: auto; padding: 7rem 0 3rem; }

  /* Hero badges: on small screens the image fills nearly the whole viewport,
     so the desktop negative-offset positioning (top: -30px / left: -30px etc.)
     pushes the badges off-screen and they get clipped at the viewport edge.
     Pull them inside the image bounds and shrink slightly for balance. */
  .hero-badge-1, .hero-badge-2 { width: 92px; height: 92px; }
  .hero-badge-1 { top: 12px; left: 12px; }
  .hero-badge-2 { bottom: 12px; right: 12px; }
  .hero-badge-1 span  { font-size: 1.5rem; }
  .hero-badge-1 small { font-size: .55rem; letter-spacing: .22em; }
  .hero-badge-2 .script { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .scroll-hint { display: none; }
  .section { padding: 4rem 0; }
}

/* =========================================================
   Dropdown navigation (Events menu)
   ========================================================= */
.has-dropdown { position: relative; }

.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.has-dropdown .caret {
  font-size: .7rem;
  transition: transform var(--dur-md) var(--ease);
  line-height: 1;
}
.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret { transform: rotate(180deg); }

/* Invisible bridge between the nav item and the dropdown panel so
   hover stays alive when the cursor crosses the gap. */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 22px;
  background: transparent;
  pointer-events: none;
}
.has-dropdown:hover::after,
.has-dropdown:focus-within::after { pointer-events: auto; }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: var(--white);
  padding: .75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--blush-100);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Closing: wait 280ms before fading so the cursor has time to enter
     the dropdown. Opening is instant (delay overridden on :hover). */
  transition: opacity var(--dur-md) var(--ease) 280ms,
              transform var(--dur-md) var(--ease) 280ms,
              visibility 0s linear calc(var(--dur-md) + 280ms);
  z-index: 110;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: var(--white);
  border-left: 1px solid var(--blush-100);
  border-top: 1px solid var(--blush-100);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition: opacity var(--dur-md) var(--ease) 0s,
              transform var(--dur-md) var(--ease) 0s,
              visibility 0s linear 0s;
}

.dropdown li { margin: 0; }
.dropdown a {
  display: flex;
  flex-direction: column;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-700);
  transition: background var(--dur-md) var(--ease),
              color var(--dur-md) var(--ease);
}
.dropdown a::after { display: none; }
.dropdown a:hover {
  background: var(--blush-50);
  color: var(--ink-900);
}
.dropdown .d-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-900);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
}
.dropdown .d-meta {
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 4px;
  font-weight: 700;
}
.dropdown .d-meta.past { color: var(--ink-300); }

/* =========================================================
   Events landing page
   ========================================================= */
.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease);
  position: relative;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.event-card-banner {
  height: 240px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.event-card-banner.mothers {
  background: linear-gradient(135deg, var(--blush-200), var(--blush-100));
}
.event-card-banner.valentines {
  background: linear-gradient(135deg, #F3C6D0, var(--blush-200));
}

.event-card-banner::before,
.event-card-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.event-card-banner::before {
  width: 220px; height: 220px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(255,255,255,.5), transparent 70%);
}
.event-card-banner::after {
  width: 180px; height: 180px;
  bottom: -60px; right: -40px;
  background: radial-gradient(circle, rgba(201,169,97,.4), transparent 70%);
}

.event-card-banner .banner-inner {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 1.5rem;
}
.event-card-banner h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink-900);
  margin: 0;
  line-height: 1.1;
}
.event-card-banner h3 .s {
  font-family: var(--font-script);
  color: var(--blush-500);
  font-weight: 400;
  display: block;
  font-size: 1.35em;
  line-height: 1;
  margin: 4px 0;
}

.event-status {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.event-status.upcoming {
  background: var(--ink-900);
  color: var(--cream-50);
}
.event-status.past {
  background: rgba(255,255,255,.85);
  color: var(--ink-500);
}

.event-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--ink-500);
  margin-bottom: 1rem;
}
.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.event-meta svg { color: var(--gold-500); flex-shrink: 0; }

.event-card-body p {
  color: var(--ink-500);
  flex: 1;
  margin-bottom: 1.5rem;
}
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--blush-100);
}
.event-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink-900);
}
.event-price small {
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: block;
  margin-top: -2px;
}

/* =========================================================
   Event detail page (workshop registration)
   ========================================================= */
.event-hero {
  position: relative;
  padding: 9rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--blush-50) 60%, var(--blush-100) 100%);
  text-align: center;
}

.event-hero .floral-corner {
  position: absolute;
  width: 200px;
  opacity: .7;
  pointer-events: none;
}
.event-hero .floral-tl { top: 90px; left: 0; transform: translateX(-20%); }
.event-hero .floral-tr { top: 90px; right: 0; transform: translateX(20%) scaleX(-1); }
.event-hero .floral-bl { bottom: -20px; left: 0; transform: translateX(-25%) rotate(180deg); opacity: .5; }
.event-hero .floral-br { bottom: -20px; right: 0; transform: translateX(25%) rotate(180deg) scaleX(-1); opacity: .5; }

.event-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1rem;
}
.event-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: .5rem;
}
.event-hero h1 .s1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--blush-500);
  display: block;
  font-size: .65em;
  line-height: 1;
}
.event-hero h1 .s2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .02em;
  display: block;
  color: var(--ink-900);
  font-size: 1.1em;
  line-height: 1;
  margin-top: .15em;
}
.event-hero h1 .s3 {
  font-family: var(--font-script);
  color: var(--blush-500);
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1;
  display: inline-block;
  transform: rotate(-4deg);
  margin-top: .1em;
}

.event-details-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: .9rem;
  color: var(--ink-700);
}
.event-details-strip span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.event-details-strip svg { color: var(--gold-500); }
.event-details-strip .dot {
  width: 4px; height: 4px;
  background: var(--blush-300);
  border-radius: 50%;
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.highlight {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-md) var(--ease);
}
.highlight:hover { transform: translateY(-5px); }
.highlight .h-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--blush-100);
  color: var(--blush-500);
  display: grid; place-items: center;
}
.highlight h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 .4rem;
  color: var(--ink-900);
}
.highlight p {
  font-size: .9rem;
  color: var(--ink-500);
  margin: 0;
}

/* Terms block inside form */
.terms-box {
  background: var(--cream-100);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-500);
  font-size: .85rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin-top: .75rem;
}
.terms-box strong { color: var(--ink-900); }

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 0;
  cursor: pointer;
}
.terms-check input {
  margin-top: 4px;
  accent-color: var(--gold-500);
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.terms-check span {
  font-size: .95rem;
  color: var(--ink-700);
}

/* Ticket price highlight */
.ticket-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--blush-100), var(--cream-100));
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ticket-callout .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink-900);
  line-height: 1;
}
.ticket-callout .price small {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 4px;
}

/* Past event (Valentine's) */
.past-banner {
  display: inline-block;
  padding: .5rem 1.2rem;
  background: var(--ink-900);
  color: var(--cream-50);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.past-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.past-gallery .gallery-item {
  aspect-ratio: 1/1;
}

/* Mobile dropdown adjustments */
@media (max-width: 720px) {
  /* The <li class="has-dropdown"> needs to span the full panel width so
     the nested submenu stacks properly beneath the Events link. */
  .has-dropdown {
    width: 100%;
    align-self: stretch;
    text-align: center;
  }
  /* Kill the desktop hover-bridge pseudo-element on mobile */
  .has-dropdown::after { display: none; }
  .has-dropdown > a {
    display: inline-flex;
    justify-content: center;
  }
  .has-dropdown > a .caret { display: inline-block; }

  /* Neutralize the desktop :hover transform — otherwise hovering Events
     on touch/mouse at mobile widths shifts the 100%-wide dropdown by
     -50% and pushes it off-screen to the left. */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    transform: none;
    transition: max-height var(--dur-md) var(--ease),
                padding var(--dur-md) var(--ease);
  }

  .dropdown {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    text-align: center;
    transition: max-height var(--dur-md) var(--ease),
                padding var(--dur-md) var(--ease);
  }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown {
    max-height: 400px;
    padding: .5rem 0;
  }
  .dropdown li {
    width: 100%;
    margin: 0;
    display: block;
    text-align: center;
  }
  .dropdown a {
    display: block;
    width: 100%;
    padding: .7rem 1rem;
    text-align: center;
    box-sizing: border-box;
  }
  .dropdown .d-title,
  .dropdown .d-meta {
    display: block;
    text-align: center;
    width: 100%;
  }
  .event-hero .floral-corner { width: 120px; opacity: .4; }
}

/* Respect motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}