/* ===== Variáveis ===== */
:root {
    --color-secondary: #38935f;
    --color-black: #000;
    --font-size-base: 1.05rem;
    --font-size-medium: 1.15rem;
    --font-size-large: 1.25rem;
    --card-header-green: #5eab9e;
    --card-header-dark: #2a7663;
    --brand-green: #49AB8D;
    --subtitle-yellow: #ffc107;
    --color-danger: #48a447;
    --color-success: #198754;
    --color-warning: #ffc107;
    --color-warning-hover: #c5aa48;
}

/* ===== Reset / Base ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Montserrat', 'Roboto', 'Segoe UI', sans-serif;
    color: #333;
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Seção de preços ===== */
.pricing-section {
    color: #212529;
    margin-top: 50px;
}

.pricing-banner {
    background-image: linear-gradient(45deg, #2a7663, #5eab9e, #2a7663);
    padding: 20px 5px;
    color: #fff;
    margin-bottom: 50px;
}

.pricing-banner__title,
.pricing-subtitle {
    text-align: center;
    margin: 0;
}

.pricing-banner__title {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.pricing-subtitle {
    color: var(--subtitle-yellow);
    font-size: 2rem;
    font-weight: 700;
}

.brand-highlight {
    color: var(--brand-green);
}

/* ===== Container ===== */
.container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

/* ===== Grid de cards ===== */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -15px;
    margin-right: -15px;
}

.pricing-col {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

/* Ordem no mobile: 6 potes, 3 potes, 1 pote */
.pricing-col:nth-child(1) { order: 3; }
.pricing-col:nth-child(2) { order: 1; }
.pricing-col:nth-child(3) { order: 2; }

@media (min-width: 768px) {
    .pricing-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .pricing-col:nth-child(1) { order: 1; }
    .pricing-col:nth-child(2) { order: 2; }
    .pricing-col:nth-child(3) { order: 3; }
}

/* ===== Cards ===== */
.card {
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    transform: scale(1.02);
    position: relative;
    z-index: 1;
    border: 2px solid var(--color-secondary);
}

.pricing-card.popular:hover {
    transform: scale(1.05);
}

.card-header {
    background-color: var(--card-header-green);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.card-header--dark {
    background-color: var(--card-header-dark);
}

.card-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.card-body {
    padding: 0;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body--gradient {
    background: radial-gradient(#64a387, #20594a);
    color: white;
}

.pricing-title {
    background-color: #f8f8f8;
    text-align: center;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.pricing-title h3,
.pricing-title p {
    margin: 0;
}

.pricing-title h3 {
    font-size: 2rem;
    font-weight: 700;
}

/* Título do card Best Value: mesmo destaque dos outros, estilo próprio */
.pricing-title--popular {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-title--popular h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.15rem 0;
    letter-spacing: 0.02em;
}

.pricing-title--popular p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.95;
}

.card-content {
    padding: 1.5rem;
}

.card-img {
    display: block;
    margin-bottom: 1rem;
}

.price {
    margin: 15px 0;
}

.price h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0;
    display: inline-block;
    position: relative;
}

.per-bottle {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 600;
    display: inline-block;
    text-align: left;
    padding-left: 5px;
}

.card-divider {
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0;
    margin: 0 0 1rem 0;
}

.card-divider:first-of-type {
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
}

.card-divider p {
    margin: 0;
}

.card-divider--light {
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.popular .card-divider {
    border-color: rgba(255, 255, 255, 0.2);
}

.save-amount {
    font-weight: 700;
}

/* ===== Cores de texto ===== */
.text-white {
    color: #fff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.strikethrough {
    text-decoration: line-through;
}

.fw-bold {
    font-weight: 700;
}

/* ===== Botões ===== */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: var(--font-size-medium);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.btn-lg {
    font-size: var(--font-size-large);
    padding: 0.8rem 2rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-danger {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: #fff;
}

.btn-warning {
    background-color: var(--color-warning);
    border-color: #d7bb52;
    color: var(--color-black);
}

.btn-warning:hover {
    background-color: var(--color-warning-hover);
    border-color: var(--color-warning-hover);
    color: var(--color-black);
}

/* Override: botão "BUY NOW" dos cards 1 e 3 potes no estilo amarelo (igual ao original) */
.pricing-card:not(.popular) .btn-danger {
    background-color: var(--color-warning);
    border-color: #d7bb52;
    color: var(--color-black);
}

.pricing-card:not(.popular) .btn-danger:hover {
    background-color: var(--color-warning-hover);
    border-color: var(--color-warning-hover);
    color: var(--color-black);
}

.card-content .btn {
    margin-bottom: 1rem;
}

.btn + .payment-methods {
    margin-top: 0;
}

/* ===== Payment & total ===== */
.payment-methods {
    margin: 1rem 0;
}

.card-content .fas {
    margin-right: 0.5rem;
}

.payment-methods img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
}

.total-price {
    font-size: 1.3rem;
}

.total-price p {
    margin: 0 0 0.25rem 0;
}

.total-price p:last-child {
    margin-bottom: 0;
}

/* ===== Tipografia geral ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 1.2rem;
}

.card-content p {
    margin-bottom: 0;
}

/* ===== Responsividade ===== */
@media (max-width: 768px) {
    :root {
        --font-size-base: 1rem;
        --font-size-medium: 1.1rem;
        --font-size-large: 1.2rem;
    }

    .pricing-banner__title {
        font-size: 2rem;
    }

    .pricing-subtitle {
        font-size: 1.75rem;
    }

    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .pricing-grid {
        margin-left: 0;
        margin-right: 0;
    }

    .pricing-col {
        padding-left: 10px;
        padding-right: 10px;
    }

    .price h1 {
        font-size: 2.8rem;
    }

    .per-bottle {
        font-size: 0.8rem;
    }

    .pricing-card.popular {
        transform: scale(1);
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    /* Coluna do Best Value (2ª no DOM, 1ª no mobile): mais margem embaixo para não colar no card seguinte */
    .pricing-col:nth-child(2) {
        margin-bottom: 2.25rem;
    }

    .card-content {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .pricing-col {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

footer {
    background-color: #000;
    color: #7e7e7e;
    margin-top: 300px;
    text-align: center;
    padding: 30px 10px;
    font-size: 13px;
}

.vsl {
    margin: 40px auto;
    max-width: 900px;
}
