﻿:root {
  --ink: #2c322d;
  --muted: #6b7268;
  --paper: #f6f1e6;
  --cream: #efe8d8;
  --card: #fdfaf3;
  --sage: #75856f;
  --sage-dark: #33452f;
  --sage-deep: #26341f;
  --sage-soft: #e7ecdd;
  --clay: #a5604f;
  --clay-soft: #f2e0d6;
  --gold: #b08d4f;
  --sky: #e5eff1;
  --line: rgba(51, 69, 47, 0.16);
  --shadow: 0 18px 50px rgba(41, 49, 45, 0.08);
  --section-width: 1160px;
  --font-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: var(--font-ui);
  --font-serif: var(--font-ui);
  --display-font: var(--font-ui);
  --radius: 8px;
  --radius-sm: 6px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

img,
iframe,
canvas,
textarea,
input,
select,
button {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--sage-dark);
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid rgba(49, 72, 53, 0.14);
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--sage-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--sage-dark);
  background: var(--sage-soft);
  outline: none;
}

.admin-nav-link {
  color: #fff !important;
  background: var(--sage-dark);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--sage-dark);
}

main > section,
footer {
  width: min(var(--section-width), calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  width: 100%;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: end;
  gap: 28px;
  padding: min(10vh, 88px) clamp(18px, 5vw, 64px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(30, 44, 34, 0.84), rgba(30, 44, 34, 0.28)),
    url("assets/couple/beach-embrace-framed.jpeg") center/cover;
}

.hero-content {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.gift-tag {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #f2d3c8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 11ch;
  color: #fff;
  font-size: clamp(3.25rem, 7vw, 5.4rem);
}

.hero-date {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.gift-select,
.icon-button,
.whatsapp-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.gift-select:hover,
.icon-button:hover,
.whatsapp-cta:hover {
  transform: translateY(-1px);
}

.button.primary,
.gift-select {
  color: #fff;
  background: var(--sage-dark);
  box-shadow: 0 10px 24px rgba(49, 72, 53, 0.2);
}

.button.secondary,
.button.outline,
.icon-button {
  color: var(--sage-dark);
  border-color: rgba(49, 72, 53, 0.24);
  background: #fff;
}

.hero .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.13);
}

.button:disabled,
.gift-select:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
  box-shadow: none;
}

.countdown {
  justify-self: end;
  width: 210px;
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.16);
  backdrop-filter: blur(12px);
  text-align: center;
}

.countdown span {
  display: block;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.9;
}

.countdown small {
  display: block;
  max-width: 12ch;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.intro-band,
.schedule-section,
.location-section,
.weather-section,
.rsvp-section,
.menu-section,
.gifts-section,
.photo-section {
  padding-block: 72px;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.intro-band h2,
.section-heading h2,
.location-copy h2,
.rsvp-form h2 {
  font-size: 2.7rem;
}

.essential-list,
.timeline,
.info-grid,
.weather-list,
.guest-card-grid,
.photo-grid {
  display: grid;
  gap: 14px;
}

.essential-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.essential-list article,
.timeline article,
.info-grid div,
.weather-card,
.rsvp-form,
.guest-card-grid article,
.whatsapp-card,
.donation-panel,
.gift-checkout,
.pix-result,
.photo-card,
.dress-code-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(39, 37, 34, 0.07);
}

.essential-list article,
.timeline article,
.info-grid div,
.guest-card-grid article,
.whatsapp-card,
.photo-card {
  padding: 20px;
}

.essential-list strong,
.essential-list span,
.info-grid strong,
.info-grid span,
.guest-card-grid span,
.guest-card-grid p,
.weather-day span,
.weather-day small {
  display: block;
}

.essential-list strong,
.info-grid strong {
  color: var(--sage-dark);
}

.essential-list span,
.info-grid span,
.section-heading p,
.timeline p,
.location-copy p,
.weather-main p,
.weather-note,
.dress-code-card p,
.guest-card-grid p,
.whatsapp-card p,
.donation-panel p,
.pix-warning,
.photo-card p,
footer span {
  color: var(--muted);
}

.schedule-section,
.weather-section,
.menu-section,
.photo-section {
  width: 100%;
  background: linear-gradient(180deg, var(--cream), var(--paper));
}

.section-heading {
  width: min(var(--section-width), calc(100% - 32px));
  margin: 0 auto 26px;
}

.section-heading h2 {
  max-width: 700px;
}

.section-heading p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
}

.timeline {
  width: min(var(--section-width), calc(100% - 32px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
}

.timeline article {
  position: relative;
  min-height: 210px;
  display: grid;
  align-content: space-between;
}

.timeline article::before {
  content: "";
  width: 36px;
  height: 4px;
  display: block;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--clay);
}

.timeline span {
  color: var(--clay);
  font-weight: 800;
}

.timeline h3,
.guest-card-grid h3,
.whatsapp-card h3,
.donation-panel h3,
.photo-card h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.location-copy {
  align-self: center;
}

.location-copy > p:not(.section-kicker) {
  max-width: 720px;
}

.lodging-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.lodging-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(39, 37, 34, 0.07);
}

