  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --cream: #F5F0E8;
    --warm-white: #FAF7F2;
    --bark: #5C4033;
    --bark-light: #8B6355;
    --moss: #4A5E3A;
    --moss-light: #6B7F5A;
    --sand: #C9A96E;
    --sand-light: #E2CFA8;
    --stone: #9E8E7E;
    --stone-light: #C4B8AA;
    --text: #2E2018;
    --text-muted: #7A6A5A;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Jost', sans-serif;
    background: var(--warm-white);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(245,240,232,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(92,64,51,0.12);
    padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
  }
  .nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-weight: 400; letter-spacing: 0.08em;
    color: var(--bark);
  }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none; font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--bark); }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    background:
      linear-gradient(to bottom, rgba(245,240,232,0) 60%, var(--warm-white) 100%),
      url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?w=1600&q=80') center/cover no-repeat;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 80px 2rem 4rem;
    position: relative;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(66, 66, 66, 0.479); /* tom terracota escuro */
  }
  .hero-inner { position: relative; z-index: 1; }
  .hero-eyebrow {
    font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
    color:#e7b96e; margin-bottom: 1.5rem; font-weight: 500;
  }
  .hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 300; line-height: 1;
    letter-spacing: 0.03em;
    color: #e7b96e;
  }
  .hero-names .amp {
    font-style: italic; color: #e7b96e; display: block;
    font-size: 0.65em; margin: 0.1em 0;
  }
  .hero-date {
    margin-top: 2rem;
    font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: #e7b96e; font-weight: 400;
  }
  .hero-divider {
    width: 60px; height: 1px; background: var(--sand);
    margin: 1.5rem auto;
  }
  .hero-location {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem; font-style: italic; color: #e7b96e;
  }
  .scroll-hint {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: #e7b96e; animation: bounce 2s infinite;
  }
  .scroll-hint::after {
    content: '';
    width: 1px; height: 32px;
    background: linear-gradient(to bottom, var(--sand), transparent);
  }
  @keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

  /* ── SECTIONS ── */
  section { padding: 6rem 2rem; }
  .section-inner { max-width: 960px; margin: 0 auto; }
  .section-label {
    font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--moss); margin-bottom: 0.75rem; font-weight: 500;
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300;
    color: var(--bark); line-height: 1.15; margin-bottom: 2rem;
    letter-spacing: 0.02em;
  }
  .section-title em { font-style: italic; color: var(--sand); }
  .divider-leaf {
    display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 2.5rem;
  }
  .divider-leaf::before, .divider-leaf::after {
    content: ''; flex: 1; height: 1px; background: var(--sand-light);
  }
  .divider-leaf span { font-size: 1rem; color: var(--sand); }

  /* ── CASAL ── */
  #casal { background: var(--cream); }
  .casal-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  }
  .casal-photo {
    aspect-ratio: 4/5; border-radius: 2px;
    background: url('img/casal.jpg') center/cover;
    box-shadow: 8px 8px 0 var(--sand-light);
    position: relative;
  }
  .casal-photo::before {
    content: '';
    position: absolute; inset: -8px; border: 1px solid var(--sand-light);
    border-radius: 2px; z-index: -1;
  }
  .casal-text p {
    font-size: 1rem; line-height: 1.85; color: var(--text-muted);
    margin-bottom: 1rem;
  }
  .casal-text p strong { color: var(--bark); font-weight: 500; }
  .countdown {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem;
  }
  .count-item {
    text-align: center;
    background: var(--warm-white);
    border: 1px solid var(--sand-light);
    border-radius: 4px; padding: 1rem 0.5rem;
  }
  .count-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem; font-weight: 300; color: var(--bark); line-height: 1;
  }
  .count-lbl {
    font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--stone); margin-top: 4px;
  }

  /* ── CERIMÔNIA ── */
  #cerimonia { background: var(--warm-white); }
  .info-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem;
  }
  .info-card {
    background: var(--cream);
    border: 1px solid var(--sand-light);
    border-radius: 2px;
    padding: 1.75rem 1.5rem;
    text-align: center;
  }
  .info-card .icon {
    font-size: 1.5rem; margin-bottom: 1rem; display: block;
  }
  .info-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem; font-weight: 400; color: var(--bark);
    margin-bottom: 0.5rem;
  }
  .info-card p {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.6;
  }

  /* ── MAPA ── */
  #mapa { background: var(--cream); }
  .map-wrapper {
    width: 100%; height: 400px; border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--sand-light);
    box-shadow: 4px 4px 0 var(--sand-light);
  }
  .map-wrapper iframe { width: 100%; height: 100%; border: 0; }
  .map-address {
    margin-top: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    background: var(--warm-white); border: 1px solid var(--sand-light);
    border-radius: 2px; padding: 1rem 1.5rem;
  }
  .map-address .icon { font-size: 1.2rem; color: var(--moss); }
  .map-address p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
  .map-address p strong { color: var(--bark); }

  @media (max-width: 680px) {
  .map-address {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .map-address p {
    font-size: 0.85rem;
  }

  .btn-directions {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
  }
  
  .btn-directions {
    margin-left: auto; flex-shrink: 0;
    background: var(--moss); color: white;
    border: none; border-radius: 2px;
    padding: 0.6rem 1.2rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; text-decoration: none; display: inline-block;
    transition: background 0.2s;
  }
  .btn-directions:hover { background: var(--bark); }

  /* ── PRESENTES ── */
  #presentes { background: var(--warm-white); }
  .gifts-intro {
    font-size: 1rem; line-height: 1.8; color: var(--text-muted);
    max-width: 600px; margin-bottom: 3rem;
  }
  .gifts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem; margin-bottom: 3rem; 
  }
  .gift-card {
    background: var(--cream); border: 1.5px solid var(--sand-light);
    border-radius: 2px; padding: 1.5rem 1.25rem; cursor: pointer;
    transition: all 0.25s ease; position: relative; text-align: center;
    user-select: none;
    overflow: hidden;
    height: 260px; /* tamanho fixo */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .gift-card:hover { border-color: var(--sand); transform: translateY(-4px) scale(1.01); }
  .gift-card.selected {
    border-color: var(--moss); background: #EEF2E8;
    box-shadow: 0 0 0 3px rgba(74,94,58,0.15);
  }
  .gift-card .check {
    position: absolute; top: 10px; right: 10px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--moss); color: white;
    font-size: 0.65rem; display: none;
    align-items: center; justify-content: center;
  }
  .gift-card.selected .check { display: flex; }
  .gift-emoji { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
  .gift-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem; font-weight: 400; color: var(--bark); margin-bottom: 0.25rem;
  }
  .gift-price {
    font-size: 0.78rem; color: rgb(97, 63, 43); letter-spacing: 0.05em;
  }

  .gift-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
  }

  @media (max-width: 680px) {
    .gift-img {
      height: 120px;
    }
  }
  /* ── FORM ── */
  .form-wrapper {
    background: var(--cream); border: 1px solid var(--sand-light);
    border-radius: 2px; padding: 2.5rem;
  }
  .form-wrapper h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; font-weight: 300; color: var(--bark); margin-bottom: 0.5rem;
  }
  .form-wrapper .sub {
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
  .form-group label {
    font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 500;
  }
  .form-group input, .form-group textarea {
    background: var(--warm-white); border: 1px solid var(--sand-light);
    border-radius: 2px; padding: 0.75rem 1rem;
    font-family: 'Jost', sans-serif; font-size: 0.9rem;
    color: var(--text); outline: none;
    transition: border-color 0.2s;
  }
  .form-group input:focus, .form-group textarea:focus {
    border-color: var(--moss);
  }
  .form-group textarea { resize: vertical; min-height: 100px; }
  .selected-gift-display {
    background: #EEF2E8; border: 1px solid var(--moss-light);
    border-radius: 2px; padding: 0.75rem 1rem;
    font-size: 0.85rem; color: var(--moss);
    margin-bottom: 1.25rem; display: none;
  }
  .selected-gift-display.show { display: block; }
  .btn-submit {
    width: 100%; background: var(--bark); color: var(--cream);
    border: none; border-radius: 2px; padding: 1rem;
    font-family: 'Jost', sans-serif; font-size: 0.8rem;
    letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500;
    cursor: pointer; transition: background 0.2s;
  }
  .btn-submit:hover { background: var(--moss); }
  .success-msg {
    display: none; text-align: center; padding: 2rem;
  }
  .success-msg.show { display: block; }
  .success-msg .big {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem; font-weight: 300; color: var(--bark); margin-bottom: 0.5rem;
  }
  .success-msg p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

  /* ── FOOTER ── */
  footer {
    background: var(--bark); color: var(--sand-light);
    text-align: center; padding: 3rem 2rem;
  }
  footer .names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 300; margin-bottom: 0.5rem;
  }
  footer p { font-size: 0.78rem; letter-spacing: 0.1em; opacity: 0.6; }

  /* ── RESPONSIVE ── */
  @media (max-width: 680px) {
    nav { padding: 0 1rem; }
    .nav-links { gap: 1rem; }
    .nav-links {gap: 0.8rem;flex-wrap: wrap;justify-content: center;}
    .nav-links a {font-size: 0.65rem;}
    .casal-grid { grid-template-columns: 1fr; }
    .casal-photo { aspect-ratio: 2/2; }
    .info-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .gifts-grid { grid-template-columns: repeat(2, 1fr); }
    .casal-photo {background-position: 100% 15%;}
    .music-player {position: fixed;bottom: 20px;right: 20px;width: 40px;height: 40px;display: flex;align-items: center;justify-content: center;backdrop-filter: blur(8px);-webkit-backdrop-filter: blur(8px);background: rgba(255, 255, 255, 0.08);border-radius: 12px;cursor: pointer;z-index: 999;transition: all 0.25s ease;}
    .music-player:hover {background: rgba(255, 255, 255, 0.18);transform: scale(1.05);}
    .music-player.playing {box-shadow: 0 0 12px rgba(255,255,255,0.25);}
  }


  /* ── ANIMATIONS ── */
  .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }

  button {
  padding: 8px 12px;
  border: 1px solid #C9A96E;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  }
  
  button:hover {
    background: #C9A96E;
    color: white;
  }
  /*parcelamento sem juros-*/
  .gift-installment {
    font-size: 0.7rem;
    color: var(--moss);
    margin-top: 2px;
    font-weight: 500;
  }


  .music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    background: rgba(0,0,0,0.10);

    border-radius: 10px;

    z-index: 999;
  }

  .music-player.playing {
    box-shadow: 0 0 12px rgba(255,255,255,0.25);
  }
  .music-player:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
  }
  /* css adicionado agora */
  .guest-item{

    display:flex;
    align-items:center;
    gap:12px;

    margin:12px 0;

    padding:12px;

    border-radius:8px;

    background:#f7f7f7;

}

