:root{
  --olive:#405b37;          /* deep olive close to the logo */
  --olive-600:#2f462a;
  --olive-200:#e8ecdf;
  --cream:#f7f6f2;
  --ink:#1f2a22;
  --muted:#6f7b72;
  --white:#ffffff;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color:var(--ink);
  background:linear-gradient(180deg, var(--cream), #fff 40%);
}
.container{width:min(1040px, 92vw); margin-inline:auto;}

.site-header{
  position:sticky; top:0; z-index:10;
  background:rgba(247,246,242,.9);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid var(--olive-200);
}
.header-inner{display:flex; align-items:center; gap:16px; padding:14px 0;}
.wedding-logo{ width:76px; height:auto; object-fit:contain; border-radius:50%; }
.title-block{ flex:1 1 auto; }

.date{ margin:2px 0 0 0; color:var(--muted); font-size:14px; }
.actions{ display:flex; gap:10px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:999px;
  text-decoration:none; font-weight:600; letter-spacing:.2px;
  transition:transform .05s ease, box-shadow .2s ease, background .2s ease;
  cursor:pointer; user-select:none; border:1px solid transparent;
}
.btn:hover{ transform:translateY(-1px); }
.btn.solid{ background:var(--olive); color:var(--white); box-shadow:var(--shadow); }
.btn.outline{ background:transparent; color:var(--olive); border-color:var(--olive-600); }
.btn.ghost{ background:transparent; color:var(--muted); border-color:var(--olive-200); }
.btn.block{ width:100%; }

.hero{ padding: clamp(24px, 6vw, 64px) 0; }
.hero-inner{ display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap: min(6vw, 48px);position: relative;   }
.hero-copy .overline{ text-transform:uppercase; letter-spacing:.18em; color:var(--muted); font-size:12px; margin:0 0 6px 0; }
.hero-copy .headline{ font-family:"Cormorant Garamond", serif; font-size: clamp(32px, 5.8vw, 56px); margin:0 0 10px 0; color:var(--ink); }
.hero-copy .subhead{ margin:0 0 18px 0; color:var(--muted); line-height:1.6; }
.hero-ctas{ display:flex; gap:10px; flex-wrap:wrap; }

.hero-art img.couple{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  opacity: 1;
}
.hero-art{
  position: absolute;
  top: clamp(-32px, -5vw, 0px);   /* ajuste fino para “encostar” no semicírculo */
  right: clamp(18px, 6vw, 80px);  /* traga mais para dentro/fora conforme desejar */
  z-index: 2;
  display: block; }
.hero-art .circle{
  width: clamp(180px, 28vw, 340px);
  height: clamp(180px, 28vw, 340px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);

  /* arco sutil (não afeta a foto) */
  border: 2px solid rgb(47 70 42 / 55%); /* var(--olive-600) com ~55% */
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.info{ padding: clamp(18px, 4.5vw, 42px) 0; }
.info-inner{   display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: stretch;  }
.info-card{
  background: var(--white);
  border: 1px solid var(--olive-200);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.info-card h3{ margin:0 0 8px 0; font-family:"Cormorant Garamond", serif; font-size:28px; }
.details{ margin:12px 0 0 0; padding:0 0 0 16px; }
.details li{ margin:6px 0; }

.rsvp{
  padding: clamp(24px, 6vw, 64px) 0;
  background: linear-gradient(180deg, #fff, var(--cream) 80%);
  border-top: 1px solid var(--olive-200);
  border-bottom: 1px solid var(--olive-200);
}
.section-title{ font-family:"Cormorant Garamond", serif; font-size: clamp(26px, 4.8vw, 44px); margin:0 0 6px 0; }
.section-subtitle{ margin:0 0 18px 0; color:var(--muted); }

.rsvp-form{ display:grid; gap:16px; max-width:680px; }
.field label{ display:block; font-weight:600; margin:0 0 6px 0; }
.field input{
  width:100%; padding:14px 14px; border-radius:12px;
  border:1px solid var(--olive-200); outline: none; font-size:16px; background:#fff;
}
.field input:focus{ border-color:var(--olive); box-shadow:0 0 0 3px rgba(64,91,55,.15); }
.hint{ color:var(--muted); display:block; margin-top:6px; }

.match{
  border:1px solid var(--olive-200); border-radius:16px; padding:14px 14px;
  background:#fff; box-shadow: var(--shadow);
}
.match-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; }
.match-name{ font-weight:700; }
.match-phone{ color:var(--muted); }
.confirm-row{ display:flex; gap:10px; margin-top:12px; }
.privacy{ color:var(--muted); font-size:12px; margin:8px 0 0 0; }

.no-match{
  border:1px dashed var(--olive-200); border-radius:16px; padding:14px 14px; color:var(--muted);
  background:#fafaf8;
}

.hidden{ display:none; }
.toast{
  position:fixed; left:50%; bottom:28px; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:#fff; padding:10px 14px; border-radius:999px;
  opacity:0; pointer-events:none; transition: all .25s ease; box-shadow: var(--shadow);
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

.site-footer{ padding:24px 0; text-align:center; color:var(--muted); }

@media (max-width: 880px){
  .hero-inner{ grid-template-columns: 1fr; }
  .info-inner{ grid-template-columns: 1fr; }
  .actions{ display:none; }
  .wedding-logo{ width:64px; }
}

.info-card.presentes{
  position: relative;
  overflow: hidden;
  /* reserva altura no fundo do card para a foto */
   position: relative; z-index: 1; 
}

.info-card img{
  max-width: 100%;
  height: auto;
  display: block;
}
/* a ilustração fica “colada” no canto, responsiva e discreta */
.presentes-fig{
   position: static;          /* sai do absolute */
  display: block;
  margin: 20px auto 8px;     /* centraliza no card */
  width: min(640px, 92%);    /* responsiva e grande */
  height: 100px;              /* mantém proporção */
  object-fit: contain;       /* NÃO corta a imagem */
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  pointer-events: none;      /* opcional */
  opacity: .98;         
}

/* ===== Ajustes fortes para MOBILE ===== */
@media (max-width: 880px){
  /* troca grid por flex e empilha */
  .hero-inner{
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
  }

  /* coloca a foto antes do texto */
  .hero-art{
    order: -1;              /* <-- faz a foto subir */
    position: static;       /* entra no fluxo */
    margin-top: 4px;
    display: grid;
    place-items: center;
  }

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

  .hero-art .circle{
    width: min(72vw, 320px);
    height: min(72vw, 320px);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border: 2px solid rgb(47 70 42 / 55%);
    border-right-color: transparent;
    border-bottom-color: transparent;
  }

  .hero-art img.couple{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    opacity: 1;
  }
}

@media (max-width: 880px){

  /* Herói: empilha, centraliza e tira o position:absolute */
  .hero-inner{
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
  }
  .hero-copy{
    text-align: center;
  }
  .hero-ctas{ justify-content: center; }

  .hero-art{
    position: static;         /* sai do canto absoluto */
    display: grid;
    place-items: center;
    margin-top: 4px;
  }
  .hero-art .circle{
    width: min(72vw, 320px);
    height: min(72vw, 320px);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border: 2px solid rgb(47 70 42 / 55%);
    border-right-color: transparent;
    border-bottom-color: transparent;
  }
  .hero-art img.couple{
    width: 100%;
    height: 100%;
    object-fit: cover;        /* não distorce */
    object-position: center 40%;
    opacity: 1;
    display: block;
  }

  /* Cards de informação: 1 coluna e sem “esticar” */
  .info-inner{
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
  .info-card{ display: block; }

  /* Mapa responsivo (iframe) */
  .info-card iframe{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: block;
  }

  /* Card Presentes: ilustração entra no fluxo e centraliza */
  .info-card.presentes{
    min-height: unset;
    position: relative;
    overflow: visible;
    text-align: center;
  }
  .presentes-fig{
    position: static;
    width: min(70vw, 340px);
    height: auto;             /* <-- importante para não achatar */
    margin: 16px auto 0;
    opacity: .95;
    filter: saturate(.98) brightness(1.02);
    pointer-events: none;
    user-select: none;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
    border-radius: 14px;
  }

  /* Header compacto */
  .actions{ display: none; }
  .wedding-logo{ width: 64px; height: 64px; object-fit: cover; }
}

/* Telas muito pequenas */
@media (max-width: 380px){
  .hero-art .circle{ width: 76vw; height: 76vw; }
}

/* Foto acima do texto no mobile */

