/* ═══════════════════════════════════════════════
   K2 MED – PARAMENTAÇÃO MÉDICA CIRÚRGICA
   style.css – Estilos globais compartilhados
═══════════════════════════════════════════════ */

:root {
  --navy:     #04111f;
  --navy2:    #071d30;
  --teal:     #007c6e;
  --teal2:    #00a896;
  --mint:     #e6f7f5;
  --white:    #ffffff;
  --gray:     #8fa3b0;
  --light:    #f4f8f7;
  --text:     #162028;
  --border:   rgba(0,168,150,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw; height: 72px;
  background: rgba(4,17,31,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,168,150,.2);
  transition: background .3s, height .3s;
}
.navbar.scrolled { height: 62px; background: rgba(4,17,31,.98); }

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 1.55rem;
  color: var(--white); text-decoration: none;
  letter-spacing: -1px;
}
.nav-logo span { color: var(--teal2); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500;
  color: var(--gray); text-decoration: none;
  letter-spacing: .07em; text-transform: uppercase;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--teal2);
  transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal2); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* hamburguer */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(4,17,31,.97);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem; z-index: 199;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--white); text-decoration: none;
  letter-spacing: -.02em;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--teal2); }

/* ── HERO BASE ──────────────────────────────── */
.page-hero {
  min-height: 52vh;
  background: var(--navy);
  display: flex; align-items: flex-end;
  padding: 120px 6vw 70px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,168,150,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,150,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 25s linear infinite;
}
@keyframes gridMove { to { background-position: 48px 48px; } }
.page-hero-inner { position: relative; z-index: 2; }
.page-breadcrumb {
  font-size: .75rem; color: var(--teal2);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: .9rem;
}
.page-hero h1 {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--white); line-height: 1.1;
}
.page-hero h1 em { font-style: normal; color: var(--teal2); }

/* ── SECTION BASE ───────────────────────────── */
section { padding: 90px 6vw; }
.section-tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .7rem;
}
h2 {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.15; margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.02rem; font-weight: 300;
  color: #5a7080; line-height: 1.85; max-width: 560px;
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,124,110,.3);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(0,124,110,.45); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal2);
  color: var(--teal2);
}
.btn-outline:hover { background: rgba(0,168,150,.1); }

/* ── CARDS BASE ─────────────────────────────── */
.card {
  background: var(--white); border-radius: 16px;
  padding: 2rem; transition: transform .25s, box-shadow .25s;
  box-shadow: 0 2px 18px rgba(0,0,0,.06);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,124,110,.1); }

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 60px 6vw 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: var(--gray); line-height: 1.8; max-width: 280px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: .8rem; color: var(--teal2);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-col ul a {
  font-size: .88rem; color: var(--gray);
  text-decoration: none; transition: color .2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-col p { font-size: .88rem; color: var(--gray); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .78rem; color: #4a6070; }
.footer-bottom .footer-logo-sm {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 1.1rem; color: var(--white);
}
.footer-bottom .footer-logo-sm span { color: var(--teal2); }

/* ── SCROLL REVEAL ──────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── NAV ADMIN (ícone discreto) ────────────── */
.nav-admin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  margin-left: 1.4rem;
  color: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.nav-admin:hover {
  color: var(--teal2);
  border-color: rgba(0,168,150,.5);
  background: rgba(0,168,150,.08);
  transform: scale(1.05);
}
.mobile-admin {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--teal2) !important;
  font-size: .9rem;
}
@media (max-width: 768px) { .nav-admin { display: none; } }

/* ── PAGE HERO COM IMAGEM DE FUNDO (banner) ─ */
.page-hero.has-bg-image {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero.has-bg-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,17,31,.62) 0%, rgba(4,17,31,.88) 100%);
  z-index: 1;
}
.page-hero.has-bg-image .page-hero-inner { position: relative; z-index: 2; }

/* ── IMAGENS REAIS (Unsplash) ─────────────── */
.sr-img-mock, .intro-img, .prod-img {
  overflow: hidden;
  position: relative;
}
.sr-img-mock, .intro-img {
  border: none !important;
  font-size: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}
.sr-img-mock img, .intro-img img, .prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.sr-img-mock:hover img,
.intro-img:hover img,
.prod-img:hover img {
  transform: scale(1.05);
}
.mapa-embed {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 20px;
  margin-top: 2.5rem;
  display: block;
  box-shadow: 0 10px 40px rgba(0,124,110,.15);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 70px 5vw; }
  .mapa-embed { height: 320px; }
}
