/* =========================================================
   Clínica Fernando Danelon — style.css
   Identidade visual: Azul Escuro #061E48 · Azul Black #112038 ·
   Azul Apagado #4C6993 · Azul Contraste #7DA0D4 · Branco.
   Tipografia: Montserrat em todo o site.
   Desenvolvido por Mauá Júnior — https://mauajr.com.br/
   ========================================================= */

:root {
  --azul-escuro: #061e48;
  --azul-black: #112038;
  --azul-apagado: #4c6993;
  --azul-contraste: #7da0d4;
  --fundo-claro: #f5f7fa;
  --texto: #0b1220;
  --texto-suave: #4a5565;
  --fonte: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { font-family: var(--fonte); font-size: 16px; line-height: 1.6; color: var(--texto); background: #fff; -webkit-font-smoothing: antialiased; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; }

.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; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--azul-escuro); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--azul-contraste); outline-offset: 3px; }

/* ===================== NAVBAR ===================== */
.navbar { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); padding: 8px 40px; }
.navbar-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1300px; margin: 0 auto; }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; margin-left: 12px; }
.brand-logo img { height: 66px; width: auto; }
.hamburger { display: none; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--azul-escuro); padding: 6px 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--texto); padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s; }
.nav-links a:hover { color: var(--azul-escuro); border-bottom-color: var(--azul-contraste); }
.nav-links a[aria-current="page"] { color: var(--azul-escuro); font-weight: 700; border-bottom-color: var(--azul-contraste); }
.cta-button { display: inline-block; background: var(--azul-escuro); color: #fff; border: 2px solid var(--azul-escuro); padding: 10px 18px; border-radius: 4px; font-size: 14px; font-weight: 600; text-align: center; transition: background-color 0.3s, border-color 0.3s; }
.cta-button:hover { background: var(--azul-apagado); border-color: var(--azul-apagado); }

/* ===================== HERO — HOME ===================== */
.hero-home { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 540px; background: linear-gradient(100deg, #041633 0%, var(--azul-escuro) 48%, var(--azul-black) 100%); }
.hero-home__conteudo { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); width: 100%; max-width: 1440px; margin: 0 auto; padding: 48px 40px; }
.hero-home h1 { display: flex; flex-direction: column; gap: 14px; color: #fff; }
.hero-home__nome { font-weight: 400; font-size: clamp(1.05rem, 2.3vw, 2rem); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.hero-home__especialidades { font-weight: 400; font-size: clamp(0.64rem, 0.88vw, 0.86rem); letter-spacing: 0.13em; text-transform: uppercase; line-height: 1.7; color: rgba(255, 255, 255, 0.88); white-space: nowrap; }
.hero-home__simbolo { height: clamp(140px, 21vw, 270px); width: auto; flex-shrink: 0; }
.hero-home__foto { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 1; }
.hero-home__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }

/* ===================== HERO CLARO (foto esmaecida) — Quem Somos / Especialidades ===================== */
.hero-claro { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 400px; padding: 64px 24px 48px; }
.hero-claro__foto { position: absolute; inset: 0; z-index: -2; }
.hero-claro__foto img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.45) contrast(1.04); }
.hero-claro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.62); }
.hero-claro h1 { font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.2; color: var(--azul-escuro); max-width: 24ch; }
.hero-claro h1.hero-claro__titulo-linha { max-width: none; white-space: nowrap; font-size: clamp(1.5rem, 4vw, 3.1rem); }
.hero-claro p { margin-top: 16px; max-width: 680px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--azul-black); }

/* ===================== HERO — CONTATO ===================== */
.hero-contato { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: center; padding: 60px 24px; background: linear-gradient(135deg, #e9f0fa 0%, #d2dff2 100%); }
.hero-contato::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/estampa-simbolo.png") center / 200px 200px repeat; }
.hero-contato__conteudo { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 4.5vw, 56px); }
.hero-contato__selo { width: clamp(120px, 16vw, 180px); height: auto; }
.hero-contato h1 { font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3.2rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--azul-escuro); line-height: 1.1; }