.guest-item input{

    width:20px;
    height:20px;

}

/* ================= RSVP ================= */

#rsvp{
    background: var(--cream);
}

#inviteLogin,
#inviteGuests{
    width:100%;
}

#inviteError{

    margin-top:18px;

    text-align:center;

    color:#b54444;

    font-size:.9rem;

}

#guestList{

    margin:30px 0;

}

.guest-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:var(--warm-white);

    border:1px solid var(--sand-light);

    border-radius:2px;

    padding:18px 20px;

    margin-bottom:14px;

    transition:.25s;

}

.guest-item:hover{

    border-color:var(--sand);

}

.guest-item label{

    flex:1;

    cursor:pointer;

    color:var(--bark);

    font-size:1rem;

}

.guest-item input{

    width:22px;

    height:22px;

    accent-color: var(--moss);

}

/* ================= RSVP ================= */

#rsvp{
    background: var(--cream);
}

#rsvp .section-inner{
    max-width: 760px;
}

/* Caixa principal */

#inviteLogin,
#inviteGuests{

    width:100%;
    max-width:620px;

    margin:0 auto;

    text-align:center;

}

/* Títulos */

#inviteLogin h3,
#inviteGuests h3{

    font-family:'Cormorant Garamond',serif;
    font-size:2rem;
    font-weight:300;
    color:var(--bark);

    margin-bottom:.6rem;

}

