/* ==================================================
   ANDREIA PESSOA CONFEITARIA
   HOME PAGE
================================================== */

/* ==================================================
   RESET
================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family: "Poppins", sans-serif;
    color: #5f5558;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff9fa 45%,
            #fff5f7 100%
        );
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

/* ==================================================
   VARIÁVEIS
================================================== */

:root {
    --primary: #e56590;
    --primary-hover: #ce4d78;
    --primary-light: #fff0f5;

    --secondary: #f8dce5;
    --secondary-light: #fff7f9;

    --brown: #6b3541;
    --brown-dark: #512630;

    --title: #7c3d4b;
    --text: #655b5e;
    --text-light: #887c80;

    --white: #ffffff;
    --background: #fff8fa;
    --border: #f0dce2;

    --success: #2e9d66;
    --warning: #f3b41b;

    --shadow-small:
        0 8px 22px rgba(88, 43, 55, 0.08);

    --shadow-medium:
        0 18px 45px rgba(88, 43, 55, 0.12);

    --shadow-large:
        0 28px 70px rgba(88, 43, 55, 0.16);

    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;

    --transition: 0.3s ease;
}

/* ==================================================
   TIPOGRAFIA
================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    font-family: "Playfair Display", serif;
    color: var(--title);
}

p {
    color: var(--text);
    line-height: 1.8;
}

section {
    position: relative;
}

/* ==================================================
   BOTÕES
================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 52px;
    padding: 13px 30px;

    border-radius: 999px;

    font-weight: 600;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
    border: 2px solid var(--primary);

    box-shadow:
        0 10px 24px rgba(229, 101, 144, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--white);
    background: var(--primary-hover);
    border-color: var(--primary-hover);

    box-shadow:
        0 14px 30px rgba(206, 77, 120, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}


/* ==================================================
   HERO
================================================== */

.hero {
    position: relative;

    padding: 70px 0 95px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(229, 101, 144, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 12%,
            rgba(248, 220, 229, 0.8),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff8fa 100%
        );
}

.hero::before,
.hero::after {
    position: absolute;

    content: "";

    border-radius: 50%;

    pointer-events: none;
}

.hero::before {
    top: -130px;
    left: -120px;

    width: 300px;
    height: 300px;

    background:
        rgba(229, 101, 144, 0.07);

    filter: blur(6px);
}

.hero::after {
    right: -120px;
    bottom: -160px;

    width: 340px;
    height: 340px;

    background:
        rgba(248, 220, 229, 0.65);

    filter: blur(10px);
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* ==================================================
   LINHA PRINCIPAL DA HERO
================================================== */

.hero .row {
    align-items: center;

    min-height: 650px;
}

/* ==================================================
   CONTEÚDO DA ESQUERDA
================================================== */

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
    max-width: 550px;

    min-height: 580px;
}

/* ==================================================
   BADGE
================================================== */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    align-self: flex-start;

    padding: 10px 18px;

    color: var(--primary);
    background: var(--primary-light);

    border: 1px solid #f5d5df;
    border-radius: 999px;

    box-shadow:
        0 8px 20px rgba(229, 101, 144, 0.08);

    font-size: 0.85rem;
    font-weight: 600;
}

.hero-badge i {
    font-size: 1rem;
}

/* ==================================================
   TÍTULO
================================================== */

.hero-title {
    max-width: 540px;
    margin: 22px 0 22px;

    color: var(--title);

    font-size: clamp(3.2rem, 5vw, 4.7rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -1.8px;
}

.hero-title span {
    display: block;

    color: var(--primary);
}

/* ==================================================
   TEXTO
================================================== */

.hero-text {
    max-width: 515px;
    margin-bottom: 32px;

    color: var(--text);

    font-size: 1.05rem;
    line-height: 1.85;
}

/* ==================================================
   BOTÕES
================================================== */

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-bottom: 0;
}