/* ===================== SEÇÕES / TÍTULOS ===================== */
.secao { padding: 80px 20px; }
.secao--clara { background: var(--fundo-claro); }
.container { max-width: 1100px; margin: 0 auto; }
.secao-cabecalho { text-align: center; margin-bottom: 44px; }
.secao-cabecalho h2 { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; color: var(--azul-escuro); }
.eyebrow { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--azul-escuro); }

/* ===================== HOME — CARDS DE ESPECIALIDADE ===================== */
.especialidades-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 960px; margin: 0 auto; }
.especialidade-card { background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(6, 30, 72, 0.09); padding: 38px 32px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.especialidade-card:hover { transform: translateY(-6px); box-shadow: 0 14px 38px rgba(6, 30, 72, 0.14); }
.especialidade-card__icone { display: flex; align-items: center; justify-content: center; height: 64px; margin-bottom: 14px; font-size: 3.3rem; line-height: 1; color: var(--azul-escuro); }
.especialidade-card__icone img { height: 64px; width: auto; }
.especialidade-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--azul-escuro); margin-bottom: 12px; }
.especialidade-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--azul-contraste); text-underline-offset: 4px; }
.especialidade-card p { font-size: 0.95rem; color: var(--texto-suave); line-height: 1.7; }

/* ===================== VANTAGENS / COMO FUNCIONA ===================== */
.vantagens-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.vantagem { flex: 1 1 280px; max-width: 320px; padding: 10px; text-align: center; }
.vantagem i { font-size: 2.5rem; color: var(--azul-contraste); margin-bottom: 15px; }
.vantagem h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; color: #000; }
.vantagem p { font-size: 0.95rem; color: var(--texto-suave); line-height: 1.6; }