#inviteLogin .sub,
#inviteGuests .sub{

    max-width:460px;

    margin:0 auto 30px;

    color:var(--text-muted);

    line-height:1.7;

    font-size:.95rem;

}

/* Campo */

#inviteLogin .form-group{

    text-align:left;

    margin-bottom:25px;

}

#inviteLogin input{

    width:100%;

    height:54px;

    padding:0 18px;

    background:var(--warm-white);

    border:1px solid var(--sand-light);

    border-radius:2px;

    font-size:1rem;

    transition:.25s;

}

#inviteLogin input:focus{

    border-color:var(--moss);

    outline:none;

}

/* Botão */

#btnBuscar,
#btnConfirmar{

    width:100%;

    margin-top:10px;

}

/* Mensagem de erro */

#inviteError{

    margin-top:18px;

    color:#b54444;

    text-align:center;

    font-size:.9rem;

}

/* Lista de convidados */

#guestList{

    margin:30px 0;

    text-align:left;

}

.guest-item{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:18px 22px;

    margin-bottom:14px;

    background:var(--warm-white);

    border:1px solid var(--sand-light);

    border-left:4px solid var(--sand);

    transition:.25s;

}

.guest-item:hover{

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(0,0,0,.05);

}

.guest-item label{

    flex:1;

    cursor:pointer;

    color:var(--bark);

    font-size:1rem;

}

.guest-item input{

    width:22px;

    height:22px;

    accent-color:var(--moss);

}

.guest-status{

    flex-shrink:0;

    font-size:.72rem;

    letter-spacing:.08em;

    text-transform:uppercase;

    color:var(--stone);

    background:var(--cream);

    border:1px solid var(--sand-light);

    border-radius:999px;

    padding:4px 10px;

}

