/* ==========================================================================
   ANA PASSOS PODOLOGIA - ESTILOS GLOBAIS
   ========================================================================== */

/* --- RESET E VARIÁVEIS --- */
:root {
    --marsala: #8B3A3A;
    --marsala-light: #A64E4E;
    --off-white: #FAF9F6;
    --medical-green: #1A535C;
    --medical-green-light: #26727E;
    --silver: #E5E7EB;
    --social-blue: #2B5A8E;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --text-light-gray: #6b7280;
    --white: #ffffff;
    --max-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 100%; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-serif, .logo-title {
    font-family: 'Playfair Display', serif;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* --- CLASSES UTILITÁRIAS --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.text-marsala { color: var(--marsala); }
.text-medical { color: var(--medical-green); }
.text-white { color: var(--white); }
.bg-medical { background-color: var(--medical-green); }
.bg-marsala { background-color: var(--marsala); }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(26, 83, 92, 0.2);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--medical-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--medical-green-light);
    transform: translateY(-2px);
}

/* --- HEADER & NAV --- */
header {
    position: fixed; width: 100%; height: 96px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 50; border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo-area { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 1.875rem; font-weight: 700; color: var(--marsala); letter-spacing: -0.025em; }
.logo-sub { font-size: 0.625rem; color: #4b5563; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }

.desktop-menu { display: none; }
.desktop-menu a {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: #374151; margin: 0 1.2rem;
}
.desktop-menu a:hover { color: var(--marsala); }

.menu-toggle { background: none; border: none; cursor: pointer; color: var(--marsala); padding: 0.5rem; }

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 120px; min-height: 100vh;
    display: flex; align-items: center;
    background: linear-gradient(rgba(250, 249, 246, 0.96), rgba(250, 249, 246, 0.88)), url('../img/bg-hero.webp') no-repeat center center/cover;
}

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }

.hero-content h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 1rem; color: var(--marsala); }
.hero-content h2 { font-size: 2rem; font-weight: 400; font-style: italic; color: var(--marsala-light); margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.125rem; color: var(--text-gray); font-weight: 400; margin-bottom: 2rem; max-width: 500px; }

.hero-image-wrapper { position: relative; display: none; }
.hero-img {
    border-radius: 4rem; border: 12px solid white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    filter: grayscale(5%); transition: filter 0.7s;
    width: 100%; height: auto; object-fit: cover;
}
.hero-img:hover { filter: grayscale(0%); }

