/* ============================================================
   Ramalhos Landing Pages — CSS Base
   Brand: #e10a17 (vermelho Ramalhos)
   Fonts: Josefin Sans (headings) + Roboto (body)
   ============================================================ */

:root {
    --primary: #e10a17;
    --primary-dark: #b80812;
    --secondary: #f5f5f5;
    --text-dark: #2C2C2C;
    --text-light: #555555;
    --white: #FFFFFF;
    --black: #1a1a1a;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ──────────────────────────────────────────── */

header {
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    line-height: 0;
}

.logo {
    max-width: 260px;
    width: 100%;
    height: auto;
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Josefin Sans', sans-serif;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

/* ── Problema Section ────────────────────────────────── */

.problema {
    padding: 5rem 0;
    background-color: var(--secondary);
}

.problema h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
    text-align: center;
}

.problema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.problema-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.problema-item h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.problema-item p {
    font-size: 1rem;
    color: var(--text-light);
}

/* ── Solucao Section ─────────────────────────────────── */

.solucao {
    padding: 5rem 0;
    background-color: var(--white);
}

.solucao h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.solucao-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.solucao-list {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
}

.solucao-list li {
    padding: 1rem 0 1rem 2.5rem;
    position: relative;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
}

.solucao-list li:last-child {
    border-bottom: none;
}

.solucao-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ── Social Proof / Numeros ──────────────────────────── */

.numeros {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--black) 0%, #333 100%);
    color: var(--white);
    text-align: center;
}

.numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.numero-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.numero-item p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ── CTA / Form Section ─────────────────────────────── */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.cta-section > .container > p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.lead-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus {
    outline: 3px solid rgba(255,255,255,0.5);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.cta-button-submit {
    display: block;
    width: 100%;
    background-color: var(--white);
    color: var(--primary);
    padding: 18px 40px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Josefin Sans', sans-serif;
    margin-top: 0.5rem;
}

.cta-button-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.cta-button-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success.show {
    display: block;
}

.form-success h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.form-success p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.form-error {
    background-color: rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    display: none;
    font-size: 0.9rem;
}

.form-error.show {
    display: block;
}

.lead-form.hidden {
    display: none;
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    height: 36px;
    max-width: calc(100vw - 4rem);
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-copy a {
    color: #ccc;
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
    .logo {
        max-width: 200px;
    }

    .hero {
        padding: 3.5rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .problema h2,
    .solucao h2,
    .cta-section h2 {
        font-size: 1.6rem;
    }

    .problema-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .numeros-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 170px;
    }

    .numeros-grid {
        grid-template-columns: 1fr;
    }
}
