:root {
  /* =========================
     CORES BASE (PALETA)
  ========================= */
  --color-primary: #C98C7A;       /* rosa queimado */
  --color-primary-light: #E7B8A9; /* rosa claro (hover / detalhes) */

  --color-bg: #F5F1EE;            /* fundo principal */
  --color-surface: #FFFFFF;       /* cards / seções elevadas */

  --color-text: #5A4A42;          /* texto principal */
  --color-text-light: #8A7B73;    /* texto secundário */

  --color-accent: #A8B5A2;        /* verde acinzentado (detalhes) */

  /* =========================
     ESTADOS
  ========================= */
  --color-hover: #B97C6B;         /* variação do primary */
  --color-border: #E5DFDB;        /* bordas suaves */

  /* =========================
     BOTÕES (PADRÃO)
  ========================= */
  --btn-bg: var(--color-primary);
  --btn-text: #FFFFFF;
  --btn-hover: var(--color-hover);

  /* =========================
     SOMBRAS (SUAVES)
  ========================= */
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);

  --font-primary: 'Pacifico';
  --font-secundary: 'Quicksand';
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* background-color: var(--color-bg); */
    scroll-behavior: smooth;
    overscroll-behavior: none; /* bloqueia o scrool além do conteúdo */
}

.hero{
    height: 100vh;
    width: 100%;
    background: url(https://images.unsplash.com/photo-1462275646964-a0e3386b89fa?q=80&w=928&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D ) no-repeat center / cover;
    display: flex;
    flex-direction: column;
    padding: 50px;
    gap: 10px;
    justify-content: center;
}

.overlay{
    background-color: var(--color-hover);
    width: 100px;
    padding: 5px;
    border-radius: 20px;
    color: var(--color-bg);
    font-family: var(--font-secundary);
    font-weight: 900;
    text-align: center;
    font-size: 1rem;
}

h1{
    font-family: var(--font-primary);
    font-size: 4rem;
    color: var(--color-hover);
    text-shadow:var(--color-text) 2px 2px;
    width: 50%;
    line-height: 1.2;

}

.subtitle{
    width: 50%;
    font-family: var(--font-secundary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    background-color: #e5dfdba4;
    padding: 10px;
    border-radius: 20px;
}

a{
    text-decoration: none;
}

.btn-hero{
    gap: 20px;
    margin-top: 10px;
    font-family: var(--font-secundary);
    font-weight: 600;
}

.btn1{
    color: var(--btn-text);
    background-color: var(--color-hover);
    padding: 10px;
    border-radius: 40px;
    text-align: center;
}

.btn1:hover{
    color: var(--btn-hover);
    background-color: var(--color-surface);
    padding: 10px;
    border-radius: 40px;
    text-align: center;
}

.btn2{
    color: var(--color-text);
    background-color: var(--color-text-light);
    padding: 10px;
    border-radius: 40px;
    text-align: center;
}

.btn2:hover{
    color: var(--color-surface);
    background-color: var(--color-text);
    padding: 10px;
    border-radius: 40px;
    text-align: center;
}

.letters{
    height: 100vh;
    width: 100%;
    background-color: var(--color-hover);
    display: flex;
    flex-direction: column;
    padding: 50px;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

h2{
    font-family: var(--font-primary);
    color: var(--color-text);
    font-size: 2rem;
}

.title{
    font-family: var(--font-secundary);
    font-weight: 500;
    color: var(--color-surface);
    margin-top: -10px;
    font-size: 1rem;
}

.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(1, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
gap: 20px;
}

.part1 { grid-area: 1 / 1 / 2 / 2; }
.part2 { grid-area: 1 / 2 / 2 / 3; }
.part3 { grid-area: 1 / 3 / 2 / 4; }

.card{
    width: 300px;
    background: rgba(255, 255, 255, 0.2); /* Cor de fundo com transparência */
    backdrop-filter: blur(10px); /* Efeito de desfoque */
    box-shadow: 0 8px 32px 0 rgba(247, 125, 88, 0.3); /* Sombra para dar profundidade */
    border-radius: 10px; /* Cantos arredondados */
    padding: 20px;
    transition-duration: 1s;
}

.card:hover{
    transform: scale(1.1) ;
}

.message{
    font-family: var(--font-secundary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.part1{
    display: flex;
    margin-top: 10px;
}

.part2{
    display: flex;
    flex-direction: column;
}

.date{
    font-family: var(--font-secundary);
    color: var(--color-surface);
}

.signature{
    font-family: var(--font-primary);
    color: var(--color-text);
}

.moments{
    height: 100vh;
    width: 100%;
    background-color: var(--color-hover);
    display: flex;
    flex-direction: column;
    padding: 50px;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.cont {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(1, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
gap: 20px;
display: flex;
align-items: center;
justify-content: center;
}

.part1 { grid-area: 1 / 1 / 2 / 2; }
.part2 { grid-area: 1 / 2 / 2 / 3; }
.part3 { grid-area: 1 / 3 / 2 / 4; }
.part4 { grid-area: 1 / 4 / 2 / 5; }

.mcard{
    width: 250px;
    height: max-content;
    background: rgba(255, 255, 255, 0.2); /* Cor de fundo com transparência */
    backdrop-filter: blur(10px); /* Efeito de desfoque */
    box-shadow: 0 8px 32px 0 rgba(247, 125, 88, 0.3); /* Sombra para dar profundidade */
    border-radius: 10px; /* Cantos arredondados */
    padding: 20px;
    transition-duration: 1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

img{
    width: 250px;
    padding: 5px 20px;
}

.ctitle{
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight:lighter;
    color: #5A4A42;
}

.declaration{
    height: 100vh;
    width: 100%;
    background-image: url(https://images.unsplash.com/photo-1602615576820-ea14cf3e476a?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    background-repeat: no-repeat;
    background-size:cover;
    display: flex;
    flex-direction: column;
    padding: 50px;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.declar{
    background: rgba(255, 255, 255, 0.2); /* Cor de fundo com transparência */
  backdrop-filter: blur(10px); /* Efeito de desfoque */
  border: 2px solid rgba(255, 255, 255, 0.4); /* Borda sutil */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Sombra para dar profundidade */
  border-radius: 10px; /* Cantos arredondados */
  padding: 20px;
  gap:10px;
    width: 60%;
}

.dec{
    font-family: var(--font-secundary);
    font-size: 1rem;
    text-align: center;
}

.sign{
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-top: 10px;
    color: var(--color-text);
}

/* ===== RESPONSIVIDADE TOTAL SEGURA ===== */

html,
body {
    width: 100%;
}

section,
.hero,
.letters,
.moments,
.declaration {
    width: 100%;
}

/* Evita travamento visual por altura fixa */
.letters,
.moments,
.declaration {
    min-height: 100vh;
    height: auto;
}

/* Imagens responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Corrige áreas com cards */
.card,
.mcard {
    max-width: 100%;
}

/* TABLET */
@media (max-width: 1024px) {
    .hero {
        padding: 40px 30px;
    }

    h1,
    .subtitle {
        width: 70%;
    }

    .letters,
    .moments,
    .declaration {
        padding: 50px 30px;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        width: 100%;
    }

    .cont {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .part1,
    .part2,
    .part3,
    .part4 {
        grid-area: auto;
    }

    .declar {
        width: 80%;
    }
}

/* CELULAR */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 35px 20px;
    }

    h1 {
        width: 100%;
        font-size: 2.7rem;
    }

    .subtitle {
        width: 100%;
        font-size: 1rem;
    }

    .btn-hero {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn1,
    .btn2 {
        display: block;
        width: 100%;
    }

    .letters,
    .moments,
    .declaration {
        padding: 40px 20px;
    }

    .container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .cont {
        flex-direction: column;
        width: 100%;
    }

    .mcard {
        width: 100%;
        max-width: 340px;
    }

    .mcard img {
        width: 100%;
        max-width: 250px;
        padding: 5px;
    }

    .declar {
        width: 100%;
    }
}

/* CELULAR PEQUENO */
@media (max-width: 480px) {
    .hero {
        padding: 30px 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    h2 {
        text-align: center;
        font-size: 1.6rem;
    }

    .title {
        text-align: center;
        font-size: 0.9rem;
    }

    .card,
    .mcard,
    .declar {
        padding: 16px;
    }

    .message,
    .dec {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}