/* ===================== QUEM SOMOS ===================== */
.about { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; max-width: 1100px; margin: 60px auto; padding: 20px; }
.about-text { flex: 1 1 500px; text-align: justify; hyphens: auto; }
.about-text h2 { display: flex; flex-direction: column; gap: 6px; text-align: left; margin-bottom: 18px; font-size: 1.75rem; font-weight: 700; line-height: 1.25; color: #2c2c2c; }
.about-text h2 .eyebrow { color: var(--azul-black); font-size: 0.82rem; letter-spacing: 0.12em; }
.about-text p { font-size: 1rem; line-height: 1.6; margin-bottom: 15px; color: #333; }
.about-image { flex: 1 1 380px; display: flex; justify-content: center; }
.about-image img { width: 100%; max-width: 420px; max-height: 620px; border-radius: 8px; object-fit: cover; }

.conquistas { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; background: linear-gradient(90deg, var(--azul-black), var(--azul-apagado)); color: #fff; padding: 60px 20px; text-align: center; }
.conquista { flex: 1 1 200px; margin: 10px; }
.conquista strong { display: block; font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.conquista span { display: block; margin-top: 8px; font-size: 1rem; }

.valores-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.valor-card { text-align: center; padding: 24px 16px; }
.valor-card i { font-size: 2rem; color: var(--azul-escuro); margin-bottom: 14px; }
.valor-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--azul-escuro); margin-bottom: 10px; }
.valor-card p { font-size: 0.95rem; color: var(--texto-suave); line-height: 1.6; }

/* ===================== ESPECIALIDADES (página) ===================== */
.servicos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; align-items: start; }
.servico-item { display: flex; align-items: flex-start; gap: 1.25rem; border-radius: 12px; padding: 1.75rem; background: #f9fafc; border: 1px solid #eef1f7; transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s; }
.servico-item:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(6, 30, 72, 0.1); background: #fff; border-color: var(--azul-escuro); }
.servico-icon { flex-shrink: 0; width: 56px; margin-top: 0.25rem; font-size: 3rem; line-height: 1; color: var(--azul-escuro); text-align: center; }
.servico-icon img { width: 56px; height: auto; }
.servico-texto { flex: 1; }
.servico-texto h2 { position: relative; padding-bottom: 0.6rem; margin-bottom: 1.2rem; font-size: 1.3rem; font-weight: 700; color: var(--azul-escuro); }
.servico-texto h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 2px; background: var(--azul-contraste); }
.servico-beneficios { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.servico-beneficios li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 20px; background: rgba(6, 30, 72, 0.08); color: var(--azul-escuro); font-size: 0.85rem; font-weight: 500; }
.servico-beneficios i { font-size: 0.72rem; }

/* ===================== CONTATO ===================== */
.contato-form-secao { padding: 72px 20px 32px; }
.contato-form-secao h2 { text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--azul-escuro); margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 15px; max-width: 720px; margin: 0 auto; }
.fileira { display: flex; flex-wrap: wrap; gap: 10px; }
.fileira input { flex: 1; min-width: 200px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px; font-size: 16px; color: var(--texto); background: #fff; border: 1px solid #b9c3d3; border-radius: 4px; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { padding: 15px 30px; background: var(--azul-escuro); color: #fff; font-weight: 700; border: 2px solid var(--azul-escuro); border-radius: 4px; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.contact-form button:hover { background: #fff; color: var(--azul-escuro); }
.form-status { display: none; padding: 12px 14px; border-radius: 4px; font-size: 0.92rem; background: rgba(6, 30, 72, 0.08); color: var(--azul-escuro); }
.form-status.show { display: block; }
.form-status a { text-decoration: underline; font-weight: 600; }
.contato-rapido { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; max-width: 720px; margin: 32px auto 0; font-size: 0.95rem; }
.contato-rapido a { display: inline-flex; align-items: center; gap: 10px; color: var(--azul-escuro); font-weight: 500; }
.contato-rapido a:hover { text-decoration: underline; }
.contato-rapido i { font-size: 1.15rem; }

.unidades-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1050px; margin: 0 auto; }
.unidade-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(6, 30, 72, 0.1); display: flex; flex-direction: column; }
.unidade-card picture, .unidade-card img { width: 100%; }
.unidade-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.unidade-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #e9eef5; color: var(--azul-apagado); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.04em; text-align: center; }
.unidade-body { padding: 24px 26px 28px; }
.unidade-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--azul-escuro); margin-bottom: 10px; }
.unidade-body address { color: var(--texto-suave); font-size: 0.93rem; line-height: 1.6; margin-bottom: 14px; }
.unidade-telefones li { font-size: 0.95rem; margin-bottom: 4px; }
.unidade-telefones span { color: var(--texto-suave); }
.unidade-telefones a { font-weight: 700; color: var(--azul-escuro); }
.unidade-telefones a:hover { text-decoration: underline; }

/* ===================== 404 ===================== */
.pagina-404 { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 64px 24px; }
.pagina-404 img { width: 96px; }
.pagina-404 h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--azul-escuro); }
.pagina-404 p { max-width: 520px; color: var(--texto-suave); }

