/* Main Site Styles */
/* Variables are defined in the page header via inline CSS to support dynamic PHP values */

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

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

/* Utility */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-green {
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-green:hover {
    background-color: #00b359;
    /* Fallback/Hardcoded or could use variable calc if supported */
    transform: translateY(-2px);
}

.btn-orange {
    background-color: var(--primary-orange);
    color: white;
}

.btn-orange:hover {
    background-color: var(--primary-orange);
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* Header */
header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: none;
    gap: 20px;
}

@media(min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange) 100%);
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media(min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 80px 0;
    }
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Form */
.form-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-orange);
    text-align: center;
}

.form-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
    color: #666;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f9f9f9;
}

.form-control:focus {
    border-color: var(--primary-orange);
    outline: none;
    background: white;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-full {
    grid-column: span 2;
}

@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: span 1;
    }
}

/* Features/Vantagens */
.features-section {
    padding: 60px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-box {
    text-align: center;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: 0.3s;
    height: 100%;
}

.feature-box:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 36px;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-desc {
    color: #666;
    font-size: 0.9rem;
}

/* Steps/Como Solicitar */
.steps-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-orange);
    opacity: 0.1;
    position: absolute;
    top: -10px;
    right: 10px;
}

.step-icon {
    font-size: 40px;
    color: var(--primary-orange);
    margin-bottom: 20px;
    display: inline-block;
}

.step-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.step-text {
    color: #666;
    font-size: 0.95rem;
}

/* Warning Box */
.warning-section {
    padding: 50px 0;
    background: #fff3cd;
    border-top: 1px solid #ffeeba;
    border-bottom: 1px solid #ffeeba;
}

.warning-box {
    border: 2px dashed #856404;
    padding: 30px;
    border-radius: 10px;
    background: white;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.warning-title {
    color: #856404;
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Social Proof */
.numbers-section {
    padding: 60px 0;
    background: white;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media(min-width: 768px) {
    .numbers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.number-item {
    text-align: center;
}

.number-val {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-orange);
    display: block;
    margin-bottom: 5px;
}

.number-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
    line-height: 1.4;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.faq-item {
    margin-bottom: 15px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
}

.faq-answer {
    display: none;
    margin-top: 15px;
    color: #555;
    line-height: 1.6;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
footer {
    background: #222;
    color: #bbb;
    padding: 50px 0;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-legal {
    max-width: 1000px;
    margin: 0 auto;
    text-align: justify;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 30px;
}

.mobile-cta {
    display: none !important;
}

@media(min-width: 768px) {
    .mobile-cta {
        display: none;
    }
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #991b1b;
}

/* Mobile Compact Layout Adjustments */
@media (max-width: 768px) {

    /* Compact Typography & Spacing */
    body {
        line-height: 1.35;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Hero Section Compact */
    .hero {
        padding: 30px 0 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        line-height: 1.1;
    }

    .hero-text p {
        margin-bottom: 15px;
        font-size: 0.95rem;
    }

    .hero-card {
        padding: 20px;
        margin-top: 10px;
    }

    /* Form Compact */
    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        margin-bottom: 2px !important;
        font-size: 11px !important;
    }

    .form-control {
        padding: 8px 12px;
        font-size: 14px;
        height: auto;
    }

    .form-subtitle {
        margin-bottom: 15px;
    }

    .logo img {
        max-height: 40px !important;
    }

    /* Functionality Sections Compact */
    .features-section,
    .steps-section,
    .numbers-section,
    .faq-section {
        padding: 40px 0;
    }

    .features-grid,
    .steps-grid,
    .numbers-grid {
        gap: 15px;
    }

    .feature-box,
    .step-card {
        padding: 20px;
    }

    .feature-icon,
    .step-icon {
        margin-bottom: 10px;
        font-size: 28px;
    }

    .step-card .step-number {
        font-size: 2rem;
        top: -5px;
    }

    /* FAQ Compact */
    .faq-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .faq-question {
        font-size: 0.9rem;
    }

    .faq-answer {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 0.85rem;
    }

    /* Footer */
    footer {
        padding: 30px 0;
    }

    .warning-box {
        padding: 15px;
    }

    /* Full width buttons on mobile */
    .steps-section .btn,
    .features-section .btn,
    .hero-text .btn {
        display: block;
        width: 95%;
        margin: 10px auto 0 auto;
    }
}