/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
*/

/* =========================================
   FIX IPHONE DEFINITIVO
   ========================================= */
/* 1. Pinta a tela inteira de azul (engana o iPhone) */
html {
    background-color: #1b2c44;
}

body {
    background-color: #1b2c44 !important;
    /* Garante que a área de rolagem 'elástica' seja azul */
}

/* 2. Pinta o cabeçalho de azul */
.site-header {
    background-color: #1b2c44 !important; /* Removemos a transparência por enquanto para garantir a cor */
    padding-top: calc(20px + env(safe-area-inset-top));


}

/* 3. Devolve a cor BRANCA para o miolo do site (onde vai o texto) */
#page {
    background-color: #ffffff;
    position: relative;
    z-index: 2; 
}


/* ===============================
   SAFE AREA / NOTCH IPHONE FIX
   =============================== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background-color: #1b2c44;
    z-index: 9999;
    pointer-events: none;
}

/* =========================================
   1. FONTES E TIPOGRAFIA
   ========================================= */
/* ... (o resto do código continua igual abaixo) ... */

/* =========================================
   1. FONTES E TIPOGRAFIA
   ========================================= */
body { font-family: 'Lato', sans-serif; }

h1, h2, h3, h4, h5, h6, 
.custom-hero-title, 
.custom-section-title, 
.logo-title { 
    font-family: 'Roboto Slab', serif; 
}

/* =========================================
   2. CABEÇALHO
   ========================================= */
.site-header {
    background-color: rgba(27, 44, 68, 0.95) !important;
    backdrop-filter: blur(10px);
    color: #ffffff !important;
    padding: 20px 0; 
    
    /* Sticky Padrão */
    position: sticky; 
    top: 0; 
    z-index: 1000;
    
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.site-header .site-branding .logo-title {
    font-family: 'Roboto Slab', serif !important;
    margin: 0; 
    line-height: 1.1; 
    text-transform: none; 
    color: #ffffff !important; 
    letter-spacing: 0.5px;
    font-weight: 700 !important; 
    
    /* Correção Mobile (sem quebra de linha) */
    font-size: 22px; 
    white-space: nowrap; 
}

.logo-subtitle {
    display: block; 
    font-size: 13px; 
    font-style: normal;
    color: #e6f0fa; 
    opacity: 0.9; 
    margin-top: 3px; 
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.5px;
}

/* Desktop: Fonte maior */
@media (min-width: 769px) {
    .site-header .site-branding .logo-title {
        font-size: 28px;
    }
}

.header-inner-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}

