/* ---------------------------------------------------
   Flo's site — playful confetti theme
   Colors sampled from the birth card
--------------------------------------------------- */
:root {
  --cream: #f8ecdf;
  --cream-soft: #fbf3e9;
  --ink: #4a3226;
  --purple: #dba3ca;
  --purple-dark: #c75ca6;
  --purple-deep: #89296c;
  --red: #e2432b;
  --orange: #f2a93b;
  --olive: #a7b62c;
  --blue: #4cb3e0;
  --shadow: rgba(74, 50, 38, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "League Spartan", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
  color: var(--purple-deep);
  margin: 0 0 0.4em;
}

a { color: var(--purple-dark); }

img { max-width: 100%; }

[hidden] { display: none !important; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- confetti background ----------
   Dots + rotated stripes tile, matching the birth card. This loads
   assets/confetti.svg directly, so editing that file updates the site
   immediately on refresh — no re-encoding needed. */
.confetti-bg {
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
  background-image: url("../assets/confetti.svg");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* ---------- logo ---------- */
.logo-slot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-slot img { height: 44px; width: auto; display: block; }
.logo-fallback {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--purple-deep);
}
.logo-fallback .logo-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--olive);
  display: inline-block;
}

/* =====================================================
   PASSWORD GATE
===================================================== */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px var(--shadow);
  position: relative;
  z-index: 1;
}

.gate-card .logo-slot { justify-content: center; margin-bottom: 18px; }

.gate-card h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.gate-card p {
  color: #7a6455;
  margin-top: 0;
}

#gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

#gate-password {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid #eddfce;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream-soft);
  color: var(--ink);
  text-align: center;
}
#gate-password:focus {
  outline: none;
  border-color: var(--purple);
}

.btn, #gate-form button {
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  background: var(--purple-deep);
  color: #fff;
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-block;
}
.btn:hover, #gate-form button:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.gate-error {
  color: var(--red);
  font-weight: 700;
  margin-top: 4px;
}

.shake { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* =====================================================
   SITE
===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 236, 223, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--purple);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-nav {
  display: flex;
  gap: 24px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-family: "League Spartan", sans-serif;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--purple-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--purple-deep);
  cursor: pointer;
}

.hero {
  padding: 70px 0 90px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin-bottom: 10px;
}
.hero-logo {
  display: block;
  width: min(320px, 70%);
  height: auto;
  margin: 0 auto 16px;
}
.hero .intro {
  max-width: 560px;
  margin: 0 auto 30px;
  color: #6b5548;
  font-size: 1.1rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.stat-badge {
  background: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  color: var(--purple-deep);
  box-shadow: 0 8px 20px var(--shadow);
}

section.page-section {
  padding: 60px 0;
}
section.page-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 4px dashed var(--purple);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline-item {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 10px 26px var(--shadow);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 26px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--olive);
  border: 4px solid var(--cream);
}
.timeline-item .tag {
  display: inline-block;
  background: var(--cream-soft);
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.timeline-item .date {
  float: right;
  color: #a08a7a;
  font-size: 0.85rem;
  font-weight: 700;
}
.timeline-item h3 {
  margin: 4px 0 8px;
  font-size: 1.2rem;
}
.timeline-item .post-image {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 4px 0 14px;
}
.timeline-item p { margin: 0; color: #574539; }

/* ---------- family ---------- */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.family-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 10px 26px var(--shadow);
}
.family-card .role {
  display: inline-block;
  background: var(--purple);
  color: var(--purple-deep);
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.family-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.family-card p { color: #6b5548; margin: 0; font-size: 0.95rem; }

.family-group-title {
  text-align: center;
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin: 36px 0 16px;
}
.family-group-title:first-of-type { margin-top: 0; }

/* ---------- gift ---------- */
.gift-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: 0 10px 26px var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.gift-card p { color: #6b5548; }
.iban-box {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  background: var(--cream-soft);
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
}
.iban-box span {
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.iban-box button {
  border: none;
  background: var(--olive);
  color: #fff;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.iban-box button:hover { background: #8f9c24; }
.gift-note {
  font-size: 0.8rem;
  color: #a08a7a;
  margin-top: 18px;
}

/* ---------- visit ---------- */
.visit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: 0 10px 26px var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.visit-card .address {
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--purple-deep);
  margin-bottom: 10px;
}
.visit-card p { color: #6b5548; }
.visit-card a { font-weight: 700; }

/* ---------- footer ---------- */
.site-footer {
  padding: 50px 0;
  text-align: center;
  color: var(--purple-deep);
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    border-bottom: 3px solid var(--purple);
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .timeline-item .date { float: none; display: block; margin-bottom: 6px; }
}
