/* =====================================================
   Juli · Premier anniversaire  —  style.css  v2
   Palette: blush, dusty rose, sage, lavender, ivory
   Fonts: Pinyon Script (display) + Cormorant Garamond
   ===================================================== */

/* ── GOOGLE FONTS ── imported in HTML <head> ──────── */

/* ── DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Colour */
  --c-pink:        #f2afc2;
  --c-pink-deep:   #d9739a;
  --c-rose:        #c85e80;
  --c-blush:       #fce9ef;
  --c-blush-mid:   #f8d8e4;
  --c-rose-text:   #7d3f57;
  --c-sage:        #9dbf97;
  --c-sage-light:  #cce0c8;
  --c-sage-dark:   #6e9e6a;
  --c-lavender:    #ddd0ee;
  --c-blue:        #c4d6ee;
  --c-ivory:       #fdf6f0;
  --c-warm-white:  #fffbf7;
  --c-text:        #5c3d4e;
  --c-text-soft:   #9a7585;
  --c-shadow:      rgba(160, 80, 110, 0.13);
  --c-shadow-md:   rgba(160, 80, 110, 0.22);

  /* Typography */
  --f-script: 'Pinyon Script', cursive;
  --f-body:   'Cormorant Garamond', Georgia, serif;

  /* Layout */
  --max-w:        700px;
  --r-card:       32px;
  --r-pill:       999px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t:            0.38s var(--ease);
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body  {
  font-family: var(--f-body);
  color: var(--c-text);
  background-color: var(--c-warm-white);
  /* Soft layered watercolour wash */
  background-image:
    radial-gradient(ellipse 70% 50% at 10%  5%,  rgba(242,175,194,.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90%  15%, rgba(196,214,238,.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(157,191,151,.13) 0%, transparent 60%),
    radial-gradient(ellipse 80% 30% at 80%  60%, rgba(221,208,238,.14) 0%, transparent 70%);
  min-height: 100vh;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--f-body); border: none; background: none; }

/* ── LANGUAGE BAR ───────────────────────────────────── */
.lang-bar {
  position: fixed;
  top: 14px; right: 16px;
  z-index: 950;
  display: flex; gap: 4px;
  background: rgba(253,246,240,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(242,175,194,.45);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  box-shadow: 0 4px 20px var(--c-shadow);
}
.lang-btn {
  display: flex; align-items: center; gap: 3px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 500;
  color: var(--c-text-soft);
  transition: var(--t);
  letter-spacing: .04em;
  line-height: 1;
}
.lang-btn .flag  { font-size: 1.05em; }
.lang-btn .lbl   { font-family: var(--f-body); font-size: .7rem; letter-spacing: .05em; }
.lang-btn:hover  { background: var(--c-blush); color: var(--c-rose-text); }
.lang-btn.active { background: var(--c-pink); color: var(--c-rose-text); font-weight: 600; }

/* ── FLOATING PETALS ────────────────────────────────── */
.petals-layer {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.petal {
  position: absolute; top: -24px;
  border-radius: 60% 5% 60% 5%;
  opacity: 0;
  animation: petalDrift linear infinite;
  will-change: transform, opacity;
}
@keyframes petalDrift {
  0%   { transform: translateY(0) rotate(0deg)   translateX(0px);  opacity: 0; }
  8%   { opacity: .65; }
  88%  { opacity: .45; }
  100% { transform: translateY(105vh) rotate(580deg) translateX(70px); opacity: 0; }
}

/* ── CORNER FLORAL LAYERS ───────────────────────────── */
/* Absolutely-positioned SVG panels that sit behind content */
.floral-corner {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.floral-corner--tl { top: 0; left: 0; }
.floral-corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.floral-corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.floral-corner--br { bottom: 0; right: 0; transform: scale(-1); }

/* ── HERO BACKGROUND ARTWORK ─────────────────────────── */
/* Decorative watercolour wallpaper sitting behind the hero content.
   width:100% + height:auto preserves the artwork's full aspect ratio
   so it is never cropped; it simply scales with the viewport. */
.hero-bg-floral {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── PAGE WRAPPER ───────────────────────────────────── */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 80px;
  /* room for fixed lang bar */
  padding-top: 60px;
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 0;
  z-index: 1;
}

/* Photo frame */
.photo-frame-wrap {
  position: relative;
  width: 220px; height: 220px;
  margin-bottom: 28px;
  /* SVG petals injected around it via pseudo + siblings */
}
@media (min-width: 480px) { .photo-frame-wrap { width: 260px; height: 260px; } }
@media (min-width: 768px) { .photo-frame-wrap { width: 300px; height: 300px; } }

.photo-ring {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c-blush) 0%, var(--c-lavender) 55%, var(--c-sage-light) 100%);
  box-shadow:
    0 0 0 5px #fff,
    0 0 0 10px var(--c-pink),
    0 0 0 15px rgba(255,255,255,.7),
    0 14px 48px var(--c-shadow-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
  animation: ringBreath 5s ease-in-out infinite;
}
@keyframes ringBreath {
  0%,100% { box-shadow: 0 0 0 5px #fff, 0 0 0 10px var(--c-pink), 0 0 0 15px rgba(255,255,255,.7), 0 14px 48px var(--c-shadow-md); }
  50%      { box-shadow: 0 0 0 5px #fff, 0 0 0 11px #f5c5d5,      0 0 0 17px rgba(255,255,255,.6), 0 18px 58px rgba(160,80,110,.28); }
}
.photo-ring img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%; /* keeps face in frame for landscape photos */
  border-radius: 50%;
  display: block;
}
.photo-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; width: 100%; height: 100%;
  color: var(--c-text-soft); font-size: .78rem; text-align: center; padding: 20px;
}
.photo-placeholder .pp-name {
  font-family: var(--f-script);
  font-size: 2.2rem; color: var(--c-rose-text);
  margin-top: 2px; line-height: 1;
}

/* SVG flower wreath around photo — placed as absolute children of .photo-frame-wrap */
.frame-wreath {
  position: absolute;
  inset: -18px;
  pointer-events: none;
  z-index: 2;
  /* the SVG wreath fills this div */
}

/* Hero typography */
.hero-name {
  font-family: var(--f-script);
  font-size: clamp(5rem, 16vw, 8rem);
  line-height: .9;
  color: var(--c-rose-text);
  text-shadow: 0 4px 18px rgba(216,100,140,.22);
  margin-bottom: 6px;
  animation: fadeUp .9s var(--ease) both;
  animation-delay: .15s;
}
.hero-age {
  font-size: .95rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--c-pink-deep);
  margin-bottom: 20px;
  animation: fadeUp .9s var(--ease) both;
  animation-delay: .3s;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 3.5vw, 1.22rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--c-text);
  max-width: 380px;
  margin-bottom: 0;
  animation: fadeUp .9s var(--ease) both;
  animation-delay: .45s;
}

/* Thin ornamental divider */
.ornament-divider {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 320px;
  margin: 28px auto;
  color: var(--c-pink);
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-pink), transparent);
}
.ornament-divider svg { flex-shrink: 0; }

