/* BAM Party Store -- groovy retro, daisy wallpaper edition */

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

:root {
  /* Wallpaper-sampled palette */
  --pink-soft:    #fbd9e0;   /* checkerboard tile */
  --pink-mid:     #f4b8c8;
  --pink-deep:    #d97a96;   /* accents */
  --rose:         #c45a7d;   /* primary CTA */
  --rose-dark:    #9c3e5e;

  --cream:        #fdf8f3;   /* paper overlay */
  --cream-warm:   #fbeedd;
  --butter:       #fcd884;   /* daisy yellow */
  --butter-deep:  #f0b94a;

  --ink:          #5a3e2a;   /* warm brown (matches smiley outlines) */
  --ink-soft:     #8a6a4e;
  --ink-light:    #b89a82;

  --shadow-lg: 0 12px 30px rgba(122, 90, 63, 0.18), 0 4px 10px rgba(122, 90, 63, 0.10);
  --shadow-md: 0 6px 16px rgba(122, 90, 63, 0.15);
  --shadow-sm: 0 2px 6px rgba(122, 90, 63, 0.12);
  --shadow-pink: 0 8px 22px rgba(217, 122, 150, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--pink-soft);
  color: var(--ink);
  font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

/* Wallpaper background. New designer artwork tiled at a comfortable scale. */
body {
  background-image:
    linear-gradient(rgba(253, 248, 243, 0.45), rgba(253, 248, 243, 0.45)),
    url('assets/wallpaper.jpg');
  background-repeat: repeat, repeat;
  background-size: auto, 760px auto;
  background-attachment: fixed, fixed;
  background-color: var(--pink-soft);
}
@media (pointer: coarse) {
  /* Touch devices — fixed attachment is unreliable on iOS Safari. */
  body {
    background-size: auto, 540px auto;
    background-attachment: scroll, scroll;
  }
}

/* ---------- Top Navigation Bar ---------- */
.navbar {
  background: var(--ink);
  color: #fdf8f3;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 14px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  /* Three-column grid keeps the brand mathematically centered regardless
     of how wide the left/right nav lists turn out. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 28px;
  position: relative;
  min-height: 120px;
}
.nav-list-left  { justify-self: end; }
.nav-list-right { justify-self: start; }
.nav-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
  order: 2;
}
.nav-brand img {
  display: block;
  height: 96px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.nav-list-left  { order: 1; justify-content: flex-end; }
.nav-list-right { order: 3; justify-content: flex-start; }
.nav-item { position: relative; }
.nav-link {
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.3px;
  padding: 18px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background 160ms ease, color 160ms ease;
}
.nav-link:hover, .nav-item.open > .nav-link {
  background: rgba(252, 216, 132, 0.12);
  color: var(--butter);
}
.nav-link:focus-visible { outline: 2px solid var(--butter); outline-offset: -2px; }
.nav-caret {
  width: 11px; height: 7px;
  transition: transform 200ms ease;
}
.nav-item.open .nav-caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 200px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  padding: 8px 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  border-top: 1px solid rgba(252, 216, 132, 0.35);
}
.nav-item.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu a {
  display: block;
  padding: 11px 20px;
  color: var(--cream);
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 17px;
  transition: background 140ms ease, color 140ms ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible {
  background: rgba(252, 216, 132, 0.12);
  color: var(--butter);
  outline: none;
}

/* Mobile burger */
.nav-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  margin: 4px 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-inner { min-height: 100px; gap: 18px; padding: 0 16px; }
  .nav-brand img { height: 78px; }
  .nav-link { padding: 16px 12px; font-size: 16px; }
}
@media (max-width: 900px) {
  .nav-inner { gap: 10px; }
  .nav-brand img { height: 68px; }
  .nav-link { padding: 14px 8px; font-size: 14px; }
}
@media (max-width: 720px) {
  .nav-inner { justify-content: center; min-height: 84px; padding: 0 16px; gap: 0; }
  .nav-brand { order: 1; }
  .nav-brand img { height: 64px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease;
  }
  /* Left list sits right below the bar, right list stacks below it */
  .nav-list-left  { top: 100%; order: 2; z-index: 2; }
  .nav-list-right { top: 100%; order: 3; z-index: 1; transform: translateY(0); }
  .navbar.mobile-open .nav-list-right { transform: translateY(var(--mobile-left-h, 0px)); }
  .nav-list.open { max-height: 600px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 20px; }
  .nav-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    background: rgba(255,255,255,0.04);
    transform: none;
    display: none;
  }
  .nav-item.open .nav-menu { display: block; }
  .nav-menu a { padding-left: 36px; }
}

