/* ============================================================================
   Balloon Gram — blog styles.
   Design tokens, nav, buttons and footer are lifted from the main site so the
   blog reads as the same product, not a bolt-on. Blog-specific rules follow.
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Pairs with the width/height attributes on every <img>. Those attributes are
   presentational hints, so without this an image whose CSS sets only a width
   inherits the raw pixel height and stretches. */
img { height: auto; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: #fff; color: #2d2d2d; overflow-x: hidden; }

:root {
  --pink:   #FF6BA8;
  --teal:   #3EC9C0;
  --yellow: #FFD95A;
  --orange: #FF8C42;
  --purple: #A78BFA;
  --dark:   #1e2a3a;
  --soft:   #FFF8F2;
  --shadow: 0 8px 32px rgba(0,0,0,.10);
  --radius: 20px;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .95rem;
  cursor: pointer; text-decoration: none; border: none;
  transition: transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-outline { background: transparent; color: var(--pink); border: 2.5px solid var(--pink); }
.btn-white   { background: #fff; color: var(--pink); }

/* ===== NAV (identical to main site) =====
   Scoped to #mainNav — a bare `nav {}` selector previously matched
   `<nav class="toc">` too, so the table of contents inherited position:fixed,
   display:flex and height:64px, which broke the article layout. */
nav#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.93); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  height: 64px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;   /* keeps the logo, links and button from colliding */
}
.nav-logo {
  font-family: 'Pacifico', cursive; font-size: 1.5rem; color: var(--pink);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--teal); }
.nav-logo-img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
/* nowrap keeps "Corporate Parties" on one line inside the fixed 64px bar. */
.nav-logo { flex-shrink: 0; }
.nav-links { display: none; gap: 22px; list-style: none; flex-wrap: nowrap; }
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: .9rem;
  color: var(--dark); transition: color .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--pink); }
