/*
Theme Name: Advanced Med
Theme URI: 
Author: Thiago Caesar
Description: Tema customizado desenvolvido do zero para o portal Advanced Med.
Version: 1.0
*/

/* =========================================
   0. IMPORTAÇÃO DA FONTE
   ========================================= */
@font-face {
    font-family: 'Myriad Pro';
    src: url('./fonts/MyriadPro-Regular.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('./fonts/MyriadPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('./fonts/MyriadPro-Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* VARIÁVEIS DE COR E ESTILO MINIMALISTA PREMIUM */
:root {
    --cor-fundo: #ffffff;
    --cor-texto: #595959;
    --cor-texto-suave: #888888;
    --cor-acento: #005b8c;
    --cor-borda: #eaeaea;
    --fonte-principal: 'Myriad Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================
   1. RESET E BASE
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--fonte-principal); 
    color: var(--cor-texto); 
    background-color: var(--cor-fundo); 
    line-height: 1.8; 
    -webkit-font-smoothing: antialiased; 
    font-weight: 300; 
    overflow-x: hidden; 
}

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

a { 
    color: var(--cor-texto); 
    transition: color 0.3s ease; 
    text-decoration: none; 
}

a:hover { 
    color: var(--cor-acento); 
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 40px; 
}

/* =========================================
   2. BOTÕES GERAIS
   ========================================= */
.btn { 
    display: inline-block; 
    padding: 12px 30px; 
    background: transparent; 
    color: var(--cor-texto) !important; 
    font-size: 11px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    border: 1px solid var(--cor-borda); 
    cursor: pointer; 
    text-align: center; 
    transition: all 0.4s ease; 
    font-weight: 300; 
}

.btn:hover { 
    border-color: var(--cor-acento); 
    color: var(--cor-acento) !important; 
}

/* =========================================
   3. HEADER (OCULTO NA HOME)
   ========================================= */
.site-header { 
    background: var(--cor-fundo); 
    padding: 30px 0; 
    border-bottom: 1px solid var(--cor-borda); 
}

.home .site-header,
.front-page .site-header,
.blog .site-header { 
    display: none !important; 
}

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

.logo h1 { 
    font-size: 18px; 
    letter-spacing: 4px; 
    font-weight: 300; 
    color: var(--cor-texto); 
}

.nav-menu-dinamico { 
    display: flex; 
    gap: 40px; 
    list-style: none; 
}

.nav-menu-dinamico li a { 
    font-size: 11px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    font-weight: 300; 
}

/* =========================================
   4. BANNER SPLIT (HOME)
   ========================================= */
.hero-split-banner { 
    display: flex; 
    height: 100vh; 
    min-height: 700px; 
    width: 100%; 
    overflow: hidden; 
    position: relative; 
    background: #fff; 
}

.hero-left { 
    width: 40%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 40px; 
    z-index: 2; 
    background: #fff; 
}

.split-logo { 
    width: 100%; 
    max-width: 320px; 
    margin-bottom: 50px; 
}

.split-search { 
    width: 100%; 
    max-width: 420px; 
}

.split-search form { 
    display: flex; 
    border: 1px solid #ccc; 
    border-radius: 50px; 
    overflow: hidden; 
    background: #fff; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.split-search input { 
    flex: 1; 
    border: none; 
    padding: 16px 25px; 
    font-size: 14px; 
    outline: none; 
    font-style: italic; 
    color: #666; 
    background: transparent; 
}

.split-search button { 
    background: #e8e8e8; 
    border: none; 
    padding: 0 35px; 
    font-size: 13px; 
    font-weight: 600; 
    color: #555; 
    cursor: pointer; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-left: 1px solid #ccc; 
}

.hero-right { 
    width: 60%; 
    position: relative; 
    display: flex; 
    align-items: center; 
}

.split-nav { 
    position: absolute; 
    top: 40px; 
    right: 50px; 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    z-index: 10; 
    color: #fff; 
}

.social-icons a { 
    color: #fff; 
    margin-left: 15px; 
    font-size: 16px; 
    font-weight: 400; 
}

.menu-toggle { 
    font-size: 16px; 
    font-weight: 600; 
    letter-spacing: 2px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #fff; 
}

.menu-toggle span { 
    font-size: 24px; 
}

/* Slider Dinâmico */
.split-slider { 
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0; 
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
    display: flex; 
    align-items: center; 
}

.slide.active { 
    opacity: 1; 
    z-index: 1; 
}

/* NOVA TEXTURA: Bolinhas menores (1px) e mais opacas/sutis (0.06) */
.pattern-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); 
    background-size: 15px 15px; 
    z-index: 0; 
}

.slide-content { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
    z-index: 2; 
    position: relative; 
}

.slide-prod-img { 
    height: 85vh; 
    max-height: 900px; 
    object-fit: contain; 
    margin-left: -35%; 
    filter: drop-shadow(-15px 15px 25px rgba(0,0,0,0.3)); 
    z-index: 3; 
}

/* NOVO BLOCO DE TEXTOS (Título, Linhas com Bolinha e Descrição) */
.slide-info {
    margin-left: 5%;
    color: #fff;
    z-index: 2;
    max-width: 400px;
}

.slide-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.slide-features { 
    list-style: none; 
    margin-left: 0; 
}

.slide-features li { 
    font-size: 13px; 
    font-weight: 300; 
    letter-spacing: 1px; 
    margin-bottom: 30px; 
    position: relative; 
    padding-left: 0; 
    text-align: left; 
    padding-bottom: 10px; /* Cria o espaço entre a palavra e a linha/bolinha */
}

