/* ============================================================
   B'dayBuzz — public.css
   Styles for all public/marketing pages
   ============================================================ */

/* ── BASE ─────────────────────────────────────────────────── */
.pub-body { background: var(--white); }

.pub-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.pub-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}

.pub-nav--scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.pub-nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

.pub-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.pub-nav__brand-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.pub-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.pub-nav__link {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.pub-nav__link:hover { color: var(--accent); background: var(--gray-100); }
.pub-nav__link.active { color: var(--accent); font-weight: 600; }

.pub-nav__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Hamburger */
.pub-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.pub-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
  transform-origin: center;
}

.pub-nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.pub-nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.pub-nav__drawer {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.pub-nav__drawer.open { max-height: 500px; }

.pub-nav__drawer-link {
  display: block;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.pub-nav__drawer-link:hover { background: var(--gray-50); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5625rem 1.125rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.pub-btn--primary {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}
.pub-btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(251,191,36,.4);
}

.pub-btn--ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.pub-btn--ghost:hover { background: var(--gray-50); color: var(--accent); }

.pub-btn--dark {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.pub-btn--dark:hover { background: var(--accent-soft); box-shadow: 0 4px 14px rgba(0,0,0,.2); }

.pub-btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.pub-btn--xl {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

/* ── SECTION HELPERS ──────────────────────────────────────── */
.pub-section { padding: 6rem 0; }
.pub-section--sm { padding: 4rem 0; }
.pub-section--dark {
  background: var(--accent);
  color: var(--white);
}
.pub-section--amber { background: var(--primary-pale); }
.pub-section--gray  { background: var(--gray-50); }

.pub-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  background: var(--primary-pale);
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.pub-section--dark .pub-section__eyebrow {
  background: rgba(251,191,36,.15);
  color: var(--primary);
}

.pub-section__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--accent);
  margin-bottom: 1rem;
}

.pub-section--dark .pub-section__heading { color: var(--white); }

.pub-section__sub {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

.pub-section--dark .pub-section__sub { color: rgba(255,255,255,.55); }

.pub-text-center { text-align: center; }
.pub-text-center .pub-section__sub { margin-left: auto; margin-right: auto; }

/* ── CARDS ────────────────────────────────────────────────── */
.pub-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pub-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--primary-pale);
}

.pub-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.pub-card__text {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── GRIDS ────────────────────────────────────────────────── */
.pub-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pub-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pub-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* ── DIVIDER ──────────────────────────────────────────────── */
.pub-divider {
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin: 1rem 0 1.5rem;
}

.pub-text-center .pub-divider { margin-left: auto; margin-right: auto; }

/* ── BADGE ────────────────────────────────────────────────── */
.pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
}

/* ── HERO ─────────────────────────────────────────────────── */
.pub-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 68px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}

.pub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(251,191,36,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 90%, rgba(251,191,36,.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating emoji blobs */
.pub-hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pub-hero__blob {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  animation: blobFloat 6s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(8deg); }
}

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.pub-page-hero {
  background: var(--accent);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.pub-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(251,191,36,.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.pub-faq__item {
  border-bottom: 1px solid var(--gray-200);
}

.pub-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  gap: 1rem;
  user-select: none;
  list-style: none;
}

.pub-faq__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform 250ms ease;
}

.pub-faq__item.open .pub-faq__question::after {
  transform: rotate(45deg);
  color: var(--primary-dark);
}

.pub-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.75;
}

.pub-faq__item.open .pub-faq__answer { max-height: 400px; padding-bottom: 1.25rem; }

/* ── STEP NUMBERS ─────────────────────────────────────────── */
.pub-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.pub-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── STAT BLOCK ───────────────────────────────────────────── */
.pub-stat {
  text-align: center;
}

.pub-stat__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pub-stat__label {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
}

/* ── TESTIMONIAL ──────────────────────────────────────────── */
.pub-testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}

.pub-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--primary);
  line-height: 1;
  opacity: .4;
}

.pub-testimonial__text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
}

.pub-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pub-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── CONTACT FORM ─────────────────────────────────────────── */
.pub-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pub-input::placeholder { color: var(--gray-400); }
.pub-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(251,191,36,.18);
}

.pub-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

/* ── LEGAL PAGES ──────────────────────────────────────────── */
.pub-legal { max-width: 760px; margin: 0 auto; }

.pub-legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.pub-legal h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.pub-legal p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.pub-legal ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.pub-legal ul li {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 0.375rem;
}

.pub-legal a { color: var(--primary-dark); font-weight: 500; }

/* ── FOOTER ───────────────────────────────────────────────── */
.pub-footer {
  background: var(--accent);
  padding: 5rem 0 0;
}

.pub-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.pub-footer__brand { }

.pub-footer__heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}

.pub-footer__link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  margin-bottom: 0.625rem;
  transition: color var(--transition);
}

.pub-footer__link:hover { color: var(--primary); }

.pub-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.3);
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pub-animate {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.pub-animate--d1 { animation-delay: 0.1s; }
.pub-animate--d2 { animation-delay: 0.2s; }
.pub-animate--d3 { animation-delay: 0.3s; }
.pub-animate--d4 { animation-delay: 0.4s; }
.pub-animate--d5 { animation-delay: 0.5s; }
.pub-animate--d6 { animation-delay: 0.6s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pub-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pub-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .pub-nav__links { display: none; }
  .pub-nav__cta   { display: none; }
  .pub-nav__hamburger { display: flex; }
  .pub-nav__drawer    { display: flex; }

  .pub-section  { padding: 4rem 0; }
  .pub-grid-3   { grid-template-columns: 1fr; }
  .pub-grid-2   { grid-template-columns: 1fr; gap: 2rem; }
  .pub-hero     { padding-top: 100px; text-align: center; }
  .pub-page-hero { padding: 7rem 0 3.5rem; }

  .pub-footer__grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pub-footer__brand { grid-column: 1 / -1; }
  .pub-footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .pub-grid-4   { grid-template-columns: 1fr; }
  .pub-footer__grid  { grid-template-columns: 1fr; }
  .pub-btn--xl  { padding: 0.875rem 1.5rem; }
}