/* ==========================================================================
   Bruna & Ítalo — 05.12.2026
   Design system baseado na identidade visual do casamento
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Beau+Rivage&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --orange: #d65829;
  --rose: #f39291;
  --amber: #eaa64c;
  --olive: #969733;
  --forest: #475236;
  --blue: #89a3ad;
  --powder: #c7d3d9;
  --cream: #fdecd7;
  --cream-light: #fff8ef;
  --ink: #4a3826;

  --font-script: 'Beau Rivage', cursive;
  --font-sans: 'Montserrat', sans-serif;

  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--orange);
  margin: 0;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  opacity: 0.75;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--alt {
  background: var(--cream-light);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  margin-top: 8px;
}

.section-head p {
  margin-top: 16px;
  color: var(--ink);
  opacity: 0.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 999px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: var(--cream-light);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--cream-light);
  color: var(--orange);
}

.btn--ghost {
  background: transparent;
  color: var(--orange);
}

.btn--ghost:hover {
  background: var(--orange);
  color: var(--cream-light);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------- Ícones SVG ---------------------------- */

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
}

/* ---------------------------- Borda decorativa ---------------------- */

.scallop-border {
  position: relative;
}

.scallop-border::before,
.scallop-border::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-image: radial-gradient(circle at 7px 7px, var(--amber) 6px, transparent 6.5px);
  background-size: 14px 14px;
  background-repeat: repeat-x;
  opacity: 0.9;
}

.scallop-border::before { top: -7px; }
.scallop-border::after { bottom: -7px; transform: rotate(180deg); }

.dot-divider {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
}

.dot-divider span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
}

.dot-divider span:nth-child(2) { background: var(--amber); }
.dot-divider span:nth-child(3) { background: var(--olive); }
.dot-divider span:nth-child(4) { background: var(--blue); }

/* =============================== NAV =============================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 236, 215, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(214, 88, 41, 0.15);
  transition: padding 0.2s ease;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-monogram {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-monogram .icon { width: 0.62em; height: 0.62em; color: var(--rose); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--orange); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--orange);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-btn .icon { width: 1.15em; height: 1.15em; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--orange);
  display: block;
}

@media (max-width: 780px) {
  .nav-right { gap: 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream-light);
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid rgba(214, 88, 41, 0.15);
  }
  .nav-links.is-open { display: flex; }
}

/* =============================== CAPA =============================== */

.cover {
  padding: 108px 24px 40px;
  display: flex;
  justify-content: center;
}

.cover-image {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(74, 56, 38, 0.18);
}

.hero-monogram {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--amber);
  gap: 2px;
}

.hero-monogram .icon { width: 0.5em; height: 0.5em; color: var(--rose); margin: 0 1px; }

/* ============================== GIFTS ================================ */

.gifts-note {
  text-align: center;
  max-width: 560px;
  margin: -24px auto 48px;
  font-size: 0.88rem;
  opacity: 0.75;
}

.gifts-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.gifts-toolbar label {
  color: var(--forest);
  font-weight: 600;
}

.gifts-toolbar select {
  max-width: 100%;
  border: 1px solid rgba(214, 88, 41, 0.3);
  border-radius: 8px;
  background: var(--cream-light);
  color: var(--forest);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 26px;
}

@media (min-width: 600px) {
  .gifts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .gifts-grid { grid-template-columns: repeat(4, 1fr); }
}

.gifts-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.gifts-pagination[hidden] {
  display: none;
}

.gifts-page-label {
  font-size: 0.85rem;
  color: var(--forest);
  opacity: 0.75;
}

.gift-card {
  background: var(--cream-light);
  border-radius: 18px;
  border: 1px solid rgba(214, 88, 41, 0.15);
  padding: 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gift-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(214, 88, 41, 0.12); }

.gift-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(214, 88, 41, 0.1);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 14px;
}

.gift-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest);
  margin-bottom: 6px;
}

.gift-card-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
}

.gift-price {
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 18px;
}

.gift-card.is-reserved {
  opacity: 0.55;
}

.gift-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--olive);
  margin-top: 4px;
}

.gift-card .btn { width: 100%; justify-content: center; }

.gift-quota {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.gift-quota-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gift-quota-btn {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  background: transparent;
  color: var(--orange);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gift-quota-btn:hover:not(:disabled) { background: var(--orange); color: var(--cream-light); }

.gift-quota-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.gift-quota-count {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  color: var(--forest);
}

.gift-quota-label {
  font-size: 0.72rem;
  color: var(--forest);
  opacity: 0.7;
  text-align: center;
}

.gifts-loading, .gifts-empty {
  text-align: center;
  opacity: 0.6;
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ============================== RSVP ================================= */

.rsvp-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--cream-light);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid rgba(214, 88, 41, 0.15);
}

.form-row { margin-bottom: 22px; }

.form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(214, 88, 41, 0.25);
  background: #fff;
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--orange);
}

.radio-group {
  display: flex;
  gap: 14px;
}

.radio-pill {
  flex: 1;
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio-pill span {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  border: 1.5px solid rgba(214, 88, 41, 0.25);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
  transition: all 0.2s ease;
}

.radio-pill input:checked + span {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--cream-light);
}

.rsvp-submit { width: 100%; justify-content: center; margin-top: 6px; }

.form-feedback {
  margin-top: 18px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-feedback.is-success { display: block; color: var(--olive); }
.form-feedback.is-error { display: block; color: var(--orange); }

/* ============================== MODAL ================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 56, 38, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay.is-open { display: flex; }

.modal-box {
  background: var(--cream-light);
  border-radius: 22px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  position: relative;
}

.modal-box h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--forest);
  font-size: 1.3rem;
  margin: 6px 0 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--orange);
  cursor: pointer;
}

/* ============================== FOOTER ================================ */

.footer {
  background: var(--forest);
  color: var(--cream-light);
  text-align: center;
  padding: 64px 24px 40px;
}

.footer .hero-monogram {
  border-color: rgba(253, 236, 215, 0.4);
  color: var(--rose);
}

.footer p {
  margin-top: 18px;
  font-size: 0.85rem;
  opacity: 0.75;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--cream-light);
  margin-top: 14px;
}

/* ============================== MOBILE ================================ */

@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .section { padding: 64px 0; }

  .section-head { margin-bottom: 36px; }

  .section-head h2 { font-size: clamp(2.2rem, 9vw, 2.8rem); }

  .cover { padding: 96px 16px 32px; }

  .gifts-note { margin-top: -12px; margin-bottom: 32px; }

  .gifts-toolbar { justify-content: space-between; }

  .rsvp-form { padding: 30px 22px; border-radius: 18px; }

  .radio-group { gap: 10px; }

  .radio-pill span { font-size: 0.78rem; padding: 11px 6px; }

  .modal-overlay { padding: 16px; }

  .modal-box { padding: 28px 22px; border-radius: 18px; }

  .footer { padding: 48px 20px 32px; }

  .footer-names { font-size: 2rem; }
}
