/* ==========================================================================
   CIMERMAN — Medicina Diagnóstica
   Folha de estilo principal
   Tipografia: Poppins (títulos) + Mulish (texto)
   ========================================================================== */

:root {
  /* Paleta oficial Cimerman */
  --primary: #22b8f0;        /* azul vibrante da marca — ações, links, destaques */
  --primary-dark: #0e9cd1;   /* hover do azul */
  --accent: #0ac9c9;         /* ciano secundário da marca — rodapé/acento */
  --accent-dark: #08abab;
  --deep: #0c4a7a;           /* azul profundo p/ fundos escuros (texto branco legível) */
  --deep-dark: #082f50;
  --ink: #1b2440;
  --muted: #5e6b85;
  --line: #e6edf6;
  --soft: #f3fafe;
  --shadow-sm: 0 6px 24px rgba(12, 74, 122, .08);
  --shadow-md: 0 18px 40px rgba(12, 74, 122, .12);
  --shadow-lg: 0 24px 50px rgba(12, 74, 122, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Mulish', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-head {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -.01em;
}

a { text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

.cm-strip {
  background: repeating-linear-gradient(45deg, #eef4fb, #eef4fb 11px, #e6eef9 11px, #e6eef9 22px);
}

@keyframes cmfloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Utilidades de texto -------------------------------------------------- */
.text-accent { color: var(--accent) !important; }
.text-primary-cm { color: var(--primary) !important; }

.eyebrow {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn-cm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  border: 2px solid transparent;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
  cursor: pointer;
}

.btn-cm-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(10, 201, 201, .4);
}
.btn-cm-accent:hover { background: var(--accent-dark); color: #fff; }

.btn-cm-primary { background: var(--primary); color: #fff; }
.btn-cm-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-cm-soft { background: rgba(12, 74, 122, .06); color: var(--primary); }
.btn-cm-soft:hover { background: var(--primary); color: #fff; }

.btn-cm-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn-cm-outline-light:hover { background: #fff; color: var(--primary); }

.btn-cm-white { background: #fff; color: var(--primary); }
.btn-cm-white:hover { background: var(--primary); color: #fff; }

.btn-cm-sm { padding: 12px 24px; font-size: 14.5px; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.cm-topbar {
  background: var(--deep-dark);
  color: #c9d6ef;
  font-size: 13.5px;
}
.cm-topbar a { color: #eaf1ff; }
.cm-topbar a:hover { color: #fff; }
.cm-topbar .bi { color: var(--accent); }
.cm-topbar .cm-social a { color: #c9d6ef; }
.cm-topbar .cm-social a:hover { color: #fff; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.cm-navbar {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding-top: 14px;
  padding-bottom: 14px;
}
.cm-navbar .navbar-brand img { height: 64px; width: auto; display: block; }
.cm-navbar .nav-link {
  font-weight: 600;
  color: var(--ink) !important;
  font-size: 15.5px;
  padding: 8px 14px !important;
  border-radius: 9px;
}
.cm-navbar .nav-link:hover,
.cm-navbar .nav-link.active { color: var(--primary) !important; background: var(--soft); }
.cm-navbar .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-md);
  padding: 8px;
}
.cm-navbar .dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  padding: 9px 14px;
}
.cm-navbar .dropdown-item:hover,
.cm-navbar .dropdown-item.active { background: var(--soft); color: var(--primary); }
.cm-nav-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}
.cm-nav-result:hover { color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.cm-hero {
  position: relative;
  background: linear-gradient(115deg, var(--deep) 0%, var(--deep-dark) 55%, #061f36 100%);
  overflow: hidden;
}
.cm-hero__grid {
  position: absolute; inset: 0; opacity: .10;
  background: repeating-linear-gradient(45deg, #fff, #fff 14px, transparent 14px, transparent 28px);
}
.cm-hero__glow {
  position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 201, 201, .45), transparent 65%);
}
.cm-hero__inner { position: relative; min-height: 560px; padding-top: 70px; padding-bottom: 90px; }
.cm-hero h1 { font-weight: 800; font-size: 52px; line-height: 1.08; }
.cm-hero p.lead { font-size: 18px; line-height: 1.7; color: #cdd9f3; max-width: 520px; }
.cm-badge-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.cm-badge-pill .bi { color: var(--accent); }
.cm-hero__stats .num { font-size: 28px; font-weight: 700; }
.cm-hero__stats .lbl { font-size: 13px; color: #b9c6e6; }
.cm-hero__stats .sep { width: 1px; background: rgba(255, 255, 255, .18); }
.cm-hero__media {
  border-radius: 22px; height: 430px;
  background: linear-gradient(160deg, rgba(12, 74, 122, .12), rgba(8, 47, 80, .42)),
              url('../img/banners/Cimerman-1.jpg') center/cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
}
.cm-hero__float {
  position: absolute; left: -26px; bottom: 42px;
  background: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  display: flex; align-items: center; gap: 13px;
  animation: cmfloat 5s ease-in-out infinite;
}
.cm-hero__float .ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(10, 201, 201, .14); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* Cabeçalho de página interna (substitui o hero nas páginas internas) */
.cm-pagehead {
  position: relative;
  background: linear-gradient(115deg, var(--deep) 0%, var(--deep-dark) 55%, #061f36 100%);
  color: #fff; overflow: hidden;
  padding: 64px 0;
}
.cm-pagehead h1 { font-weight: 800; font-size: 42px; line-height: 1.1; }
.cm-pagehead .breadcrumb { --bs-breadcrumb-divider-color: #8ea4c6; margin: 0; }
.cm-pagehead .breadcrumb a { color: #cdd9f3; }
.cm-pagehead .breadcrumb a:hover { color: #fff; }
.cm-pagehead .breadcrumb .active { color: var(--accent); }

/* ==========================================================================
   Cartões / seções
   ========================================================================== */
.cm-quickcard {
  background: #fff; border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow-md); height: 100%;
  border-top: 4px solid var(--accent);
  transition: box-shadow .2s;
}
.cm-quickcard:hover { box-shadow: var(--shadow-lg); }
.cm-quickcard .ico {
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(12, 74, 122, .07); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.cm-quickcard a.more { color: var(--accent); font-weight: 700; font-size: 14.5px; }

.cm-section { padding: 90px 0; }
.cm-section--soft { background: var(--soft); }

.cm-servicecard {
  background: #fff; border-radius: 20px; padding: 34px 30px; height: 100%;
  border: 1px solid var(--line);
  transition: box-shadow .2s, transform .2s;
}
.cm-servicecard:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cm-servicecard .ico {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 12px 26px rgba(10, 201, 201, .3);
}
.cm-check {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600;
}
.cm-check .bi {
  background: var(--accent); color: #fff; border-radius: 50%;
  width: 19px; height: 19px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 12px; flex: none;
}

/* Banda escura (stats / por que escolher) */
.cm-band {
  background: linear-gradient(120deg, var(--deep), var(--deep-dark));
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.cm-band__grid {
  position: absolute; inset: 0; opacity: .07;
  background: repeating-linear-gradient(45deg, #fff, #fff 13px, transparent 13px, transparent 26px);
}
.cm-band p.lead { color: #c4d0ec; }
.cm-trust .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(10, 201, 201, .2); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none;
}
.cm-stat .num { font-size: 42px; font-weight: 800; }
.cm-stat .lbl { font-size: 14px; color: #bcc9e8; }

/* Banda accent (passos) */
.cm-band--accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
}
.cm-band--accent .cm-band__grid { opacity: .10; }
.cm-step {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px; padding: 26px 22px; height: 100%; backdrop-filter: blur(4px);
}
.cm-step .n {
  width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--accent);
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}

/* Infra cards */
.cm-infra { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); height: 100%; transition: box-shadow .2s; }
.cm-infra:hover { box-shadow: var(--shadow-lg); }
.cm-infra__img { height: 200px; background-size: cover; background-position: center; position: relative; }
.cm-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 13px; border-radius: 999px;
}

/* Features */
.cm-feature {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px;
  border-radius: 16px; transition: background .2s;
}
.cm-feature:hover { background: var(--soft); }
.cm-feature .ico {
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(10, 201, 201, .13); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 25px; flex: none;
}

/* Convênios band */
.cm-conv-band { background: var(--deep-dark); padding: 46px 0; color: #fff; }
.cm-conv-band .ico {
  width: 62px; height: 62px; border-radius: 16px;
  background: rgba(10, 201, 201, .2); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 30px; flex: none;
}

/* Lista de convênios */
.cm-conv-item {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 16px 18px; height: 100%; display: flex; gap: 12px; align-items: flex-start;
}
.cm-conv-item .bi { color: var(--accent); font-size: 18px; margin-top: 2px; }
.cm-conv-item .restr { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ==========================================================================
   Formulários
   ========================================================================== */
.cm-formcard {
  background: #fff; border-radius: 22px; padding: 34px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
}
.cm-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; display: block; }
.cm-input, .cm-select, .cm-textarea {
  width: 100%;
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  background: var(--soft); color: var(--ink); font-family: inherit; font-size: 15px;
}
.cm-input:focus, .cm-select:focus, .cm-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 201, 201, .15);
}
.cm-textarea { resize: vertical; }
.cm-input.is-invalid, .cm-select.is-invalid, .cm-textarea.is-invalid { border-color: #e0496a; background: #fff5f7; }
.cm-error { color: #d63a5c; font-size: 12.5px; margin-top: 5px; }

.cm-alert { border-radius: 13px; padding: 16px 18px; font-size: 14.5px; }
.cm-alert-success { background: rgba(10, 201, 201, .12); color: #0c7a6e; border: 1px solid rgba(10, 201, 201, .35); }
.cm-alert-danger { background: #fff1f4; color: #b32445; border: 1px solid #f3c2cf; }

.cm-contactitem .ico {
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(255, 255, 255, .1); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex: none;
}
.cm-contactitem .lbl { font-size: 13px; color: #b9c6e6; }
.cm-contactitem .val { font-weight: 700; font-size: 17px; }

/* ==========================================================================
   Unidades
   ========================================================================== */
.cm-unit { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; height: 100%; transition: box-shadow .2s; }
.cm-unit:hover { box-shadow: 0 22px 46px rgba(12, 74, 122, .12); }
.cm-unit__map { width: 100%; height: 220px; border: 0; display: block; }
.cm-unit__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 13px; border-radius: 999px; z-index: 2;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.cm-footer { background: var(--deep-dark); color: #c4d0ec; padding: 70px 0 0; }
.cm-footer h4 { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.cm-footer a { color: #c4d0ec; font-size: 14.5px; }
.cm-footer a:hover { color: var(--accent); }
.cm-footer__brand .ico {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
}
.cm-footer__social a {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255, 255, 255, .08); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cm-footer__social a:hover { background: var(--accent); color: #fff; }
.cm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }

/* WhatsApp flutuante */
.cm-wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1030;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.cm-wa-float:hover { transform: scale(1.08); color: #fff; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 991.98px) {
  .cm-hero h1 { font-size: 40px; }
  .section-title, .cm-pagehead h1 { font-size: 32px; }
  .cm-section { padding: 64px 0; }
}
@media (max-width: 575.98px) {
  .cm-hero h1 { font-size: 32px; }
  .cm-hero__inner { min-height: auto; }
  .section-title { font-size: 27px; }
}
