/* ============================================================
   global.css — Dr. Gustavo Bordenali
   Estilos do header fixo, footer e utilitários globais
   ============================================================ */

/* Offset do header fixo para todo o conteúdo */
body { padding-top: 64px; }

/* ── SITE HEADER ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e7ebe5;
  box-shadow: 0 1px 8px rgba(95,116,112,.10);
}
.sh-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.sh-logo {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-right: 8px;
}
.sh-logo-name {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.sh-logo-spec {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #5F7470;
  letter-spacing: .02em;
}

/* Nav desktop */
.sh-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.sh-link {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #4a5a57;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.sh-link:hover  { background: #eaf0ef; color: #5F7470; }
.sh-link.active { background: #eaf0ef; color: #5F7470; font-weight: 700; }
.sh-link--agen  { color: #5F7470; border: 1.5px solid #5F7470; padding: 5px 12px; }
.sh-link--agen:hover { background: #5F7470; color: #fff; }

/* WA button header */
.sh-wa {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.sh-wa:hover { background: #1fbc58; transform: translateY(-1px); }
.sh-wa svg   { width: 16px; height: 16px; flex-shrink: 0; }

/* Hamburger */
.sh-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: none;
  margin-left: auto;
}
.sh-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #4a5a57;
  border-radius: 2px;
  transition: all .25s;
}
.sh-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sh-hamburger.open span:nth-child(2) { opacity: 0; }
.sh-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
.sh-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e7ebe5;
  padding: 16px 20px 20px;
  box-shadow: 0 8px 24px rgba(95,116,112,.12);
}
.sh-drawer.open { display: flex; }
.sh-drawer .sh-link {
  padding: 11px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f0f2ef;
}
.sh-drawer .sh-link:last-child { border-bottom: none; }
.sh-drawer .sh-wa {
  margin-top: 14px;
  justify-content: center;
  padding: 13px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #637772;
  color: #B8BDB5;
  padding: 60px 0 0;
}
.sf-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sf-name {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 3px;
}
.sf-spec { font-size: 11px; color: #ffffff; margin-bottom: 3px; }
.sf-crm  { font-size: 11px; color: #ffffff; margin-bottom: 16px; }
.sf-desc { font-size: 12px; color: #ffffff; line-height: 1.7; }
.sf-col h6 {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 14px;
}
.sf-col ul { list-style: none; padding: 0; margin: 0; }
.sf-col ul li { margin-bottom: 8px; }
.sf-col ul a {
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
  transition: color .15s;
}
.sf-col ul a:hover { color: #e0e0e0; }
.sf-col .sf-addr { font-size: 11px; color: #ffffff; line-height: 1.6; margin-bottom: 12px; }
.sf-col .sf-addr strong { color: #ffffff; display: block; margin-bottom: 2px; }

/* Footer bottom */
.sf-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sf-legal { font-size: 10px; color: rgba(255,255,255,.7); line-height: 1.6; max-width: 700px; }
.sf-credit { font-size: 10px; color: rgba(255,255,255,.7); white-space: nowrap; flex-shrink: 0; }
.sf-credit a { color: #ffffff; text-decoration: none; transition: color .15s; }
.sf-credit a:hover { color: #fff; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sh-nav .sh-link { font-size: 11px; padding: 6px 7px; }
}
@media (max-width: 900px) {
  .sh-nav, .sh-wa { display: none; }
  .sh-hamburger    { display: flex; }
  .site-header     { overflow: visible; }
  .sf-grid         { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .sh-inner    { padding: 0 16px; }
  .sf-grid     { grid-template-columns: 1fr; gap: 28px; padding: 0 16px 36px; }
  .sf-bottom   { flex-direction: column; align-items: flex-start; padding: 16px; }
}
