/* CSS Variables */
:root {
    --color-primary: #1A2238;
    /* Azul Meia-Noite */
    --color-secondary: #9BB7D4;
    /* Azul Sereno */
    --color-accent: #D4AF37;
    /* Ouro Suave */

    /* Dark Theme Colors */
    --color-bg: #0d111e;
    /* Deep Dark Blue */
    --color-card-bg: #161d30;
    /* Lighter Dark Blue for cards */
    --color-text: #e0e6ed;
    /* Light Grey for text */
    --color-text-muted: #a0aec0;
    --color-white: #ffffff;
    --color-relax: #232d4b;
    /* Darker Lavender equivalent */

    --font-primary: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;

    --container-width: 1200px;
    --border-radius: 8px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Darker shadow */
}


/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--color-white);
    /* Changed to white for dark mode */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    opacity: 0.9;
    /* Slightly dim images */
}

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn--outline {
    border: 2px solid var(--color-accent);
    /* Changed to accent */
    color: var(--color-accent);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn--large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn--mobile-nav {
    width: 100%;
    margin-top: 0.5rem;
}

/* Section Spacing */
section {
    padding: var(--spacing-lg) 0;
}

/* Header */
.header {
    background-color: rgba(13, 17, 30, 0.95);
    /* Darker header */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
    /* White logo text */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 600;
    color: var(--color-text);
    /* Light text */
    font-family: var(--font-primary);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    /* Accent underline */
    transition: width 0.3s;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--color-white);
}

.nav__cta-item {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    /* White icon */
}

/* Hero */
.hero {
    background-color: var(--color-bg);
    /* Use base bg */
    background: radial-gradient(circle at top right, #1a2238 0%, #0d111e 100%);
    /* Subtle gradient */
    color: var(--color-white);
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content h1 {
    font-size: 3rem;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    /* Muted text */
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image-wrapper img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    /* Stronger shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Thinner border */
}

/* Pain & Solution */
.pain-solution {
    background-color: var(--color-bg);
    /* Dark bg */
}

.pain-solution__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pain-card {
    background-color: rgba(255, 80, 80, 0.1);
    /* Dark red tint */
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.pain-card h2 {
    color: #ff6b6b;
    /* Red heading */
}

.solution-card {
    background-color: var(--color-card-bg);
    /* Card bg */
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.solution-card h2 {
    color: var(--color-secondary);
}

/* About */
.about {
    background-color: var(--color-bg);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about__subtitle {
    margin-bottom: 1rem;
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: var(--font-primary);
}

.about__text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Pain & Solution Card Headings */
.pain-card h3,
.solution-card h3 {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1rem;
}

.pain-card h3::after,
.solution-card h3::after {
    display: none;
}

.pain-card h3 {
    color: #ff6b6b;
}

.solution-card h3 {
    color: var(--color-secondary);
}

.certifications {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.certifications img {
    height: 85px;
    width: auto;
    opacity: 0.9;
    filter: grayscale(30%);
    transition: all 0.3s ease;
    cursor: help;
}

.certifications img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Services */
.services {
    background-color: var(--color-bg);
    background: linear-gradient(180deg, var(--color-bg) 0%, #111526 100%);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    background: var(--color-relax);
    /* Dark Lavender */
    border-color: var(--color-secondary);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.service-card p {
    color: var(--color-text-muted);
}

/* Testimonials */
.testimonials {
    background-color: var(--color-relax);
    /* Darker section */
    color: var(--color-white);
}

.testimonials h2 {
    color: var(--color-white);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(0, 0, 0, 0.2);
    /* Darker transparent bg */
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: var(--border-radius);
    font-style: italic;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    /* Push to bottom if card height varies */
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-white);
    font-style: normal;
    font-size: 1rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: normal;
}

/* FAQ */
.faq {
    background-color: var(--color-bg);
}

.faq__list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--color-card-bg);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--color-white);
}

.faq-item p {
    color: var(--color-text-muted);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-bottom: 0;
    opacity: 0;
}

.faq-item.active p {
    max-height: 200px;
    /* Adjust as needed */
    margin-bottom: 1rem;
    opacity: 1;
    transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

.faq-item h3 i {
    transition: transform 0.3s ease;
    color: var(--color-secondary);
}

.faq-item.active h3 i {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background-color: #05070a;
    /* Very dark footer */
    color: var(--color-text-muted);
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer p,
.footer li {
    margin-bottom: 0.8rem;
    color: var(--color-text-muted);
}

.footer a:hover {
    color: var(--color-accent);
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-card-bg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
    }

    .nav.active {
        display: flex;
    }

    .nav__list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
    }

    .nav__cta-item {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
    }

    /* Hide header button on mobile to save space */
    .header .btn {
        display: none;
    }

    .hero__container,
    .pain-solution__grid,
    .about__container {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 0;
        text-align: center;
    }

    .hero__content p {
        margin: 0 auto 2rem;
    }

    .about__text {
        order: 2;
        text-align: center;
    }

    .certifications {
        justify-content: center;
    }

    .about__image {
        order: 1;
    }

    section {
        padding: 3rem 0;
    }

    h1,
    .hero__content h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-header p {
    color: var(--color-text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group select option {
    background-color: var(--color-card-bg);
    color: var(--color-white);
}

.btn--full {
    width: 100%;
}

/* Modal Animations */
.modal-body {
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow: hidden;
}

/* State: element leaving */
.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* State: element entering */
.fade-in {
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message Styling */
.modal-success {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.modal-success i {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 1.5rem;
    display: block;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-success h3 {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.modal-success p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Error Message Styling */
.modal-error {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.modal-error i {
    font-size: 5rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    display: block;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-error h3 {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.modal-error p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Input Error State */
.input-error {
    border-color: #ff6b6b !important;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}