/* --- VARIABLES & GLOBAL STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Poppins:wght@600;700&display=swap');

:root {
    --primary-color: #0a2e5c; /* Deep Blue */
    --secondary-color: #f9a826; /* Vibrant Yellow/Orange for CTAs */
    --dark-grey: #333333;
    --medium-grey: #555555;
    --light-grey: #f4f4f4;
    --white-color: #ffffff;
    --success-green: #28a745;
    --error-red: #dc3545;

    --header-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white-color);
}

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

/* --- LANGUAGE-SPECIFIC STYLES --- */
html[lang="pt"] .en,
html[lang="en"] .pt {
    display: none;
}

/* --- HEADER --- */
.site-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo a {
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    max-height: 40px; /* Adjust as needed */
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.language-switcher {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.language-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--medium-grey);
    font-size: 16px; /* Increased size */
    padding: 5px 8px; /* Added padding */
    border-radius: 4px; /* Slightly rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none; /* remove default underline */
}

.language-switcher button.active {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 700;
    cursor: default;
}

.language-switcher button:not(.active) {
    color: var(--primary-color);
}

.language-switcher button:not(.active):hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.language-switcher span {
    margin: 0 5px;
    color: var(--medium-grey);
    font-size: 16px; /* Match button font size */
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- CALL TO ACTION BUTTONS --- */
.cta-button {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.cta-button.primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.cta-button.primary:hover {
    background-color: #e89a20;
    transform: translateY(-2px);
}

/* Add a less prominent style for header button */
.header-actions .cta-button {
     background-color: transparent;
     color: var(--primary-color);
     border: 2px solid var(--primary-color);
}
.header-actions .cta-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* --- HERO SECTION --- */
.hero {
    background: var(--light-grey);
    padding: 150px 0 100px;
    text-align: center;
}

/* Optional hero background image if provided */
.hero.has-image {
    background: url('../hero.png') center/cover no-repeat;
    background-position: 50% 32%; /* Shift focus upward to keep faces visible */
    color: #ffffff;
    position: relative; /* enable overlay */
}

/* Overlay for better text contrast */
.hero.has-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* Ensure content is above overlay */
.hero .container {
    position: relative;
    z-index: 1;
}

/* Force white text over hero image */
.hero.has-image h1,
.hero.has-image p,
.hero.has-image .section-title {
    color: #ffffff !important;
}

.hero.has-image .cta-button.primary { border: 0; }

@media (max-width: 576px) {
    .hero.has-image {
        background-position: 50% 38%; /* Slightly different crop for mobile */
    }
}

/* --- GENERAL SECTION STYLES --- */
section {
    padding: 80px 0;
}
.section-title {
    font-family: var(--header-font);
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

/* --- PROCESS SECTION --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.process-step .step-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.process-step h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- BENEFITS SECTION --- */
.benefits-section {
    background-color: var(--light-grey);
}
.benefits-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.benefit-content {
    flex: 1;
}
.benefit-content .section-title {
    text-align: left;
}
.benefit-image {
    flex: 1;
    aspect-ratio: 4 / 5; /* symmetrical portrait crop */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* bias upward to hide bottom watermark */
    display: block;
}
.comparison {
    display: flex;
    margin-top: 30px;
    gap: 20px;
}
.comparison div {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
}
.comparison h3 {
    font-family: var(--header-font);
    margin-bottom: 15px;
}
.comparison ul {
    list-style: none;
}
.comparison li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.comparison .fa-solid {
    margin-right: 10px;
    font-size: 18px;
}
.without-us {
    background-color: #ffebee;
}
.without-us h3 { color: var(--error-red); }
.without-us .fa-xmark { color: var(--error-red); }
.with-us {
    background-color: #e8f5e9;
}
.with-us h3 { color: var(--success-green); }
.with-us .fa-check { color: var(--success-green); }


/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.service-item {
    background-color: var(--light-grey);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.service-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-right: 15px;
}

.services-illustration {
    text-align: center;
    margin-bottom: 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.services-illustration img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}


/* --- ABOUT SECTION --- */
.about-section {
     background-color: var(--light-grey);
}
.about-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-image {
    flex: 1;
    aspect-ratio: 1 / 1; /* perfect square for symmetry */
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    border-radius: 0; /* wrapper controls the circle */
}
.about-content {
    flex: 1.2;
}
.about-content .section-title {
    text-align: left;
}

.advisor-headshot {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


/* --- FINAL CTA SECTION --- */
.cta-final-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}
.cta-final-section .section-title, .cta-final-section h2 {
    color: var(--white-color);
    font-family: var(--header-font);
}
.cta-final-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}
.cta-final-section .small-text {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

/* --- FOOTER --- */
.site-footer-bottom {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column h4 {
    font-family: var(--header-font);
    color: var(--white-color);
    margin-bottom: 15px;
}
.footer-column p, .footer-column a {
    color: var(--light-grey);
    text-decoration: none;
    margin-bottom: 10px;
}
.footer-column a:hover {
    color: var(--secondary-color);
}
.footer-column i {
    margin-right: 10px;
}
.social-links a {
    font-size: 24px;
    margin-right: 15px;
}
.footer-bottom-text {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--medium-grey);
    font-size: 14px;
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90%;
    max-height: 700px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--medium-grey);
    cursor: pointer;
    line-height: 1;
}

#calendly-embed {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .main-nav, .header-actions .cta-button {
        display: none;
    }
    .mobile-menu-toggle {
        display: none;
    }
    .language-switcher {
        display: flex;
        justify-content: flex-end;
        margin-left: 0;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav li {
        margin: 0;
        text-align: center;
    }
    .main-nav a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid var(--light-grey);
    }
    .header-actions {
        /* Re-enable for mobile menu */
        flex-direction: column;
        width: 100%;
        padding: 20px;
        gap: 20px;
        align-items: stretch;
    }
     .header-actions.active {
        display: flex;
    }
     .language-switcher.active {
        display: flex;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefits-section .container, .about-section .container {
        flex-direction: column;
    }
    .benefit-image, .about-image {
        order: -1; /* Move image to top */
        margin-bottom: 30px;
        width: 100%;
    }
    .benefit-content .section-title, .about-content .section-title {
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 36px;
    }
    .process-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .comparison {
        flex-direction: column;
    }
    .footer-column {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}
