:root {
  --bg: #fbf6ef;
  --paper: #fffdf8;
  --paper-soft: #f8efe6;
  --ink: #322725;
  --muted: #766864;
  --line: rgba(97, 73, 66, 0.16);
  --sage: #6f7f62;
  --sage-soft: #e8ecdf;
  --wine: #7f2838;
  --rose: #c57677;
  --ochre: #c58b38;
  --shadow: 0 24px 70px rgba(64, 48, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(251, 246, 239, 0.92), rgba(251, 246, 239, 0.92)),
    url("assets/tulipas-fundo.png") center top / 1200px auto repeat-y,
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(127, 40, 56, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(127, 40, 56, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 20px auto 48px;
}

.hero,
.section {
  position: relative;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  overflow: hidden;
  min-height: 680px;
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.hero-photo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(
      90deg,
      rgba(34, 29, 27, 0.74),
      rgba(34, 29, 27, 0.2) 54%,
      rgba(34, 29, 27, 0.48)
    ),
    linear-gradient(0deg, rgba(34, 29, 27, 0.55), transparent 52%),
    url("assets/casal-barco-hero.jpg") center 42% / cover no-repeat;
}

.hero-photo::after,
.split-hero::after,
.section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 190px;
  height: 190px;
  right: -48px;
  bottom: -56px;
  opacity: 0.72;
  background:
    radial-gradient(
      circle at 50% 24%,
      rgba(255, 255, 255, 0.85) 0 14px,
      transparent 15px
    ),
    radial-gradient(
      circle at 34% 45%,
      rgba(197, 139, 56, 0.64) 0 18px,
      transparent 19px
    ),
    radial-gradient(
      circle at 61% 54%,
      rgba(127, 40, 56, 0.55) 0 16px,
      transparent 17px
    ),
    radial-gradient(
      ellipse at 42% 72%,
      rgba(111, 127, 98, 0.54) 0 28px,
      transparent 29px
    );
  filter: blur(0.2px);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 0;
}

.nav-on-photo {
  color: #fffdf8;
}

.brand,
.nav a,
.button,
.gift-tag {
  text-decoration: none;
}

.brand {
  display: inline-grid;
  width: 58px;
  height: 58px;
  padding: 4px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--wine);
  background: rgba(255, 253, 248, 0.86);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.nav-on-photo .brand {
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a:not(.brand) {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(97, 73, 66, 0.1);
}

.nav-on-photo a:not(.brand) {
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.hero-photo-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 0 42px 54px;
  color: #fffdf8;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--wine);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-photo .eyebrow {
  color: #f8d8bb;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
  font-weight: 600;
}

h1 {
  color: inherit;
  font-size: clamp(4.2rem, 12vw, 8.4rem);
  text-wrap: balance;
}

h2 {
  color: #4a3430;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  text-wrap: balance;
}

h3 {
  color: #4a3430;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

p {
  margin: 0;
  line-height: 1.75;
}

.hero-photo-copy p {
  max-width: 54ch;
  margin-top: 16px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 1.1rem;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffdf8;
  background: linear-gradient(135deg, var(--wine), #a0444d);
  box-shadow: 0 16px 34px rgba(127, 40, 56, 0.24);
}

.button-secondary {
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px);
}

.button-full {
  width: 100%;
}

.section {
  margin-top: 22px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(12px);
}

.section::after {
  width: 120px;
  height: 120px;
  right: 18px;
  top: 18px;
  bottom: auto;
  opacity: 0.22;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.section-support,
.hero-text {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.03rem;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 34px;
  align-items: end;
  background: linear-gradient(135deg, #fffdf8, #f4eadf);
}

.intro-band p {
  color: var(--muted);
  font-size: 1.06rem;
}

.moments-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
}

.countdown-card,
.details-panel,
.gift-card,
.gift-photo,
.gift-choice,
.checkout-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.82);
}

.countdown-card {
  padding: 26px;
  background:
    linear-gradient(rgba(50, 39, 37, 0.64), rgba(50, 39, 37, 0.42)),
    url("assets/close-casal.jpg") center / cover no-repeat;
  color: #fffdf8;
}

.countdown-title,
.gateway-label {
  margin-bottom: 10px;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 120px;
}

.countdown div {
  padding: 16px 10px;
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 253, 248, 0.16);
  border: 1px solid rgba(255, 253, 248, 0.24);
  backdrop-filter: blur(12px);
}

.countdown strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.countdown span {
  font-size: 0.86rem;
  color: rgba(255, 253, 248, 0.82);
}

.details-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.details-panel article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 8px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.94);
}

.details-panel article > span {
  grid-row: span 3;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--wine);
  background: var(--sage-soft);
  font-weight: 800;
}

.details-panel p {
  color: var(--muted);
}

.gallery-heading {
  max-width: 780px;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-auto-rows: 230px;
  gap: 14px;
}

.photo-tile,
.gift-photo,
.story-memory-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
}

.photo-tile img,
.gift-photo img,
.story-memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-large {
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 2;
}

.gift-route-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--sage-soft);
  border: 1px solid rgba(111, 127, 98, 0.18);
}

.gift-route-callout p {
  max-width: 62ch;
  color: #54604a;
}

