/* =========================================
   RESET E VARIÁVEIS
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
html { scroll-behavior: smooth; }

:root {
    --primary: #1e4d40;    /* Verde Imperial */
    --accent: #2e7d32;     /* Verde Saúde */
    --text-main: #1e293b;  /* Texto profissional */
    --text-muted: #64748b; /* Texto secundário */
    --bg-light: #f8fafc;   /* Fundo suave */
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { width: 90%; max-width: 1200px; margin: auto; }

/* =========================================
   HEADER
   ========================================= */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 0; /* <--- AQUI: Mudamos de 15px para 25px para dar mais volume (grossura) à barra */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

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

/* --- LOGO BEM MAIOR --- */
.logo img {
    height: 150px; /* <--- AQUI: Aumentamos a altura da logo para ter bastante destaque */
    width: auto;
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    margin: 0 15px;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--accent); }

/* =========================================
   BOTÕES
   ========================================= */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.25);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.full { width: 100%; }

/* =========================================
   HERO
   ========================================= */
.hero { padding: 120px 0 100px; background: linear-gradient(180deg, #f0f4f3 0%, var(--white) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

.badge {
    background: #dcfce7; color: var(--accent);
    padding: 8px 16px; border-radius: 50px;
    font-size: 14px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 25px;
}

.hero h1 { font-size: 54px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: var(--text-main); }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; }

.hero-buttons { display: flex; gap: 15px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 30px; font-weight: 700; color: var(--primary); font-size: 15px; }
.hero-stats div { display: flex; align-items: center; gap: 8px; }

.hero-img { position: relative; }
.hero-img img { width: 100%; border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.1); }

.horario-box {
    position: absolute; bottom: -20px; left: 30px;
    background: var(--white); padding: 18px 25px;
    border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: flex; gap: 15px; align-items: center;
}
.horario-box i { color: var(--accent); }

/* =========================================
   SEÇÕES GERAIS
   ========================================= */
.section { padding: 100px 0; }
.grey-bg { background: var(--bg-light); }
.center { text-align: center; }

.section-badge {
    color: var(--accent); font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    font-size: 12px; display: inline-block; margin-bottom: 15px;
    background: #e8f1eb; padding: 6px 16px; border-radius: 20px;
}
.section h2 { font-size: 38px; margin-bottom: 15px; color: var(--text-main); }
.subtitle { color: var(--text-muted); font-size: 18px; margin-bottom: 50px; max-width: 700px; margin-inline: auto; }

/* =========================================
   SERVIÇOS
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--accent);
}

.icon-circle {
    width: 65px; height: 65px;
    background: #f0fdf4; color: var(--accent);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

.service-card h3 { font-size: 20px; margin-bottom: 15px; color: var(--text-main); }
.service-card p { font-size: 15px; color: var(--text-muted); }
.services-cta { margin-top: 60px; }

/* =========================================
   CONVÊNIOS (CORRIGIDO: TAMANHO UNIFORME E PULO)
   ========================================= */
.convenios-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