.hero-badge {
    position: absolute; bottom: -2rem; left: -2rem;
    background: white; padding: 2rem; border-radius: 2.5rem;
    border: 1px solid #e5e7eb; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- SECTIONS GENERAL --- */
.section-padding { padding: 6rem 0; }
.section-title-wrapper { margin-bottom: 2rem; }
.section-eyebrow {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; display: block; margin-bottom: 1rem; color: #4b5563;
}
.section-eyebrow.text-marsala { color: var(--marsala); }
.section-title { font-size: 2.5rem; font-weight: 700; color: #111827; line-height: 1.2; }
.divider {
    width: 4rem; height: 4px;
    background: linear-gradient(to right, #9ca3af, transparent);
    margin-top: 1rem;
}

/* --- QUEM SOU --- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.about-text { order: 2; } /* Mobile First */
.about-text p { margin-bottom: 1.5rem; font-size: 1.125rem; font-weight: 400; font-style: italic; color: var(--text-gray); }

.feature-box {
    background-color: rgba(26, 83, 92, 0.05); border: 1px solid rgba(26, 83, 92, 0.2);
    padding: 1.5rem; border-radius: 1.5rem; margin-top: 1rem;
}

.about-img {
    border-radius: 4rem; border: 8px solid white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    filter: grayscale(20%); width: 100%; height: auto; object-fit: cover; aspect-ratio: 3/4;
}

/* --- ESPECIALIDADES --- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.service-card {
    background-color: var(--off-white); padding: 2rem; border-radius: 2.5rem;
    border: 1px solid #e2e8f0; transition: all 0.4s ease;
}
.service-card:hover {
    transform: translateY(-8px); border-color: var(--medical-green);
    box-shadow: 0 20px 40px -10px rgba(26, 83, 92, 0.1);
}
.service-title {
    font-size: 1.25rem; font-weight: 700; color: var(--medical-green);
    font-family: 'Playfair Display', serif; font-style: italic; margin-bottom: 0.5rem;
}
.service-subtitle {
    font-size: 0.75rem; color: #4b5563; font-style: italic; font-weight: 600;
    margin-bottom: 0.75rem; display: block;
}
.service-desc { font-size: 0.9rem; color: #374151; font-weight: 400; line-height: 1.6; }

/* --- PROJETO SOCIAL --- */
.social-card {
    background-color: #ffffff; border: 1px solid rgba(43, 90, 142, 0.15);
    border-radius: 4rem; padding: 2rem; display: flex; flex-direction: column; gap: 3rem;
}

/* --- LOCALIZAÇÃO --- */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.location-img-wrapper { position: relative; padding: 1rem; }
.location-img {
    border-radius: 4rem; border: 4px solid var(--off-white);
    position: relative; z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%; height: auto;
}

/* --- FOOTER --- */
footer {
    background-color: var(--marsala); color: white;
    padding: 6rem 0 2rem; position: relative;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.footer-col h3 {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.2em; opacity: 0.9; margin-bottom: 1.5rem; color: #F3F4F6;
}
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icon {
    background-color: rgba(255, 255, 255, 0.15); padding: 0.6rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: white;
}
.social-icon:hover { background-color: white; color: var(--marsala); }
.contact-item { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; color: #F9FAFB; }
.contact-item:hover { color: white; text-decoration: underline; }

.payment-badge {
    display: inline-block; font-size: 0.65rem; border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.8rem; border-radius: 0.5rem; background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600; margin-bottom: 0.5rem; color: white;
}
.copyright {
    margin-top: 5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center; font-size: 0.7rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: #E5E7EB;
}
.credits a { color: white; border-bottom: 1px solid rgba(255, 255, 255, 0.5); font-weight: 700; }

/* --- MOBILE MENU --- */
#mobile-menu {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100%;
    background-color: white; z-index: 60;
    box-shadow: -10px 0 25px rgba(0,0,0,0.1); transition: right 0.3s ease-in-out;
    padding: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem;
}
#mobile-menu.active { right: 0; }
.mobile-link { font-size: 1.125rem; font-weight: 600; color: #374151; }
#menu-overlay {
    position: fixed; inset: 0; background-color: rgba(0,0,0,0.5);
    z-index: 55; display: none; backdrop-filter: blur(4px);
}
#menu-overlay.active { display: block; }

/* --- ACESSIBILIDADE --- */
.acc-btn {
    position: fixed; bottom: 20px; left: 20px; height: 50px; width: 50px;
    background-color: var(--medical-green); color: white; border-radius: 25px;
    display: flex; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer; z-index: 9999; border: 2px solid white;
    transition: width 0.3s ease, background-color 0.3s; overflow: hidden; white-space: nowrap;
}
.acc-btn:hover { width: 170px; background-color: var(--medical-green-light); }
.acc-icon-container { width: 46px; height: 100%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acc-label { opacity: 0; font-weight: 600; font-size: 0.9rem; transition: opacity 0.2s ease; pointer-events: none; padding-right: 15px; color: white; }
.acc-btn:hover .acc-label { opacity: 1; transition-delay: 0.1s; }

.acc-menu {
    position: fixed; bottom: 80px; left: 20px; background-color: white; padding: 1rem;
    border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 9998;
    display: none; width: 220px; border: 1px solid #e5e7eb;
}
.acc-menu.active { display: block; }

.acc-item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px;
    border: none; background: none; cursor: pointer; color: var(--text-dark);
    font-size: 0.9rem; border-radius: 0.5rem; transition: background 0.2s;
    text-align: left; font-weight: 600;
}
.acc-item:hover { background-color: #f3f4f6; }

/* --- MODOS ESPECIAIS (Alto Contraste / Grayscale) --- */
body.high-contrast { background-color: #000 !important; color: #fff !important; }
body.high-contrast section, body.high-contrast footer, body.high-contrast header,
body.high-contrast div, body.high-contrast p, body.high-contrast h1, 
body.high-contrast h2, body.high-contrast h3, body.high-contrast h4,
body.high-contrast span, body.high-contrast a, body.high-contrast li {
    background-color: #000 !important; color: #ffff00 !important; border-color: #fff !important;
}
body.high-contrast .acc-btn { background-color: #ffff00 !important; border: none !important; color: #000 !important; }
body.high-contrast .btn-primary { background-color: #ffff00 !important; color: #000 !important; border: 2px solid #fff; font-weight: 900; }
body.high-contrast img { filter: grayscale(100%) contrast(120%); }

body.grayscale-mode { filter: grayscale(100%); }
body.grayscale-mode .acc-btn { background-color: #363636 !important; color: #ffffff !important; }

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    /* Regras Desktop */
    .desktop-menu { display: flex; }
    .menu-toggle { display: none; }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .hero-image-wrapper { display: block; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .about-text { order: 1 !important; } /* Reset ordem */
    .about-img-wrapper { order: 2 !important; }
    .social-card { flex-direction: row; padding: 5rem; align-items: center; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .location-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-content h1 { font-size: 4.5rem; }
    
    /* Botão Navbar Desktop (Estava inline no original) */
    header .btn-primary { display: inline-block !important; }
}

@media (min-width: 1280px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-content h1 { font-size: 5rem; }
}