.lodging-card-heading {
  display: grid;
  gap: 6px;
}

.lodging-label,
.event-venue-label {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lodging-card h3 {
  margin: 0;
  color: var(--sage-dark);
  font-size: 1.3rem;
}

.lodging-card address {
  color: var(--muted);
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.55;
}

.location-link {
  color: var(--sage-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-venue-callout {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--clay);
  border-radius: 0 8px 8px 0;
  background: var(--sage-soft);
}

.event-venue-callout strong {
  color: var(--sage-dark);
  font-family: var(--display-font);
  font-size: 1.55rem;
}

.event-venue-callout p {
  margin: 0;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.map-panel {
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sage-soft);
  box-shadow: var(--shadow);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
  border: 0;
}

.weather-card {
  width: min(var(--section-width), calc(100% - 32px));
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  margin: 0 auto;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(217, 232, 238, 0.72), rgba(255, 255, 255, 0.92)),
    #fff;
}

.weather-main {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.weather-badge,
.status-badge {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--sage-dark);
  background: var(--sage-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.weather-main strong {
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 3.3rem;
  line-height: 1;
}

.weather-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.weather-day {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border: 1px solid rgba(49, 72, 53, 0.13);
  border-radius: 8px;
  background: #fff;
}

.weather-day strong {
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 2rem;
}

.weather-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
}

.rsvp-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

.rsvp-form {
  display: grid;
  gap: 15px;
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 118px;
  padding-block: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(168, 84, 67, 0.28);
  outline-offset: 2px;
}

.form-message,
.checkout-message,
.admin-message,
.admin-save-message {
  min-height: 24px;
  margin: 0;
}

.form-message.is-success,
.checkout-message.is-success {
  color: #1f5d3b;
}

.form-message.is-error,
.checkout-message.is-error {
  color: #8c3329;
}

.rsvp-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.rsvp-photo {
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(39, 37, 34, 0.08), rgba(39, 37, 34, 0.22)),
    url("assets/couple/beach-running-vertical.jpeg") center/cover;
  box-shadow: var(--shadow);
}

.guest-info-layout {
  width: min(var(--section-width), calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  margin: 0 auto;
}

.dress-code-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  grid-column: 1 / -1;
  overflow: hidden;
}

.dress-code-intro {
  min-height: 290px;
  display: grid;
  align-content: end;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(rgba(49, 72, 53, 0.16), rgba(49, 72, 53, 0.82)),
    url("assets/couple/sunlit-leaves.jpeg") center/cover;
}

.dress-code-intro h3,
.dress-code-intro p,
.dress-code-intro .gift-tag {
  color: #fff;
}

.dress-code-intro h3 {
  font-size: 2.2rem;
}

.dress-code-content {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.dress-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dress-code-list div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: var(--cream);
}

.dress-code-list strong {
  color: var(--sage-dark);
}

.dress-code-list span {
  color: var(--muted);
}

.avoid-note,
.comfort-note {
  margin: 0;
}

.guest-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-card-grid article {
  min-height: 180px;
}

.guest-card-grid span {
  color: var(--clay);
  font-weight: 800;
}

.whatsapp-card {
  display: grid;
  align-content: center;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(229, 236, 230, 0.78), rgba(255, 255, 255, 0.94)),
    #fff;
}

.whatsapp-cta {
  justify-self: start;
  color: #fff;
  background: #1f7a4d;
}

.gift-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.donation-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gift-catalog {
  display: grid;
  gap: 34px;
  margin-top: 28px;
}

.gift-tier {
  display: grid;
  gap: 16px;
}

.gift-tier-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.gift-tier-heading h3 {
  margin-top: 6px;
  color: var(--sage-dark);
  font-size: 1.55rem;
}

.gift-tier-heading p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.gift-tier-kicker {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gift-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gift-product {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(39, 37, 34, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.gift-product:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 72, 53, 0.3);
  box-shadow: 0 18px 42px rgba(39, 37, 34, 0.12);
}

.gift-product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.gift-product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(24, 35, 31, 0.34));
  pointer-events: none;
}

.gift-product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease;
}

.gift-product:hover .gift-product-media img {
  transform: scale(1.025);
}

.gift-product-media .gift-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  margin: 0;
  padding: 6px 9px;
  border-radius: 4px;
  color: #fff;
  background: rgba(24, 35, 31, 0.82);
  backdrop-filter: blur(8px);
}

.gift-product-body {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
  padding: 20px;
}

.gift-product-body h3 {
  font-size: 1.25rem;
}

.gift-product-body p {
  margin: 9px 0 0;
  color: var(--muted);
}

.gift-product-footer {
  display: grid;
  gap: 12px;
}

.gift-product-footer strong {
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
}

.gift-product-footer .gift-select {
  width: 100%;
}

.gift-product-free {
  background: var(--paper);
}

.gift-checkout {
  width: min(760px, 100%);
  justify-self: center;
  padding: 24px;
}

.pix-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pix-sheet-header h3 {
  font-size: 1.6rem;
}

