/* ─────────────────────────────────────────────
   Casamento · Rafaella & Lucas
   Identidade: Lotus Atelié (moodboard verde oliva)
───────────────────────────────────────────── */

:root {
  --olive-900: #3e4a34;
  --olive-700: #5d6b4e;
  --olive-500: #7c8a6b;
  --olive-400: #9aa890;
  --olive-200: #c9d2bd;
  --olive-100: #dfe4d4;
  --sage-050: #eef1e7;

  --terracotta: #c48a6c;
  --terracotta-soft: #e2c0aa;

  --paper: #f1ece0;
  --paper-warm: #ebe4d3;
  --paper-light: #f6f1e6;
  --ink: #2e342a;
  --ink-soft: #55604b;

  --rule: rgba(61, 71, 48, 0.22);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif-display: "Cormorant Garamond", "Cormorant", serif;
  --script: "Petit Formal Script", "Pinyon Script", cursive;
  --smallcaps: "Cormorant SC", "Trajan Pro", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 23% 17%, rgba(93,107,78,0.05), transparent 38%),
    radial-gradient(circle at 82% 74%, rgba(196,138,108,0.05), transparent 42%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.22  0 0 0 0 0.24  0 0 0 0 0.18  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Vertical pinstripe paper (subtle, from identity page 9) */
.paper-stripes {
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(154, 168, 144, 0.0) 0px,
      rgba(154, 168, 144, 0.0) 14px,
      rgba(154, 168, 144, 0.07) 14px,
      rgba(154, 168, 144, 0.07) 28px
    );
}

main, header, footer {
  position: relative;
  z-index: 2;
}

/* ─── Layout helpers ─── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.stack-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rule {
  width: 1px;
  height: 48px;
  background: var(--rule);
  margin: 28px auto;
}

.rule-h {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 56px auto;
  max-width: 320px;
}

/* ─── Typography ─── */
.eyebrow {
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--olive-700);
  font-weight: 500;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--olive-700);
  font-size: 1.4em;
  letter-spacing: 0.01em;
}

.display {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 84px);
  letter-spacing: 0.02em;
  line-height: 1.02;
  color: var(--ink);
}

.display .amp {
  font-style: italic;
  font-weight: 400;
  color: var(--olive-700);
  margin: 0 0.12em;
}

h2.section-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--ink);
}
h2.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--olive-700);
}

h3.block-title {
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--olive-700);
  margin: 0 0 14px 0;
  font-weight: 500;
}

p { margin: 0 0 0.6em 0; }
p.lede { font-size: 1.05em; color: var(--ink-soft); }
.small { font-size: 14px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ─── Hero ─── */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px 32px;
  position: relative;
}

.hero-inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.hero-birds {
  width: clamp(180px, 22vw, 260px);
  height: auto;
  opacity: 0.88;
  margin: 0 auto 18px;
  display: block;
}

.hero-monogram {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--olive-700);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-dates {
  margin-top: 18px;
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 12px;
  color: var(--olive-700);
}

.hero-city {
  margin-top: 8px;
  font-family: var(--script);
  font-size: 20px;
  color: var(--olive-700);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--smallcaps);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--olive-500);
  opacity: 0.7;
}

.hero-scroll .dot {
  display: block;
  width: 1px;
  height: 42px;
  background: var(--olive-500);
  margin: 8px auto 0;
  animation: drip 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50%      { transform: scaleY(1);   opacity: 0.9; }
}

/* ─── Countdown ─── */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 54px);
  margin: 8px auto 0;
}
.count-cell {
  text-align: center;
  min-width: 48px;
}
.count-num {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1;
  color: var(--olive-700);
  font-variant-numeric: tabular-nums;
}
.count-lbl {
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--olive-500);
  margin-top: 6px;
}
.count-sep {
  align-self: center;
  color: var(--olive-200);
  font-size: 24px;
  line-height: 1;
}

/* ─── Section ─── */
section.block {
  padding: clamp(64px, 10vh, 120px) 0;
  position: relative;
}
section.block + section.block {
  border-top: 1px solid var(--rule);
}
section.block.tint {
  background: var(--paper-light);
}
section.block.sage {
  background: var(--sage-050);
  background-image: url('assets/bg-stripes.png');
  background-size: cover;
  background-position: center;
}

