/* =========================================================================
   Corpomedic — Folha de estilo
   Identidade da empresa: VERDE institucional + fonte Inter.
   Cores extraídas do site original (não alterar sem alinhar com a empresa).
   ========================================================================= */

:root {
  --verde-700: #039936;   /* VERDE DA MARCA (logo) — títulos, ícones, bordas, detalhes */
  --verde-800: #027a2b;   /* verde escuro — botões/links c/ texto (contraste AA) */
  --verde-900: #015f20;   /* verde profundo — rodapé e hover */
  --verde-500: #4ade80;   /* verde claro de destaque */
  --verde-50:  #f0fff4;   /* verde bem claro (topo, hero) */
  --texto:     #1f2937;
  --cinza-600: #6b7280;
  --cinza-400: #9ca3af;
  --cinza-300: #e5e7eb;
  --cinza-100: #f9fafb;
  --branco:    #ffffff;
  --sombra: 0 8px 24px rgba(30, 127, 61, .08);
  --sombra-forte: 0 14px 34px rgba(30, 127, 61, .14);
  --raio: 12px;
  --largura: 1140px;
  --transicao: .2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--texto);
  line-height: 1.6;
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { color: var(--texto); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--verde-700); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--verde-800); text-decoration: none; }
a:hover { text-decoration: underline; }

.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; }

/* Marcador visual de placeholder (conteúdo a preencher) */
.ph { display: inline-block; background: #FFF4D6; color: #8A6100; border: 1px dashed #E0A93B; border-radius: 6px; padding: 0 .4em; font-size: .85em; font-weight: 600; }

/* -------------------------------- Botões -------------------------------- */
.btn { display: inline-block; cursor: pointer; border: 2px solid transparent; border-radius: 999px; padding: .7em 1.5em; font-size: 1rem; font-weight: 600; text-align: center; transition: var(--transicao); text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--verde-800); color: #fff; }
.btn-primary:hover { background: var(--verde-900); }
.btn-outline { background: transparent; color: var(--verde-800); border-color: var(--cinza-300); }
.btn-outline:hover { border-color: var(--verde-700); color: var(--verde-800); }
.btn-block { width: 100%; }

/* ------------------------------- Cabeçalho ------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--verde-50); border-bottom: 2px solid var(--verde-700); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo { height: 46px; width: auto; display: block; border-radius: 10px; }
.footer-logo { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--texto); font-weight: 500; }
.main-nav a:hover { color: var(--verde-700); text-decoration: none; }
.nav-cta { background: var(--verde-800); color: #fff !important; padding: .5em 1.1em; border-radius: 999px; }
.nav-cta:hover { background: var(--verde-900); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--verde-700); border-radius: 2px; transition: var(--transicao); }

/* --------------------------------- Hero -------------------------------- */
.hero { background: linear-gradient(180deg, var(--verde-50) 0%, #ffffff 100%); padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; border-bottom: 1px solid var(--cinza-300); }
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-logo { width: min(88%, 460px); height: auto; display: block; margin: 0 auto 1.6rem; }
.hero-lead { font-size: 1.35rem; font-weight: 600; color: var(--verde-800); margin: 0 0 .6rem; }
.hero h1 { color: var(--verde-700); }
.hero-sub { font-size: 1.15rem; color: var(--cinza-600); max-width: 60ch; margin: 0 auto 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Placeholders de mídia */
.media-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: repeating-linear-gradient(45deg, var(--cinza-100), var(--cinza-100) 12px, #eef2f0 12px, #eef2f0 24px); border: 2px dashed var(--cinza-300); border-radius: var(--raio); color: var(--cinza-600); min-height: 170px; padding: 1rem; gap: .3rem; }
.media-placeholder span { font-weight: 700; letter-spacing: 1px; color: var(--verde-700); }
.media-placeholder small { font-size: .8rem; }

/* -------------------------------- Seções ------------------------------- */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--cinza-100); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.section-head p { color: var(--cinza-600); }

/* Cards de especialidades */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--cinza-300); border-radius: var(--raio); padding: 1.8rem 1.5rem; box-shadow: var(--sombra); transition: var(--transicao); }
.card:hover { box-shadow: var(--sombra-forte); transform: translateY(-3px); }
.card-icon { display: flex; justify-content: center; color: var(--verde-700); margin-bottom: .8rem; }
.card p { color: var(--cinza-600); margin: 0; }

/* Catálogo */
.catalog-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.chip { border: 1px solid var(--cinza-300); background: #fff; color: var(--texto); border-radius: 999px; padding: .45em 1.1em; font-size: .95rem; cursor: pointer; transition: var(--transicao); }
.chip:hover { border-color: var(--verde-700); color: var(--verde-700); }
.chip.is-active { background: var(--verde-800); color: #fff; border-color: var(--verde-800); }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card { background: #fff; border: 1px solid var(--cinza-300); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sombra); }
.product-photo { min-height: 170px; border: 0; border-bottom: 1px solid var(--cinza-300); border-radius: 0; }
.product-card h3 { margin: 1rem 1.2rem .3rem; }
.product-card p { margin: 0 1.2rem 1rem; color: var(--cinza-600); font-size: .95rem; }
.link-cta { margin: 0 1.2rem 1.2rem; font-weight: 600; }
.catalog-note { text-align: center; margin-top: 2rem; }

/* A empresa */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
.about-media .media-placeholder { min-height: 260px; }
.about-facts { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.about-facts li { padding: .5rem 0; border-bottom: 1px solid var(--cinza-300); }
.testimonial { border-left: 4px solid var(--verde-700); background: #fff; margin: 0; padding: 1rem 1.2rem; border-radius: 0 var(--raio) var(--raio) 0; box-shadow: var(--sombra); }
.testimonial cite { color: var(--cinza-600); font-size: .9rem; }

/* Formulário */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.form-intro .muted { color: var(--cinza-600); font-size: .95rem; }
.quote-form { background: #fff; border: 1px solid var(--cinza-300); border-radius: var(--raio); padding: 1.8rem; box-shadow: var(--sombra); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field textarea { width: 100%; padding: .75em 1em; border: 1px solid var(--cinza-300); border-radius: 8px; font-size: 1rem; font-family: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--verde-700); border-color: var(--verde-700); }
.form-hint { font-size: .9rem; margin-top: .8rem; min-height: 1.2em; }
.form-hint.error { color: #B3261E; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--raio); box-shadow: var(--sombra); }

/* Rodapé */
.site-footer { background: var(--verde-900); color: #d7f0dd; padding: 2.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand p { margin: .4rem 0 0; }
.footer-logo { border: 1.5px solid rgba(255,255,255,.65); border-radius: 14px; }
.footer-legal { text-align: right; font-size: .9rem; }
.footer-legal p { margin: .2rem 0; }
.footer-credit { font-size: .82rem; opacity: .85; }
.footer-credit a { color: #d7f0dd; text-decoration: underline; }

/* Botões flutuantes */
.fab { position: fixed; right: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--sombra-forte); transition: var(--transicao); }
.fab:hover { transform: scale(1.06); text-decoration: none; }
.fab-phone { bottom: 20px; background: var(--verde-800); }
.fab-whatsapp { bottom: 88px; background: #25D366; }

/* -------------------------------- Responsivo --------------------------- */
@media (max-width: 900px) {
  .about-grid, .form-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards-3, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; border-bottom: 1px solid var(--cinza-300); box-shadow: var(--sombra); display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .9rem 20px; }
  .nav-cta { margin: .5rem 20px; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
}
@media (max-width: 520px) {
  .cards-3, .catalog-grid { grid-template-columns: 1fr; }
}