/* ── EVENT CARD ─────────────────────────────────────── */
.event-card {
  position: relative;
  width: 100%; max-width: var(--max-w);
  margin-bottom: 40px;
  z-index: 1;
  /* Watercolour card surface */
  background:
    radial-gradient(ellipse at 15% 25%, rgba(242,175,194,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(196,214,238,.2)  0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.96) 0%, rgba(253,246,240,.93) 100%);
  border: 1.5px solid rgba(242,175,194,.5);
  border-radius: var(--r-card);
  padding: 40px 36px 36px;
  box-shadow: 0 10px 50px var(--c-shadow), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
}

/* Corner watercolour blobs on the card */
.event-card::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,175,194,.28) 0%, transparent 70%);
  pointer-events: none;
}
.event-card::after {
  content: ''; position: absolute;
  bottom: -30px; left: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,214,238,.22) 0%, transparent 70%);
  pointer-events: none;
}

/* Ribbon header inside card */
.card-ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  height: 56px; overflow: hidden;
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.card-ribbon svg { width: 100%; height: 100%; display: block; }

.card-body { padding-top: 16px; }

.card-date-big {
  font-family: var(--f-script);
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--c-rose-text);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.1;
}

.card-rows { display: flex; flex-direction: column; gap: 16px; }

.card-row {
  display: flex; align-items: flex-start; gap: 16px;
}
.card-row-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blush), var(--c-blush-mid));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px var(--c-shadow);
}
.card-row-icon svg { display: block; }
.card-row-text {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
}
.card-row-label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text-soft); font-weight: 500;
}
.card-row-value {
  font-size: 1.05rem; color: var(--c-text); line-height: 1.4;
}

/* ── CTA BUTTON ─────────────────────────────────────── */
.btn-cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--c-rose), #b84e70);
  color: #fff;
  font-family: var(--f-body);
  font-size: 1.08rem; font-weight: 500;
  letter-spacing: .07em;
  padding: 15px 42px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 28px rgba(200,94,128,.38);
  transition: var(--t);
  border: none; cursor: pointer;
  animation: fadeUp .9s var(--ease) both;
  animation-delay: .6s;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(200,94,128,.48);
  background: linear-gradient(135deg, #d4607a, #a84268);
}
.btn-cta svg { flex-shrink: 0; }

/* Floral ornament above/below CTA */
.cta-wrap {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
  z-index: 1; width: 100%; max-width: var(--max-w);
}
.cta-flora {
  /* small SVG bouquet, rendered inline */
  display: block;
}