/* A Linha */
.slide-features li::after { 
    content: ''; 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 180px; 
    height: 1px; 
    background: rgba(255,255,255,0.4); 
}

/* A Bolinha no início da linha */
.slide-features li::before {
    content: '';
    position: absolute;
    bottom: -2px; /* Centraliza a bolinha de 5px em cima da linha de 1px */
    left: 0;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    z-index: 2;
}

/* Texto extra no final */
.slide-desc {
    font-size: 13px;
    font-weight: 300;
    margin-top: 20px;
    line-height: 1.6;
    opacity: 0.9;
}


/* =========================================
   5. GRIDS E ÁREAS PRINCIPAIS (HOME)
   ========================================= */
.quick-access-section { 
    margin: 100px auto 80px; 
}

.quick-access-section h3, 
.featured-content-section h3, 
.main-area-section h3 { 
    text-align: center; 
    font-size: 11px; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    color: var(--cor-texto-suave); 
    margin-bottom: 50px; 
    font-weight: 300; 
}

.quick-access-grid { 
    display: flex; 
    gap: 1px; 
    flex-wrap: wrap; 
    justify-content: center; 
}

.quick-box { 
    background: transparent; 
    padding: 25px 20px; 
    flex: 1; 
    min-width: 200px; 
    text-align: center; 
    font-size: 12px; 
    letter-spacing: 1px; 
    border: 1px solid var(--cor-borda); 
    transition: all 0.4s ease; 
    text-transform: uppercase; 
}

.quick-box:hover { 
    border-color: var(--cor-acento); 
    color: var(--cor-acento) !important; 
}

.featured-content-section, 
.main-area-section { 
    margin-bottom: 120px; 
}

.featured-grid, 
.products-grid, 
.secondary-modules-grid { 
    display: flex; 
    gap: 40px; 
    flex-wrap: wrap; 
}

.featured-card, 
.product-item, 
.module-box { 
    padding: 0; 
    flex: 1; 
    min-width: 300px; 
    display: flex; 
    flex-direction: column; 
}

.featured-card h4, 
.module-box h4 { 
    font-size: 14px; 
    margin-bottom: 15px; 
    font-weight: 600; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.featured-card p, 
.module-box p { 
    color: var(--cor-texto-suave); 
    font-size: 14px; 
    margin-bottom: 30px; 
}

.products-showcase { 
    border-top: 1px solid var(--cor-borda); 
    border-bottom: 1px solid var(--cor-borda); 
    padding: 100px 0; 
    margin-bottom: 100px; 
}

.products-showcase h4 { 
    text-align: center; 
    font-size: 20px; 
    font-weight: 600; 
    letter-spacing: 3px; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
}

.products-showcase p { 
    text-align: center; 
    color: var(--cor-texto-suave); 
    margin-bottom: 60px; 
}

.product-item { 
    align-items: center; 
    text-align: center; 
}

.product-item h5 { 
    font-size: 16px; 
    font-weight: 600; 
    margin-bottom: 10px; 
    letter-spacing: 1px; 
}

/* =========================================
   6. SINGLES E RODAPÉ
   ========================================= */
.page-single, 
.generic-single { 
    padding: 80px 0 !important; 
}

.site-footer { 
    border-top: 1px solid var(--cor-borda); 
    padding: 80px 0; 
    text-align: center; 
}

.footer-menu-dinamico { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    list-style: none; 
    flex-wrap: wrap; 
    margin-bottom: 30px; 
    padding: 0; 
}

.footer-menu-dinamico li a { 
    color: var(--cor-texto-suave); 
    font-size: 12px; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
}

/* =========================================
   7. MENU OVERLAY (TELA CHEIA)
   ========================================= */
.menu-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: rgba(0, 0, 0, 0.97); 
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.4s ease; 
}

.menu-overlay.ativo { 
    opacity: 1; 
    visibility: visible; 
}

.fechar-menu { 
    position: absolute; 
    top: 40px; 
    right: 50px; 
    color: #fff; 
    font-size: 14px; 
    letter-spacing: 2px; 
    cursor: pointer; 
    font-weight: 300; 
    transition: color 0.3s ease; 
}

.fechar-menu:hover { 
    color: var(--cor-acento); 
}

.overlay-nav { 
    list-style: none; 
    text-align: center; 
    padding: 0; 
}

.overlay-nav li { 
    margin-bottom: 30px; 
}

.overlay-nav li a { 
    color: #fff; 
    font-size: 24px; 
    font-weight: 300; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    transition: color 0.3s ease; 
}

.overlay-nav li a:hover { 
    color: var(--cor-acento); 
}

/* =========================================
   8. RESPONSIVIDADE (CELULARES)
   ========================================= */
@media (max-width: 992px) {
    .hero-split-banner { flex-direction: column; height: auto; min-height: auto; }
    .hero-left { width: 100%; padding: 60px 20px; }
    .hero-right { width: 100%; height: 650px; display: block; }
    .split-nav { top: 20px; right: 20px; }
    .slide-content { flex-direction: column; padding-top: 80px; }
    .slide-prod-img { margin-left: 0; height: 350px; margin-bottom: 40px; }
    .slide-info { margin-left: 0; text-align: center; }
    .slide-features li::after { left: 50%; transform: translateX(-50%); }
    .slide-features li::before { left: 50%; transform: translateX(-50%); margin-left: -90px; }
    .quick-access-grid, .featured-grid, .products-grid, .secondary-modules-grid { flex-direction: column; gap: 40px; }
}