.hero-buttons .btn {
    min-width: 180px;
}

/* ==================================================
   ESTATÍSTICAS
================================================== */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 0;

    max-width: 520px;

    margin-top: 34px;
    padding: 20px 22px;

    background:
        rgba(255, 255, 255, 0.93);

    border: 1px solid rgba(240, 220, 226, 0.9);
    border-radius: 24px;

    box-shadow: var(--shadow-medium);

    backdrop-filter: blur(10px);
}

.hero-stats > div {
    position: relative;

    padding: 2px 16px;

    text-align: center;
}

.hero-stats > div:not(:last-child)::after {
    position: absolute;
    top: 12%;
    right: 0;

    width: 1px;
    height: 76%;

    content: "";

    background: var(--border);
}

.hero-stats h3 {
    margin-bottom: 4px;

    color: var(--primary);

    font-size: 1.9rem;
    font-weight: 700;
}

.hero-stats p {
    margin: 0;

    color: var(--text-light);

    font-size: 0.83rem;
    line-height: 1.4;
}

/* ==================================================
   COLUNA DA IMAGEM
================================================== */

.hero-image-box {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 620px;

    padding-left: 20px;
}

/* ==================================================
   CARROSSEL
================================================== */

.carousel {
    position: relative;

    width: 100%;
    max-width: 590px;
}

.carousel-inner {
    overflow: visible;
}

.carousel-item {
    position: relative;
}

/* ==================================================
   CARD DO PRODUTO
================================================== */

.hero-product-link {
    position: relative;

    display: block;

    width: 100%;
    min-height: 590px;

    overflow: hidden;

    background: var(--white);

    border: 1px solid rgba(240, 220, 226, 0.95);
    border-radius: 32px;

    box-shadow: var(--shadow-large);

    text-decoration: none;
}

.hero-product-link::after {
    position: absolute;
    inset: 0;

    z-index: 1;

    content: "";

    background:
        linear-gradient(
            180deg,
            transparent 46%,
            rgba(59, 29, 37, 0.1) 67%,
            rgba(59, 29, 37, 0.46) 100%
        );

    pointer-events: none;
}

/* ==================================================
   IMAGEM DO PRODUTO
================================================== */

.hero-image {
    width: 100%;
    height: 590px;

    object-fit: cover;
    object-position: center;

    border-radius: 32px;

    transition:
        transform 0.8s ease,
        filter 0.5s ease;
}

.hero-product-link:hover .hero-image {
    transform: scale(1.04);

    filter: saturate(1.03);
}

/* ==================================================
   LEGENDA DO PRODUTO
================================================== */

.hero-product-caption {
    position: absolute;

    right: 24px;
    bottom: 22px;
    left: 24px;

    z-index: 3;

    padding: 15px 18px;

    color: var(--white);

    background:
        rgba(70, 34, 43, 0.76);

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;

    box-shadow:
        0 16px 35px rgba(40, 20, 26, 0.22);

    backdrop-filter: blur(10px);
}

.hero-product-caption span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 4px;

    color: #ffdce7;

    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.hero-product-caption span::before {
    content: "★";

    color: #ffd166;
}

.hero-product-caption h2 {
    margin: 0;

    color: var(--white);

    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
}

/* ==================================================
   CARDS FLUTUANTES
================================================== */

.hero-card {
    position: absolute;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 220px;
    padding: 17px 20px;

    color: var(--text);

    background:
        rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(240, 220, 226, 0.95);
    border-radius: 18px;

    box-shadow: var(--shadow-medium);

    backdrop-filter: blur(12px);

    animation:
        cardFlutuar 4.5s ease-in-out infinite;
}

.hero-card i {
    flex-shrink: 0;
}

