/* ============================================
   ROOT & VARIABLES
   ============================================ */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    z-index: 2001;
    transition: var(--transition);
}

.skip-link:focus {
    top: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
}

section {
    scroll-margin-top: 110px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-img {
    height: 87px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.cta-button:hover {
    background-color: #f97316;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 80px 0;
    background-color: var(--bg-light);
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    list-style: none;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.about-image img {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

@media (max-width: 1024px) {
    .about-image img {
        max-width: 620px;
    }
}

@media (max-width: 768px) {
    .about-image img {
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .about-image img {
        max-width: 100%;
        border-radius: 8px;
    }
}

/* ============================================
   DIFFERENTIALS SECTION
   ============================================ */
.differentials {
    padding: 80px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.differentials h2,
.segments h2,
.faq h2,
.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.differentials-grid,
.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.differential-card,
.segment-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.differential-card:hover,
.segment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon,
.segment-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.differential-card h3,
.segment-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.differential-card p,
.segment-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   SEGMENTS SECTION
   ============================================ */
.segments {
    padding: 80px 0;
    background-color: var(--bg-light);
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    padding: 80px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: var(--bg-white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question.active {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 20px;
    background-color: var(--bg-light);
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 80px 0;
    background-color: var(--bg-light);
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    line-height: 1.4;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.captcha-group {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.captcha-group label {
    display: none;
}

.captcha-group span {
    display: none;
}

.form-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
}

.submit-button {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.info-text h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-light);
}

.info-text a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.info-text a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 40px 0 20px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 360px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   MODAL - SUCESSO
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.modal-icon.success {
    color: #10b981;
    animation: popIn 0.6s ease;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-info {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary-color);
}

.modal-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-info a:hover {
    text-decoration: underline;
}

.modal-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

.modal-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    animation: floatBounce 3s ease-in-out infinite;
    touch-action: manipulation;
    will-change: transform;
}

/* Ring effect (ondas ao redor) */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid rgba(37, 211, 102, 0.5);
    border-radius: 50%;
    animation: ring 2s ease-out infinite;
    pointer-events: none;
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.18);
    animation: softPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

.whatsapp-btn:hover {
    background-color: #1cbb57;
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.8);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

/* Animação Float + Bounce */
@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(-8px);
    }
}

/* Animação de pulso */
@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* Animação de anel (ring) */
@keyframes ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        padding: 0.6rem 0;
    }

    .logo-img {
        height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-white);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    }

    .nav-menu.active {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

    .hero {
        min-height: 520px;
        padding: 80px 0 90px;
    }

    .hero-background {
        width: 360px;
        height: 360px;
        transform: translate(80px, -120px);
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin: 0 auto 1.5rem;
    }

    .cta-button {
        padding: 14px 32px;
    }

    .about,
    .differentials,
    .segments,
    .faq,
    .contact {
        padding: 64px 0;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .differentials h2,
    .segments h2,
    .faq h2,
    .contact h2 {
        font-size: 2rem;
    }

    .differentials-grid,
    .segments-grid {
        grid-template-columns: 1fr;
    }

    .section-subtitle {
        margin-bottom: 28px;
    }

    .info-item {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    section {
        scroll-margin-top: 90px;
    }

    .container {
        padding: 0 16px;
    }

    .logo-img {
        height: 56px;
    }

    .hero {
        min-height: 480px;
        padding: 70px 0 80px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .about h2,
    .differentials h2,
    .segments h2,
    .faq h2,
    .contact h2 {
        font-size: 1.7rem;
        margin-bottom: 32px;
    }

    .about p {
        font-size: 1rem;
    }

    .about-features li {
        font-size: 0.95rem;
    }

    .differential-card,
    .segment-card {
        padding: 20px;
    }

    .faq-question {
        padding: 14px;
        font-size: 1rem;
    }

    .faq-answer.active {
        padding: 16px;
    }

    .contact-content {
        gap: 30px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .submit-button {
        width: 100%;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .whatsapp-btn {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    .whatsapp-btn::before {
        border-width: 2px;
    }
}