/* Menu Desktop */
.header-right-side { display: flex; align-items: center; gap: 30px; }
.custom-menu-ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.custom-menu-ul li a { color: #fff !important; text-decoration: none; padding: 8px 16px; border-radius: 6px; font-weight: 500; display: block; }
.custom-menu-ul li a:hover { background-color: #fff !important; color: #1b2c44 !important; }

.icons-wrapper { display: flex; gap: 15px; align-items: center; }
.custom-social-icons { display: flex; gap: 15px; }
.header-icon, .reset-btn-style { background: none !important; border: none !important; color: #fff !important; cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; }
.header-icon:hover { transform: scale(1.1); opacity: 0.9; }

/* Busca */
.header-search-bar { position: absolute; top: 100%; left: 0; width: 100%; background: #152236; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.search-container-inner { max-width: 800px; margin: 0 auto; position: relative; padding: 0 20px; }
.header-search-input { width: 100%; background: transparent !important; border: none !important; border-bottom: 2px solid rgba(255,255,255,0.3) !important; color: #fff !important; font-size: 20px; padding: 10px 50px 10px 0; }
.close-search-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 30px; }

/* MOBILE HEADER LAYOUT */
.mobile-only { display: none; }
@media (max-width: 950px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex; }
    .site-header { padding: 15px 0; }
    
    .header-inner-container {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        align-items: center; width: 100%;
    }
    .header-left { justify-self: start; }
    .site-branding { justify-self: center; text-align: center; }
    .header-right-side { justify-self: end; width: auto; }
}

/* Menu Mobile Overlay */
.mobile-menu-container {
    position: fixed; 
    top: 0; 
    left: -100%; 
    right: auto;
    width: 80%; 
    height: 100vh; 
    background: #1b2c44; 
    z-index: 10001; 
    padding: 20px;
    transition: left 0.3s ease; 
    box-shadow: 5px 0 20px rgba(0,0,0,0.5);
}
.mobile-menu-container.active { left: 0; }

.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.mobile-menu-title { color: #fff; font-size: 22px; font-weight: 700; }
#close-mobile-menu { font-size: 30px; }
.mobile-nav-links ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav-links li a { display: block; color: #fff; font-size: 18px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); text-decoration: none; }
.mobile-socials { display: flex; gap: 20px; margin-top: 30px; justify-content: center; }

/* =========================================
   3. HERO & CORES
   ========================================= */
.custom-section { padding: 80px 20px; border-bottom: 1px solid #eaeaea; }
.section-bg-blue { background-color: #e1ebf4; }
.section-bg-white { background-color: #ffffff; }
.section-bg-gray { background-color: #f8fafc; }

/* Hero Textura */
.custom-hero-wrapper { position: relative; background-color: #ffffff; padding: 100px 20px; text-align: center; overflow: hidden; }
.hero-bg-texture { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    opacity: 1; pointer-events: none; 
}
.custom-hero-inner { position: relative; max-width: 800px; margin: 0 auto; z-index: 2; }
.custom-hero-title { color: #000; font-size: 46px; font-weight: 800; line-height: 1.15; margin-bottom: 25px; }
.hero-text-block p { margin-bottom: 15px; }
.custom-hero-text { color: #555; font-size: 19px; line-height: 1.6; }
.custom-hero-button { background-color: #1b2c44 !important; color: #fff !important; padding: 16px 45px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: transform 0.2s; display: inline-block; }
.custom-hero-button:hover { background-color: #2c4a6e !important; transform: translateY(-3px); }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   4. O QUE EU TRATO (GRID / EMOJIS)
   ========================================= */
.custom-grid-wrapper { max-width: 1200px; margin: 0 auto; }
.center-title { text-align: center; margin-bottom: 50px !important; color: #1b2c44; font-size: 36px; font-weight: 800; }

.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.treatment-card {
    background: #fff; padding: 25px; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    transition: transform 0.2s; border: 1px solid transparent;
}
.treatment-card:hover { transform: translateY(-5px); border-color: #e1ebf4; }
.treatment-content { flex-grow: 1; }
.treatment-content h3 { font-size: 18px; font-weight: 700; color: #1b2c44; margin: 0 0 5px 0; }
.treatment-content p { font-size: 14px; color: #666; margin: 0; line-height: 1.4; }

.treatment-icon {
    width: 50px; height: 50px; min-width: 50px; background: #e1ebf4; color: #1b2c44;
    border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 28px;
}

/* Filtro Azul para Emojis */
.emoji-icon { display: inline-block; filter: grayscale(100%) sepia(100%) hue-rotate(190deg) saturate(500%) brightness(90%); }

.scroll-indicator { display: none; text-align: center; font-size: 12px; color: #999; margin-top: 10px; }

@media (max-width: 768px) {
    .treatments-grid { 
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 15px; padding-bottom: 10px; 
        padding-left: 20px; padding-right: 20px; scrollbar-width: none; 
    }
    .treatments-grid::-webkit-scrollbar { display: none; }
    .treatment-card { min-width: 280px; scroll-snap-align: center; }
    .scroll-indicator { display: block; }
}

/* =========================================
   5. SEÇÕES DE CONTEÚDO
   ========================================= */
.custom-grid-container { 
    max-width: 1100px; margin: 0 auto; 
    display: flex; 
    align-items: flex-start; 
    gap: 60px; 
}
.custom-col-content, .custom-col-image { flex: 1; }
.custom-photo { width: 100%; border-radius: 16px; box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.custom-section-title { color: #1b2c44; font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.custom-section-text { color: #4a4a4a; font-size: 18px; line-height: 1.6; margin-bottom: 15px; }

/* Blog Front Page */
.custom-container-blog { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }

.blog-card {
    background-color: #ffffff; border-radius: 12px; overflow: hidden;
    border: 1px solid #1b2c44; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; transition: transform 0.3s;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-thumb { width: 100%; height: 220px; object-fit: cover; display: block; }
.blog-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-title { font-size: 19px; font-weight: 700; margin: 0 0 10px 0; line-height: 1.3; }
.blog-title a { color: #1b2c44; text-decoration: none; }
.blog-excerpt { font-size: 15px; color: #555; line-height: 1.5; margin-bottom: 15px; }
.blog-meta { font-size: 13px; color: #888; border-top: 1px solid #eee; padding-top: 15px; margin-top: auto; }

.blog-footer-wrapper { text-align: center; width: 100%; display: flex; justify-content: center; }

@media (max-width: 768px) {
    .blog-grid { display: flex; flex-direction: column; gap: 15px; }
    .blog-card { flex-direction: row; align-items: center; height: auto; padding: 10px; }
    .blog-img-link { width: 90px; height: 90px; min-width: 90px; flex-shrink: 0; border-radius: 8px; overflow: hidden; margin-right: 15px; }
    .blog-thumb { height: 100%; width: 100%; object-fit: cover; border-radius: 0; }
    .blog-content { padding: 0; border: none; }
    .blog-title { font-size: 16px; margin-bottom: 5px; }
    .mobile-hidden { display: none !important; }
    .blog-meta { border: none; padding: 0; margin-top: 5px; }
}

@media (max-width: 900px) {
    .custom-section { padding: 50px 20px; }
    .custom-grid-container { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
    /* Ajuste do Hero Title no Mobile */
    .custom-hero-title { font-size: 26px; } 
    .custom-hero-text { font-size: 16px; }
}

.whatsapp-btn { display: inline-flex; align-items: center; justify-content: center; background-color: #25D366; color: #fff !important; padding: 18px 50px; border-radius: 50px; font-weight: 700; font-size: 18px; text-decoration: none; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); min-height: 44px; transition: background-color 0.3s ease, transform 0.2s ease; }
.whatsapp-btn:hover { background-color: #128C7E; transform: scale(1.05); }

/* =========================================
   6. FOOTER (RODAPÉ)
   ========================================= */
.site-footer {
    background-color: #1b2c44;
    color: #ffffff;
    padding: 50px 0 30px 0;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    margin-top: 0;
}

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

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-location-top {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    opacity: 0.9;
}

.footer-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 10px 25px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.footer-phone-btn:hover {
    background-color: #ffffff;
    color: #1b2c44 !important;
    transform: translateY(-2px);
}

.footer-social-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.footer-social-right a {
    color: #ffffff;
    background-color: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}
.footer-social-right a:hover {
    background-color: transparent;
    color: #ffffff;
    opacity: 1;
    transform: scale(1.1);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-bottom: 30px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.8;
    font-size: 13px;
}
.footer-copyright-left {
    text-align: left;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 20px;
}
.footer-quote-right {
    text-align: right;
    font-style: italic;
    width: 100%;
}

@media (max-width: 768px) {
    .footer-top-row, .footer-bottom-row { flex-direction: column; text-align: center; gap: 20px; }
    .footer-top-row { margin-bottom: 20px; }
    .footer-cta-left { flex-direction: column; gap: 15px; width: 100%; }
    .footer-phone-btn { width: 100%; max-width: 280px; }
    .footer-bottom-row { gap: 15px; }
    .footer-copyright-left { white-space: normal; margin-right: 0; text-align: center; order: 1; }
    .footer-quote-right { text-align: center; order: 2; }
}

/* =========================================
   7. PÁGINA DE ARTIGOS (ARCHIVE)
   ========================================= */
.blog-archive-wrapper {
    background-color: #f8fafc;
    padding: 60px 20px;
    min-height: 80vh;
}
.blog-archive-container { max-width: 900px; margin: 0 auto; }

.archive-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid #e1ebf4; 
    padding-bottom: 20px;
}
.archive-title.custom-section-title { 
    margin-bottom: 0; 
}

/* Lista Horizontal */
.horizontal-post-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-bottom: 30px;
    transition: transform 0.2s ease;
    border: 1px solid transparent;
}
.horizontal-post-item:hover { transform: translateY(-3px); border-color: #e1ebf4; }

.post-item-image { width: 35%; min-width: 250px; position: relative; overflow: hidden; }
.post-item-image a { display: block; height: 100%; min-height: 220px; }
.h-post-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.horizontal-post-item:hover .h-post-thumb { transform: scale(1.05); }
.no-thumb-placeholder { background-color: #e1ebf4; height: 100%; width: 100%; min-height: 220px; }

.post-item-content {
    padding: 30px;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.post-item-title { margin: 0 0 15px 0; font-size: 24px; line-height: 1.3; }
.post-item-title a { text-decoration: none; color: #1b2c44; transition: color 0.2s; }
.post-item-title a:hover { color: #2c4a6e; }
.post-item-excerpt { font-size: 16px; color: #555; line-height: 1.6; margin-bottom: 20px; }

.post-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}
.post-date { font-size: 13px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.read-more-link { font-size: 14px; color: #1b2c44; font-weight: 700; text-decoration: none; }
.read-more-link:hover { text-decoration: underline; }

.archive-pagination { margin-top: 50px; text-align: center; }
.nav-links .page-numbers {
    padding: 10px 15px; margin: 0 5px; background: #fff;
    border: 1px solid #ddd; text-decoration: none; color: #1b2c44; border-radius: 4px;
}
.nav-links .current, .nav-links .page-numbers:hover { background: #1b2c44; color: #fff; border-color: #1b2c44; }

@media (max-width: 768px) {
    .horizontal-post-item { flex-direction: column; }
    .post-item-image { width: 100%; height: 200px; }
    .post-item-image a { min-height: auto; height: 100%; }
    .post-item-content { width: 100%; padding: 20px; }
    .post-item-title { font-size: 20px; }
}

/* =========================================
   8. ARTIGO INDIVIDUAL (SINGLE POST) & PÁGINAS (SOBRE MIM)
   ========================================= */
.single-post-wrapper {
    background-color: #ffffff;
    padding: 60px 20px;
}
.single-article-content { max-width: 740px; margin: 0 auto; }

/* Cabeçalho Single - Limpo */
.entry-header { margin-bottom: 40px; text-align: center; }
.entry-title { font-size: 42px; line-height: 1.2; color: #1b2c44; }

.entry-featured-image { margin-bottom: 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.entry-featured-image img { width: 100%; height: auto; display: block; }

/* Corpo do Texto */
.entry-content-body {
    font-size: 19px; line-height: 1.8; color: #2c3e50; font-family: 'Lato', sans-serif;
}
.entry-content-body p { margin-bottom: 25px; }
.entry-content-body h2 { font-size: 28px; margin-top: 40px; margin-bottom: 20px; color: #1b2c44; }
.entry-content-body h3 { font-size: 22px; margin-top: 30px; margin-bottom: 15px; color: #1b2c44; }
.entry-content-body ul, .entry-content-body ol { margin-bottom: 25px; padding-left: 20px; }
.entry-content-body li { margin-bottom: 10px; }
.entry-content-body blockquote { 
    border-left: 4px solid #1b2c44; padding-left: 20px; font-style: italic; color: #555; margin: 30px 0;
}

/* Rodapé do Artigo */
.entry-footer {
    margin-top: 60px;
    padding-top: 20px;
}

/* META DADOS RESTAURADOS (Post Footer) */
.entry-meta-restored {
    font-size: 14px; 
    color: #888; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 700;
}
.entry-meta-restored a { color: #1b2c44; text-decoration: none; }

.tags-list { margin-top: 15px; font-size: 14px; color: #666; }
.tags-list a { color: #1b2c44; font-weight: 600; text-decoration: none; }

/* Comentários */
.comments-wrapper-central {
    max-width: 740px;
    margin: 40px auto 0;
    border-top: 5px solid #e1ebf4;
    padding-top: 40px;
}

@media (max-width: 768px) {
    .entry-title { font-size: 32px; }
    .entry-content-body { font-size: 17px; }
}

/* =========================================================
   FIX DEFINITIVO NOTCH IPHONE / SAFARI IOS
   (Copiar e colar no FINAL do style.css)
   ========================================================= */

/* Garante fundo azul real em toda a viewport */
html,
body {
    background-color: #1b2c44 !important;
}

/* Camada física que pinta APENAS a área do notch */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background-color: #1b2c44;
    z-index: 999999;
    pointer-events: none;
}

/* Header começa abaixo do notch */
.site-header {
    padding-top: calc(15px + env(safe-area-inset-top)) !important;
}

/* Conteúdo branco nunca invade o notch */
#page {
    margin-top: 0 !important;
    background-color: #ffffff !important;
    position: relative;
    z-index: 1;
}

/* Evita que algum container do GeneratePress empurre o topo */
.site,
.site-content,
.inside-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
