:root {
  --green: #2ba54a;
  --green-dark: #1f8a3b;
  --sky: #4fbde5;
  --red: #e01b22;
  --gold: #d4ae6a;
  --ink: #2b2b2b;
  --muted: #5d6166;
  --line: #e2e5e8;
  --bg: #ffffff;
  --bg-soft: #f4f6f5;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Flag stripe across the top */
.flag-bar { display: flex; height: 6px; }
.flag-bar span { flex: 1; }
.flag-bar span:nth-child(1) { background: var(--green); }
.flag-bar span:nth-child(2) { background: #fff; }
.flag-bar span:nth-child(3) { background: var(--sky); }
.flag-bar span:nth-child(4) { background: var(--red); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-size: 12px; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; letter-spacing: .01em;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(224,27,34,.6);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #c4141a; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-small { padding: 9px 20px; font-size: 14px; box-shadow: none; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--green-dark); border: 2px solid var(--green); box-shadow: none; }
.btn-outline:hover { background: var(--green); color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 80px;
  background:
    radial-gradient(1000px 500px at 100% 0%, rgba(79,189,229,.12), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(43,165,74,.10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); }
h1 {
  margin: 0; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; font-weight: 800;
  color: var(--red); letter-spacing: -.01em; text-transform: uppercase;
}
.badge {
  display: inline-block; margin-top: 14px; padding: 4px 16px;
  background: var(--green); color: #fff; font-weight: 700;
  font-size: clamp(22px, 3vw, 32px); letter-spacing: .02em; text-transform: uppercase;
}
.lede { margin: 24px 0 28px; font-size: 18px; color: var(--muted); max-width: 34em; }
.lede strong { color: var(--ink); }

.details { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.details li { display: flex; gap: 14px; align-items: flex-start; }
.details svg {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px;
  background: var(--bg-soft); stroke: var(--green-dark); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.details strong { display: block; font-weight: 600; }
.details span { color: var(--muted); font-size: 15px; }

.countdown { display: flex; gap: 10px; margin-bottom: 30px; }
.countdown div {
  min-width: 72px; text-align: center; padding: 10px 8px;
  border-radius: 12px; background: var(--ink); color: #fff;
}
.countdown b { display: block; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.countdown.ended div { background: var(--green); }

.hero-card { position: relative; }
.hero-card::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%;
  background: linear-gradient(135deg, var(--green), var(--sky) 55%, var(--red));
  border-radius: 24px; opacity: .18; transform: rotate(4deg);
}
.hero-card img {
  position: relative; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  transform: rotate(-2deg);
  transition: transform .4s ease;
}
.hero-card:hover img { transform: rotate(0deg) scale(1.01); }

/* RSVP */
.rsvp { padding: 88px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rsvp-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 800; }
.rsvp-intro p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.steps span {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--green);
}
.steps li:nth-child(2) span { background: var(--sky); }
.steps li:nth-child(3) span { background: var(--red); }

.form-card {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 36px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.18), 0 0 0 1px var(--line);
  overflow: hidden;
}
.form-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--sky) 33% 66%, var(--red) 66%);
}

.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid #cfd4d9; border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: #a3a8ad; }
input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(43,165,74,.15); }
.field.invalid input { border-color: var(--red); }
.field.invalid input:focus { box-shadow: 0 0 0 4px rgba(224,27,34,.12); }

.error { margin: 6px 0 0; font-size: 13px; color: var(--red); font-weight: 500; min-height: 0; }
.error:empty { display: none; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); cursor: pointer; margin: 6px 0 4px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#rsvp-form .btn { margin-top: 20px; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 12px 0 0; font-size: 14px; text-align: center; }
.form-status.err { color: var(--red); }

.success { text-align: center; padding: 10px 0; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--green); display: grid; place-items: center; animation: pop .4s ease; }
.success-icon svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { margin: 0 0 10px; font-size: 24px; }
.success p { color: var(--muted); margin: 0 0 10px; }
.success p strong { color: var(--ink); word-break: break-word; }
.success .small { font-size: 14px; }
.success .small:empty { display: none; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Venue */
.venue { padding: 64px 0; }
.venue-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.venue p { margin: 0 0 10px; font-size: 17px; }
.venue-note { max-width: 420px; color: var(--muted); border-left: 4px solid var(--gold); padding-left: 18px; }
.link { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 28px 0; }
.footer-inner { display: flex; align-items: center; gap: 14px; }
.footer-inner p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.footer-inner span { opacity: .65; font-weight: 400; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid, .rsvp-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 440px; margin: 0 auto; }
  .rsvp { padding: 56px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .form-card { padding: 26px 20px; }
  .countdown { gap: 8px; }
  .countdown div { min-width: 0; flex: 1; }
  .btn:not(.btn-small) { width: 100%; }
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
