/* ===== Configurações globais ===== */
:root {
    --primary: #0066ff;
    --primary-dark: #0044b7;
    --secondary: #ffb703;
    --gray-100: #fafafa;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 0.75rem;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-100);
}

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

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

h1,
h2,
h3 {
    color: var(--gray-800);
    line-height: 1.2;
}

.container {
    width: min(90%, var(--max-width));
    margin-inline: auto;
}

/* ===== Botões ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
}

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

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn--secondary {
    background: var(--gray-900);
    color: #fff;
}

.btn--lg {
    font-size: 1.125rem;
}

/* ===== Navbar ===== */
.navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 0.75rem;
}

.desktop-menu a {
    margin-left: 2rem;
    font-weight: 500;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--gray-900);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-bottom: 2px solid var(--primary);
}

.mobile-menu a {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.mobile-menu .btn {
    margin: 1rem;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* ===== Hero ===== */
/* ==== HERO (versão turbinada) ==== */
.hero {
    /* 1) foto em alta + 2) gradiente diagonal para dar profundidade   */
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.60) 0%, rgba(255, 255, 255, 0.30) 60%),
        url("./images/hero-bg.webp") center/cover no-repeat;

    /* 3) remove o overlay antigo  */
    position: relative;
    color: #fff;
    text-align: center;
    padding: 7rem 1rem 6rem;
    text-shadow: 1px 1px 1px gray;
}

.hero::before {
    /* overlay anterior deixa de existir */
    content: none;
}

/* headline com sombra suave para leitura em qualquer contraste */
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
    color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* botão com efeito de brilho ao passar o mouse */
.btn--primary {
    background: linear-gradient(90deg, #0066ff 0%, #1a8cff 100%);
}

.btn--primary:hover {
    background: linear-gradient(90deg, #1a8cff 0%, #0066ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 102, 255, 0.35);
}

/* badges reposicionadas para aproveitar o espaço extra */
.trust-badges {
    margin-top: 3rem;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

/* responsividade extra para telas pequenas */
@media (max-width: 540px) {
    .hero {
        padding: 5rem 1rem 4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}


.trust-badges li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== Benefícios ===== */
.benefits {
    padding: 6rem 0;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefits__grid article {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.benefits__grid .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===== Planos ===== */
.plans {
    padding: 6rem 0;
    background: var(--gray-100);
}

.plans__cards {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 2rem;
}

.card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s;
}

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

.card .price {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--primary);
}

.card .price span {
    font-size: 1rem;
    color: var(--gray-700);
}

.card ul {
    text-align: left;
    margin: 1.5rem 0 2rem;
    line-height: 1.5;
}

.card.featured {
    border: 2px solid var(--primary);
}

.badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    background: var(--secondary);
    color: var(--gray-900);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== Depoimentos ===== */
.testimonials {
    padding: 6rem 0;
}

.testimonials__slider {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.slide {
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s, transform 0.5s;
    max-width: 720px;
    margin-inline: auto;
    background: #fff;
    padding: 2rem 3rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slider__controls {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.slider__controls button {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.3s;
}

.slider__controls button:hover {
    background: var(--primary-dark);
}

/* ===== FAQ ===== */
.faq {
    padding: 6rem 0;
}

.accordion {
    padding: 20px 0px;
}

.accordion__item+.accordion__item {
    margin-top: 1rem;
}

.accordion__header {
    width: 100%;
    background: #fff;
    padding: 1.25rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion__header::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform 0.2s;
    color: var(--primary);
}

.accordion__header[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
    border: 2px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0 1rem;
}

.accordion__body p {
    padding: 1rem 0;
}

/* ===== Formulário ===== */
.contact {
    padding: 4rem 0;
    background: var(--gray-900);
    color: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

form {
    max-width: 640px;
    margin-inline: auto;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.75rem;
    position: absolute;
    bottom: -1.1rem;
    left: 0.25rem;
    display: none;
}

.form-success {
    display: none;
    margin-top: 1.25rem;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
}

/* ===== Rodapé ===== */
.footer {
    background: #000;
    color: #9ca3af;
    text-align: center;
    padding: 1.25rem 0;
    font-size: 0.875rem;
}

/* ===== Utilidades ===== */
@media (max-width: 540px) {
    .btn--lg {
        font-size: 1rem;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .plans__cards {
        gap: 1.25rem;
    }
}