.pix-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--sage-dark);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.checkout-gift-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 8px;
  background: var(--cream);
}

.checkout-gift-summary span,
.checkout-gift-summary small {
  color: var(--muted);
}

.checkout-gift-summary strong {
  color: var(--sage-dark);
  font-size: 1.25rem;
}

.pix-form {
  display: grid;
  gap: 14px;
}

.pix-result-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(39, 37, 34, 0.46);
}

.pix-result {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 90;
  width: min(820px, calc(100% - 32px));
  max-height: min(86vh, 780px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 24px;
}

.pix-sheet-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.pix-qr-frame {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 10px var(--paper);
}

#pix-qr {
  width: 220px;
  height: 220px;
  display: block;
  background: #fff;
}

.pix-copy-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.pix-copy-panel p,
.pix-copy-panel label {
  margin: 0;
}

.pix-result-amount {
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 2.2rem;
}

#pix-payload,
#admin-pix-payload {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
}

.pix-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pix-warning {
  margin: 16px 0 0;
  font-size: 0.9rem;
}

.photo-grid {
  width: min(var(--section-width), calc(100% - 32px));
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.95fr) minmax(0, 1.05fr) minmax(240px, 0.75fr);
  margin: 0 auto;
}

.photo-card {
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 12px;
}

.couple-photo {
  color: #fff;
  background:
    linear-gradient(rgba(39, 37, 34, 0.05), rgba(39, 37, 34, 0.54)),
    url("assets/couple/garden-kiss.jpeg") center/cover;
}

.couple-photo-secondary {
  color: #fff;
  background:
    linear-gradient(rgba(39, 37, 34, 0.08), rgba(39, 37, 34, 0.56)),
    url("assets/couple/water-sunset-silhouette.jpeg") center/cover;
}

.couple-photo span,
.couple-photo-secondary span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(49, 72, 53, 0.76);
  font-weight: 800;
}

.verse-list {
  display: grid;
  gap: 14px;
}

.verses-band {
  padding-block: clamp(40px, 6vw, 64px);
}

.verses-band .verse-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  text-align: center;
}

.verses-band blockquote {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(41, 49, 45, 0.05);
}

.verses-band blockquote p {
  font-style: italic;
  line-height: 1.5;
}

.verses-band cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--clay);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .verses-band .verse-list {
    grid-template-columns: 1fr;
  }
}

.memory-strip {
  width: min(var(--section-width), calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px auto 0;
}

.memory-strip figure {
  min-height: 260px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sage-soft);
  box-shadow: 0 12px 32px rgba(39, 37, 34, 0.07);
}

.memory-strip img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
}

blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--clay);
}

blockquote p {
  margin: 0 0 6px;
  color: var(--ink);
}

cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

