/* ==========================================================================
   Balloons in Bloom Event Decor: Design Tokens
   Concept: the abstracted "garland": overlapping soft circles in irregular
   sizes, the same rhythm as a real balloon garland, used as the site's one
   recurring signature motif (hero backdrop, section dividers, service
   icons, footer). Botanical/atelier framing, not a kids'-party look.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Palette */
  --ink: #2B2E28;          /* deep bark-ink for text and grounding */
  --ink-soft: #4B4F45;
  --sage: #94A98C;         /* muted sage, primary brand color */
  --sage-deep: #6E8465;
  --mauve: #D2A79C;        /* dusty clay rose, secondary pastel */
  --mauve-deep: #B98577;
  --gold: #C6A05C;         /* champagne brass, CTAs & accents */
  --gold-deep: #A9803E;
  --mist: #C3D0CE;         /* soft blue-grey, tertiary pastel */
  --parchment: #F7F2E9;    /* page background */
  --cream: #FFFDF9;        /* card background */
  --line: rgba(43, 46, 40, 0.12);

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

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

  --shadow-soft: 0 12px 32px -16px rgba(43, 46, 40, 0.25);
  --shadow-card: 0 8px 24px -12px rgba(43, 46, 40, 0.18);
}

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-variation-settings: 'opsz' 100; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-variation-settings: 'opsz' 40; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 84px 0;
}
.section--tight { padding: 56px 0; }
.section--ink {
  background: var(--ink);
  color: var(--parchment);
}
.section--ink p { color: #D8D9CF; }
.section--ink h2 { color: var(--parchment); }
.section--card {
  background: var(--cream);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--gold-deep); color: var(--cream); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--parchment); }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(247, 242, 233, 0.5);
  color: var(--parchment);
}
.btn-ghost-light:hover { background: var(--parchment); color: var(--ink); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 233, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1120px;
  margin: 0 auto;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--mauve-deep); }
.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--cream), 0 2px 6px rgba(43, 46, 40, 0.2);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold-deep);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--parchment);
    flex-direction: column;
    padding: 32px 28px;
    gap: 22px;
    font-size: 1.1rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Garland motif ---------- */
.garland {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 14px);
  padding: 40px 0;
  overflow: hidden;
}
.garland span {
  border-radius: 50%;
  flex-shrink: 0;
}
.garland--divider span { opacity: 0.85; }

.garland-field {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
}
.garland-field .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.3px);
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.icon-cluster {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.icon-cluster span {
  position: absolute;
  border-radius: 50%;
}

/* Clipping frame for icon-cluster when it needs to appear larger than its
   64px native size (e.g. on the services page). Reserves real layout space
   and clips the scaled icon so it can never paint over neighboring content. */
.icon-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.icon-frame .icon-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%) scale(2.6);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 20px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.3em; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}
.hero-visual {
  position: relative;
  min-height: 380px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; order: -1; }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }
.card .icon-cluster { margin-bottom: 22px; }

.card-link {
  text-decoration: none;
  display: block;
  transition: transform 0.25s ease;
}
.card-link:hover { transform: translateY(-4px); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--line);
  position: relative;
}
.testimonial::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--gold);
  position: absolute;
  top: 4px;
  left: 20px;
  line-height: 1;
}
.testimonial p { padding-top: 26px; font-style: italic; color: var(--ink-soft); }
.testimonial cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sage-deep);
}

/* ---------- Gallery ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}
.filter-chip.active {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}

.masonry {
  columns: 3 260px;
  column-gap: 20px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--frame, var(--sage));
  cursor: pointer;
  background: var(--cream);
}
.masonry-item img { width: 100%; }
.masonry-caption {
  padding: 10px 14px 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43, 46, 40, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 86vh;
  max-width: 90vw;
  border-radius: var(--radius-sm);
}
.lightbox-caption {
  position: absolute;
  bottom: 26px;
  color: var(--parchment);
  font-size: 0.95rem;
  text-align: center;
  width: 100%;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Forms ---------- */
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.status-banner {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 20px;
  display: none;
}
.status-banner.show { display: block; }
.status-banner.success { background: rgba(148, 169, 140, 0.2); color: var(--sage-deep); }
.status-banner.error { background: rgba(210, 167, 156, 0.3); color: var(--mauve-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--mist);
  margin-bottom: 1em;
}
.footer-grid p, .footer-grid a {
  color: #D8D9CF;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(247, 242, 233, 0.14);
  padding-top: 24px;
  font-size: 0.82rem;
  color: #A9AC9F;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #A9AC9F; text-decoration: underline; }
.footer-bottom a:hover { color: var(--parchment); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 62ch; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-shell {
  max-width: 640px;
  margin: 0 auto;
}
.photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  margin-bottom: 12px;
}
.photo-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.photo-row .meta { flex: 1; min-width: 0; }
.photo-row .meta .cap { font-weight: 600; font-size: 0.92rem; }
.photo-row .meta .cat { font-size: 0.8rem; color: var(--sage-deep); text-transform: uppercase; letter-spacing: 0.08em; }
.row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.photo-row button {
  border: 1px solid var(--mauve-deep);
  color: var(--mauve-deep);
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.photo-row button:hover { background: var(--mauve-deep); color: var(--cream); }
.photo-row .edit-btn, .photo-row .save-btn {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}
.photo-row .edit-btn:hover, .photo-row .save-btn:hover {
  background: var(--sage-deep);
  color: var(--cream);
}
.photo-row .cancel-btn {
  border-color: var(--line);
  color: var(--ink-soft);
}
.photo-row .cancel-btn:hover { background: var(--line); color: var(--ink); }
.photo-row .edit-caption,
.photo-row .edit-category {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
}

.dropzone {
  border: 2px dashed var(--sage-deep);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  background: var(--cream);
  margin-bottom: 20px;
}
.dropzone.dragover { background: rgba(148, 169, 140, 0.15); }