.hero-card strong {
    display: block;

    color: #575154;

    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-card small {
    display: block;

    margin-top: 3px;

    color: var(--text-light) !important;

    font-size: 0.76rem;
    line-height: 1.35;
}

.card-1 {
    top: 4%;
    left: -32px;

    animation-delay: 0s;
}

.card-2 {
    top: 42%;
    right: -42px;

    animation-delay: 0.8s;
}

.card-3 {
    bottom: 20%;
    left: -55px;

    animation-delay: 1.4s;
}

/* ==================================================
   INDICADORES DO CARROSSEL
================================================== */

.carousel-indicators {
    bottom: -50px;

    gap: 6px;

    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 11px !important;
    height: 11px !important;
    margin: 0 !important;

    background: var(--primary) !important;

    border: 0 !important;
    border-radius: 50%;

    opacity: 0.35;

    transition:
        width var(--transition),
        border-radius var(--transition),
        opacity var(--transition);
}

.carousel-indicators .active {
    width: 28px !important;

    border-radius: 999px;

    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    display: none;
}

/* ==================================================
   ANIMAÇÃO DOS CARDS
================================================== */

@keyframes cardFlutuar {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ==================================================
   HERO RESPONSIVA — NOTEBOOK
================================================== */

@media (max-width: 1199.98px) {
    .hero {
        padding-top: 60px;
    }

    .hero .row {
        min-height: 610px;
    }

    .hero-content {
        min-height: 540px;
    }

    .hero-title {
        font-size: clamp(3rem, 5vw, 4.1rem);
    }

    .hero-image-box {
        min-height: 570px;
    }

    .hero-product-link,
    .hero-image {
        min-height: 540px;
        height: 540px;
    }

    .card-1 {
        left: -10px;
    }

    .card-2 {
        right: -5px;
    }

    .card-3 {
        left: -20px;
    }
}

/* ==================================================
   HERO RESPONSIVA — TABLET
================================================== */

@media (max-width: 991.98px) {
    .hero {
        padding: 65px 0 90px;

        text-align: center;
    }

    .hero .row {
        min-height: auto;
    }

    .hero-content {
        align-items: center;

        max-width: 680px;
        min-height: auto;

        margin: 0 auto;
    }

    .hero-badge {
        align-self: center;
    }

    .hero-title,
    .hero-text,
    .hero-stats {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-box {
        min-height: auto;

        margin-top: 50px;
        padding-left: 0;
    }

    .carousel {
        max-width: 650px;
    }

    .hero-product-link,
    .hero-image {
        min-height: 500px;
        height: 500px;
    }

    .hero-card {
        display: none;
    }
}

/* ==================================================
   HERO RESPONSIVA — CELULAR
================================================== */

@media (max-width: 767.98px) {
    .hero {
        padding: 50px 0 80px;
    }

    .hero-title {
        margin-top: 18px;

        font-size: 2.65rem;
        line-height: 1.05;
    }

    .hero-text {
        margin-bottom: 28px;

        font-size: 1rem;
        line-height: 1.75;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        max-width: 420px;

        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;

        gap: 14px;

        width: 100%;
        max-width: 420px;

        padding: 20px;
    }

    .hero-stats > div {
        padding: 8px;
    }

    .hero-stats > div:not(:last-child)::after {
        top: auto;
        right: 12%;
        bottom: -7px;
        left: 12%;

        width: auto;
        height: 1px;
    }

    .hero-stats h3 {
        font-size: 1.7rem;
    }

    .hero-image-box {
        margin-top: 38px;
    }

    .hero-product-link,
    .hero-image {
        min-height: 430px;
        height: 430px;

        border-radius: 24px;
    }

    .hero-product-link {
        border-radius: 24px;
    }

    .hero-product-caption {
        right: 16px;
        bottom: 16px;
        left: 16px;

        padding: 14px 16px;

        border-radius: 16px;

        text-align: left;
    }

    .carousel-indicators {
        bottom: -42px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hero-product-link,
    .hero-image {
        min-height: 360px;
        height: 360px;
    }

    .hero-product-caption h2 {
        font-size: 1.25rem;
    }

    .hero-product-caption span {
        font-size: 0.63rem;
    }
}

/* ==================================================
   ÍCONES DOS CARDS FLUTUANTES
================================================== */

.hero-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 44px;
    height: 44px;

    border-radius: 14px;

    font-size: 1.2rem;
}

.hero-card-icon-pink {
    color: #df4f76;
    background: #fff0f4;
}

.hero-card-icon-green {
    color: #279267;
    background: #ecfaf4;
}

.hero-card-icon-yellow {
    color: #e5a600;
    background: #fff8df;
    
}

.hero-card-content {
    display: flex;
    flex-direction: column;
}

.hero-card-content strong {
    display: block;
}

.hero-card-content small {
    display: block;
}

/* ==================================================
   NEWSLETTER / PROMOÇÕES
================================================== */

.newsletter {
    position: relative;

    margin: 110px 0 90px;
}

/* ==================================================
   CAIXA PRINCIPAL
================================================== */

.newsletter-box {
    position: relative;

    overflow: hidden;

    padding: 65px;

    background:
        linear-gradient(
            135deg,
            #e56590 0%,
            #d95584 45%,
            #c94b77 100%
        );

    border-radius: 36px;

    box-shadow:
        0 30px 70px rgba(213, 85, 132, 0.28);
}

/* ==================================================
   BOLHAS DECORATIVAS
================================================== */

.newsletter-box::before,
.newsletter-box::after {
    position: absolute;

    content: "";

    border-radius: 50%;

    pointer-events: none;
}

.newsletter-box::before {
    top: -170px;
    right: -120px;

    width: 340px;
    height: 340px;

    background:
        rgba(255, 255, 255, 0.08);
}

.newsletter-box::after {
    bottom: -110px;
    left: -80px;

    width: 220px;
    height: 220px;

    background:
        rgba(255, 255, 255, 0.05);
}

/* Mantém o conteúdo acima das bolhas */

.newsletter-box .row {
    position: relative;
    z-index: 2;
}

/* ==================================================
   TEXTO
================================================== */

.newsletter h2 {
    margin-bottom: 18px;

    color: #ffffff;

    font-size: 2.4rem;
    font-weight: 700;
}

.newsletter p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.92);

    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==================================================
   FORMULÁRIO
================================================== */

.newsletter-form {
    width: 100%;
}

/* ==================================================
   CAMPO + BOTÃO
================================================== */

.newsletter-input {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 8px;

    overflow: hidden;

    background: #ffffff;

    border: 2px solid transparent;
    border-radius: 60px;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.newsletter-input:focus-within {
    border-color:
        rgba(255, 255, 255, 0.85);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12),
        0 0 0 5px rgba(255, 255, 255, 0.14);
}

/* ==================================================
   ÍCONE WHATSAPP
================================================== */

.newsletter-input > i {
    flex-shrink: 0;

    margin-right: 15px;
    margin-left: 18px;

    color: var(--primary);

    font-size: 1.2rem;
}

/* ==================================================
   INPUT TELEFONE
================================================== */

.newsletter-input input[type="tel"] {
    flex: 1;

    min-width: 0;

    padding: 0;

    color: #555555;

    background: transparent;

    border: none;
    outline: none;

    font-size: 1rem;
}

.newsletter-input input[type="tel"]::placeholder {
    color: #999999;
}

/* ==================================================
   BOTÃO
================================================== */

.newsletter-input button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex-shrink: 0;

    min-height: 56px;

    padding: 14px 28px;

    color: #ffffff;

    background: var(--primary);

    border: none;
    border-radius: 50px;

    font-weight: 600;
    line-height: 1.35;

    cursor: pointer;

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition),
        opacity var(--transition);
}