/* ---------- Hero Carousel ---------- */
.hero {
  position: relative;        /* anchor for prev/next/dots */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 16px 16px;
}
.hero-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  width: 80%;
  margin: 0 auto;
}
.hero-frame {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid var(--ink);
  box-sizing: border-box;
  box-shadow: var(--shadow-lg);
  /* Locked to the narrowest photo's aspect ratio (slide-05, 1365×2048 ≈ 0.6665).
     All other photos crop equally on the sides to fit. */
  --frame-ratio: 0.6665;
  aspect-ratio: var(--frame-ratio);
  background: var(--ink);
  /* Three identical frames share the viewport width equally. Height follows
     from aspect-ratio so the portrait crop is preserved. */
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 1100px) {
  .hero-stage { gap: 14px; }
}
@media (max-width: 820px) {
  /* On narrow screens, show only the first frame full-width to avoid tiny portraits. */
  .hero-stage { gap: 0; }
  .hero-frame { display: none; }
  .hero-frame:first-child { display: block; flex: 1 1 100%; }
}
@media (max-width: 720px) {
  .hero { padding: 24px 16px 12px; max-width: 100%; }
  .hero-frame { border-radius: 20px; }
}
.carousel-track {
  position: relative;
  height: 100%;
  width: 100%;
  /* Cross-fade carousel: slides stacked, only the active one visible.
     No horizontal motion -- each beat reads as a clean, decisive swap. */
}
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
  pointer-events: none;
}
.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  user-select: none;
  -webkit-user-drag: none;
}
/* Per-slide framing tweaks -- bleed Main Street Bar shot top-to-bottom */
.carousel-slide:nth-child(8) img {
  transform: scale(1.32);
  transform-origin: center 46%;
}
.carousel-slide::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 65%, rgba(0,0,0,0.20) 100%);
  pointer-events: none;
}

/* Carousel buttons -- rounded cream pills with rose shadow */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid var(--ink);
  color: var(--rose);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  z-index: 3;
}
.carousel-btn:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--rose);
  color: var(--cream);
}
.carousel-btn:active { transform: translateY(-50%) scale(0.96); }
.carousel-btn:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
/* hero-stage is 80% width centered, so each side gutter is 10% of viewport.
   Pull the buttons in close to the frame edge -- ~3x closer than before. */
.carousel-prev { left: calc(10% - 86px); }
.carousel-next { right: calc(10% - 86px); }
@media (max-width: 480px) {
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
  z-index: 3;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(253, 248, 243, 0.75);
  border: none;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: background 180ms ease, width 180ms ease, transform 180ms ease;
}
.carousel-dot:hover { background: var(--cream); transform: scale(1.15); }
.carousel-dot[aria-selected="true"] {
  background: var(--butter);
  width: 26px;
  border-radius: 6px;
}
.carousel-dot:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  padding: 40px 24px 16px;
  max-width: 900px;
  margin: 0 auto;
}
.section-head h1 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1.1;
}
.section-head p {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: 10px;
}

/* Daisy divider row */
.daisy-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin: 12px 0 20px;
}
.daisy-divider svg { width: 44px; height: 44px; }
.daisy-divider::before,
.daisy-divider::after {
  content: ""; height: 4px; width: 140px;
  background: linear-gradient(to right, transparent, var(--pink-deep), transparent);
  border-radius: 2px;
}

/* ---------- Designer area ---------- */
.designer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0 60px;
}

/* Rich brown frame around design canvas */
.frame-outer {
  position: relative;
  margin: 0 auto;
  width: min(1100px, 94vw);
  aspect-ratio: 4 / 3;
  padding: 9px 9px 11px;
  background: var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-lg), var(--shadow-pink);
}

.canvas {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 14px;
  overflow: hidden;
  /* Subdue the Balloon Bar photo: stack a translucent black veil over it
     so it reads as a darkened backdrop for the bouquet. */
  background-color: #0b0b0b;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('assets/design-window.jpg');
  background-size: cover, cover;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
  box-shadow: inset 0 4px 12px rgba(122, 90, 63, 0.18);
  cursor: default;
  z-index: 2;
  /* Prevent mobile pull-to-refresh / page scroll while interacting with the bouquet canvas */
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}