.nav-cta { display: none; white-space: nowrap; flex-shrink: 0; }
.hamburger { font-size: 1.3rem; cursor: pointer; color: var(--dark); background: none; border: none; padding: 4px; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 16px 20px; z-index: 999; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; font-weight: 700; font-size: 1rem; color: var(--dark);
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.mobile-menu .mm-btn { margin-top: 8px; border-bottom: none; text-align: center; }

/* ===== BLOG HERO ===== */
.blog-hero {
  padding: 104px 0 44px;
  background: linear-gradient(135deg, #FFF0F8 0%, #EDF9FF 50%, #FFFBEE 100%);
}
.blog-hero .container { max-width: 860px; }
/* Teal rather than the site's yellow: still a brand token, but it reads calmer
   and more credible on an editorial page. Text stays dark navy — white on this
   teal is only 2.03:1 and fails WCAG outright, while navy is 7.13:1 (AAA). */
.cat-tag {
  display: inline-block; background: var(--teal); color: var(--dark);
  font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
}
/* On the cards the solid fill competes with the headline, so it steps back to a
   tinted chip — same hue, less shouting, still clearly a category. */
.post-card .cat-tag {
  background: rgba(62,201,192,.16); color: #136B64;   /* 5.65:1 on the tint — AA */
  align-self: flex-start; margin-bottom: 2px;
}
.blog-hero h1 {
  font-family: 'Pacifico', cursive; font-weight: 400;
  font-size: clamp(1.8rem, 5.5vw, 3rem); line-height: 1.2; color: var(--dark);
  margin-bottom: 16px;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-size: .88rem; color: #667; font-weight: 700; margin-bottom: 18px;
}
.post-meta .dot { color: #ccc; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badge {
  background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 50px;
  padding: 7px 15px; font-size: .82rem; font-weight: 800; color: var(--dark);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

/* ===== ARTICLE BODY ===== */
.post-body { padding: 44px 0 20px; }
.post-body .container { max-width: 780px; }
.post-body p { font-size: 1.02rem; line-height: 1.85; color: #4a4a55; margin: 0 0 18px; }
.post-body h2 {
  font-size: clamp(1.35rem, 3.6vw, 1.85rem); font-weight: 900; color: var(--dark);
  line-height: 1.25; margin: 44px 0 14px; scroll-margin-top: 84px;
}
.post-body h3 { font-size: 1.08rem; font-weight: 800; color: var(--dark); margin: 26px 0 10px; }
.post-body ul { margin: 0 0 20px 0; padding-left: 22px; }
.post-body li { font-size: 1rem; line-height: 1.8; color: #4a4a55; margin-bottom: 7px; }
.post-body a { color: var(--pink); font-weight: 700; }
.post-body strong { color: var(--dark); }

.lede { font-size: 1.1rem !important; color: #3c3c48 !important; }

.callout {
  background: rgba(62,201,192,.10); border-left: 4px solid var(--teal);
  border-radius: 12px; padding: 16px 20px; margin: 24px 0;
}
.callout p { margin: 0; font-size: .97rem; }
.callout.warm { background: rgba(255,217,90,.18); border-left-color: var(--yellow); }
.callout.pinkish { background: rgba(255,107,168,.10); border-left-color: var(--pink); }

.price-lead {
  background: var(--soft); border: 2px solid #f0e6dc; border-radius: 14px;
  padding: 16px 20px; margin: 20px 0;
}
.price-lead p { margin: 0; }

/* ===== ARTICLE IMAGES ===== */
figure { margin: 26px 0 30px; }
figure img {
  width: 100%; border-radius: 16px; display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  /* Long portrait shots would otherwise run to 1400px tall and push the reader
     off the page, so every article image is capped and cropped to a band. */
  max-height: 430px; object-fit: cover; object-position: center;
}
figcaption { font-size: .84rem; color: #8a8a99; margin-top: 9px; text-align: center; line-height: 1.5; }

/* Three boxes side by side */
.box-trio { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 24px 0 8px; }
@media (min-width: 640px) { .box-trio { grid-template-columns: repeat(3, 1fr); } }
.box-trio figure { margin: 0; }
.box-trio img { max-height: 210px; }
.box-trio figcaption { font-weight: 800; color: var(--dark); font-size: .86rem; }

/* Compact fact table — replaces several paragraphs of prose */
.fact-table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: .95rem; }
.fact-table th, .fact-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #f0f0f4; vertical-align: top; }
.fact-table th { font-weight: 900; color: var(--dark); background: var(--soft); white-space: nowrap; }
.fact-table td { color: #4a4a55; line-height: 1.65; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* inline CTA line */
.inline-cta { margin: 22px 0 30px; }
.inline-cta a {
  display: inline-block; font-weight: 800; color: var(--pink);
  border-bottom: 2px solid rgba(255,107,168,.35); text-decoration: none;
  padding-bottom: 2px; transition: border-color .2s;
}
.inline-cta a:hover { border-bottom-color: var(--pink); }

/* ===== TABLE OF CONTENTS =====
   Single column on mobile, two columns on wide viewports — but with matched
   row heights per column and no fake per-item borders (those were producing
   the ragged look, since column heights differed). Numbers sit in a fixed-
   width teal chip so they line up regardless of link length. */
.toc {
  background: #fff; border: 2px solid #f1f1f4; border-radius: 16px;
  padding: 22px 24px 24px; margin: 30px 0 10px; box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.toc h2 {
  font-size: .78rem !important; letter-spacing: .12em; text-transform: uppercase;
  color: #8a8a99 !important; margin: 0 0 14px !important; font-weight: 800 !important;
  line-height: 1.4 !important;
}
.toc-list {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
  display: grid; grid-template-columns: 1fr; gap: 4px;
}
@media (min-width: 620px) { .toc-list { grid-template-columns: 1fr 1fr; gap: 4px 20px; } }
.toc-list li { margin: 0 !important; }
.toc-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-size: .95rem; font-weight: 700; line-height: 1.4;
  color: var(--dark); text-decoration: none;
  transition: background .15s, color .15s;
}
.toc-list a:hover { background: rgba(62,201,192,.10); color: #136B64; }
.toc-list .n {
  flex: 0 0 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(62,201,192,.14); color: #136B64;
  font-size: .78rem; font-weight: 900; letter-spacing: .02em;
}

/* ===== PULL QUOTES ===== */
.review-quote {
  background: var(--soft); border-radius: 16px; padding: 24px 26px;
  margin: 26px 0; border: 1px solid #f0e6dc;
}
.review-quote .stars { color: #FFC107; font-size: 1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-quote p { font-style: italic; color: #3c3c48; margin-bottom: 12px; }
.review-quote cite { font-style: normal; font-weight: 800; font-size: .9rem; color: #667; }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid #f0f0f4; padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.02rem; }
.faq-item p { margin: 0; font-size: .97rem; }

/* ===== CTA BANNER ===== */
.blog-cta {
  padding: 66px 0; text-align: center; margin-top: 46px;
  background: linear-gradient(135deg, var(--pink) 0%, #ff8fc6 50%, var(--orange) 100%);
}
.blog-cta h2 { font-family: 'Pacifico', cursive; font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.5rem); color: #fff; margin-bottom: 12px; }
.blog-cta p { color: rgba(255,255,255,.92); margin-bottom: 26px; font-size: 1rem; }

/* ===== POST CARDS (index + related) ===== */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  background: #fff; border: 2px solid #f1f1f4; border-radius: 18px;
  padding: 0 0 22px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.post-card > :not(.card-img) { margin-left: 22px; margin-right: 22px; }
.card-img {
  width: 100%; height: 168px; object-fit: cover; display: block;
  background: var(--soft); margin-bottom: 4px;
}
.post-card.soon .card-img { filter: grayscale(.55); opacity: .65; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.10); border-color: #e6e6ec; }
.post-card.soon { opacity: .72; cursor: default; }
.post-card.soon:hover { transform: none; box-shadow: none; border-color: #f1f1f4; }
.post-card h3 { font-size: 1.08rem; font-weight: 900; color: var(--dark); line-height: 1.35; margin: 0; }
.post-card .date { font-size: .82rem; color: #8a8a99; font-weight: 700; }
.post-card .excerpt { font-size: .93rem; color: #666; line-height: 1.65; margin: 0; }
.post-card .more { font-weight: 800; color: var(--pink); font-size: .9rem; margin-top: auto; padding-top: 6px; }

.related { padding: 54px 0; background: var(--soft); }
.related h2 { text-align: center; font-size: 1.5rem; color: var(--dark); margin-bottom: 28px; }

/* ===== FOOTER (identical to main site) ===== */
footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 52px 0 28px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; position: relative; z-index: 2; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .logo { font-family: 'Pacifico', cursive; font-size: 1.6rem; color: #fff; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--teal); }
.footer-brand p { font-size: .9rem; line-height: 1.75; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center; color: #fff;
  text-decoration: none; transition: background .2s;
}
.social-btn:hover { background: var(--pink); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  display: flex; flex-direction: column; gap: 8px; text-align: center;
  font-size: .82rem; position: relative; z-index: 2;
}
@media (min-width: 900px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ===== FOOTER GHOSTS =====
   Decorative only: pointer-events none, low opacity, and they live inside the
   footer rather than over the article, so they never sit on top of content. */
.footer-ghosts { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.footer-ghosts img {
  position: absolute; width: 78px; opacity: .16;
  filter: drop-shadow(0 0 14px rgba(160,160,255,.35));
  animation: footerGhostBob 7s ease-in-out infinite;
}
.footer-ghosts img:nth-child(1) { left: 4%;  top: 18%; animation-delay: 0s;   }
.footer-ghosts img:nth-child(2) { left: 32%; top: 58%; animation-delay: 1.4s; width: 62px; }
.footer-ghosts img:nth-child(3) { right: 26%; top: 12%; animation-delay: 2.8s; width: 66px; }
.footer-ghosts img:nth-child(4) { right: 5%;  top: 52%; animation-delay: 4.2s; }
@keyframes footerGhostBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-16px) rotate(3deg); }
}
@media (max-width: 700px) {
  .footer-ghosts img { width: 52px; }
  .footer-ghosts img:nth-child(2), .footer-ghosts img:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-ghosts img { animation: none; }
}

/* Desktop nav requires enough room for the logo + 6 nav links + CTA. On
   narrower viewports the whole row overflows and gets clipped — I tried 900px
   earlier and it was too tight for "Corporate Parties" to fit alongside the
   others, so we're back to 960px with a hair of margin. */
@media (min-width: 960px) {
  nav#mainNav { padding: 0 32px; gap: 24px; }
  .nav-links { display: flex; gap: 20px; }
  .nav-cta   { display: inline-block; }
  .hamburger { display: none; }
}