.newsletter-input button:hover {
    background: var(--primary-hover);

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(119, 39, 67, 0.22);
}

.newsletter-input button:active {
    transform: translateY(0);
}

.newsletter-input button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.newsletter-input button:disabled {
    opacity: 0.7;

    cursor: not-allowed;

    transform: none;
}

/* ==================================================
   CONSENTIMENTO
================================================== */

.newsletter-consentimento {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    max-width: 560px;

    margin-top: 14px;
    margin-left: 18px;
    margin-right: 18px;

    color:
        rgba(255, 255, 255, 0.92);

    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.55;

    cursor: pointer;
}

/* Checkbox */

.newsletter-consentimento input[type="checkbox"] {
    position: relative;

    flex-shrink: 0;

    width: 18px;
    height: 18px;

    margin-top: 1px;

    appearance: none;
    -webkit-appearance: none;

    background:
        rgba(255, 255, 255, 0.96);

    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 5px;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.newsletter-consentimento input[type="checkbox"]:hover {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.12);
}

.newsletter-consentimento input[type="checkbox"]:checked {
    background: #ffffff;
    border-color: #ffffff;
}

/* Check */

.newsletter-consentimento input[type="checkbox"]:checked::after {
    position: absolute;

    top: 1px;
    left: 4px;

    width: 6px;
    height: 10px;

    content: "";

    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);

    transform: rotate(45deg);
}