.gift-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.gift-card {
  padding: 24px;
}

.gift-photo {
  min-height: 520px;
}

.gift-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gift-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(127, 40, 56, 0.1);
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gift-card h3,
.details-panel h3 {
  margin-bottom: 10px;
}

.gift-card p {
  color: var(--muted);
}

.pix-box,
.qr-placeholder {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fffdf8;
  border: 1px solid var(--line);
}

.pix-box label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.pix-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.pix-inline input,
.gift-filter {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

#copy-feedback,
#gift-copy-feedback {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  color: var(--wine);
}

.qr-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  gap: 8px;
  text-align: center;
  border-style: dashed;
}

.qr-placeholder img {
  width: min(210px, 100%);
  height: auto;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.qr-placeholder span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  color: var(--wine);
}

.split-hero {
  min-height: auto;
  padding-bottom: 30px;
  background: linear-gradient(135deg, #fffdf8, #f3e6dc);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
  padding: 42px 34px 0;

  .hero-title {
    font-size: 5rem;
    font-weight: 900;
  }
}

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

.hero-intro {
  margin-bottom: 12px;
  color: var(--sage);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-style: italic;
}

.hero-copy h1 {
  color: #3f302c;
  font-size: clamp(3.8rem, 9vw, 6.8rem);
}

.story-memory-card {
  min-height: 430px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(64, 48, 42, 0.12);
}

.story-timeline {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 8px 0;
}

.story-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(127, 40, 56, 0.32),
    rgba(111, 127, 98, 0.32),
    transparent
  );
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  align-items: center;
  gap: 18px;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-marker,
.timeline-item:nth-child(odd) .timeline-marker {
  grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: #fffdf8;
  border: 1px solid rgba(127, 40, 56, 0.24);
  box-shadow: 0 18px 34px rgba(64, 48, 42, 0.12);
}

.timeline-marker span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--wine);
  background: rgba(127, 40, 56, 0.1);
  font-size: 0.86rem;
  font-weight: 900;
}

.timeline-content {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
}

.timeline-date {
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-bottom: 12px;
}

.timeline-content p:last-child {
  color: var(--muted);
}

.gift-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.gift-filter-group {
  display: grid;
  gap: 8px;
}

.gift-filter-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.gift-filter {
  width: auto;
  min-width: 220px;
}

.gift-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
}

.gift-price-fields .gift-filter {
  min-width: 0;
}

.gift-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: #fffdf8;
  text-align: center;
}

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

.gift-choice {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  align-items: stretch;
}

.gift-choice-selected {
  border-color: rgba(127, 40, 56, 0.34);
  box-shadow: 0 20px 42px rgba(127, 40, 56, 0.14);
}

.gift-choice-icon {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: var(--wine);
  background: color-mix(in srgb, var(--sage-soft) 64%, #fff 36%);
  font-size: 1.55rem;
  font-weight: 900;
}

.gift-choice-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.gift-choice-top,
.gift-choice-footer,
.checkout-header,
.checkout-methods {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gift-choice-body h3 {
  margin: 16px 0 12px;
}

.gift-choice-body p,
.gift-choice-footer span,
.checkout-note,
.checkout-description,
.checkout-empty {
  color: var(--muted);
}

.gift-choice-footer {
  align-items: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

.payment-panel {
  margin-top: 22px;
}

.checkout-card {
  padding: 26px;
}

.checkout-header {
  flex-wrap: wrap;
}

.checkout-price {
  margin: 18px 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--wine);
}

.checkout-methods {
  align-items: stretch;
}

.checkout-method {
  flex: 1;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fffdf8;
  border: 1px solid var(--line);
}

.checkout-note {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .hero,
  .hero-photo {
    min-height: 640px;
  }

  .intro-band,
  .moments-layout,
  .gift-grid,
  .hero-grid,
  .gift-listing,
  .checkout-methods {
    grid-template-columns: 1fr;
  }

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

  .tile-large,
  .tile-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .story-timeline::before {
    left: 36px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: start;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    grid-column: 2;
  }

  .timeline-item:nth-child(even) .timeline-marker,
  .timeline-item:nth-child(odd) .timeline-marker {
    grid-column: 1;
  }

  .gift-route-callout,
  .gift-choice-top,
  .checkout-header,
  .checkout-methods {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    margin: 10px auto 28px;
  }

  .hero,
  .section {
    border-radius: 22px;
  }

  .hero-photo {
    min-height: 660px;
    background-position: 54% center;
  }

  .nav {
    padding: 16px 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 8px;
  }

  .nav a:not(.brand) {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .hero-photo-copy {
    padding: 0 20px 32px;
  }

  h1 {
    font-size: clamp(3.6rem, 19vw, 5.2rem);
  }

  .section {
    padding: 24px 18px;
  }

  .hero-grid {
    padding: 32px 18px 0;
  }

  .hero-actions,
  .pix-inline,
  .gift-toolbar,
  .gift-choice {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .gift-filter,
  .pix-inline input {
    width: 100%;
  }

  .photo-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 360px;
  }

  .countdown {
    margin-top: 160px;
  }

  .details-panel article {
    grid-template-columns: 1fr;
  }

  .gift-photo {
    min-height: 360px;
  }
}
