/* ==========================================================================
   Rose Gold & Blush Wedding Invitation: styles
   Mobile-first. Colours live in :root below if you want to tweak the palette.
   ========================================================================== */

:root {
  --blush-50:  #fbf7f3;
  --blush-100: #f8f1ec;
  --blush-200: #f3e9e2;
  --blush-300: #ead8cd;
  --blush-400: #dcc0b2;
  --rose-400:  #c48a76;   /* decorative rose gold */
  --rose-500:  #a8705b;
  --rose-600:  #8a4f3d;   /* main accent: buttons, headings */
  --rose-700:  #6f3b2c;
  --gold:      #d9b65c;   /* names on the night hero */
  --ink:       #3b2a22;   /* body text */
  --muted:     #6b5348;
  --cream:     #f5e6e0;
  --rose-gold: linear-gradient(135deg, #f2c9b6 0%, #d9967f 35%, #b9735f 65%, #e9b9a3 100%);

  --font-script:  "Dancing Script", "Brush Script MT", cursive;
  --font-names:   "Great Vibes", "Dancing Script", cursive;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-italic:  "Cormorant Garamond", Georgia, serif;
  --font-body:    "Lora", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(111, 59, 44, .35);
  --ease: cubic-bezier(.22, .7, .25, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blush-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--rose-600); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .gate :focus-visible, .message :focus-visible { outline-color: #fff3d6; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--rose-600); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Ornament divider: line • heart • line ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 14px auto 26px; color: var(--rose-400);
}
.ornament span { height: 1px; width: 64px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament span:last-child { transform: scaleX(-1); }
.ornament i {
  width: 9px; height: 9px; background: currentColor; transform: rotate(45deg);
  border-radius: 2px 0 2px 0; position: relative;
}
.ornament--light { color: rgba(255, 238, 220, .8); margin: 10px auto 14px; }
.ornament--light span { width: 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border: 0; border-radius: 999px;
  background: var(--rose-600); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.btn:hover { background: var(--rose-700); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--rose-600); border: 1.5px solid var(--rose-400); box-shadow: none; }
.btn--ghost:hover { background: var(--blush-200); color: var(--rose-700); }
.btn--block { width: 100%; border-radius: 10px; letter-spacing: .08em; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.link-button {
  background: none; border: 0; color: var(--rose-600); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; padding: 12px; margin-top: 8px; min-height: 44px;
}

/* ==========================================================================
   OPENING GATE
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 100;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 62%, rgba(255, 214, 160, .55), transparent 70%),
    linear-gradient(180deg, #3a2a26 0%, #5b4339 45%, #a88a76 78%, #d9c7b8 100%);
  perspective: 1400px;
  transition: opacity 1s ease, visibility 1s;
}
.gate__glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 55%, #fff4de 0%, rgba(255, 228, 190, .7) 25%, transparent 60%);
  opacity: 0; transition: opacity 1.4s ease;
}
.gate__garland {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: min(130%, 720px); max-width: none; z-index: 3; pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(40, 20, 10, .35));
  transition: transform 1.6s var(--ease), opacity 1.2s;
}
.gate__doors {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, 520px); height: 88%;
  display: flex; transform-style: preserve-3d; z-index: 2;
}
.gate__door { flex: 1; height: 100%; transition: transform 2s var(--ease); }
.gate__door img { width: 100%; height: 100%; object-fit: fill; filter: drop-shadow(0 0 14px rgba(255, 236, 205, .35)); }
.gate__door--left  { transform-origin: left center; }
.gate__door--right { transform-origin: right center; }
.gate__door--right img { transform: scaleX(-1); }
.gate__bow {
  position: absolute; left: 50%; top: 40%; z-index: 4;
  width: min(68vw, 300px); transform: translate(-50%, -30%);
  filter: drop-shadow(0 8px 14px rgba(60, 30, 20, .4));
  transition: transform 1s var(--ease), opacity .8s;
  pointer-events: none;
}
.gate__button {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%;
  background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: calc(22vh + env(safe-area-inset-bottom));
}
.gate__tap {
  font-family: var(--font-script); font-size: clamp(2rem, 9vw, 2.8rem);
  color: #fbe6c2; text-shadow: 0 2px 12px rgba(50, 25, 10, .8), 0 0 2px rgba(50, 25, 10, .6);
  animation: breathe 2.6s ease-in-out infinite;
}
.gate.is-opening .gate__bow { opacity: 0; transform: translate(-50%, -30%) scale(1.25); }
.gate.is-opening .gate__tap { opacity: 0; transition: opacity .4s; animation: none; }
.gate.is-opening .gate__door--left  { transform: rotateY(-108deg); transition-delay: .35s; }
.gate.is-opening .gate__door--right { transform: rotateY(108deg);  transition-delay: .35s; }
.gate.is-opening .gate__glow { opacity: 1; transition-delay: .6s; }
.gate.is-opening .gate__garland { transform: translateX(-50%) translateY(-30%) scale(1.15); opacity: .0; transition-delay: .9s; }
.gate.is-gone { opacity: 0; visibility: hidden; }

@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }

/* ==========================================================================
   MUSIC BUTTON
   ========================================================================== */
.music-toggle {
  position: fixed; z-index: 90;
  top: calc(14px + env(safe-area-inset-top)); right: 14px;
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(138, 79, 61, .92); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: var(--shadow); cursor: pointer;
}
.music-toggle .icon { width: 22px; height: 22px; }
.music-toggle .icon--pause { display: none; }
.music-toggle[aria-pressed="true"] .icon--play { display: none; }
.music-toggle[aria-pressed="true"] .icon--pause { display: block; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 20px calc(96px + env(safe-area-inset-bottom));
  color: var(--cream); text-align: center; overflow: hidden;
  background: #141a33;
}
.hero__scene {
  position: absolute; inset: 0;
  background: url("../assets/images/hero-scene.svg") center bottom / cover no-repeat;
}
.hero__scene::after { /* gentle vignette so text stays readable */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 42%, rgba(10, 14, 32, .35), transparent 75%);
}
.hero__sparkles { position: absolute; inset: 0; pointer-events: none; }
.hero__sparkles i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff6dc; box-shadow: 0 0 6px 1px rgba(255, 236, 190, .8);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .1; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }

.hero__inner { position: relative; z-index: 1; width: 100%; max-width: 480px; }

.moon {
  width: clamp(104px, 32vw, 150px); aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9), transparent 42%),
    radial-gradient(circle at 62% 64%, rgba(190, 180, 168, .45) 0 9%, transparent 10%),
    radial-gradient(circle at 30% 66%, rgba(190, 180, 168, .35) 0 6%, transparent 7%),
    radial-gradient(circle at 70% 30%, rgba(190, 180, 168, .3) 0 5%, transparent 6%),
    radial-gradient(circle, #f5efe2 0%, #ddd5c6 70%, #c9c0b2 100%);
  box-shadow: 0 0 40px 12px rgba(255, 246, 220, .35), 0 0 120px 40px rgba(255, 240, 210, .15);
}
.moon svg { width: 34%; fill: #fff; filter: drop-shadow(0 2px 4px rgba(138, 79, 61, .45)); animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }

.hero__announce {
  font-family: var(--font-names); font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.2;
  color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.couple { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.couple__person { display: flex; flex-direction: column; align-items: center; }
.couple__name {
  font-family: var(--font-names); font-weight: 400;
  font-size: clamp(3.4rem, 17vw, 5rem); line-height: 1.05;
  padding: 0 .15em;
  background: linear-gradient(180deg, #f6dd94 0%, #d9b65c 45%, #b8913a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
}
.couple__details {
  display: flex; flex-direction: column;
  font-family: var(--font-body); font-style: italic; font-size: .95rem; line-height: 1.45;
  color: #f7ebe4; text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.couple__details:empty { display: none; }
.couple__amp {
  font-family: var(--font-names); font-size: clamp(2.4rem, 11vw, 3rem); line-height: 1;
  color: var(--gold); margin: 6px 0 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 64px; min-height: 48px; padding: 4px;
  color: #fff; text-decoration: none; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .22em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ==========================================================================
   INVITATION MESSAGE
   ========================================================================== */
.message {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #564a42 0%, #7a6a5f 45%, #c7b6a8 78%, var(--blush-200) 100%);
  color: #fbf1ea;
}
.message .ornament { color: #e7b9a4; }
.message__text {
  font-family: var(--font-italic); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 5.4vw, 1.55rem); line-height: 1.6;
  text-shadow: 0 1px 8px rgba(40, 25, 18, .45);
  padding: 0 4px;
}

/* ==========================================================================
   GENERIC SECTION
   ========================================================================== */
.section { padding: 64px 0; background: var(--blush-50); position: relative; }
.section.tone-alt { background: var(--blush-200); }
.section::before { /* faint floral texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("../assets/images/pattern.svg") center / 180px repeat;
}
.section > .container { position: relative; }
.section__icon {
  width: 34px; height: 34px; margin: 0 auto 10px;
  fill: none; stroke: var(--rose-600); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.section__title {
  font-family: var(--font-script); font-weight: 500;
  font-size: clamp(2.3rem, 10vw, 2.9rem); line-height: 1.15;
  color: var(--rose-600);
}
.eyebrow {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.info-text { color: var(--muted); font-size: 1.05rem; max-width: 30em; margin: 0 auto; }

/* ==========================================================================
   2. SCRATCH TO REVEAL
   ========================================================================== */
.scratch {
  position: relative;
  width: min(78vw, 300px); aspect-ratio: 100 / 90; margin: 6px auto 0;
  user-select: none; -webkit-user-select: none;
}
.scratch__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6% 18% 22%;
  background: url("../assets/images/heart-card.svg") center / 100% 100% no-repeat;
  color: var(--rose-700);
}
.scratch__title { font-family: var(--font-script); font-size: clamp(1.35rem, 6vw, 1.7rem); line-height: 1.1; margin-bottom: 6px; }
.scratch__date  { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 4.4vw, 1.2rem); line-height: 1.25; }
.scratch__day   { font-family: var(--font-italic); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.scratch__time  { font-family: var(--font-display); font-size: .95rem; letter-spacing: .12em; color: var(--rose-600); }
.scratch__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: grab;
  filter: drop-shadow(0 10px 18px rgba(138, 79, 61, .35));
  transition: opacity .9s ease;
}
.scratch__canvas:active { cursor: grabbing; }
.scratch.is-revealed .scratch__canvas { opacity: 0; pointer-events: none; }
.scratch__hint { margin-top: 14px; font-size: .9rem; color: var(--muted); font-style: italic; }
.scratch.is-revealed + .scratch__hint { visibility: hidden; }
.scratch__burst { position: absolute; inset: 0; pointer-events: none; }
.scratch__burst i {
  position: absolute; left: 50%; top: 45%; width: 8px; height: 8px;
  background: var(--rose-gold); border-radius: 50%;
  animation: burst 1.2s var(--ease) forwards;
}
.scratch__burst i:nth-child(3n) { width: 6px; height: 10px; border-radius: 2px; background: #e9c48a; }
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(220deg) scale(1); opacity: 0; }
}

/* ==========================================================================
   3. GALLERY SLIDER
   ========================================================================== */
.slider {
  position: relative; border-radius: 18px; padding: 10px;
  background: linear-gradient(180deg, var(--blush-300), var(--blush-200));
  box-shadow: var(--shadow);
}
.slider__viewport { overflow: hidden; border-radius: 12px; touch-action: pan-y; }
.slider__track {
  display: flex; margin: 0; padding: 0; list-style: none;
  transition: transform .8s var(--ease);
}
.slider__slide { flex: 0 0 100%; aspect-ratio: 4 / 3; background: var(--blush-300); }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.slider__arrow {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(251, 247, 243, .85); color: var(--rose-600);
  box-shadow: 0 4px 12px rgba(80, 40, 30, .2);
}
.slider__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider__arrow--prev { left: 18px; }
.slider__arrow--next { right: 18px; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 8px; }
.slider__dots { display: flex; }
.slider__dot {
  width: 44px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.slider__dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--rose-400); opacity: .45;
  transition: width .35s var(--ease), opacity .35s;
}
.slider__dot[aria-current="true"]::before { width: 24px; opacity: 1; background: var(--rose-600); }
.slider__pause {
  width: 40px; height: 36px; border: 0; background: none; color: var(--rose-600); cursor: pointer;
  display: grid; place-items: center;
}
.slider__pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider__pause .icon--play { display: none; }
.slider.is-paused .slider__pause .icon--play { display: block; }
.slider.is-paused .slider__pause .icon--pause { display: none; }

/* ==========================================================================
   4. COUNTDOWN
   ========================================================================== */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 400px; margin: 0 auto; }
.countdown__box {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.countdown__num {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1.05;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 7vw, 2rem);
  color: var(--ink);
  background: linear-gradient(180deg, #efe1d8, #e6d3c8);
  border: 1px solid var(--blush-400); border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 10px -6px rgba(111, 59, 44, .4);
  font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.countdown__done { font-family: var(--font-italic); font-style: italic; font-size: 1.35rem; color: var(--rose-600); }

/* ==========================================================================
   5. TIMELINE & PRE-WEDDING EVENTS
   ========================================================================== */
.schedule { text-align: left; }
.schedule__day { margin-bottom: 26px; }
.schedule__date {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 500; font-size: .92rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rose-600);
}
.schedule__date::before, .schedule__date::after { content: ""; flex: 1; height: 1px; background: var(--blush-400); }
.schedule__list { list-style: none; margin: 0; padding: 0; }
.schedule__item { display: grid; grid-template-columns: 86px 1fr; gap: 14px; padding: 4px 0 16px; }
.schedule__time {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink);
  text-align: right; padding-top: 3px; white-space: nowrap;
}
.schedule__body { border-left: 1.5px solid var(--blush-400); padding-left: 14px; }
.schedule__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--rose-600); line-height: 1.35; }
.schedule__note { color: var(--muted); font-size: .97rem; }

/* ==========================================================================
   6. VENUE
   ========================================================================== */
.venue__name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.venue__address { font-style: normal; color: var(--muted); margin: 4px 0 22px; }
.venue__map {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 22px;
  box-shadow: var(--shadow); background: var(--blush-300); aspect-ratio: 4 / 3;
}
.venue__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   7. DRESS CODE
   ========================================================================== */
.dress { display: grid; gap: 22px; }
.dress__item h3 {
  margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--rose-600);
}
.dress__item h3::after { content: ""; display: block; width: 36px; height: 1px; margin: 8px auto 0; background: var(--rose-400); }
.dress__item p { color: var(--muted); }