/* Balloon on canvas */
.balloon {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.20));
  transition: filter 120ms ease;
  /* Disable native touch gestures (scroll/zoom/pull-to-refresh) on draggable balloons */
  touch-action: none;
}
.balloon.dragging { cursor: grabbing; filter: drop-shadow(0 10px 14px rgba(0,0,0,0.30)); }
.balloon svg { display: block; pointer-events: none; }

/* On mobile, the design-window canvas is narrow. Halve balloon size so the bouquet fits. */
@media (max-width: 640px) {
  .balloon { transform: translate(-50%, -50%) scale(0.5); }
}

/* ---------- Controls panel ---------- */
.controls {
  max-width: 1100px;
  margin: 28px auto 0;
  background: var(--cream);
  border-radius: 28px;
  padding: 44px 56px 40px;
  box-shadow: var(--shadow-md);
}
.controls-title {
  text-align: center;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 14px;
}
.controls-sub {
  text-align: center;
  color: var(--ink);
  margin: 0 0 32px;
  font-size: 20px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
}
.field-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .field-row { flex-direction: column; align-items: stretch; gap: 14px; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
/* Hide the small label chips -- the pill itself communicates the field */
.field label { display: none; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  background: var(--peach, #fbd9b8);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 14px 48px 14px 28px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%235a3e2a' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.field select:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(90,62,42,0.15); }
.field select:focus { outline: none; border-color: var(--ink); }
.field select:disabled { opacity: 0.55; cursor: not-allowed; }

.actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.counter {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.2px;
}
.counter strong { color: var(--rose); font-weight: 700; font-size: 16px; }
.btn-group { display: flex; gap: 10px; }
.btn {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.btn-primary {
  background: var(--rose);
  color: var(--cream);
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: var(--pink-mid); color: var(--cream); cursor: not-allowed;
  transform: none; box-shadow: none; opacity: 0.7;
}
.btn-secondary {
  background: var(--cream-warm);
  color: var(--ink-soft);
}
.btn-secondary:hover { background: var(--pink-soft); color: var(--ink); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.swatch-section {
  margin-top: 18px;
}
.swatch-section + .swatch-section {
  margin-top: 22px;
}
.swatch-heading {
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px 6px 8px;
  background: var(--cream-warm, #fbeedd);
  border: 1.5px solid rgba(90, 62, 42, 0.18);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  font-family: inherit;
}
.swatch:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 6px 14px rgba(90, 62, 42, 0.18);
}
.swatch:active:not(:disabled) {
  transform: translateY(0);
}
.swatch:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.35);
}
.swatch.is-disabled,
.swatch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.swatch-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(90, 62, 42, 0.28);
  box-shadow: inset -4px -5px 8px rgba(0, 0, 0, 0.18), inset 3px 3px 6px rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.swatch-clear .swatch-dot {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.85) 0 6px, rgba(200,210,215,0.7) 6px 12px) !important;
  border-style: dashed;
}
.swatch-name {
  font-size: 12px;
  color: var(--ink);
  text-align: center;
  line-height: 1.15;
  font-weight: 500;
}
@media (max-width: 520px) {
  .swatch-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .swatch-dot { width: 36px; height: 36px; }
  .swatch-name { font-size: 11px; }
}

.hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
#cap-msg {
  margin-top: 10px;
  color: var(--rose);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}