.newsletter-consentimento input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 3px;
}

.newsletter-consentimento span {
    display: block;
}

/* ==================================================
   MENSAGEM DE RETORNO
================================================== */

.newsletter-mensagem {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 14px;
    margin-right: 18px;
    margin-left: 18px;

    padding: 11px 14px;

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.14);

    border: 1px solid
        rgba(255, 255, 255, 0.24);
    border-radius: 12px;

    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;

    backdrop-filter: blur(8px);
}

.newsletter-mensagem[hidden] {
    display: none !important;
}

/* Mensagem de sucesso */

.newsletter-mensagem.sucesso {
    color: #175b3b;

    background: #effbf5;

    border-color: #cceedd;
}

/* Mensagem de erro */

.newsletter-mensagem.erro {
    color: #8d2943;

    background: #fff1f4;

    border-color: #ffd4df;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 991.98px) {
    .newsletter {
        margin: 80px 0;
    }

    .newsletter-box {
        padding: 45px 35px;

        text-align: center;
    }

    .newsletter h2 {
        font-size: 2rem;
    }

    .newsletter .hero-badge {
        align-self: center;
    }

    .newsletter-consentimento {
        justify-content: center;

        margin-right: auto;
        margin-left: auto;

        text-align: left;
    }

    .newsletter-mensagem {
        margin-right: auto;
        margin-left: auto;

        text-align: left;
    }
}

/* ==================================================
   CELULAR
================================================== */

@media (max-width: 767.98px) {
    .newsletter-box {
        padding: 35px 25px;
    }

    .newsletter-input {
        flex-direction: column;
        gap: 15px;

        padding: 18px;

        border-radius: 25px;
    }

    .newsletter-input > i {
        display: none;
    }

    .newsletter-input input[type="tel"] {
        width: 100%;

        padding: 8px 5px;

        text-align: center;
    }

    .newsletter-input button {
        width: 100%;

        padding: 15px 20px;
    }

    .newsletter-consentimento {
        justify-content: flex-start;

        margin-top: 15px;
        margin-right: 3px;
        margin-left: 3px;

        font-size: 0.73rem;
    }

    .newsletter-mensagem {
        margin-right: 0;
        margin-left: 0;
    }
}

/* ==================================================
   CELULAR PEQUENO
================================================== */

@media (max-width: 575.98px) {
    .newsletter {
        margin: 60px 0;
    }

    .newsletter-box {
        padding: 28px 20px;

        border-radius: 24px;
    }

    .newsletter h2 {
        font-size: 1.8rem;
    }

    .newsletter p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .newsletter-input {
        padding: 14px;
    }

    .newsletter-input button {
        min-height: 52px;

        font-size: 0.9rem;
    }
}