/* ═══════════════════════════════════════════════════════
   Kapasi's Kupcakes — Brand Styles
   Luxury Bespoke Boutique Bakery

   Official palette in use:
     Offwhite  #fbfaf7  · main canvas
     Black     #000000  · all text
     Blush     #f1b6b8  · accent
     Cream     #ffeedc  · surface highlight
   ═══════════════════════════════════════════════════════ */

:root {
  --rose:     #f1b6b8;
  --peach:    #ffeedc;
  --blush:    #f5ded8;
  --white:    #ffffff;
  --paper:    #fbfaf7;
}

/* ── Base ──────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #000;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at top left, rgba(241, 182, 184, 0.16), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 238, 220, 0.75), transparent 24%),
    radial-gradient(circle at 20% 62%, rgba(245, 222, 216, 0.65), transparent 26%),
    radial-gradient(circle at 78% 88%, rgba(241, 182, 184, 0.12), transparent 22%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.65;
}

section,
footer {
  position: relative;
  background: transparent;
}

#home p,
#about p,
#menu p,
#testimonials p,
#order p,
#order h2,
#order h3,
footer p,
footer a,
#about a {
  color: #000;
}

/* ── Navbar ────────────────────────────────────────── */
#navbar {
  background: rgba(251, 250, 247, 0.97);
  box-shadow: 0 1px 18px rgba(0, 0, 0, 0.04);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.navbar-scrolled {
  background: rgba(251, 250, 247, 0.97);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

/* Nav text stays black on the light canvas */
.nav-logo,
.nav-item,
.nav-mobile-btn {
  color: #000;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: #000;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo-image {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(64vw, 20rem);
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-image {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .nav-logo-image {
    height: 54px;
  }
}

.nav-item {
  font-weight: 600;
}

.nav-item.nav-cta {
  border: 1px solid var(--rose);
  color: #000;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.nav-item.nav-cta:hover {
  background-color: var(--rose);
  color: #000;
}

#navbar.navbar-scrolled .nav-logo,
#navbar.navbar-scrolled .nav-mobile-btn {
  color: #000;
}

#navbar.navbar-scrolled .nav-item:not(.nav-cta) {
  color: #000;
}

#navbar.navbar-scrolled .nav-item:not(.nav-cta):hover {
  color: #000;
}

/* ── Hero ──────────────────────────────────────────── */
.hero-section {
  background-color: transparent;
}

.hero-gallery {
  pointer-events: none;
  top: 4.5rem;
  right: 0;
  bottom: 0;
  left: 0;
}

.hero-gallery__slide,
.hero-gallery__wash {
  position: absolute;
}

.hero-gallery__slide {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  filter: blur(0.5px) saturate(0.98) brightness(0.94);
  animation: hero-fade var(--hero-cycle-duration, 34s) infinite;
}

.hero-gallery__slide--1 {
  animation-delay: 0s;
}

.hero-gallery__slide--2 {
  animation-delay: 4s;
}

.hero-gallery__slide--3 {
  animation-delay: 8s;
}

.hero-gallery__wash {
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(rgba(251, 250, 247, 0.22), rgba(251, 250, 247, 0.34)),
    radial-gradient(circle at 18% 62%, rgba(241, 182, 184, 0.1), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(255, 238, 220, 0.18), transparent 24%);
  z-index: 1;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(78vw, 76rem);
  max-width: 100%;
  height: auto;
}

.hero-kicker {
  color: #000;
  font-size: clamp(0.9rem, 1.25vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-description {
  color: #000;
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  font-weight: 800;
  line-height: 1.45;
  max-width: 46rem;
}

@keyframes hero-fade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 0.58;
  }

  28% {
    opacity: 0.58;
  }

  36% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* ── Section label decorators ──────────────────────── */
/* Usage: <p class="section-label ..."> creates ——— LABEL ——— */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  letter-spacing: 0.28em;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background-color: var(--rose);
  opacity: 0.55;
}

.section-label {
  color: #000;
}

/* ── About photo ───────────────────────────────────── */
.about-photo-wrap {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.soft-card {
  background-color: var(--peach);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.section-copy {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.975rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.display-heading {
  letter-spacing: 0.01em;
}

/* ── Events section ────────────────────────────────── */
.events-copy-note {
  font-weight: 700;
}

.events-gallery-wrap {
  width: 100%;
}

.events-gallery {
  position: relative;
  width: min(100%, 29rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid rgba(241, 182, 184, 0.62);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

.events-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: events-fade var(--events-cycle-duration, 18s) infinite;
}

@keyframes events-fade {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  42% {
    opacity: 1;
  }

  52% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* ── Order section ─────────────────────────────────── */
.order-section {
  background-color: transparent;
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background-color: var(--rose);
  color: #000;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--peach);
  color: #000;
}

.btn-secondary {
  display: inline-block;
  border: 1px solid #000;
  color: #000;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(241, 182, 184, 0.18);
  border-color: #000;
}

/* ── Image placeholder ─────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, #f5ded8 0%, #f1b6b8 55%, #ffeedc 100%);
}

@media (max-width: 640px) {
  .hero-logo {
    width: min(92vw, 44rem);
  }

  .section-copy {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .hero-gallery__slide {
    filter: blur(0.5px) saturate(0.84);
  }
}

/* Header is taller on desktop; keep hero gallery below it */
@media (min-width: 768px) {
  .hero-gallery {
    top: 5.5rem;
  }
}
