/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #557570;
    --secondary: #0D0445;
    --accent-1: #AECFC4;
    --accent-2: #BFCFAE;
    --accent-3: #E7F0DF;
    
    /* Efeito de Luxo Prata rzrz */
    --silver-rzrz: linear-gradient(135deg, #e6e6e6 0%, #ffffff 45%, #b3b3b3 100%);
    --silver-rzrz-hover: linear-gradient(135deg, #f0f0f0 0%, #ffffff 50%, #c0c0c0 100%);
    
    --text-dark: #1A1A1A;
    --text-light: #F8F9FA;
    --text-muted: #5A5A5A;
    --bg-light: #FAFAFA;
    
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(13, 4, 69, 0.05);
    --shadow-medium: 0 15px 40px rgba(13, 4, 69, 0.08);
    --shadow-strong: 0 20px 40px rgba(13, 4, 69, 0.2);
    
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.center {
    text-align: center;
}

.mt-xl {
    margin-top: 3rem;
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--font-heading); /* Added Sora Font */
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn svg {
    vertical-align: middle;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #1a0a80;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #405a56;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-silver {
    background: var(--silver-rzrz);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.btn-silver:hover {
    background: var(--silver-rzrz-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-wpp {
    background: linear-gradient(180deg, #25D366 0%, #128C7E 100%);
    color: #FFF !important;
}

.btn-wpp:hover {
    background: linear-gradient(90deg, #1ebe5d 0%, #0f776a 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out;
    z-index: -1;
}

.btn-glow:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.logo-wpp {
    font-size: 1.3em;
}

/* =========================================
   Header
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(13, 4, 69, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-soft);
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    height: 90px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

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

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

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for header */
    overflow: hidden; /* Keep absolute backgrounds bounded */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Slightly increased for bright contrast */
    z-index: -1;
}

.hero-content {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text-box {
    flex: 1.2;
    max-width: 650px;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(85, 117, 112, 0.1); /* Softer Bullet */
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-headline {
    font-size: 3.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 550px; /* Increased Picture Size */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 4px solid #fff;
}

.silver-divider {
    height: 6px;
    width: 100%;
    background: var(--silver-rzrz);
}

/* =========================================
   Sobre Section
========================================= */
.sobre {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.sobre-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.sobre-image-container {
    flex: 1;
    position: relative;
}

.sobre-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
}

.image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    background-color: var(--accent-1);
    z-index: 1;
}

.sobre-content {
    flex: 1;
}

.sobre-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.sobre-pretitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 5px;
}

.sobre-title {
    font-size: 3rem; /* Matched with Services Section */
    color: var(--primary);
    margin-bottom: 5px;
}

.sobre-subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--text-muted); /* Softening style color */
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.sobre-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* =========================================
   Serviços Section
========================================= */
.servicos {
    padding: 100px 0;
    background-color: #F4F8F1; /* Lighter soft green */
    position: relative;
}

.servicos .section-title, .faq .section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 16px auto 40px;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.servico-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-bottom-color: var(--primary); /* Green border */
}

.servico-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 24px;
}

.servico-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.servico-card p {
    color: var(--text-muted);
}

/* =========================================
   Atendimento
========================================= */
.atendimento {
    padding: 100px 0;
    background-color: #fff;
}

.atendimento-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.atendimento-content {
    flex: 1;
}

.atendimento-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.atendimento-content .section-subtitle {
    margin: 0 0 40px 0;
}

.modalidade-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    border: 1px solid rgba(13, 4, 69, 0.05);
    transition: var(--transition);
    align-items: flex-start;
}

.modalidade-card:hover {
    box-shadow: var(--shadow-soft);
    background-color: #fff;
}

.modalidade-icon {
    font-size: 36px;
    color: var(--primary); /* Green icons */
    margin-top: 6px; /* Refined alignment to match title cap height exactly */
}

.modalidade-text h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.modalidade-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.atendimento-image {
    flex: 1;
}

.atendimento-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

/* =========================================
   FAQ Section
========================================= */
.faq {
    padding: 100px 0;
    background-color: var(--primary);
    background-image: linear-gradient(to bottom, var(--primary) 0%, #FFFFFF 100%); /* Green to White gradient */
    color: #FFF;
}

.faq .section-title {
    color: #FFF !important;
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question i {
    font-size: 1.25rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}

.faq-answer p {
    padding: 0 30px 24px;
    color: var(--text-muted);
}

.final-cta-text {
    margin-bottom: 20px;
    font-size: 1.125rem;
    color: var(--text-dark);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--primary); /* Dark green now */
    color: #FFF;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 90px;
    margin: 0 auto 10px;
}

.footer-logo p {
    color: #FFF; /* CRP to white */
    font-size: 1rem;
    font-weight: 600;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 20px;
}

/* =========================================
   Floating WhatsApp
========================================= */
.wpp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-strong);
    z-index: 100;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.wpp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.wpp-tooltip {
    position: absolute;
    right: 80px;
    background-color: #FFF;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.wpp-float:hover .wpp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   Responsive Match Mobile First / Adjustments
========================================= */
@media (max-width: 991px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text-box {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .sobre-container {
        flex-direction: column-reverse; /* Text first, image last on mobile */
    }

    .sobre-content {
        text-align: center; /* Center all texts inside Sobre on mobile */
    }

    .atendimento-container {
        flex-direction: column;
        align-items: center; /* Center cards horizontally too on this scope if layout matches */
    }

    .atendimento-content .section-title,
    .atendimento-content .section-subtitle {
        text-align: center;
    }
    
    .sobre-image-container, .atendimento-image {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .logo {
        height: 75px; /* Decreased size for mobile */
    }
    
    .mobile-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 30px; /* Adjusted to pull inside screen */
        transform: translateY(-50%);
        z-index: 1100; /* Ensure it stays above everything on the bar */
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }

    .hero {
        padding: 120px 0 60px !important; /* Offset for header cutoff */
    }
    
    .hero-headline {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .sobre, .servicos, .atendimento, .faq {
        padding: 60px 0;
    }
    
    .sobre-content .section-title,
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        padding: 16px;
    }
    
    .wpp-float {
        bottom: 20px;
        right: 20px;
    }
}
