﻿ï»¿/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #152238; /* Deep Navy Blue */
    --color-secondary: #00B37E; /* Emerald Green/Teal */
    --color-gradient: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --color-bg: #FFFFFF;
    --color-bg-alt: #E8F6F1;
    --color-menu-bg: #DCDCDC;
    --color-text: #333333;
    --color-text-light: #777777;
    
    /* Typography */
    --font-primary: 'Instrument Sans', sans-serif;
    --font-heading: 'Instrument Sans', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility to prevent scrolling when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation (Mobile First)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative; /* For absolute positioning of nav on desktop */
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    z-index: 1001; /* Stay above mobile menu */
}

.logo-jdx {
    color: var(--color-primary);
}

.logo-energia {
    color: var(--color-secondary);
}

.logo-img {
    max-height: 80px;
    width: auto;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Stay above mobile menu */
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Hamburger Active State */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation - Mobile */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform var(--transition-normal) cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1000;
}

.nav.active {
    transform: translateY(0);
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
}

/* Hover/Active Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-secondary) !important;
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   Desktop Adjustments (min-width: 768px)
   ========================================================================== */
@media screen and (min-width: 768px) {
    .hamburger {
        display: none;
    }

    /* Floating Centered Menu */
    .nav {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: auto;
        width: auto;
        background-color: transparent;
        flex-direction: row;
        z-index: 1000;
    }

    .nav-list {
        flex-direction: row;
        white-space: nowrap;
        gap: 2.5rem;
        background: var(--color-menu-bg);
        padding: 0.75rem 2.5rem;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(0,0,0,0.03);
    }

    .nav-link {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Typography & Shared Components
   ========================================================================== */
.section-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    border: none;
    text-decoration: none;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.btn:hover {
    background-color: #00996b;
    animation: pulse 1.5s infinite;
    color: #ffffff;
}

.btn-primary {
    background-color: var(--color-secondary) !important;
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #00996b;
    animation: pulse 1.5s infinite;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 80px; /* Offset for fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

/* Overlay gradient (dark to blueish) on left */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient goes from solid dark blue on the left to transparent on the right */
    background: linear-gradient(to right, rgba(21, 34, 56, 0.95) 0%, rgba(21, 34, 56, 0.8) 50%, rgba(21, 34, 56, 0.2) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 4rem 1.5rem;
}

.hero-content {
    max-width: 700px;
    animation: fadeIn 1s ease-out forwards;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Section 2: About Us (Quem Somos)
   ========================================================================== */
.about {
    padding: 5rem 0;
    background-color: var(--color-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.about-highlight {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--color-menu-bg);
    border-left: 5px solid var(--color-secondary);
    border-radius: 0 12px 12px 0;
    box-shadow: var(--shadow-sm);
    text-align: left;
    line-height: 1.5;
}

/* ==========================================================================
   Section 3: Analysis & Diagnosis
   ========================================================================== */
.diagnosis {
    padding: 5rem 0 7rem;
    background-color: #E8F6F1;
}

.diagnosis-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    background: var(--color-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-gradient);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #66CFA8;
    color: #152238; /* Contraste escuro para leitura */
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: none;
}

.step-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
}

@media screen and (min-width: 600px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.diagnosis-closing {
    margin-top: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-btn svg {
    width: 34px;
    height: 34px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Mobile adjustments for WhatsApp button */
@media screen and (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================================
   Section 4: Solutions
   ========================================================================== */
.solutions {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.solution-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.solution-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.solution-desc {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    flex-grow: 1; /* Pushes the button to the bottom */
}






@media screen and (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Section 5: Metrics & Coverage
   ========================================================================== */
.metrics {
    padding: 6rem 0;
    background-color: #152238;
    color: #ffffff;
}

.metrics-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.metrics-content {
    flex: 1;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

.metric-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.4;
}

.metrics-map {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brazil-map-container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

/* Base style for states (Estados Atendidos) */
.brazil-map-container svg {
    width: 100%;
    height: auto;
}

.brazil-map-container svg path {
    fill: #00B37E; /* Verde claro */
    stroke: #ffffff; /* TraÃ§ado leve e minimalista */
    stroke-width: 1px;
    transition: fill var(--transition-fast);
}

.brazil-map-container svg path:hover {
    fill: #00996b;
}

/* Estados NÃO Atendidos (AM, PA, AP, AC, RO, MT) */
.brazil-map-container svg path#AM, .brazil-map-container svg path.estado-am, .brazil-map-container svg path[id*="AM"],
.brazil-map-container svg path#PA, .brazil-map-container svg path.estado-pa, .brazil-map-container svg path[id*="PA"],
.brazil-map-container svg path#AP, .brazil-map-container svg path.estado-ap, .brazil-map-container svg path[id*="AP"],
.brazil-map-container svg path#AC, .brazil-map-container svg path.estado-ac, .brazil-map-container svg path[id*="AC"],
.brazil-map-container svg path#RO, .brazil-map-container svg path.estado-ro, .brazil-map-container svg path[id*="RO"],
.brazil-map-container svg path#MT, .brazil-map-container svg path.estado-mt, .brazil-map-container svg path[id*="MT"] {
    fill: #cccccc; /* Cinza claro */
}

.brazil-map-container svg path#AM:hover, .brazil-map-container svg path.estado-am:hover,
.brazil-map-container svg path#PA:hover, .brazil-map-container svg path.estado-pa:hover,
.brazil-map-container svg path#AP:hover, .brazil-map-container svg path.estado-ap:hover,
.brazil-map-container svg path#AC:hover, .brazil-map-container svg path.estado-ac:hover,
.brazil-map-container svg path#RO:hover, .brazil-map-container svg path.estado-ro:hover,
.brazil-map-container svg path#MT:hover, .brazil-map-container svg path.estado-mt:hover {
    fill: #b3b3b3;
}

@media screen and (min-width: 992px) {
    .metrics-container {
        flex-direction: row;
        align-items: center;
    }
    
    .metrics-content {
        padding-right: 4rem;
    }
}

/* ==========================================================================
   Section 6: Founder
   ========================================================================== */
.founder {
    padding: 7rem 0;
    background-color: var(--color-bg);
}

.founder-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.founder-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-photo-mask {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1023 / 1537;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-secondary);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-text-col {
    flex: 1;
}

.section-title.text-left {
    text-align: left;
}

.section-title.text-left::after {
    margin: 1rem 0 0 0;
}

.founder-bio p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.founder-bio p:last-child {
    margin-bottom: 0;
}

@media screen and (min-width: 992px) {
    .founder-container {
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }

    .founder-photo-mask {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1023 / 1537;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-secondary);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}
}

/* ==========================================================================
   Section 7 & 8: Contact & CTA
   ========================================================================== */
.contact {
    padding: 7rem 0 5rem;
    background-color: var(--color-bg-alt);
}

.contact-cta {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 5rem;
}

.cta-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.cta-btn {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    background: var(--color-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact-info-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.5;
}

.contact-list strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--color-bg-alt);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 179, 126, 0.2);
    background-color: #ffffff;
}

.form-submit {
    margin-top: 1rem;
    width: 100%;
}

@media screen and (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
        gap: 5rem;
    }

    .contact-list strong {
        display: inline;
        margin-right: 0.5rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0b1322; /* Darker than primary */
    color: #ffffff;
    padding: 4rem 0 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background-color: var(--color-secondary) !important;
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* ==========================================================================
   Fatura Page
   ========================================================================== */
.invoice-section {
    padding: 100px 0;
    background-color: var(--color-bg);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.invoice-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.invoice-text-col {
    max-width: 500px;
}

.invoice-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 24px;
}

.invoice-desc {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.invoice-form-col {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.invoice-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-file-upload {
    position: relative;
    width: 100%;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--color-secondary);
    background-color: #e6f7f2;
}

.upload-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    color: var(--color-secondary);
}

.file-upload-label span {
    font-size: 1rem;
    margin-bottom: 8px;
}

.file-upload-label small {
    font-size: 0.85rem;
    color: #94a3b8;
}

.btn-submit-invoice {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
    background-color: var(--color-secondary) !important;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.btn-submit-invoice:hover {
    background-color: #008a61;
}

@media (max-width: 992px) {
    .invoice-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .invoice-title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.modal-container {
    background-color: #ffffff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(30px);
    transition: transform var(--transition-normal);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    padding-right: 20px; /* Space for close btn */
}

.modal-title {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.modal-body {
    margin-bottom: 25px;
    color: #333333;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

@media screen and (max-width: 480px) {
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    .cta-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   BLOG STYLES
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}
@media screen and (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-img.placeholder {
    background: var(--color-menu-bg);
}

.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-date {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-weight: bold;
}
.blog-card-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}
.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    flex: 1;
}

/* ==========================================================================
   ARTICLE STYLES
   ========================================================================== */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}
@media screen and (max-width: 768px) {
    .article-container {
        padding: 20px;
    }
}

.artigo-image-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}
.artigo-main-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.artigo-title {
    font-family: 'Instrument Sans', sans-serif;
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.artigo-date {
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: bold;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.artigo-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}
.artigo-content h2,
.artigo-content h3,
.artigo-content h4 {
    font-family: 'Instrument Sans', sans-serif;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 15px;
}
.artigo-content h2 { font-size: 1.8rem; }
.artigo-content h3 { font-size: 1.5rem; }

.artigo-content p {
    margin-bottom: 20px;
}
.artigo-content blockquote {
    border-left: 4px solid var(--color-secondary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--color-text-light);
    background: var(--color-menu-bg);
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

.artigo-back {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}



.hero-cta {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
    border-radius: 4px !important;
    margin-top: 40px !important;
    display: inline-block;
}

.metric {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.metric-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}
.metric-label {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.solution-link {
    color: var(--color-secondary) !important;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}
.solution-link:hover {
    color: var(--color-primary) !important;
    text-decoration: underline;
    transform: translateX(5px);
}

.gradient-line {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
    margin: 2rem auto;
    width: 50%;
    opacity: 0.7;
}

.diagnosis-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.diagnosis-steps .step-card {
    width: 100%;
}
.step-separator {
    width: 60%;
    margin: 1rem auto;
}

@media screen and (min-width: 992px) {
    .diagnosis-steps {
        flex-direction: row;
        align-items: stretch;
    }
    .diagnosis-steps .step-card {
        flex: 1;
    }
    .diagnosis-steps .step-separator {
        width: 2px;
        height: 150px;
        margin: auto 1rem;
        background: linear-gradient(180deg, transparent, var(--color-secondary), transparent);
    }
}

.contrast-cta {
    background-color: #E8F6F1;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contrast-cta .section-title {
    color: var(--color-primary) !important;
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.contrast-cta p {
    color: var(--color-secondary);
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
}

/* Overrides for Buttons to guarantee solid green */
.btn, .btn-primary {
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    border: none !important;
}
.btn:hover, .btn-primary:hover {
    background-color: #00996b !important;
    animation: pulse 1.5s infinite !important;
    color: #ffffff !important;
}