@media (max-width: 1060px) {
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .menu-button {
    display: grid;
  }

  .hero,
  .intro-band,
  .location-section,
  .rsvp-section,
  .guest-info-layout,
  .dress-code-card,
  .weather-card,
  .pix-sheet-body {
    grid-template-columns: 1fr;
  }

  .gift-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-tier-heading {
    align-items: start;
    flex-direction: column;
  }

  .gift-tier-heading p {
    max-width: 520px;
    text-align: left;
  }

  .hero {
    min-height: 680px;
    align-items: end;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .countdown {
    justify-self: start;
    width: 190px;
    min-height: 150px;
  }

  .essential-list,
  .timeline,
  .weather-list,
  .photo-grid,
  .memory-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-panel,
  .map-panel iframe,
  .rsvp-photo {
    min-height: 380px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    width: 44px;
    height: 44px;
  }

  main > section,
  footer,
  .section-heading,
  .timeline,
  .weather-card,
  .guest-info-layout,
  .photo-grid {
    width: min(100% - 24px, var(--section-width));
  }

  .hero {
    width: 100%;
    min-height: 640px;
    padding: 52px 18px 42px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-date {
    font-size: 1.05rem;
  }

  .hero-actions,
  .pix-sheet-actions,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .gift-select,
  .icon-button,
  .whatsapp-cta {
    width: 100%;
  }

  .intro-band,
  .schedule-section,
  .location-section,
  .weather-section,
  .rsvp-section,
  .menu-section,
  .gifts-section,
  .photo-section {
    padding-block: 48px;
  }

  .intro-band h2,
  .section-heading h2,
  .location-copy h2,
  .rsvp-form h2 {
    font-size: 2.1rem;
  }

  .essential-list,
  .timeline,
  .info-grid,
  .lodging-grid,
  .weather-list,
  .guest-card-grid,
  .dress-code-list,
  .photo-grid,
  .memory-strip {
    grid-template-columns: 1fr;
  }

  .timeline article,
  .guest-card-grid article,
  .photo-card,
  .memory-strip figure,
  .memory-strip img {
    min-height: auto;
  }

  .weather-main strong {
    font-size: 2.6rem;
  }

  .rsvp-form,
  .gift-checkout,
  .pix-result,
  .dress-code-content,
  .dress-code-intro {
    padding: 18px;
  }

  .donation-panel {
    padding: 0;
  }

  .gift-tier-grid {
    grid-template-columns: 1fr;
  }

  .gift-tier-heading p {
    max-width: none;
  }

  .rsvp-photo {
    min-height: 300px;
  }

  .pix-result {
    width: calc(100% - 20px);
    padding: 18px;
  }

  .pix-qr-frame {
    min-height: 236px;
  }

  footer {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Visual refresh: a single typographic voice and lighter wedding editorial rhythm. */
html,
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
.button,
.gift-select {
  font-family: var(--font-ui);
  letter-spacing: 0;
}

body {
  background: var(--paper);
}

.site-header {
  min-height: 68px;
  padding-block: 10px;
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.93);
  box-shadow: 0 8px 28px rgba(41, 49, 45, 0.04);
}

.brand {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--sage-dark);
  box-shadow: 0 6px 18px rgba(52, 70, 59, 0.16);
}

.site-nav a {
  font-size: 0.95rem;
}

.admin-nav-link {
  color: var(--clay) !important;
}

.hero {
  min-height: min(79svh, 820px);
  background-position: center 38%;
}

.hero::before {
  background: linear-gradient(90deg, rgba(26, 37, 31, 0.68), rgba(26, 37, 31, 0.18) 66%, rgba(26, 37, 31, 0.08));
}

.hero-content {
  padding-block: 0;
}

.hero h1 {
  max-width: 11ch;
  font-weight: 400;
  line-height: 0.98;
}

.hero-date,
.section-kicker,
.gift-tier-kicker {
  letter-spacing: 0;
}

.intro-band,
.location-section,
.weather-section,
.rsvp-section,
.menu-section,
.gift-section,
.photo-section {
  padding-block: clamp(58px, 8vw, 92px);
}

.intro-band,
.weather-section,
.photo-section {
  background: var(--cream);
}

.section-heading {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-heading h2,
.location-copy h2,
.rsvp-form h2,
.intro-band h2 {
  color: var(--sage-dark);
  font-weight: 400;
  line-height: 1.08;
}

.section-kicker {
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.essential-list article,
.timeline article,
.info-grid article,
.lodging-card,
.weather-card,
.guest-card-grid article,
.dress-code-card,
.photo-card {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(41, 49, 45, 0.05);
}

.lodging-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.lodging-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sage);
}

.lodging-card:nth-child(2)::before {
  background: var(--clay);
}

.event-venue-callout {
  border-color: rgba(167, 95, 89, 0.25);
  background: var(--clay-soft);
  box-shadow: none;
}

.rsvp-section {
  background: linear-gradient(90deg, var(--paper) 0 58%, var(--sage-soft) 58% 100%);
}

.rsvp-form {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.98);
  box-shadow: var(--shadow);
}

.rsvp-form label,
.pix-form label,
.pix-copy-panel label {
  color: var(--sage-dark);
  font-weight: 700;
}

.rsvp-form input,
.rsvp-form select,
.pix-form input,
.pix-form select {
  border-color: var(--line);
  background: #fff;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.pix-form input:focus,
.pix-form select:focus {
  border-color: var(--sage);
  outline: 3px solid rgba(119, 135, 121, 0.16);
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.gift-section {
  background: var(--paper);
}

.gift-tier {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.gift-product {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 10px 32px rgba(41, 49, 45, 0.06);
}

.gift-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(41, 49, 45, 0.11);
}

.gift-product-media {
  aspect-ratio: 16 / 10;
}

.gift-product-body h3,
.gift-product-footer strong {
  color: var(--sage-dark);
}

.gift-select,
.button.primary {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  box-shadow: none;
}

.gift-select:hover,
.button.primary:hover {
  border-color: var(--clay);
  background: var(--clay);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 31, 27, 0.58);
  backdrop-filter: blur(5px);
}

.modal-window {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 210;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(20, 27, 23, 0.3);
  animation: modal-enter 180ms ease-out;
}

.gift-checkout,
.pix-result {
  padding: clamp(20px, 4vw, 34px);
}

.gift-checkout {
  justify-self: auto;
}

.pix-result {
  width: min(720px, calc(100% - 32px));
}

.pix-result-backdrop {
  z-index: 200;
}

.pix-sheet-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pix-close {
  width: 42px;
  height: 42px;
  border-color: var(--line);
  background: var(--cream);
}

.checkout-gift-summary {
  border-color: var(--line);
  background: var(--sage-soft);
}

#pix-payload,
#admin-pix-payload {
  font-family: var(--font-ui);
}

@keyframes modal-enter {
  from { opacity: 0; transform: translate(-50%, -47%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - 116px);
    align-content: center;
    gap: 22px;
    padding-block: 34px;
  }

  .hero::before {
    background: linear-gradient(rgba(26, 37, 31, 0.22), rgba(26, 37, 31, 0.72));
  }

  .rsvp-section {
    background: var(--sage-soft);
  }

  .modal-window,
  .pix-result {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }

  .gift-product-media {
    aspect-ratio: 16 / 9;
  }

  .countdown {
    width: 150px;
    min-height: 104px;
    padding: 16px;
  }

  .countdown span {
    font-size: 2.75rem;
  }
}

/* Design refresh v2: fundo marfim quente, alternância de tons entre seções e detalhes editoriais. */
body {
  background:
    radial-gradient(1100px 500px at 85% -140px, rgba(176, 141, 79, 0.07), transparent 70%),
    radial-gradient(900px 480px at -140px 34%, rgba(117, 133, 111, 0.08), transparent 70%),
    var(--paper);
}

.site-header {
  border-bottom: 1px solid rgba(51, 69, 47, 0.12);
  background: rgba(246, 241, 230, 0.92);
}

.brand {
  border: 1px solid rgba(176, 141, 79, 0.45);
  background: var(--sage-deep);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(117, 133, 111, 0.14);
}

/* Cartões saem do branco puro para um marfim de papel. */
.essential-list article,
.timeline article,
.info-grid div,
.weather-day,
.rsvp-form,
.guest-card-grid article,
.whatsapp-card,
.gift-checkout,
.pix-result,
.photo-card,
.dress-code-card,
.lodging-card,
.gift-product,
.menu-button,
.site-nav {
  background-color: var(--card);
}

.button.secondary,
.button.outline,
.icon-button,
.pix-close,
.pix-qr-frame {
  background-color: var(--card);
}

input,
select,
textarea {
  border-color: rgba(51, 69, 47, 0.2);
  background: #fffdf7;
}

/* Alternância de fundo entre as seções para dar ritmo. */
.intro-band,
.weather-section,
.photo-section {
  background: linear-gradient(180deg, var(--cream), color-mix(in srgb, var(--cream) 55%, var(--paper)));
}

.schedule-section,
.menu-section {
  background: transparent;
}

.menu-section {
  width: 100%;
  background:
    radial-gradient(720px 320px at 12% 0%, rgba(165, 96, 79, 0.06), transparent 70%),
    var(--sage-soft);
}

.gifts-section {
  width: 100%;
  padding-inline: clamp(16px, 4vw, 46px);
  background:
    linear-gradient(180deg, rgba(176, 141, 79, 0.05), transparent 240px),
    var(--paper);
}

.gifts-section > .section-heading,
.gifts-section > .gift-layout {
  width: min(var(--section-width), 100%);
  margin-inline: auto;
}

.menu-section > .section-heading,
.menu-section > .guest-info-layout {
  width: min(var(--section-width), calc(100% - 32px));
  margin-inline: auto;
}

/* Kicker com filete decorativo. */
.section-kicker,
.gift-tier-kicker,
.lodging-label,
.event-venue-label {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.14em;
}

.section-kicker::before,
.gift-tier-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
}

