/* ===================================
   CSS PRINCIPAL - DR. THIAGO ALBUQUERQUE
   Versão otimizada 2.0 - 2025
   =================================== */

/* Variáveis de tema (dourado + azul marinho) */
:root {
    --brand-primary: #08203a; /* azul marinho profundo */
    --brand-accent: #d4af37;  /* dourado clássico */
    --brand-dark: #0b2536;    /* tom escuro para textos */
    --brand-muted: #7f8c8d;
}

/* Helper para ícones SVG usados inline */
.icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.icon.spin { transform-origin: 50% 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ícones emoji inline (quando substituímos <i> por spans emoji) */
.emoji-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar { padding: 1rem 0; }

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.1));
}

.brand-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--brand-accent);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu { display: flex; list-style: none; gap: 2rem; }

.nav-link {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover { color: var(--brand-accent); }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--brand-accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.bar { width: 25px; height: 3px; background-color: var(--brand-dark); transition: 0.3s; }

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #0b3b57 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 120px; /* Espaço para o header fixo */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/IMG_4817.jpg') center/cover;
    opacity: 0.12;
    z-index: 1;
}

.hero-content { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 2; padding: 2rem 0; }
.hero-text { animation: slideInLeft 1s ease-out; }

.hero-title { font-size: 4rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.highlight { background: linear-gradient(90deg, var(--brand-accent), #e6c85a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subtitle { font-size: 2.5rem; color: #ecf0f1; font-weight: 400; }
.hero-subtitle { font-size: 1.8rem; font-weight: 600; margin-bottom: 1.5rem; color: #ecf0f1; line-height: 1.3; }
.hero-description { font-size: 1.2rem; margin-bottom: 2rem; color: rgba(255,255,255,0.85); line-height: 1.6; }
.services-highlight { font-size: 1.5rem; font-weight: 600; margin-bottom: 2rem; color: var(--brand-accent); line-height: 1.3; }

.cta-button {
    display: inline-flex; align-items: center; gap: 10px; background: var(--brand-accent); color: var(--brand-primary); padding: 15px 30px; text-decoration: none; border-radius: 50px; font-weight: 700; font-size: 1.05rem; transition: all 0.3s ease; box-shadow: 0 8px 30px rgba(2,8,15,0.35);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(2,8,15,0.5); }

.hero-image { display: flex; justify-content: center; animation: slideInRight 1s ease-out; }
.profile-photo { width: 350px; height: 350px; border-radius: 50%; object-fit: cover; border: 8px solid rgba(255, 255, 255, 0.15); box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.3s ease; }
.profile-photo:hover { transform: scale(1.05); }

/* ===================================
   SOBRE
   =================================== */
.about { padding: 5rem 0; background: #f8f9fa; }
.about-content { text-align: center; max-width: 800px; margin: 0 auto; }
.section-title { font-size: 2.5rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 2rem; text-align: center; }
.about-text { font-size: 1.2rem; color: #5d6d7e; line-height: 1.8; text-align: justify; }

/* ===================================
   GALERIA
   =================================== */
.office-gallery { margin-top: 3rem; }
.gallery-title { font-size: 1.8rem; color: var(--brand-dark); text-align: center; margin-bottom: 2rem; font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.gallery-item { 
    position: relative; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); 
    transition: all 0.3s ease; 
    cursor: pointer;
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    display: block;
}
.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.gallery-item:hover img { 
    transform: scale(1.08); 
}
.gallery-overlay { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: linear-gradient(transparent, rgba(0,0,0,0.7)); 
    color: white; 
    padding: 1.2rem; 
    transform: translateY(100%); 
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay { 
    transform: translateY(0); 
}

/* ===================================
   SERVIÇOS
   =================================== */
.services { padding: 5rem 0; background: white; }
.section-subtitle { font-size: 1.8rem; color: var(--brand-muted); text-align: center; margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: white; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; border-left: 4px solid var(--brand-primary); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.service-icon { font-size: 2.5rem; color: var(--brand-primary); margin-bottom: 1rem; }
.service-card h4 { font-size: 1.3rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 1rem; line-height: 1.3; }
.service-card p { color: #5d6d7e; line-height: 1.6; font-size: 0.95rem; }

/* ===================================
   PUBLICAÇÕES
   =================================== */
.publications { padding: 5rem 0; background: #f8f9fa; }
.publications-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 3rem; }
.publication-item { background: white; padding: 1.5rem; border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.publication-item:hover { transform: translateX(10px); box-shadow: 0 5px 25px rgba(0,0,0,0.12); }
.publication-item a { color: var(--brand-primary); text-decoration: none; font-weight: 500; }

/* ===================================
   CONTATO
   =================================== */
.contact { padding: 5rem 0; background: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { font-size: 1.5rem; color: var(--brand-primary); margin-top: 5px; min-width: 30px; }
.contact-details h4 { font-size: 1.1rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 0.5rem; }
.contact-details p { color: #5d6d7e; line-height: 1.5; }
.contact-details a { color: var(--brand-primary); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.contact-form-container { background: #f8f9fa; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.contact-form h3 { font-size: 1.5rem; color: var(--brand-dark); margin-bottom: 1.5rem; text-align: center; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #e9ecef; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-primary); }
.submit-btn { width: 100%; background: linear-gradient(45deg, var(--brand-primary), #0e3550); color: white; padding: 12px 20px; border: none; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 10px; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(2,8,15,0.2); }
.schedule-btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(45deg, #e74c3c, #c0392b); color: white; padding: 12px 25px; text-decoration: none; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; }

/* Mapa */
.map-container { margin-top: 3rem; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.map-container iframe { border: 0; display: block; }

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===================================
   FOOTER
   =================================== */
.footer { background: var(--brand-dark); color: white; padding: 2rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand .brand-text h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.footer-text { text-align: right; color: #bdc3c7; font-size: 0.9rem; line-height: 1.5; }

/* ===================================
   WHATSAPP FLOAT BUTTON
   =================================== */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; z-index: 1000; }
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

/* Animação de pulso para o botão do WhatsApp */
@keyframes whatsappPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-btn {
    animation: whatsappPulse 2s infinite;
}
.whatsapp-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(2,8,15,0.25); }

/* ===================================
   ANIMAÇÕES
   =================================== */
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* Estados ativos e scrollbar */
.nav-link.active { color: var(--brand-accent); }
.nav-link.active::after { width: 100%; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0b3550; }

/* Ajustes responsivos básicos */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .profile-photo { width: 250px; height: 250px; }

    .logo {
        width: 40px;
        height: 40px;
    }

    .brand-text h1 {
        font-size: 1rem;
    }

    .brand-text span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .subtitle { font-size: 1.6rem; }
}

/* small helper */
.hidden { display: none !important; }