/* --- CORREÇÃO: CAIXAS COM TAMANHO FIXO --- */
.convenio-card {
    background: var(--white);
    width: 180px;  /* Largura fixa */
    height: 100px; /* Altura fixa */
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Transição suave para o pulo */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- CORREÇÃO: LOGOS MAIORES --- */
.convenio-card img {
    max-height: 55px; /* Aumentado o tamanho máximo da logo */
    max-width: 90%;   /* Garante que não vaza nas laterais */
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* --- CORREÇÃO: EFEITO DE PULO (HOVER) --- */
.convenio-card:hover {
    transform: translateY(-10px); /* Pula para cima */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.convenio-card:hover img {
    filter: grayscale(0); /* Fica colorido */
    opacity: 1;
}

/* =========================================
   SOBRE NÓS (CORRIGIDO: TEXTO NO TOPO)
   ========================================= */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.1fr; 
    gap: 60px; 
    align-items: start; /* <--- AQUI ESTÁ A MUDANÇA (antes estava 'center') */
}

/* O resto permanece igual para manter o estilo dos cartões */
.about-img img { 
    width: 100%; 
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    display: block;
    /* Garante que a imagem não tem margem extra empurrando para cima */
    margin-top: 0; 
}

.about-text {
    text-align: left;
    /* Remove margens extras do topo do texto se houver */
    margin-top: 0; 
    padding-top: 10px; /* Pequeno ajuste visual se precisar alinhar com o topo exato da imagem */
}

.about-text h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* GRID DOS CARTÕES BRANCOS */
.highlight-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Dois cartões por linha */
    gap: 15px; 
    margin-top: 35px; 
}

/* ESTILO DOS CARTÕES (IGUAL À TUA IMAGEM) */
.h-card {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.3s;
}

.h-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.h-icon {
    color: var(--text-main);
    margin-top: 2px;
}

.h-icon i { width: 20px; height: 20px; }

.h-content strong { 
    color: var(--text-main); 
    display: block; 
    margin-bottom: 3px; 
    font-size: 15px; 
    font-weight: 700;
}
        
.h-content small { 
     color: var(--text-light); 
     font-size: 13px; 
     line-height: 1.4; 
     display: block; 
}
/* =========================================
   CONTATO E FOOTER (Manter igual)
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.info-list { margin: 30px 0; }
.info-box { display: flex; gap: 15px; align-items: center; margin-bottom: 15px; background: var(--bg-light); padding: 18px; border-radius: 12px; font-weight: 500; color: var(--text-main); }
.info-box i { color: var(--accent); flex-shrink: 0; }
.map-container iframe { width: 100%; height: 300px; border-radius: 16px; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.contact-form { background: var(--white); padding: 40px; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: 0 15px 40px rgba(0,0,0,0.03); }
.contact-form input, .contact-form textarea { width: 100%; padding: 16px; border-radius: 10px; border: 1px solid #cbd5e1; margin-bottom: 15px; font-family: inherit; font-size: 15px; transition: 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); }

footer { background: var(--primary); color: var(--white); padding: 70px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col h3 { font-size: 22px; margin-bottom: 20px; }
.footer-col h4 { font-size: 18px; margin-bottom: 20px; color: #dcfce7; }
.footer-col p { margin-bottom: 12px; opacity: 0.9; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.footer-col a { display: block; color: var(--white); text-decoration: none; margin-bottom: 12px; opacity: 0.8; transition: 0.3s; font-size: 15px; }
.footer-col a:hover { opacity: 1; padding-left: 5px; color: #dcfce7; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 25px; font-size: 14px; opacity: 0.7; }

.whatsapp { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: var(--white); width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4); z-index: 999; transition: 0.3s; }
.whatsapp:hover { transform: scale(1.1) rotate(10deg); }

/* =========================================
   BOTÕES DE GPS (GOOGLE MAPS E WAZE)
   ========================================= */
.map-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.gps-buttons {
    display: flex;
    gap: 15px;
}

.btn-map {
    flex: 1; /* Faz os botões dividirem o espaço igualmente */
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-map i {
    width: 18px;
    height: 18px;
}

/* Cor do botão Google Maps */
.btn-map.gmaps {
    background: #ffffff;
    color: #ea4335; /* Vermelho Google */
    border: 2px solid #ea4335;
}

.btn-map.gmaps:hover {
    background: #ea4335;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.2);
}

/* Cor do botão Waze */
.btn-map.waze {
    background: #ffffff;
    color: #33ccff; /* Azul Waze */
    border: 2px solid #33ccff;
}

.btn-map.waze:hover {
    background: #33ccff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51, 204, 255, 0.2);
}

/* No telemóvel, os botões ficam um por cima do outro se o ecrã for muito pequeno */
@media (max-width: 400px) {
    .gps-buttons {
        flex-direction: column;
    }
}

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid, .contact-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero h1 { font-size: 46px; }
    .horario-box { position: relative; bottom: 0; left: 0; justify-content: center; margin: 30px auto 0; width: fit-content; }
    .nav-links, .header-btn { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .map-container iframe { height: 250px; }
}

@media (max-width: 600px) {
    .services-grid, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 36px; }
    .hero-buttons { flex-direction: column; }
    .highlight-grid { grid-template-columns: 1fr; justify-items: start; }
    .convenio-card { width: 100%; max-width: 220px; } /* No mobile, permite ajustar */
}