.eyebrow {
  letter-spacing: 0.14em;
}

/* Títulos com respiro e peso editorial. */
.intro-band h2,
.section-heading h2,
.location-copy h2,
.rsvp-form h2 {
  color: var(--sage-deep);
}

.section-heading p:last-child {
  font-size: 1.02rem;
}

/* Hero: véu mais quente e profundo. */
.hero {
  background:
    linear-gradient(100deg, rgba(24, 36, 22, 0.82), rgba(24, 36, 22, 0.34) 58%, rgba(24, 36, 22, 0.12)),
    url("assets/couple/beach-embrace-framed.jpeg") center 38%/cover;
}

.hero .eyebrow {
  color: #e8cdb4;
}

.countdown {
  border: 1px solid rgba(232, 205, 180, 0.4);
  background: rgba(24, 36, 22, 0.32);
}

/* Cronograma: numeração e filete dourado. */
.timeline article::before {
  background: linear-gradient(90deg, var(--gold), rgba(176, 141, 79, 0.25));
}

.timeline span {
  color: var(--gold);
}

.guest-card-grid span {
  color: var(--gold);
}

/* Cartões de presente: moldura quente e preço em destaque. */
.gift-product {
  border-color: rgba(51, 69, 47, 0.14);
}

.gift-product:hover {
  border-color: rgba(176, 141, 79, 0.5);
}

.gift-product-media .gift-tag {
  background: rgba(38, 52, 31, 0.8);
}

.gift-product-footer strong {
  color: var(--clay);
}

.gift-tier {
  border-top-color: rgba(176, 141, 79, 0.3);
}

.gift-tier-heading h3 {
  color: var(--sage-deep);
}

/* Clima com tom de céu suave sobre o creme. */
.weather-card {
  border-color: rgba(51, 69, 47, 0.14);
  background:
    linear-gradient(135deg, rgba(213, 228, 224, 0.65), rgba(253, 250, 243, 0.9)),
    var(--card);
}

.weather-main {
  background: rgba(253, 250, 243, 0.78);
}

/* RSVP: faixa verde mais presente. */
.rsvp-section {
  background: linear-gradient(90deg, transparent 0 55%, var(--sage-soft) 55% 100%);
}

.event-venue-callout {
  border-left-color: var(--gold);
  background: var(--clay-soft);
}

