:root {
    --primary-color: #0f2f53; 
    --secondary-color: #2bb6e0; 
    --accent-color: #178ea6;
    --text-color: #333;
    --light-bg: #f5f8fa;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, .badge { font-family: 'Montserrat', sans-serif; }
body { color: var(--text-color); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background-color: var(--primary-color); color: var(--white); font-size: 0.85rem; padding: 10px 0; font-weight: 500; }
.top-bar-content { display: flex; justify-content: space-between; }
.top-contact a:hover { color: var(--secondary-color) !important; transition: var(--transition); }

/* Header & Nav */
header { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; transition: var(--transition); }
.header-content { display: flex; justify-content: space-between; align-items: center; min-height: 110px; padding: 10px 0; position: relative; }
.logo img { height: 95px; width: auto; max-height: none; transition: var(--transition); }
.nav-links { display: flex; align-items: center; }
.nav-links a { margin: 0 15px; font-weight: 600; color: var(--primary-color); position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--secondary-color); transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }

/* Mobile Menu Button */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1001; }
.menu-toggle span { width: 30px; height: 3px; background: var(--primary-color); border-radius: 3px; transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Buttons */
.btn-primary, .btn-outline-light { display: inline-block; padding: 16px 32px; border-radius: 8px; font-weight: 700; cursor: pointer; text-align: center; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-primary { background-color: var(--secondary-color); color: var(--white); border: none; }
.btn-primary:hover { background-color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15, 47, 83, 0.2); }
.btn-outline-light { border: 2px solid var(--white); color: var(--white); }
.btn-outline-light:hover { background-color: var(--white); color: var(--primary-color); }
.btn-block { width: 100%; }

.cta-pulse { animation: pulseGlow 2.5s infinite; }
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(43, 182, 224, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(43, 182, 224, 0); }
    100% { box-shadow: 0 0 0 0 rgba(43, 182, 224, 0); }
}

/* Hero */
.hero { position: relative; padding: 180px 0 140px; background-image: url('https://www.albimed.com.br/imagens/hospital-background.jpg'); background-attachment: fixed; background-position: center; background-size: cover; color: var(--white); overflow: hidden; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(15, 47, 83, 0.8) 0%, rgba(15, 47, 83, 0.4) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { max-width: 650px; }
.badge { background: var(--secondary-color); padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; display: inline-block; }
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin: 20px 0; }
.text-highlight { color: var(--secondary-color); }
.hero p { font-size: 1.25rem; margin-bottom: 40px; color: #e1e8ed; }
.hero-buttons { display: flex; gap: 20px; }

.dynamic-title { overflow: hidden; white-space: nowrap; animation: typing 1.5s steps(40, end); }
@keyframes typing { from { width: 0 } to { width: 100% } }

.hero-floating-icon { max-width: 350px; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3)); }
.hero-floating-icon img { width: 100%; border-radius: 20px; }

@keyframes float { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } 100% { transform: translateY(0px) rotate(0deg); } }
.floating { animation: float 6s ease-in-out infinite; }
.floating-slow { animation: float 8s ease-in-out infinite reverse; }

