@font-face {
  font-family: 'TAN Pearl';
  src: url('../fonts/TANPearl.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Amsterdam Two';
  src: url('../fonts/AmsterdamTwo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream-a: #fdf7ec;
  --cream-b: #fdfcf8;
  --white: #ffffff;
  --green: #4f7a3a;
  --olive: #c0d458;
  --vermelho: #e2554d;

  --font-display: 'TAN Pearl', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-script: 'Amsterdam Two', cursive;

  --content-width: 640px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream-a);
}

body {
  margin: 0;
  background: var(--cream-a);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
}

body.piupavel-cursor,
body.piupavel-cursor * {
  cursor: url('../img/cursor.png') 26 36, auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: normal;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.eyebrow {
  color: var(--vermelho);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.hero .eyebrow {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transform: translateY(-1rem)
}

.amp {
  color: var(--olive);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
}

.btn-outline {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

.btn-solid {
  border: none;
  background: var(--green);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
}

.band {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.75rem;
}

/* Site nav */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  padding: 0.7rem 1rem;
  background: rgba(253, 247, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.site-nav.nav-visible {
  transform: translateY(0);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--vermelho);
}

.site-nav .nav-rsvp {
  font-weight: 600;
}

#onde-sera,
#presentes,
#faq,
#confirmar {
  scroll-margin-top: 4.5rem;
}

/* Hero */

.hero {
  position: relative;
  background: var(--cream-a);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2rem, 5vw, 4rem) 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-illustration {
  position: absolute;
  top: clamp(0.25rem, 1.8vw, 1.5rem);
  left: 0;
  width: clamp(100px, 34vw, 430px);
  height: auto;
  z-index: 1;
}

.hero-illustration-birds {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(240px, 34vw, 480px);
  height: auto;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
  text-align: center;
}

.hero h1 {
  font-size: clamp(5rem, 7vw, 10rem);
  line-height: 0.82;
}

.hero h1 .name,
.hero h1 .amp {
  display: block;
}

.hero h1 .amp {
  font-family: var(--font-script);
  font-size: 0.75em;
  line-height: 0.8;
  margin: -0.3em 0 -0.2em;
}

.hero .date {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.hero .time {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 2vw, 1.35rem);
  margin-top: 0.25rem;
}

/* Intro */

.intro {
  background: var(--cream-b);
  text-align: center;
}

.countdown {
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

.countdown-inner {
  max-width: 620px;
  margin: 0 auto;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.countdown-item {
  border-top: 1px solid rgba(79, 122, 58, 0.28);
  border-bottom: 1px solid rgba(79, 122, 58, 0.28);
  padding: 1.05rem 0.3rem 0.65rem;
}

.countdown-item span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 2.8rem);
  line-height: 1;
}

.countdown-item small {
  display: block;
  margin-top: 0.3rem;
  color: var(--vermelho);
  font-size: clamp(0.72rem, 1.5vw, 0.9rem);
  text-transform: uppercase;
}

.countdown-message {
  margin-top: 1rem;
  font-size: 1.3rem;
}

/* Two-column illustration sections */

.split {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.split.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1 1 260px;
  min-width: 0;
}

.split-media {
  flex: 1 1 200px;
  min-width: 0;
}

.split-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.local {
  background: var(--cream-a);
  position: relative;
  overflow: hidden;
}

.local.band {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.local .split {
  align-items: center;
  max-width: 1220px;
}

.local .split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.local .split-media {
  aspect-ratio: auto;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 48%;
  z-index: 0;
}

.local .split-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center right;
  border-radius: 0;
}

.local .split-media .local-image-mobile {
  display: none;
}

.local h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.section-branch,
.section-flower,
.section-hibiscus {
  display: inline-block;
  height: auto;
  margin-left: 0.35rem;
  vertical-align: -0.2em;
}

.section-branch {
  width: 1.1em;
}

.section-flower {
  width: 1.25em;
}

.section-hibiscus {
  width: 1.1em;
}

.local h3 {
  font-size: clamp(1.3rem, 8vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.local address {
  font-style: normal;
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.local .btn-outline {
  align-self: flex-start;
  width: auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  line-height: 1;
}

.local .map-link {
  gap: 0.35rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.35rem 0.7rem;
}

.map-link svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.presentes {
  background: var(--cream-b);
}

.presentes h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.presentes p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

/* FAQ */

.faq {
  background: var(--cream-b);
}

.faq.band {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.faq-inner {
  max-width: min(1220px, calc(100vw - 3.5rem));
  margin: 0 auto;
}

.faq h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.faq .split {
  max-width: none;
  align-items: center;
  flex-direction: row-reverse;
  gap: 3rem;
}

.faq .split-text {
  flex: 1.35 1 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faq .split-media {
  flex: 1 1 320px;
  align-self: center;
  margin-top: 0;
  margin-left: calc((min(1220px, calc(100vw - 3.5rem)) - 100vw) / 2);
}

.faq .split-media img {
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  max-height: 430px;
  margin-right: auto;
  transform: scale(1.12);
  transform-origin: left center;
}

.faq .split-media .faq-image-mobile {
  display: none;
}

.faq-item + .faq-item {
  margin-top: 0.9rem;
}

.faq-item {
  border-bottom: 1px solid rgba(79, 122, 58, 0.28);
  padding-bottom: 0.9rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--green);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid var(--green);
  border-radius: 50%;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 1px;
  background: var(--green);
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-item[open] .faq-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  margin: 0.55rem 0 0;
  font-size: 1.14rem;
}

/* CTA */

.cta {
  background: var(--white);
  text-align: center;
}

.cta-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.cta h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* RSVP form */

.rsvp-inner {
  max-width: 480px;
  margin: 0 auto;
}

.footer-rsvp .rsvp-inner {
  margin-top: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 1rem;
}

.footer-rsvp label {
  font-size: 1.15rem;
  font-weight: 600;
}

input,
select {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--green);
  background: var(--white);
  border-radius: 8px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--green);
  font-variant-numeric: lining-nums;
}

.autocomplete {
  position: relative;
}

.autocomplete input {
  position: relative;
  z-index: 1;
  width: 100%;
}

.peek-icon {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 8px;
  z-index: 2;
  width: 72px;
  height: auto;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 700px), (pointer: coarse) {
  .peek-icon {
    display: block;
  }

  body.piupavel-cursor .peek-icon {
    opacity: 1;
    transform: translateY(0);
  }
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(79, 122, 58, 0.16);
  max-height: 14rem;
  overflow-y: auto;
  text-align: left;
}

.autocomplete-list li {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--green);
  cursor: pointer;
}

.autocomplete-list li:hover,
.autocomplete-list li:focus {
  background: var(--cream-a);
  color: var(--vermelho);
}

button[type='submit'] {
  align-self: center;
  margin-top: 0.5rem;
  border: none;
}

.footer-rsvp button[type='submit'] {
  padding: 0.65rem 1.45rem;
  font-size: 1rem;
}

button[type='submit']:disabled {
  opacity: 0.6;
  cursor: wait;
}

.feedback {
  min-height: 1.2em;
  text-align: center;
  font-size: 1rem;
}

.feedback.success {
  color: var(--green);
}

.feedback.error {
  color: #b3261e;
}

/* Gifts grid */

.gifts {
  background: var(--cream-a);
}

.gifts-inner {
  max-width: 980px;
  margin: 0 auto;
}

.gifts h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.gifts-copy {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  text-align: center;
  font-size: 1.08rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(79, 122, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(79, 122, 58, 0.16);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  background: var(--white);
}

.product-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.product-card .price {
  margin: 0 0 1rem;
  color: var(--vermelho);
  font-size: 0.95rem;
}

.payment-options {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
}

.payment-options .btn-icon {
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.42rem 0.25rem;
  font-size: 0.68rem;
  line-height: 1;
}

.btn-icon svg {
  width: 17px;
  height: 17px;
}

/* Pix QR modal */

.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pix-modal[hidden] {
  display: none;
}

.pix-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 61, 38, 0.55);
}

.pix-modal-box {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.pix-modal-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

#pix-modal-product {
  color: var(--vermelho);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.pix-modal-box img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 1.25rem;
  display: block;
  image-rendering: pixelated;
}

.pix-modal-box .btn {
  justify-content: center;
  width: 100%;
}

.pix-copy-area {
  display: none;
}

.pix-copy-area p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.pix-copy-area small {
  display: block;
  min-height: 1.2em;
  margin-top: 0.65rem;
  color: var(--green);
}

@media (max-width: 700px), (pointer: coarse) {
  .pix-modal-box img {
    display: none;
  }

  .pix-copy-area {
    display: block;
  }
}

.pix-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

footer.site-footer {
  position: relative;
  text-align: center;
  padding: 0;
  background: var(--white);
  font-size: 0.9rem;
  overflow: hidden;
}

.footer-rsvp {
  position: absolute;
  top: clamp(2rem, 5vw, 4rem);
  left: 50%;
  z-index: 2;
  width: min(560px, calc(100% - 2rem));
  padding: 0;
  background: transparent;
  transform: translateX(-50%);
}

.footer-rsvp h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.footer-mark {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 5vw, 3.2rem);
  z-index: 2;
  color: var(--green);
  font-family: var(--font-display);
  line-height: 1.35;
  transform: translateX(-50%);
}

.footer-mark img {
  display: block;
  width: clamp(72px, 8vw, 120px);
  height: auto;
  margin: 0 auto 0.45rem;
}

.footer-mark p {
  margin: 0;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
}

.footer-illustration {
  display: block;
  width: 100%;
  height: clamp(520px, 48vw, 680px);
  object-fit: cover;
  object-position: center bottom;
}

.footer-illustration-mobile {
  display: none;
}

/* Responsive breakpoints */

@media (max-width: 560px) {
  .site-nav {
    justify-content: center;
    gap: 1.1rem;
    padding: 0.7rem 1rem;
    overflow-x: auto;
  }

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

  .hero {
    text-align: center;
  }

  .faq h2 {
    font-size: 1.15rem;
  }

  .section-flower {
    width: 1em;
  }

  .hero-illustration {
    width: clamp(170px, 52vw, 230px);
  }

  .hero-illustration-birds {
    width: clamp(190px, 60vw, 270px);
  }

  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .countdown-item {
    padding: 0.8rem 0.15rem 0.55rem;
  }

  .countdown-item span {
    font-size: clamp(1.3rem, 10vw, 2rem);
  }

  .countdown-item small {
    font-size: clamp(0.58rem, 2.8vw, 0.72rem);
  }

  .countdown-message {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .local .split-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    width: 100%;
    padding: 2.6rem 1.5rem 0;
  }

  .local .split {
    display: block;
    position: relative;
    max-width: none;
    width: 100%;
  }

  .local .split-media {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .local .split-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
  }

  .local .split-media .local-image-desktop {
    display: none !important;
  }

  .local .split-media .local-image-mobile {
    display: block !important;
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .local.band {
    padding: 0;
  }

  .local .map-link {
    background: rgba(253, 247, 236, 0.72);
  }

  .local h3 {
    white-space: nowrap;
    font-size: clamp(1.25rem, 6vw, 1.55rem);
    line-height: 1.05;
  }

  .local h2 {
    font-size: 1.15rem;
  }

  .presentes .split-text,
  .faq .split-text {
    padding-right: 0.25rem;
  }

  .faq .split-text {
    flex: none;
    display: block;
  }

  .gifts h2 {
    white-space: nowrap;
    gap: 0.25rem;
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .section-hibiscus {
    width: 1em;
    transform: translateY(0.08em);
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .product-card {
    padding: 0.75rem;
  }

  .product-card .price {
    font-size: 1.05rem;
  }

  .payment-options {
    gap: 0.3rem;
  }

  .payment-options .btn-icon {
    padding: 0.32rem 0.15rem;
    font-size: 0.58rem;
    gap: 0.15rem;
  }

  .btn-icon svg {
    width: 14px;
    height: 14px;
  }

  .faq .split {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .faq h2 {
    display: block;
    line-height: 1.05;
  }

  .faq h2 .section-flower {
    margin-left: 0.15rem;
    vertical-align: -0.15em;
  }

  .faq-item summary {
    font-size: 1.05rem;
  }

  .faq-toggle {
    width: 1rem;
    height: 1rem;
  }

  .faq-toggle::before,
  .faq-toggle::after {
    width: 0.45rem;
  }

  .faq.band {
    padding-top: 2rem;
    padding-bottom: 0;
  }

  .faq .split-media {
    flex: none;
    margin-left: 0;
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    line-height: 0;
  }

  .faq .split-media img {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    border-radius: 0;
    transform: none;
  }

  .faq .split-media .faq-image-desktop {
    display: none;
  }

  .faq .split-media .faq-image-mobile {
    display: block;
  }

  .footer-rsvp {
    top: 1.5rem;
    width: calc(100% - 1.5rem);
    padding: 1rem;
  }

  .footer-rsvp h2 {
    font-size: 1.1rem;
  }

  footer.site-footer {
    height: clamp(570px, 150vw, 640px);
    min-height: 0;
  }

  .footer-illustration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }

  .footer-illustration-desktop {
    display: none;
  }

  .footer-illustration-mobile {
    display: block;
  }
}

@media (min-width: 561px) {
  .band {
    padding: 4.5rem 2.5rem;
  }

  :root {
    --content-width: 720px;
  }
}

@media (min-width: 900px) {
  :root {
    --content-width: 840px;
  }

  body {
    font-size: 20px;
  }
}

@media (min-width: 1400px) {
  :root {
    --content-width: 1000px;
  }

  body {
    font-size: 21px;
  }

  .local h3 {
    font-size: 2.6rem;
  }

  .gifts-inner {
    max-width: 1180px;
  }
}