/* ==========================================================================
   9. RSVP
   ========================================================================== */
.rsvp__deadline { color: var(--muted); font-style: italic; margin: -8px 0 22px; }
.form { text-align: left; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--ink); }
.req { color: #b3261e; }
.optional { color: var(--muted); font-weight: 400; font-size: .9em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff9f5; border: 1.5px solid var(--blush-400); border-radius: 10px;
  font-size: 1rem; /* ≥16px stops iOS zooming on focus */
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a4f3d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8f776b; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--rose-600); box-shadow: 0 0 0 3px rgba(138, 79, 61, .18);
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .9rem; margin-top: 6px; min-height: 0; }
.field__error:empty { display: none; }
.form__note { margin-top: 12px; font-size: .88rem; color: var(--muted); text-align: center; }
.form__note:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rsvp__thanks {
  padding: 28px 20px; border-radius: var(--radius);
  background: #fff9f5; border: 1px solid var(--blush-400); box-shadow: var(--shadow);
  animation: fadeUp .6s var(--ease);
}
.rsvp__thanks-icon { width: 36px; height: 36px; margin: 0 auto 10px; fill: var(--rose-400); }
.rsvp__thanks-title { font-family: var(--font-script); font-size: 2rem; color: var(--rose-600); line-height: 1.2; }
.rsvp__thanks-text { color: var(--muted); margin-top: 8px; }