.lodging-card::before {
  background: var(--gold);
}

.lodging-card:nth-child(2)::before {
  background: var(--sage);
}

/* Rodapé como faixa verde escura de encerramento. */
footer {
  width: 100%;
  margin-top: 0;
  padding: 40px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(176, 141, 79, 0.35);
  background: var(--sage-deep);
}

footer p {
  color: #f2ead9;
}

footer span {
  color: rgba(242, 234, 217, 0.75);
}

/* Modais no mesmo papel do site. */
.modal-window {
  border: 1px solid rgba(176, 141, 79, 0.28);
  background: var(--card);
}

.checkout-gift-summary {
  background: var(--sage-soft);
}

.pix-qr-frame {
  box-shadow: inset 0 0 0 10px var(--card);
}

@media (max-width: 760px) {
  .rsvp-section {
    background: var(--sage-soft);
  }

  .menu-section,
  .gifts-section {
    width: 100%;
  }

  footer {
    padding: 32px 18px;
    text-align: center;
  }
}

/* Camada botânica: ramos e flores em SVG embutido, com sombra e leve flutuação para profundidade. */
:root {
  --svg-branch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 330'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23879878'/%3E%3Cstop offset='1' stop-color='%23546851'/%3E%3C/linearGradient%3E%3Cpath id='f' d='M0 0 Q16 -13 36 -2 Q17 11 0 0' fill='url(%23g)'/%3E%3C/defs%3E%3Cpath d='M112 322 C104 240 102 150 120 24' fill='none' stroke='%236b7c62' stroke-width='4' stroke-linecap='round'/%3E%3Cuse href='%23f' transform='translate(108 296) rotate(210)'/%3E%3Cuse href='%23f' transform='translate(109 270) rotate(-28)'/%3E%3Cuse href='%23f' transform='translate(106 244) rotate(207)'/%3E%3Cuse href='%23f' transform='translate(108 218) rotate(-30)'/%3E%3Cuse href='%23f' transform='translate(105 192) rotate(212)'/%3E%3Cuse href='%23f' transform='translate(108 166) rotate(-32)'/%3E%3Cuse href='%23f' transform='translate(106 140) rotate(208)'/%3E%3Cuse href='%23f' transform='translate(110 114) rotate(-34)'/%3E%3Cuse href='%23f' transform='translate(109 88) rotate(214)'/%3E%3Cuse href='%23f' transform='translate(114 62) rotate(-38)'/%3E%3Cuse href='%23f' transform='translate(118 36) rotate(-80)'/%3E%3Ccircle cx='128' cy='52' r='4' fill='%23b08d4f'/%3E%3Ccircle cx='98' cy='122' r='3.5' fill='%23b08d4f'/%3E%3Ccircle cx='124' cy='152' r='3' fill='%23b08d4f'/%3E%3C/svg%3E");
  --svg-sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 170'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e6b1a0'/%3E%3Cstop offset='1' stop-color='%23bd7460'/%3E%3C/linearGradient%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23879878'/%3E%3Cstop offset='1' stop-color='%23546851'/%3E%3C/linearGradient%3E%3Cpath id='t' d='M0 -6 Q9 -20 0 -36 Q-9 -20 0 -6' fill='url(%23p)'/%3E%3Cpath id='l' d='M0 0 Q14 -10 30 -2 Q14 8 0 0' fill='url(%23g)'/%3E%3Cg id='fl'%3E%3Cuse href='%23t'/%3E%3Cuse href='%23t' transform='rotate(72)'/%3E%3Cuse href='%23t' transform='rotate(144)'/%3E%3Cuse href='%23t' transform='rotate(216)'/%3E%3Cuse href='%23t' transform='rotate(288)'/%3E%3Ccircle r='7' fill='%23b08d4f'/%3E%3C/g%3E%3C/defs%3E%3Cpath d='M85 162 C80 122 68 100 54 68' fill='none' stroke='%236b7c62' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M85 162 C92 122 102 96 114 60' fill='none' stroke='%236b7c62' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M85 150 C86 116 86 92 86 44' fill='none' stroke='%236b7c62' stroke-width='3' stroke-linecap='round'/%3E%3Cuse href='%23l' transform='translate(78 128) rotate(200)'/%3E%3Cuse href='%23l' transform='translate(96 120) rotate(-20)'/%3E%3Cuse href='%23fl' transform='translate(54 62)'/%3E%3Cuse href='%23fl' transform='translate(116 54) scale(0.82)'/%3E%3Cuse href='%23fl' transform='translate(86 34) scale(0.6)'/%3E%3C/svg%3E");
}

.intro-band,
.rsvp-form,
.section-heading,
footer {
  position: relative;
}

.intro-band,
.rsvp-form,
footer {
  overflow: hidden;
}

.intro-band::after,
.section-heading::after,
.rsvp-form::after,
footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: center / contain no-repeat;
}

.intro-band::after {
  right: -34px;
  bottom: -52px;
  width: 230px;
  height: 330px;
  background-image: var(--svg-branch);
  opacity: 0.5;
  transform: rotate(18deg);
  filter: drop-shadow(0 18px 14px rgba(38, 52, 31, 0.32));
}