.block-head {
  text-align: center;
  margin-bottom: 40px;
}
.block-head .ornament {
  width: 58px;
  height: auto;
  opacity: 0.8;
  margin: 0 auto 16px;
  display: block;
}
.block-head .eyebrow { display: inline-block; margin-bottom: 10px; }

/* ─── Card (location/lunch) ─── */
.card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--rule);
  text-align: center;
  position: relative;
}
.card .corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--olive-700);
}
.card .corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card .corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.card .corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.card .corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.card .when {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--ink);
  margin: 2px 0 14px;
  letter-spacing: 0.02em;
}
.card .where {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 6px 0;
}
.card .address {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.card .map-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: var(--olive-700);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--olive-700);
  transition: background 0.25s, color 0.25s;
}
.card .map-link:hover {
  background: var(--olive-700);
  color: var(--paper-light);
}

/* ─── Menu ─── */
.menu {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.menu .course {
  margin: 28px 0;
}
.menu .course h4 {
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--olive-700);
  margin: 0 0 10px 0;
  font-weight: 500;
}
.menu .course p {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.4;
  font-style: italic;
  margin: 0;
}

.menu .divider {
  font-family: var(--script);
  font-size: 22px;
  color: var(--olive-400);
  margin: 10px 0;
}

/* ─── Price pills ─── */
.price-duo {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 28px;
  background: var(--paper-warm);
  border: 1px solid var(--olive-200);
}
.price-pill .val {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--olive-900);
}
.price-pill .unit {
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: var(--ink-soft);
}

/* ─── Kids menu (discreet) ─── */
.kids-menu {
  max-width: 460px;
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px dashed var(--rule);
  text-align: center;
}
.kids-head {
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 10px;
  color: var(--olive-500);
  margin-bottom: 10px;
}
.kids-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ─── Transport box ─── */
.transport-box {
  max-width: 460px;
  margin: 28px auto 0;
  padding: 24px 28px;
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-align: left;
}
.transport-title {
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 10px;
  color: var(--olive-500);
  margin-bottom: 16px;
  text-align: center;
}
.transport-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.transport-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.transport-icon {
  font-size: 10px;
  color: var(--terracotta);
  flex-shrink: 0;
  line-height: 1.6;
}
.transport-name {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
a.transport-name:hover {
  color: var(--olive-700);
  text-decoration: underline;
}
.transport-dist {
  font-style: italic;
  color: var(--olive-500);
  font-size: 14px;
}

/* ─── Payment buttons ─── */
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 28px auto 0;
}
.pay-grid--single {
  grid-template-columns: 1fr;
  max-width: 280px;
}
@media (max-width: 520px) {
  .pay-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; padding-bottom: 110px; }
}

