/* =====================================================
   BRASMÉDICA HOSPITALAR — Redesign v2
   Shared stylesheet · _shared.css
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --navy:        #0E2A5C;
  --blue:        #1A4FA0;
  --blue-mid:    #2563C4;
  --blue-tint:   #EAF1FB;
  --green:       #2D9E4F;
  --green-light: #E6F5EC;
  --green-mid:   #3CB468;
  --white:       #FFFFFF;
  --off-white:   #F5F7FC;
  --gray-100:    #E8EBF2;
  --gray-300:    #B0B8CC;
  --gray-500:    #6E7A96;
  --gray-700:    #343C52;
  --gray-900:    #131720;

  /* Typography scale */
  --font-display: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --section-pad: clamp(64px, 8vw, 104px) 6vw;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
}

/* ── NAV ───────────────────────────────────────── */
.bm-nav {
  position: sticky; top: 0; z-index: 200;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 20px rgba(14,42,92,.06);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 42px; width: auto; display: block; }
.nav-brand {
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 800;
  color: var(--navy); letter-spacing: -.01em;
}
.nav-brand em { font-style: normal; font-weight: 400; color: var(--gray-500); margin-left: 4px; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: .875rem; font-weight: 500;
  color: var(--gray-500); transition: color .18s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--green);
  transition: width .22s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--green); color: var(--white);
  border: none; border-radius: var(--r-sm);
  padding: 9px 22px; font-size: .875rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--green-mid); transform: translateY(-1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
}

/* ── PAGE HEADER (inner pages) ─────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #173a82 100%);
  padding: 72px 6vw 60px;
  text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; right: -10%; top: -40%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(45,158,79,.1); pointer-events: none;
}
.page-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #6de08c; margin-bottom: 14px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800; color: var(--white); line-height: 1.1;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 1.05rem; color: rgba(255,255,255,.72);
  max-width: 580px; margin: 0 auto;
}

/* ── SECTION UTILITIES ─────────────────────────── */
.section { padding: var(--section-pad); }
.section--alt { background: var(--off-white); }

.eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800; line-height: 1.12;
  color: var(--gray-900); margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem; color: var(--gray-500);
  max-width: 560px; margin-bottom: 44px;
}

/* ── CARD ──────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 36px rgba(26,79,160,.09);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.card-icon--green { background: var(--green-light); }
.card h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 9px;
}
.card p { font-size: .9rem; color: var(--gray-500); line-height: 1.65; }

/* ── FEATURE LIST ──────────────────────────────── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .95rem; color: var(--gray-700);
}
.feature-list li::before {
  content: '';
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-light) url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='%232D9E4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/cover;
  border: 2px solid var(--green); flex-shrink: 0; margin-top: 1px;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: var(--r-sm);
  padding: 13px 30px; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: .2s;
}
.btn--primary {
  background: var(--green); color: var(--white);
  box-shadow: 0 4px 18px rgba(45,158,79,.3);
}
.btn--primary:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(45,158,79,.38); }
.btn--outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.38);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--ghost {
  background: var(--blue-tint); color: var(--blue);
}
.btn--ghost:hover { background: #d6e6f7; }

/* ── FOOTER ────────────────────────────────────── */
.bm-footer {
  background: var(--gray-900); color: rgba(255,255,255,.55);
  padding: 56px 6vw 32px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 28px;
}
.footer-brand p { font-size: .875rem; line-height: 1.75; margin-top: 14px; max-width: 280px; }
.footer-brand .bm-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1rem; color: var(--white);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .875rem; font-weight: 700; color: var(--white); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  text-decoration: none; font-size: .875rem; color: rgba(255,255,255,.5);
  transition: color .18s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }

/* ── STATS STRIP ───────────────────────────────── */
.stats-strip {
  background: var(--green);
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 24px; padding: 34px 6vw;
}
.stat { text-align: center; color: var(--white); }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 800; line-height: 1;
}
.stat-label { font-size: .78rem; opacity: .85; margin-top: 5px; letter-spacing: .04em; }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 860px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 20px 6vw; gap: 16px; border-bottom: 1px solid var(--gray-100); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
}