/* ── RSVP PAGE ──────────────────────────────────────── */
.rsvp-hero {
  width: 100%; max-width: var(--max-w);
  text-align: center;
  padding: 20px 0 36px;
  z-index: 1;
  position: relative;
}
.rsvp-title-script {
  font-family: var(--f-script);
  font-size: clamp(3rem, 10vw, 4.5rem);
  color: var(--c-rose-text);
  line-height: 1;
  margin-bottom: 10px;
}
.rsvp-subtitle {
  font-size: 1rem; font-style: italic;
  color: var(--c-text-soft); letter-spacing: .05em;
}

.rsvp-card {
  position: relative;
  width: 100%; max-width: var(--max-w);
  background:
    radial-gradient(ellipse at 80% 10%, rgba(221,208,238,.3)  0%, transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(242,175,194,.22) 0%, transparent 55%),
    rgba(253,246,240,.97);
  border: 1.5px solid rgba(221,208,238,.55);
  border-radius: var(--r-card);
  padding: 48px 36px 44px;
  box-shadow: 0 10px 50px var(--c-shadow), inset 0 1px 0 rgba(255,255,255,.9);
  z-index: 1;
  overflow: hidden;
}
.rsvp-card::before {
  content: ''; position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(221,208,238,.3) 0%, transparent 70%);
  pointer-events: none;
}
.rsvp-card::after {
  content: ''; position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,175,194,.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Form */
.rsvp-form { display: flex; flex-direction: column; gap: 14px; }

.guests-list { display: flex; flex-direction: column; gap: 12px; }

.guest-row {
  display: flex; flex-direction: column; gap: 5px;
  animation: fadeUp .35s var(--ease) both;
}
.guest-lbl {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-soft); font-weight: 500;
}
.guest-input {
  width: 100%;
  font-family: var(--f-body); font-size: 1.08rem;
  color: var(--c-text);
  background: rgba(255,255,255,.88);
  border: 1.5px solid rgba(242,175,194,.5);
  border-radius: 16px;
  padding: 12px 20px;
  outline: none;
  transition: var(--t);
}
.guest-input:focus {
  border-color: var(--c-pink-deep);
  box-shadow: 0 0 0 3px rgba(217,115,154,.16);
}
.guest-input::placeholder { color: var(--c-text-soft); opacity: .65; }

.btn-add {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px dashed rgba(242,175,194,.75);
  border-radius: 14px;
  padding: 10px 18px;
  font-size: .95rem;
  color: var(--c-pink-deep);
  font-family: var(--f-body);
  transition: var(--t);
}
.btn-add:hover { background: var(--c-blush); border-color: var(--c-pink-deep); color: var(--c-rose-text); }
.btn-add svg   { flex-shrink: 0; }

.btn-submit {
  align-self: center;
  margin-top: 6px;
  width: 100%; max-width: 320px;
  background: linear-gradient(135deg, var(--c-rose), #b84e70);
  color: #fff;
  font-family: var(--f-body); font-size: 1.08rem; font-weight: 500;
  letter-spacing: .07em;
  padding: 15px 36px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 28px rgba(200,94,128,.35);
  transition: var(--t);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(200,94,128,.45); }

/* Success */
.success-msg {
  display: none;
  flex-direction: column; align-items: center; gap: 16px;
  padding: 32px 0;
  animation: fadeUp .6s var(--ease);
}
.success-msg.show { display: flex; }
.success-icon svg { width: 56px; height: 56px; }
.success-text {
  font-size: 1.2rem; font-style: italic;
  color: var(--c-rose-text); line-height: 1.6;
  text-align: center; max-width: 280px;
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  width: 100%; text-align: center;
  padding: 48px 20px 60px;
  border-top: 1px solid rgba(242,175,194,.3);
  background: linear-gradient(180deg, var(--c-warm-white) 0%, var(--c-blush) 100%);
  position: relative; z-index: 1;
}
.footer-name {
  font-family: var(--f-script);
  font-size: 3.4rem; color: var(--c-rose-text);
  margin-bottom: 10px; line-height: 1;
}
.footer-hearts { /* decorative SVG row, no emoji */ }
.footer-copy {
  font-size: .88rem; font-style: italic;
  color: var(--c-text-soft); letter-spacing: .06em;
}

/* ── SCROLL REVEAL ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes wingFlap {
  0%   { transform: scaleX(1) rotate(-4deg); }
  50%  { transform: scaleX(.7) rotate(4deg); }
  100% { transform: scaleX(1) rotate(-4deg); }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 440px) {
  .event-card,
  .rsvp-card { padding-left: 22px; padding-right: 22px; border-radius: 22px; }
  .lang-btn .lbl { display: none; }
  .lang-btn { padding: 3px 6px; }
}
@media (min-width: 768px) {
  .page { padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
