:root {
    --primary-color: #00204a;
    --primary-light: #003366;
    --secondary-color: #d4af37;
    /* Gold */
    --accent-color: #ff6b35;
    /* Orange for urgent CTAs */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 70px;
    /* Compact Navbar */
    padding: 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.4rem;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    /* Standard padding */
}

/* Wrapper creates the space in the flex flow */
.logo-wrapper {
    position: relative;
    width: 30px;
    /* Reserves width for the logo */
    height: 70px;
    /* Matches navbar height */
    margin-right: 8px;
    /* Space between logo and text */
}

/* Image breaks out of the wrapper */
.navbar-brand img {
    position: absolute;
    top: 22.5px;
    /* Centers logo vertically (70px - 25px) / 2 */
    left: 0;
    height: 25px;
    /* Total height of the logo */
    width: auto;
    max-height: none;
    z-index: 100;
}

.navbar-brand span {
    margin-left: 0;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    margin-right: 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #e85d2a;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 150px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Social Proof Section */
.social-proof-section {
    padding: 80px 0;
    background-color: var(--white);
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    margin-top: 2rem;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Differentials Section */
.differentials-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.differentials-section h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}

.differential-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.differential-icon {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.differential-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--white);
}

.accordion-button:not(.collapsed) {
    background-color: #eef2f7;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #001530;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Humanized WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1000;
}

.whatsapp-tooltip {
    background-color: var(--white);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 20px 20px 0 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    max-width: 280px;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s ease forwards 2s;
    /* Delays appearance */
}

/* Tooltip Arrow */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 25px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
}

.whatsapp-avatar-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-avatar-container:hover {
    transform: scale(1.05);
}

.avatar-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #25d366;
    /* WhatsApp Green border */
    background-color: var(--white);
    padding: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
    background-color: #25d366;
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 120px 0 100px;
        text-align: center;
    }

    .hero-collage {
        margin-bottom: 60px;
    }

    .hero-image-container {
        margin-top: 2rem;
    }

    .differential-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .differential-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Espaço extra no rodapé para o link do desenvolvedor
       não ficar atrás do botão flutuante do WhatsApp */
    .footer {
        padding-bottom: 110px;
    }
}

/* Developer Signature */
.developer-signature-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-signature-link:hover {
    color: var(--secondary-color);
}

/* Hero Collage */
.hero-collage {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 25px;
    height: 500px;
}

.collage-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.collage-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

.collage-main {
    grid-row: 1 / 3;
    grid-column: 1;
}

.collage-sec-top {
    grid-column: 2;
    grid-row: 1;
}

.collage-sec-bottom {
    grid-column: 2;
    grid-row: 2;
}

@media (max-width: 768px) {
    .hero-collage {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .collage-item {
        height: 250px;
    }
}

/* Mobile Navbar Adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-toggler {
        border: none;
        padding: 0;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }
}