.section-heading::after {
  display: none;
  top: -12px;
  right: 4px;
  width: 128px;
  height: 128px;
  background-image: var(--svg-sprig);
  opacity: 0.85;
  transform: rotate(8deg);
  filter: drop-shadow(0 12px 10px rgba(38, 52, 31, 0.24));
}

.rsvp-form::after {
  top: 8px;
  right: 8px;
  width: 104px;
  height: 104px;
  background-image: var(--svg-sprig);
  opacity: 0.5;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 8px rgba(38, 52, 31, 0.2));
}

footer::after {
  top: -46px;
  right: 26px;
  width: 140px;
  height: 220px;
  background-image: var(--svg-branch);
  opacity: 0.3;
  transform: rotate(196deg);
  filter: saturate(0.25) brightness(2.1);
}

.intro-band > div,
.rsvp-form > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .section-heading::after {
    display: block;
  }
}

@media (max-width: 760px) {
  .intro-band::after {
    width: 150px;
    height: 215px;
    right: -30px;
    bottom: -34px;
    opacity: 0.35;
  }

  .rsvp-form::after {
    width: 78px;
    height: 78px;
    opacity: 0.35;
  }
}

/* Referência de floresta: silhueta de copas da Mata Atlântica como divisor de seções. */
:root {
  --svg-canopy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 V78 C20 46 45 44 62 66 C78 40 102 36 122 60 C140 38 165 42 182 64 C200 46 222 52 240 78 V120 Z' fill='%23557052' opacity='0.5'/%3E%3Cpath d='M0 120 V92 C18 66 40 62 58 80 C74 56 98 54 118 76 C138 58 162 60 180 80 C200 64 224 70 240 92 V120 Z' fill='%2326341f'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(44px, 7vw, 84px);
  pointer-events: none;
  background: var(--svg-canopy) left bottom / 240px 100% repeat-x;
}

.photo-section {
  position: relative;
}

.photo-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(40px, 6vw, 72px);
  pointer-events: none;
  background: var(--svg-canopy) left bottom / 240px 100% repeat-x;
}

/* Atmosfera da floresta: folhas ao vento e vagalumes no hero, revelação suave das seções. */
:root {
  --svg-drift-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26'%3E%3Cdefs%3E%3ClinearGradient id='d' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2398a986'/%3E%3Cstop offset='1' stop-color='%23546851'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 13 Q20 -2 42 8 Q22 24 2 13' fill='url(%23d)'/%3E%3C/svg%3E");
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-content,
.hero .countdown {
  position: relative;
  z-index: 1;
}

.drift-leaf {
  position: absolute;
  top: -36px;
  width: 26px;
  height: 16px;
  background: var(--svg-drift-leaf) center / contain no-repeat;
  opacity: 0;
  animation: leaf-drift 13s linear infinite;
}

.drift-leaf:nth-child(1) { left: 8%; animation-delay: -2s; }
.drift-leaf:nth-child(2) { left: 22%; width: 20px; height: 12px; animation-duration: 16s; animation-delay: -9s; }
.drift-leaf:nth-child(3) { left: 37%; animation-duration: 11s; animation-delay: -5s; opacity: 0; }
.drift-leaf:nth-child(4) { left: 52%; width: 32px; height: 19px; animation-duration: 18s; animation-delay: -13s; }
.drift-leaf:nth-child(5) { left: 66%; width: 18px; height: 11px; animation-duration: 15s; animation-delay: -7s; filter: blur(1px); }
.drift-leaf:nth-child(6) { left: 79%; animation-duration: 12s; animation-delay: -1s; }
.drift-leaf:nth-child(7) { left: 91%; width: 22px; height: 13px; animation-duration: 17s; animation-delay: -11s; filter: blur(1px); }

@keyframes leaf-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }

  6% {
    opacity: 0.85;
  }

  30% {
    transform: translate3d(3vw, 28svh, 0) rotate(120deg);
  }

  55% {
    transform: translate3d(-2vw, 55svh, 0) rotate(230deg);
  }

  82% {
    opacity: 0.8;
  }

  100% {
    transform: translate3d(4vw, 104svh, 0) rotate(360deg);
    opacity: 0;
  }
}

.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9a8 0%, rgba(255, 214, 120, 0.85) 45%, rgba(255, 214, 120, 0) 72%);
  box-shadow: 0 0 12px 3px rgba(255, 220, 130, 0.5);
  opacity: 0;
  animation: firefly-glow 4s ease-in-out infinite alternate;
}

.firefly:nth-child(8) { left: 12%; top: 68%; animation-delay: -1s; }
.firefly:nth-child(9) { left: 31%; top: 78%; animation-delay: -2.4s; animation-duration: 5s; }
.firefly:nth-child(10) { left: 55%; top: 63%; animation-delay: -0.6s; animation-duration: 3.4s; }
.firefly:nth-child(11) { left: 73%; top: 74%; animation-delay: -3.2s; }
.firefly:nth-child(12) { left: 89%; top: 58%; animation-delay: -1.8s; animation-duration: 4.6s; }