/* ==========================================================================
   10. CLOSING & FOOTER
   ========================================================================== */
.closing { padding: 72px 0; background: var(--blush-200); }
.closing__vine { width: min(100%, 320px); margin: 0 auto; opacity: .9; }
.closing__vine--flip { transform: scaleY(-1); }
.closing__text {
  font-family: var(--font-script); font-size: clamp(2.1rem, 9.5vw, 2.7rem); line-height: 1.35;
  color: var(--rose-600); margin: 34px 0 12px;
}
.closing__names { font-family: var(--font-script); font-size: 1.5rem; color: var(--muted); margin-bottom: 34px; }
.footer { padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); text-align: center; background: var(--blush-100); border-top: 1px solid var(--blush-300); }
.footer__names { font-family: var(--font-script); font-size: 1.4rem; color: var(--rose-600); }
.footer__date { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.noscript { padding: 20px; text-align: center; background: #fff3cd; }

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */
.js .reveal-up { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal-up.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   LARGER SCREENS
   ========================================================================== */
@media (min-width: 768px) {
  body { font-size: 1.125rem; }
  .section { padding: 88px 0; }
  .message { padding: 88px 0 100px; }
  .slider__arrow--prev { left: -22px; }
  .slider__arrow--next { right: -22px; }
  .dress { grid-template-columns: 1fr 1fr; }
  .schedule__item { grid-template-columns: 110px 1fr; }
  .gate__doors { height: 92%; }
}
@media (min-width: 1024px) {
  .hero { background-color: #0f1530; }
}

/* Very small phones (≤340px) */
@media (max-width: 340px) {
  .container { padding: 0 16px; }
  .countdown { gap: 6px; }
  .countdown__label { font-size: .62rem; letter-spacing: .06em; }
  .schedule__item { grid-template-columns: 74px 1fr; gap: 10px; }
  .schedule__time { font-size: .85rem; }
  .ornament span { width: 44px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .js .reveal-up { opacity: 1; transform: none; }
  .hero__sparkles { display: none; }
  .gate__tap { animation: none; opacity: 1; }
}