.pay {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--rule);
  padding: 22px 20px;
  text-align: center;
  transition: background 0.25s, border-color 0.25s;
}
.pay .label {
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--olive-700);
  margin-bottom: 6px;
}
.pay .value {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.pay .copy-btn {
  background: transparent;
  border: 1px solid var(--olive-700);
  color: var(--olive-700);
  padding: 8px 18px;
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.pay .copy-btn:hover {
  background: var(--olive-700);
  color: var(--paper-light);
}
.pay .copy-btn.ok {
  background: var(--olive-700);
  color: var(--paper-light);
  border-color: var(--olive-700);
}

/* ─── Two-col note ─── */
.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 720px) {
  .note-grid { grid-template-columns: 1fr; gap: 40px; }
}
.note {
  text-align: center;
  padding: 0 12px;
}
.note .ico {
  width: auto;
  height: 90px;
  max-width: 64px;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.8;
  margin: 0 auto 16px;
  display: block;
}

/* ─── Footer ─── */
footer.foot {
  padding: 60px 24px 80px;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.foot-monogram {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 28px;
  color: var(--olive-700);
  letter-spacing: 0.16em;
}
.foot-date {
  margin-top: 8px;
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 11px;
  color: var(--olive-500);
}

/* ─── CTA button generic ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--olive-700);
  border: 1px solid var(--olive-700);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.btn:hover {
  background: var(--olive-700);
  color: var(--paper-light);
}

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ─── Utility ─── */
.center { text-align: center; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--olive-900);
  color: var(--paper-light);
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  padding: 12px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Watermark swallow ─── */
.deco-swallow {
  position: absolute;
  width: 70px;
  opacity: 0.35;
  pointer-events: none;
}

/* ─── Icon animations ─── */
@keyframes birds-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%       { transform: translateY(-10px) rotate(-1.8deg); }
  60%       { transform: translateY(-5px) rotate(1.2deg); }
}

@keyframes swallow-perch {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15%      { transform: rotate(-6deg) scale(1.05); }
  35%      { transform: rotate(3.5deg) scale(0.96); }
  55%      { transform: rotate(-2.5deg) scale(1.02); }
  78%      { transform: rotate(1.5deg) scale(0.99); }
}

@keyframes olive-sway {
  0%, 100% { transform: rotate(0deg); }
  28%      { transform: rotate(-6deg); }
  72%      { transform: rotate(6deg); }
}

@keyframes cloth-flutter {
  0%, 100% { transform: rotate(0deg) scaleX(1); }
  22%      { transform: rotate(-3.5deg) scaleX(0.96); }
  52%      { transform: rotate(3deg) scaleX(1.03); }
  80%      { transform: rotate(-1.5deg) scaleX(0.98); }
}

.hero-birds {
  animation: birds-float 5s ease-in-out infinite;
}

.foot img[src*="birds"] {
  animation: birds-float 7s ease-in-out infinite;
}

img[src*="swallow"] {
  animation: swallow-perch 6s ease-in-out infinite;
}

img[src*="olive"] {
  transform-origin: center bottom;
  animation: olive-sway 8s ease-in-out infinite;
}

img[src*="cloth"] {
  transform-origin: center top;
  animation: cloth-flutter 7s ease-in-out infinite;
}

/* stagger ico so they don't sync with ornaments */
.ico[src*="swallow"] { animation-delay: -2.5s; }
.ico[src*="olive"]   { animation-delay: -4s; }
.ico[src*="bowtie"]  { mix-blend-mode: multiply; max-width: 90px; }
.ico[src*="dress"]   { max-width: 56px; }

@media (prefers-reduced-motion: reduce) {
  .hero-birds,
  .foot img,
  img[src*="swallow"],
  img[src*="olive"],
  img[src*="cloth"] { animation: none; }
}

/* ─── Modal overlay ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 52, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
}

.modal {
  max-width: 560px;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 48px 40px 40px;
  position: relative;
  margin: auto;
}
@media (max-width: 520px) {
  .modal { padding: 44px 22px 32px; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--olive-500);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--ink); }

.modal-head {
  text-align: center;
  margin-bottom: 32px;
}
.modal-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: 28px;
  color: var(--ink);
  margin: 8px 0 0;
}

/* ─── RSVP guests ─── */
.rsvp-guests {
  display: flex;
  flex-direction: column;
}

.rsvp-guest {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.rsvp-guest:first-child { padding-top: 0; }

.rsvp-guest-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rsvp-remove {
  background: none;
  border: none;
  color: var(--olive-400);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.rsvp-remove:hover { color: var(--terracotta); }

/* ─── Radio groups ─── */
.rsvp-radio-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rsvp-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rsvp-radio-label {
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  color: var(--olive-500);
  border: 1px solid var(--olive-200);
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  user-select: none;
}
.rsvp-radio-label input[type="radio"] { display: none; }
.rsvp-radio-label.active {
  background: var(--olive-900);
  color: var(--paper-light);
  border-color: var(--olive-900);
}
.rsvp-radio-label:hover:not(.active) {
  border-color: var(--olive-500);
  color: var(--ink);
}

/* ─── Add guest button ─── */
.rsvp-add {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  background: none;
  border: 1px dashed var(--olive-200);
  color: var(--olive-500);
  font-family: var(--smallcaps);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.rsvp-add:hover { border-color: var(--olive-500); color: var(--ink); }

/* ─── Inputs ─── */
.rsvp-field { margin-top: 16px; }

.rsvp-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--olive-200);
  padding: 8px 2px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.rsvp-input::placeholder { color: var(--olive-400); }
.rsvp-input:focus { border-bottom-color: var(--olive-700); }

.rsvp-contact { margin-top: 8px; }

/* ─── Submit & error ─── */
.rsvp-submit {
  width: 100%;
  margin-top: 28px;
}
.rsvp-submit:disabled { opacity: 0.5; cursor: default; }

.rsvp-error-msg {
  margin: 14px 0 0;
  font-family: var(--smallcaps);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  text-align: center;
}