/* ---------- Google reviews bar (under carousel) ---------- */
.reviews-bar {
  position: relative;
  width: 100%;
  background: var(--ink);
  color: #fdf8f3;
  padding: 28px 24px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.reviews-bar::before,
.reviews-bar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.reviews-bar::before {
  left: 0;
  background: linear-gradient(to right, #5a3e2a 0%, rgba(90,62,42,0) 100%);
}
.reviews-bar::after {
  right: 0;
  background: linear-gradient(to left, #5a3e2a 0%, rgba(90,62,42,0) 100%);
}

.review-card {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
  padding: 0 16px;
}
.review-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.review-stars {
  color: #fcd884; /* butter */
  font-size: 22px;
  letter-spacing: 4px;
  margin-bottom: 10px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.review-text {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.5;
  color: #fdf8f3;
  margin: 0 0 12px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.review-meta {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #fcd884;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.review-name { color: #fdf8f3; font-weight: 600; }
.review-date { color: rgba(253, 248, 243, 0.7); }
.review-source { color: #fcd884; font-weight: 600; }
.review-dot { color: rgba(253, 248, 243, 0.4); }

@media (max-width: 820px) {
  .reviews-bar { padding: 22px 16px; min-height: 200px; }
  .review-stars { font-size: 19px; }
  .review-meta { font-size: 13px; gap: 6px; }
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 60px 24px 100px;
  color: var(--ink-soft);
  font-size: 34px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  text-shadow: 0 3px 6px rgba(90, 62, 42, 0.45);
}
.footer .daisy-divider { margin-bottom: 24px; }
.footer-contact {
  margin-top: 14px;
  font-size: 32px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 500;
}
.footer-contact .footer-address { font-size: 26px; }
.footer-contact a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-contact a:hover { text-decoration: underline; }

/* Social icons row -- solid black circles with white glyphs */
.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0.92;
}
.footer-socials a:hover,
.footer-socials a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}
.footer-socials svg {
  width: 44px;
  height: 44px;
  display: block;
}

/* ---------- Subpage layout ---------- */
.subpage {
  max-width: 1148px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}
.subpage-title {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.subpage-eyebrow {
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}
.subpage-lede {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 17px;
}
.subpage-card {
  max-width: 880px;
  margin: 24px auto 0;
  background: var(--cream);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(255,255,255,0.6);
  border: 1px solid rgba(122, 90, 63, 0.10);
}
.subpage-card h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
}
.subpage-card p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 14px;
}
.subpage-card p:last-child { margin-bottom: 0; }
.subpage-card ul {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 14px 22px;
  padding: 0;
}
.subpage-card ul li { margin-bottom: 6px; }
.subpage-card ul li:last-child { margin-bottom: 0; }
.subpage-card strong { color: var(--ink); }

/* Catalog cards (Chairs/Tables/Linens): grouped item headings inside a card */
.catalog-card {
  margin-top: 18px;
  padding: 26px 30px;
  text-align: left;
}
.catalog-card h2 {
  font-size: 24px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(122, 90, 63, 0.18);
}
.catalog-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin: 14px 0 4px;
}
.catalog-card h3:first-of-type { margin-top: 4px; }
.catalog-card .item-meta {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-soft);
  margin-left: 4px;
}
.catalog-card ul { margin: 0 0 10px 20px; padding: 0; list-style: disc; }
.catalog-card ol { margin: 0 0 10px 22px; padding: 0; list-style: decimal; color: var(--ink-soft); font-size: 16px; }
.catalog-card ul li, .catalog-card ol li { margin-bottom: 4px; }
.catalog-card p { margin: 0 0 10px; }
.catalog-card p:last-child { margin-bottom: 0; }
.catalog-card .catalog-note { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }

/* FAQ-specific tightening: stack cards comfortably, left-align text */
.faq-card {
  margin-top: 18px;
  padding: 26px 30px;
  text-align: left;
}
.faq-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.subpage-pill {
  display: inline-block;
  background: var(--butter);
  color: var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rose);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 22px;
}
.subpage-back:hover { color: var(--rose-dark); }

/* --- PHOTOS hover-flyout on dropdown items --- */
.nav-menu a.has-photos {
  position: relative;
}
.photos-flyout {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  /* No margin-left — flyout butts against the item so there is no gap to traverse */
  background: #0b0b0b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  border-radius: 0 999px 999px 0;
  border-left: 1px solid rgba(255,255,255,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  transition-delay: 0ms, 0ms;
  white-space: nowrap;
  z-index: 60;
}
/* Invisible bridge so a diagonal cursor path can't fall off the flyout */
.photos-flyout::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -10px;
  right: -10px;
  z-index: -1;
}
.nav-menu a.has-photos:hover .photos-flyout,
.nav-menu a.has-photos:focus-within .photos-flyout,
.photos-flyout:hover {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
/* Linger ~250ms after the cursor leaves so it doesn't vanish mid-move */
.photos-flyout {
  transition-delay: 250ms;
}
.nav-menu a.has-photos:hover .photos-flyout,
.photos-flyout:hover {
  transition-delay: 0ms;
}
/* On mobile/touch, the flyout would be awkward — hide it; users tap the row itself */
@media (max-width: 720px) {
  .photos-flyout { display: none; }
}

/* --- Lightbox (shared modal for photo galleries) --- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.78);
  backdrop-filter: blur(4px);
}
.lightbox-content {
  position: relative;
  background: #fff8ef;
  border-radius: 14px;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  width: 100%;
  padding: 28px 28px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: auto;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 32px;
  line-height: 1;
  color: #5a3e2a;
  cursor: pointer;
  padding: 4px 10px;
}
.lightbox-close:hover { color: #000; }
.lightbox-title {
  margin: 0 0 18px;
  font-family: 'Playfair Display', Georgia, serif;
  color: #5a3e2a;
  font-size: 28px;
  font-weight: 600;
}
.lightbox-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.lightbox-body img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: #f3ead9;
}
.lightbox-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #8a6a4e;
  font-style: italic;
  font-size: 16px;
}

/* --- Inline gallery on subpages (e.g. Hand Painted Banners) --- */
.subpage-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 12px auto 28px;
  list-style: none;
  padding: 0;
  max-width: 1100px;
  width: 100%;
  justify-items: center;
}
.subpage-gallery li { width: 100%; }
.subpage-gallery button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--cream-warm, #fbeedd);
  border: 4px solid var(--ink);
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 6px 18px rgba(90, 62, 42, 0.18);
}

