/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

:root {
    --primary-color: #05226d;
    --primary-light: #1642ae;
    --primary-dark: #031545;
    --secondary-color: #f7f9fc;
    --accent-color: #0d6efd;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --whatsapp-color: #25D366;
    --whatsapp-dark: #1da851;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

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

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

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

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

h1, h2, h3, h4 { color: var(--primary-color); font-weight: 700; }
h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(5, 34, 109, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 34, 109, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 15px 35px; font-size: 1.1rem; }

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.logo img { height: 60px; object-fit: contain; }

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

.nav a {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.nav a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001; /* Above mobile nav */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../assets/imagens/bg-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 34, 109, 0.9) 0%, rgba(5, 34, 109, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.1;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease forwards 0.3s;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease forwards 0.6s;
    opacity: 0;
}

.hero-buttons .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Sobre Nós */
.sobre {
    padding: 100px 0;
    background-color: var(--white);
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.badge-icon { height: 20px; }

.sobre-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.sobre-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sobre-features li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.sobre-features li:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotate(5deg) scale(1.05);
}

.sobre-features li strong { display: block; font-size: 1.2rem; color: var(--primary-color); margin-bottom: 5px; }
.sobre-features li span { color: var(--text-muted); font-size: 0.95rem; }

.sobre-gallery .gallery-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 15px;
}

.sobre-gallery img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    transition: var(--transition);
}

.sobre-gallery img:hover { transform: scale(1.02); }

.img-main { height: 100%; min-height: 400px; }

.gallery-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-col img { height: 100%; }

/* Procedimentos */
.procedimentos {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.procedimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.proc-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.proc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
}

.proc-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.proc-card:hover::before { transform: scaleY(1); }

.proc-icon {
    width: 70px; height: 70px;
    background-color: rgba(5, 34, 109, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 25px; transition: var(--transition);
}

.proc-card:hover .proc-icon {
    background-color: var(--primary-color); color: var(--white); transform: scale(1.1);
}

.proc-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.proc-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.5; }

.proc-actions {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto;
}

/* Equipe */
.equipe {
    padding: 100px 0;
    background-color: var(--white);
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.membro-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.membro-card:hover { transform: translateY(-10px); }

.membro-img {
    height: 350px;
    background-size: cover;
    background-position: center top;
}

.membro-info { padding: 30px; text-align: center; }

.membro-info h3 { font-size: 1.5rem; margin-bottom: 8px; }
.membro-info .cro { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.especialidades { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.especialidades span {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Depoimentos */
.depoimentos {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.depoimentos-swiper {
    width: 100%;
    padding-bottom: 50px; /* Space for pagination */
}

.swiper-slide {
    height: auto; /* Make all slides match tallest card */
}

.depoimento-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%; /* Stretch to swiper slide */
    display: flex;
    flex-direction: column;
}

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

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.dep-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dep-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.dep-info h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.dep-stars i {
    color: #fbbc04;
    font-size: 0.9rem;
    margin-right: 2px;
}

.dep-google {
    margin-left: auto;
    color: #4285F4;
    font-size: 1.8rem;
}

.dep-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Localização e Contato */
.contato-loc { padding: 0; display: flex; background: var(--primary-dark); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; max-width: 100%; padding: 0; }

.contato-info-box {
    padding: 100px 10%;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contato-info-box h2 { color: var(--white); }
.contato-info-box > p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 40px; }

.info-item {
    display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start;
}
.info-item i {
    width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.info-item strong { display: block; font-size: 1.1rem; margin-bottom: 5px; }
.info-item span { color: rgba(255,255,255,0.7); }

.cta-contato { margin-top: 20px; margin-bottom: 30px; }
.cta-contato .btn { background-color: var(--whatsapp-color); color: var(--white); }
.cta-contato .btn:hover { background-color: var(--whatsapp-dark); transform: translateY(-3px); }

.rota-botoes { display: flex; gap: 15px; }
.rota-botoes .btn-outline { border-color: rgba(255,255,255,0.3); color: var(--white); }
.rota-botoes .btn-outline:hover { background-color: var(--white); color: var(--primary-dark); }

.map-box { position: relative; min-height: 500px; }
.map-box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Footer */
.footer { background-color: #020e2e; color: rgba(255,255,255,0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }

/* ==================================
   INTERIOR PAGES / PROCEDIMENTOS
   ================================== */
.page-hero {
    position: relative;
    height: 45vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px; /* offset header */
}

.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(5, 34, 109, 0.95) 0%, rgba(5, 34, 109, 0.75) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    animation: fadeInUp 0.8s ease forwards;
}

.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
}

.page-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.procedimento-detalhe {
    padding: 80px 0;
    background-color: var(--white);
}

.proc-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;
}

.proc-conteudo h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.proc-conteudo p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.7;
}

.proc-beneficios {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 5px solid var(--primary-color);
}

.proc-beneficios h3 {
    margin-bottom: 20px;
}

.proc-beneficios ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.proc-beneficios li {
    font-size: 1.05rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.proc-beneficios li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 40px 0;
}

/* Sidebar Box */
.sidebar-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    position: sticky;
    top: 110px;
}

.sidebar-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.sidebar-box p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.sidebar-box hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Accordion FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

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

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: var(--secondary-color);
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

@media (max-width: 992px) {
    .proc-layout {
        grid-template-columns: 1fr;
    }
}


.footer-logo { height: 60px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p { margin-bottom: 25px; line-height: 1.8; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; transition: var(--transition); }
.social-links a:hover { color: var(--primary-light); }

.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 25px; font-weight: 700; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 5px; }

.footer-contact p { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.footer-contact i { margin-top: 5px; color: var(--primary-light); }
.footer-contact .crosp { font-weight: 700; color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; text-align: center; }

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: scale(1.1);
    animation: none;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 992px) {
    .sobre-grid, .footer-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-content h1 { font-size: 3rem; }
    .contato-grid { grid-template-columns: 1fr; }
    .map-box { height: 400px; }
    .contato-info-box { padding: 60px 20px; }
    
    /* Mobile Navigation overrides */
    .header { position: absolute; }
    .header-content { justify-content: space-between; height: 80px; padding: 0 20px; }
    .header-cta { display: none; }
    .mobile-menu-btn { display: block; }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
    .hero-buttons { flex-direction: column; }
    .sobre-gallery .gallery-layout { grid-template-columns: 1fr; }
}
