 :root{
    --azul-bebe: #8ec6e0;
    --azul-claro: #bfe0ee;
    --azul-suave: #e0eff5;
    --azul-medio: #5a9bbd;
    --azul-escuro: #244a61;
    --azul-navy: #132a38;
    --texto: #365163;
    --branco: #ffffff;
  }

  *{ box-sizing: border-box; margin:0; padding:0; -webkit-tap-highlight-color: transparent; }

  html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

  body{
    font-family: 'Jost', sans-serif;
    background: linear-gradient(180deg, var(--azul-suave) 0%, #ffffff 30%, var(--azul-suave) 100%);
    color: var(--texto);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
  }

  /* ===================== FOTOS DE FUNDO (casal, atmosfera) ===================== */
  .foto-fundo{
    position: fixed;
    border-radius: 50%;
    background-size: cover;
    background-position: center 20%;
    filter: blur(2px) saturate(0.85);
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
  }

  .foto-um{
    top: -8%;
    left: -12%;
    width: 480px;
    height: 480px;
    background-image: radial-gradient(circle, rgba(255,255,255,0) 55%, rgba(224,239,245,0.9) 100%), url('../img/casal1.jpeg');
  }

  .foto-dois{
    bottom: -10%;
    right: -14%;
    width: 520px;
    height: 520px;
    background-image: radial-gradient(circle, rgba(255,255,255,0) 55%, rgba(224,239,245,0.9) 100%), url('../img/casal2.jpeg');
  }

  /* ===================== MOLDURA FLORAL (imagem enviada) ===================== */
  .moldura-flor{
    position: absolute;
    left: 0;
    width: 100%;
    height: 190px;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
  }

  .moldura-flor-topo{
    top: 0;
    object-position: top;
  }

  .moldura-flor-base{
    bottom: 0;
    object-position: bottom;
  }

  /* ===================== FOTOS DO CASAL (retratos) ===================== */
  .casal-fotos{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 22px;
  }

  .casal-fotos .foto-retrato{
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--branco);
    box-shadow: 0 6px 18px rgba(60,110,140,0.28);
    background: var(--azul-suave);
  }

  .casal-fotos .foto-retrato:first-child{
    margin-right: -22px;
    transform: translateY(6px);
  }

  .casal-fotos .foto-retrato:last-child{
    margin-left: -22px;
  }

  /* ===================== ROSAS FLUTUANTES (sutis) ===================== */
  .rosas-container{
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  .rosa{
    position: absolute;
    bottom: -60px;
    opacity: 0;
    animation: flutuar linear infinite;
  }

  .rosa svg{ width: 100%; height: 100%; display:block; }

  @keyframes flutuar{
    0%{
      transform: translateY(0) translateX(0) rotate(0deg);
      opacity: 0;
    }
    8%{ opacity: 0.16; }
    50%{
      transform: translateY(-55vh) translateX(20px) rotate(90deg);
    }
    92%{ opacity: 0.12; }
    100%{
      transform: translateY(-115vh) translateX(-15px) rotate(180deg);
      opacity: 0;
    }
  }

  .wrap{
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 0 auto;
    padding: 44px 18px 60px;
    width: 100%;
  }

  .moldura{
    position: relative;
    z-index: 0;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(6px);
    border: 1px solid var(--azul-claro);
    border-radius: 32px;
    box-shadow: 0 24px 70px rgba(80,140,170,0.16);
    overflow: hidden;
  }

  /* ===================== HERO ===================== */
  .hero{
    text-align: center;
    padding: 50px 30px 34px;
    position: relative;
  }

  .pre-nomes{
    display:flex;
    justify-content: space-between;
    max-width: 320px;
    margin: 0 auto 20px;
    font-family:'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 17px;
    color: var(--azul-escuro);
  }

  .monograma{
    font-family:'Cormorant Garamond', serif;
    font-size: 78px;
    font-weight: 500;
    color: var(--azul-navy);
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 14px;
    line-height: 1;
  }

  .monograma .coracao{
    font-size: 22px;
    color: var(--azul-medio);
  }

  .versiculo{
    margin-top: 26px;
    font-family:'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.7;
    color: var(--texto);
    padding: 0 10px;
  }

  .referencia{
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--azul-medio);
  }

  .convite-txt{
    margin-top: 24px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--azul-escuro);
    line-height: 1.8;
  }

  .data-grande{
    margin-top: 18px;
    font-family:'Cormorant Garamond', serif;
    font-size: 38px;
    color: var(--azul-navy);
    letter-spacing: 1px;
  }

  .endereco{
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--texto);
    line-height: 1.6;
    padding: 0 20px;
  }

  /* ===================== CONTADOR ===================== */
  .contador{
    display:flex;
    justify-content:center;
    gap: 14px;
    padding: 30px 20px 6px;
    flex-wrap: wrap;
  }

  .contador .bloco{
    background: linear-gradient(160deg, var(--azul-bebe), var(--azul-claro));
    border-radius: 16px;
    padding: 14px 10px;
    min-width: 68px;
    text-align:center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
  }

  .contador .numero{
    font-family:'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--azul-navy);
    line-height: 1;
  }

  .contador .rotulo{
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--azul-escuro);
  }

  /* ===================== ABAS ===================== */
  .abas{
    display:flex;
    margin: 34px 30px 0;
    border-bottom: 1px solid var(--azul-claro);
  }

  .aba-btn{
    flex:1;
    background: none;
    border: none;
    padding: 14px 8px;
    font-family: 'Jost', sans-serif;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--azul-medio);
    cursor: pointer;
    position: relative;
    transition: color .2s;
  }

  .aba-btn.ativa{ color: var(--azul-navy); font-weight: 500; }

  .aba-btn.ativa::after{
    content:"";
    position:absolute;
    left: 20%; right: 20%;
    bottom: -1px;
    height: 2px;
    background: var(--azul-navy);
  }

  .painel{ display:none; padding: 32px 34px 44px; }
  .painel.ativa{ display:block; animation: surgir .4s ease; }

  @keyframes surgir{
    from{ opacity:0; transform: translateY(8px); }
    to{ opacity:1; transform: translateY(0); }
  }

  /* ===================== FORM RSVP ===================== */
  .mensagem{
    text-align:center;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--texto);
    margin-bottom: 26px;
  }

  form{ display:flex; flex-direction:column; gap: 18px; }

  .campo label{
    display:block;
    font-size: 11.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--azul-escuro);
    margin-bottom: 8px;
  }

  .campo input[type="text"],
  .campo textarea{
    width:100%;
    border: 1px solid var(--azul-claro);
    background: var(--azul-suave);
    border-radius: 12px;
    padding: 13px 14px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: var(--texto);
    outline:none;
    transition: border-color .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
  }

  .campo input[type="text"]:focus,
  .campo textarea:focus{
    border-color: var(--azul-escuro);
    background: var(--branco);
  }

  .campo textarea{ resize: vertical; min-height: 70px; }

  .opcoes-presenca{ display:flex; gap: 12px; }
  .opcoes-presenca input{ display:none; }

  .opcoes-presenca label{
    flex:1;
    text-align:center;
    padding: 12px 10px;
    border: 1px solid var(--azul-claro);
    background: var(--azul-suave);
    border-radius: 12px;
    cursor:pointer;
    font-size: 13.5px;
    letter-spacing: .3px;
    color: var(--texto);
    transition: all .2s;
    text-transform:none;
  }

  .opcoes-presenca input:checked + label{
    background: var(--azul-navy);
    border-color: var(--azul-navy);
    color: var(--branco);
  }

  .campo-numero{ display:none; }
  .campo-numero.visivel{ display:block; }

  button[type="submit"], .btn-principal{
    margin-top: 4px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: var(--azul-navy);
    color: var(--branco);
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor:pointer;
    transition: background .2s, transform .1s;
  }

  button[type="submit"]:hover, .btn-principal:hover{ background: #163040; }
  button[type="submit"]:active, .btn-principal:active{ transform: scale(0.98); }

  .confirmacao{ display:none; text-align:center; padding: 10px 0 4px; }
  .confirmacao.visivel{ display:block; }

  .confirmacao .icone{
    width: 56px; height:56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--azul-claro);
    display:flex; align-items:center; justify-content:center;
    font-size: 24px;
    color: var(--azul-navy);
  }

  .confirmacao h3{
    font-family:'Cormorant Garamond', serif;
    font-size: 25px;
    color: var(--azul-navy);
    margin-bottom: 8px;
  }

  .confirmacao p{ font-size: 13.5px; line-height: 1.6; }

  /* ===================== LISTA DE PRESENTES ===================== */
  .presentes-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }

  .presente{
    border: 1px solid var(--azul-claro);
    background: var(--azul-suave);
    border-radius: 16px;
    padding: 16px 12px;
    text-align:center;
    cursor:pointer;
    transition: all .2s;
    position: relative;
  }

  .presente:hover{ border-color: var(--azul-medio); transform: translateY(-2px); }

  .presente.selecionado{
    background: linear-gradient(160deg, var(--azul-bebe), var(--azul-claro));
    border-color: var(--azul-navy);
  }

  .presente .check{
    position:absolute;
    top: 8px; right: 8px;
    width: 20px; height:20px;
    border-radius: 50%;
    background: var(--azul-navy);
    color: var(--branco);
    font-size: 11px;
    display:none;
    align-items:center;
    justify-content:center;
  }

  .presente.selecionado .check{ display:flex; }

  .presente .icone-presente{
    font-size: 30px;
    margin-bottom: 10px;
  }

  .presente .nome-presente{
    font-size: 13px;
    color: var(--azul-navy);
    font-weight: 500;
    margin-bottom: 4px;
    min-height: 32px;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .presente .preco-presente{
    font-family:'Cormorant Garamond', serif;
    font-size: 19px;
    color: var(--azul-escuro);
  }

  .presente-nome-campo{ margin-bottom: 18px; }

  /* ===================== FOOTER ===================== */
  footer{
    text-align:center;
    padding: 24px;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: var(--azul-medio);
  }

  /* ===================== RESPONSIVO (celular) ===================== */
  @media (max-width: 600px){
    .wrap{ padding: 24px 12px 40px; }

    .foto-um{ width: 260px; height: 260px; }
    .foto-dois{ width: 280px; height: 280px; }

    .moldura-flor{ height: 130px; }

    .casal-fotos .foto-retrato{ width: 74px; height: 74px; }

    .hero{ padding: 34px 20px 26px; }

    .pre-nomes{ font-size: 15px; max-width: 280px; }

    .monograma{ font-size: 56px; gap: 10px; }
    .monograma .coracao{ font-size: 18px; }

    .versiculo{ font-size: 15px; padding: 0 4px; }

    .convite-txt{ font-size: 11px; letter-spacing: 1.5px; }

    .data-grande{ font-size: 28px; }

    .endereco{ font-size: 13px; padding: 0 6px; }

    .contador{ gap: 8px; padding: 24px 4px 4px; }
    .contador .bloco{ min-width: 0; flex: 1 1 68px; padding: 10px 4px; }
    .contador .numero{ font-size: 22px; }
    .contador .rotulo{ font-size: 9px; }

    .abas{ margin: 26px 16px 0; }
    .aba-btn{ font-size: 11px; letter-spacing: 1px; padding: 12px 4px; }

    .painel{ padding: 24px 18px 34px; }

    .mensagem{ font-size: 14px; }

    .opcoes-presenca{ gap: 8px; }
    .opcoes-presenca label{ font-size: 12.5px; padding: 12px 6px; }

    .presentes-grid{ grid-template-columns: 1fr 1fr; gap: 10px; }
    .presente{ padding: 14px 8px; }
    .presente .icone-presente{ font-size: 26px; margin-bottom: 8px; }
    .presente .nome-presente{ font-size: 12px; min-height: 30px; }
    .presente .preco-presente{ font-size: 17px; }

    button[type="submit"], .btn-principal{ font-size: 12px; letter-spacing: 1.5px; padding: 15px; }
  }

  @media (max-width: 360px){
    .moldura-flor{ height: 105px; }
    .casal-fotos .foto-retrato{ width: 64px; height: 64px; }
    .monograma{ font-size: 46px; }
    .pre-nomes{ font-size: 13px; max-width: 240px; }
    .data-grande{ font-size: 23px; }
    .contador{ gap: 6px; }
    .contador .bloco{ padding: 8px 2px; }
    .contador .numero{ font-size: 19px; }
    .contador .rotulo{ font-size: 8px; letter-spacing: 1px; }
    .presentes-grid{ gap: 8px; }
    .aba-btn{ font-size: 10px; }
  }

  /* garante alvos de toque confortáveis no celular */
  @media (pointer: coarse){
    .aba-btn{ min-height: 44px; }
    button[type="submit"], .btn-principal{ min-height: 48px; }
    .opcoes-presenca label{ min-height: 44px; display:flex; align-items:center; justify-content:center; }
  }