/* "Tap/click to expand" pill on each thumbnail */
.subpage-gallery button::after {
  content: 'CLICK TO EXPAND';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(90, 62, 42, 0.88);
  color: #fff;
  font-family: 'Cabin', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
@media (pointer: coarse) {
  .subpage-gallery button::after {
    content: 'TAP TO EXPAND';
  }
}

/* Gallery hint sentence above the tile grid */
.subpage-gallery-hint {
  text-align: center;
  font-family: 'Cabin', system-ui, sans-serif;
  font-size: 14px;
  font-style: italic;
  color: var(--ink);
  opacity: 0.78;
  margin: 18px auto 4px;
  max-width: 700px;
}
.subpage-gallery button:hover,
.subpage-gallery button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(90, 62, 42, 0.28);
  outline: none;
}
.subpage-gallery .gallery-tile {
  display: block;
  width: 100%;
  background: var(--cream-warm, #fbeedd);
  border: 4px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(90, 62, 42, 0.18);
}
.subpage-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream-warm, #fbeedd);
}
@media (max-width: 720px) {
  .subpage-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ============================================================
   MOBILE POLISH (≤640px) — consolidated normalization pass
   Tap targets ≥44px, readable type, comfortable padding,
   crisp carousel swipe. Desktop is unaffected.
   ============================================================ */
@media (max-width: 640px) {
  /* Comfortable subpage rhythm */
  .subpage { padding: 32px 16px 24px; }
  .subpage-title { font-size: clamp(30px, 8vw, 40px); margin-bottom: 6px; }
  .subpage-eyebrow { font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; }
  .subpage-lede { font-size: 16px; margin-bottom: 20px; padding: 0 4px; }
  .subpage-card { padding: 24px 20px; border-radius: 18px; margin: 18px auto 0; }
  .subpage-card h2 { font-size: 20px; }
  .subpage-card p, .subpage-card ul { font-size: 16px; line-height: 1.55; }
  .subpage-card ul { margin-left: 20px; }
  .catalog-card { padding: 22px 18px; }

  /* Back link as a real tappable pill, not a thin line */
  .subpage-back {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 10px 14px;
    margin-left: -10px; /* visually align with left edge */
    font-size: 15px;
  }

  /* Hero text: never overflow on narrow screens */
  .controls-title { font-size: clamp(34px, 9vw, 48px); }
  .controls-sub { font-size: 17px; padding: 0 8px; }
  .controls { padding: 28px 18px 28px; border-radius: 22px; }

  /* Carousel: bigger tap zones and clean horizontal swipe */
  #carousel { touch-action: pan-y; }
  .carousel-btn { width: 48px; height: 48px; }
  .carousel-dots { gap: 14px; padding: 8px 0; }
  .carousel-dot {
    /* keep the visible dot small, but extend the hit-area to 44px */
    position: relative;
  }
  .carousel-dot::before {
    content: ""; position: absolute;
    inset: -14px; /* expands tappable area without changing visual size */
  }

  /* Nav links — comfortable touch hit zones */
  .nav-link { min-height: 44px; }

  /* Swatch tiles — keep grid dense, but ensure each button is ≥44px tall */
  .swatch { min-height: 44px; padding: 10px 8px 12px; }
  .swatch-dot { width: 40px; height: 40px; }
  .swatch-name { font-size: 11px; }

  /* Primary action buttons */
  .btn { min-height: 44px; padding: 12px 22px; font-size: 15px; }

  /* Gallery hint pill — slightly tighter and centered */
  .subpage-gallery-hint { font-size: 13px; padding: 0 4px; }

  /* Footer phone/address remain large; address can shrink one notch */
  .footer-address { font-size: 22px; }

  /* Prevent iOS Safari auto-zoom: any focusable input/select must be ≥16px */
  input, select, textarea { font-size: 16px; }
}