/* ===================== FOOTER ===================== */
.footer { background: var(--azul-black); color: #fff; padding: 44px 20px 20px; }
.footer-container { display: grid; grid-template-columns: minmax(420px, 1.7fr) 0.8fr 1fr 1.4fr; gap: 40px 32px; max-width: 1300px; margin: 0 auto; }
.footer-column { min-width: 0; }
.footer-logo img { width: 220px; height: auto; margin-bottom: 16px; }
.footer-description { font-size: 14px; line-height: 1.6; color: #e0e0e0; margin-bottom: 18px; }
.footer-description__linha { display: block; white-space: nowrap; }
.footer-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; padding-left: 8px; border-left: 2px solid #fff; }
.footer-column li { margin-bottom: 10px; font-size: 14px; color: #e0e0e0; }
.footer-column a:hover { color: var(--azul-contraste); }
.contact-info li { display: flex; align-items: flex-start; gap: 8px; }
.contact-info i { margin-top: 4px; color: #fff; }
.contact-info a { overflow-wrap: anywhere; }
.social-icons a { display: inline-block; margin-right: 12px; font-size: 20px; color: #fff; transition: color 0.3s; }
.social-icons a:hover { color: var(--azul-contraste); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: 1300px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; color: #d0d0d0; }
.footer-bottom a { color: var(--azul-contraste); transition: color 0.3s; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.whatsapp-button { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #25d366; color: #fff; font-size: 26px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transition: background-color 0.3s; }
.whatsapp-button:hover { background: #1eb84c; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 992px) {
  .navbar { padding: 8px 24px; }
  .hero-home { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-home__conteudo { flex-direction: column; text-align: center; padding: 40px 24px 24px; }
  .hero-home h1 { align-items: center; }
  .hero-home__simbolo { height: 120px; }
  .hero-home__nome { font-size: clamp(0.8rem, 4.1vw, 2rem); }
  .hero-home__especialidades { font-size: clamp(0.66rem, 1.7vw, 0.86rem); }
  .hero-home__foto { position: relative; width: 100%; height: 340px; }
  .hero-home__foto img { object-position: 60% 20%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%); mask-image: linear-gradient(180deg, transparent 0%, #000 35%); }
  .about { flex-direction: column; text-align: center; }
  .about-text { text-align: center; }
  .about-text h2 { align-items: center; text-align: center; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .especialidades-grid, .servicos-grid, .unidades-grid { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 777px) {
  .hamburger { display: block; }
  .navbar-container { flex-wrap: wrap; }
  .nav-links-wrap, .navbar-container .nav-cta { display: none; width: 100%; }
  .navbar-container.active .nav-links-wrap { display: block; }
  .navbar-container.active .nav-cta { display: block; margin: 8px auto 12px; width: 90%; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 12px; text-align: center; }
  .nav-links a { display: block; padding: 10px 0; }
  .brand-logo img { height: 54px; }
  .secao { padding: 56px 18px; }
  .hero-claro { min-height: 340px; padding: 48px 20px 36px; }
  .hero-contato { padding: 44px 20px; }
  .hero-contato__conteudo { flex-direction: column; text-align: center; }
  .valores-grid { grid-template-columns: 1fr; }
  .servico-item { flex-direction: column; align-items: center; text-align: center; }
  .servico-texto h2::after { left: 50%; transform: translateX(-50%); }
  .servico-beneficios { justify-content: center; }
  .footer { padding: 40px 20px 96px; }
  .footer-description { font-size: clamp(9.5px, calc((100vw - 40px) / 28.8), 14px); }
  .footer-container { gap: 28px 20px; }
  .footer-brand { text-align: center; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .footer-logo img { margin-inline: auto; width: 190px; }
  .footer-brand .social-icons { display: flex; justify-content: center; }
  .footer-brand .social-icons a { margin-right: 0; }
  .footer-title { margin-bottom: 14px; }
  .contact-info li { word-break: break-word; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-top: 30px; }
}

/* Navegação compacta em tablets e notebooks pequenos (evita estouro lateral do menu) */
@media (max-width: 1199px) {
  .footer-container { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer-brand, .footer-contatos { grid-column: 1 / -1; }
}

@media (min-width: 778px) and (max-width: 1100px) {
  .navbar { padding: 8px 20px; }
  .navbar-container { gap: 14px; }
  .brand-logo { margin-left: 0; }
  .brand-logo img { height: 56px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  .cta-button { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
}

@media (max-width: 600px) {
  .hero-claro h1.hero-claro__titulo-linha { white-space: normal; max-width: 24ch; font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-home__especialidades { white-space: normal; font-size: 0.68rem; letter-spacing: 0.12em; }
}
@media (max-width: 319px) { .footer-description__linha { white-space: normal; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