@keyframes firefly-glow {
  0% {
    transform: translate3d(0, 0, 0) scale(0.75);
    opacity: 0.05;
  }

  50% {
    opacity: 0.9;
  }

  100% {
    transform: translate3d(9px, -14px, 0) scale(1.1);
    opacity: 0.2;
  }
}

/* Revelação suave das seções ao rolar (somente navegadores com scroll-driven animations). */
@supports (animation-timeline: view()) {
  .timeline article,
  .lodging-card,
  .guest-card-grid article,
  .gift-product,
  .photo-card,
  .memory-strip figure {
    animation: rise-in 1ms linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere {
    display: none;
  }

  .timeline article,
  .lodging-card,
  .guest-card-grid article,
  .gift-product,
  .photo-card,
  .memory-strip figure {
    animation: none;
  }
}

/* Folhagem 3D no menu superior: ramos pendurados nos cantos do cabeçalho. */
:root {
  --svg-hanging-leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2390a180'/%3E%3Cstop offset='1' stop-color='%23546851'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23a9b895'/%3E%3Cstop offset='1' stop-color='%236b7c62'/%3E%3C/linearGradient%3E%3Cpath id='fa' d='M0 0 Q20 -15 44 -2 Q21 13 0 0' fill='url(%23a)'/%3E%3Cpath id='fb' d='M0 0 Q16 -12 36 -2 Q17 10 0 0' fill='url(%23b)'/%3E%3C/defs%3E%3Cpath d='M78 0 C72 22 60 42 44 58 M78 0 C80 26 84 48 96 68 M78 0 C70 14 58 26 40 34' fill='none' stroke='%236b7c62' stroke-width='3' stroke-linecap='round'/%3E%3Cuse href='%23fa' transform='translate(44 58) rotate(118)'/%3E%3Cuse href='%23fb' transform='translate(40 34) rotate(152)'/%3E%3Cuse href='%23fa' transform='translate(96 68) rotate(62)'/%3E%3Cuse href='%23fb' transform='translate(84 48) rotate(84)'/%3E%3Cuse href='%23fb' transform='translate(58 26) rotate(136)'/%3E%3Ccircle cx='52' cy='50' r='4' fill='%23b08d4f'/%3E%3Ccircle cx='90' cy='58' r='3.2' fill='%23b08d4f'/%3E%3C/svg%3E");
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: -4px;
  z-index: 0;
  pointer-events: none;
  background: var(--svg-hanging-leaves) center top / contain no-repeat;
  filter: drop-shadow(0 8px 7px rgba(38, 52, 31, 0.28));
}

.site-header::before {
  left: -14px;
  width: 108px;
  height: 82px;
  transform: rotate(-8deg);
}

.site-header::after {
  right: -12px;
  width: 84px;
  height: 64px;
  transform: scaleX(-1) rotate(-6deg);
  opacity: 0.9;
}

.brand,
.menu-button {
  position: relative;
  z-index: 1;
}

.site-nav {
  z-index: 1;
}

@media (min-width: 1061px) {
  .site-nav {
    position: relative;
  }
}

@media (max-width: 1060px) {
  .site-header::after {
    display: none;
  }

  .site-header::before {
    left: -16px;
    width: 88px;
    height: 66px;
  }
}

/* Refinamento v3: tipografia Helvetica, menu discreto, contagem regressiva e ajustes finais. */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.hero h1 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.button,
.gift-select,
.icon-button,
.whatsapp-cta {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand {
  font-weight: 600;
}

/* Menu: links em caixa alta discreta com sublinhado animado. */
.site-nav {
  gap: 2px;
}

.site-nav a {
  position: relative;
  padding: 0 13px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 7px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--sage-deep);
  background: transparent;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Área dos noivos: sem destaque, apenas um link apagado. */
.admin-nav-link {
  color: var(--muted) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-weight: 500;
  opacity: 0.75;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  opacity: 1;
}

.admin-nav-link::after {
  display: none;
}

/* Contagem regressiva mais elegante. */
.countdown {
  width: 216px;
  min-height: auto;
  gap: 0;
  padding: 26px 24px 22px;
  border: 1px solid rgba(232, 205, 180, 0.45);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(38, 52, 31, 0.6), rgba(24, 36, 22, 0.38));
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px rgba(10, 16, 10, 0.35);
}

.countdown::before {
  content: "Faltam";
  display: block;
  margin-bottom: 6px;
  color: rgba(232, 205, 180, 0.95);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.countdown span {
  font-size: 4.4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.countdown small {
  max-width: none;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(176, 141, 79, 0.55);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Grade de fotos sem o card dos padrinhos: três colunas. */
.photo-grid {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(0, 1.1fr);
}

@media (max-width: 1060px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    width: 172px;
    padding: 18px 16px 16px;
  }

  .countdown span {
    font-size: 3rem;
  }

  .site-nav a {
    min-height: 44px;
  }
}