/* Stats */
.social-proof { background: var(--white); padding: 40px 0; border-bottom: 1px solid #eaeaea; margin-top: -50px; position: relative; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-radius: 10px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.stats-container { display: flex; justify-content: space-around; text-align: center; }
.stat-item h3 { font-size: 3rem; color: var(--secondary-color); margin-bottom: 5px; }
.stat-item p { font-weight: 600; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; }

/* Sections */
.consultoria-section { padding: 100px 0; overflow: hidden; }
.consultoria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.consultoria-img-wrapper { position: relative; }
.clip-mask-img { width: 100%; height: auto; clip-path: polygon(10% 0, 100% 0%, 90% 100%, 0% 100%); position: relative; z-index: 2; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.shape-behind { position: absolute; top: -20px; left: -20px; width: 100%; height: 100%; background-color: var(--secondary-color); clip-path: polygon(0 10%, 90% 10%, 100% 90%, 10% 90%); z-index: 1; opacity: 0.2; }
.consultoria-text h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.custom-list { list-style: none; margin-top: 30px; }
.custom-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; }
.custom-list span { background: rgba(43, 182, 224, 0.1); color: var(--secondary-color); padding: 8px; border-radius: 50%; font-size: 0.9rem; }

/* Grid de Produtos - Atualizado para visual de Marketplace */
.products { padding: 100px 0; background: var(--light-bg); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary-color); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.product-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: var(--transition); border: 1px solid #eaeaea; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(15, 47, 83, 0.15); border-color: var(--secondary-color); }
.product-img-wrapper { background: radial-gradient(circle, #fff 0%, #f0f4f8 100%); padding: 50px 30px; text-align: center; height: 280px; display: flex; align-items: center; justify-content: center; }
.product-img-wrapper img { max-height: 180px; max-width: 100%; filter: drop-shadow(0 15px 20px rgba(0,0,0,0.1)); }

/* Novos estilos para o texto dos produtos */
.product-info { padding: 40px 30px; text-align: left; }
.product-category { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--secondary-color); margin-bottom: 8px; letter-spacing: 1px; }
.product-info h3 { color: var(--primary-color); font-size: 1.25rem; margin-bottom: 10px; min-height: 50px; }
.product-info p { font-size: 0.95rem; color: #555; margin-bottom: 20px; min-height: 60px; line-height: 1.5; }
.product-card .btn-primary { padding: 12px 20px; font-size: 0.85rem; width: 100%; }

.btn-link { color: var(--secondary-color); font-weight: 700; display: inline-block; margin-top: 10px; text-transform: uppercase; font-size: 0.9rem; }
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }

/* Contato */
.contact { padding: 100px 0; background-color: var(--primary-color); color: var(--white); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.form-glass-effect { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(15px); padding: 50px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; font-size: 1rem; background: rgba(255,255,255,0.1); color: var(--white); transition: var(--transition); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #b0c4de; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary-color); background: rgba(255,255,255,0.2); }
.info-group a { color: var(--secondary-color); }
.custom-map-mask { border-radius: 16px; overflow: hidden; margin-top: 30px; clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%); }

footer { background-color: #081a2e; padding: 40px 0; color: #8aa1ba; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo { height: 60px; opacity: 0.8; }

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; border-radius: 50%; width: 65px; height: 65px; display: flex; justify-content: center; align-items: center; z-index: 9999; transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.15); }

/* Scroll Anim */
.animate-on-scroll { opacity: 0; transition: all 0.9s cubic-bezier(0.17, 0.85, 0.43, 1.14); }
.fade-up { transform: translateY(50px); }
.fade-left { transform: translateX(50px); }
.fade-right { transform: translateX(-50px); }
.is-visible { opacity: 1; transform: translate(0); }


/* =======================================================
   REGRAS DE RESPONSIVIDADE PWA / MOBILE (CELULAR & TABLET)
   ======================================================= */
@media (max-width: 992px) {
    /* Top Bar Mobile */
    .top-bar-content { flex-direction: column; text-align: center; gap: 8px; font-size: 0.8rem; }
    
    /* Header e Menu Hamburguer */
    .header-content { padding: 15px 20px; min-height: 80px; }
    .logo img { height: 65px; }
    .desktop-cta { display: none; } /* Oculta botão CTA superior no mobile */
    .menu-toggle { display: flex; }
    
    /* Menu Oculto/Visível */
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; text-align: center; box-shadow: 0 15px 20px rgba(0,0,0,0.1); padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
    .nav-links.active { max-height: 400px; padding: 20px 0; }
    .nav-links a { margin: 15px 0; display: block; font-size: 1.1rem; }
    
    /* Hero Section Mobile */
    .hero { padding: 130px 0 80px; text-align: center; background-attachment: scroll; /* Melhora perf. mobile */ }
    .hero-content { flex-direction: column; gap: 30px; }
    .hero h1 { font-size: 2.8rem; }
    .dynamic-title { white-space: normal; animation: none; }
    .hero-buttons { flex-direction: column; align-items: center; width: 100%; }
    .hero-buttons a { width: 100%; }
    .hero-floating-icon { max-width: 90%; margin: 0 auto; }
    
    /* Stats Mobile */
    .social-proof { margin-top: -30px; border-radius: 0; }
    .stats-container { flex-direction: column; gap: 40px; }
    
    /* Grids Mobile */
    .consultoria-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .clip-mask-img { clip-path: none; border-radius: 16px; }
    .custom-list { text-align: left; }
    .custom-list li { align-items: flex-start; }
    .form-glass-effect { padding: 30px 20px; }
}