/* ===========================================================
   CSS compartilhado — páginas de procedimento e institucionais
   Dr. Arthur Diniz Malheiros — Cirurgião Cardiovascular
   =========================================================== */

:root {
  --primary: #0A3D62;
  --secondary: #1E8BC3;
  --accent: #74C9F5;
  --dark: #051E30;
  --gray: #F4F6F8;
  --text: #2C3E50;
  --muted: #6B7A8D;
  --border: #E4EAF0;
  --whatsapp: #25D366;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* TOPBAR */
.topbar { background: var(--primary); color: #fff; font-size: 0.82rem; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; opacity: 0.92; }
.topbar-info i { margin-right: 6px; color: var(--accent); }

/* NAVBAR */
nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 20px; }
.nav-logo img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--secondary); }
.nav-cta {
  background: var(--whatsapp); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 50px; font-weight: 600; font-size: 0.86rem;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.nav-cta:hover { background: #1fbb59; transform: translateY(-1px); }

/* BREADCRUMB + HERO */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 40%, rgba(30,139,195,0.18), transparent 55%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.82rem; opacity: 0.82; margin-bottom: 24px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; opacity: 0.6; }
.page-hero .tag-pill {
  display: inline-block; background: rgba(116,201,245,0.18); color: var(--accent);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 20px; margin-bottom: 22px;
}
.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 20px; max-width: 820px;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p.lead {
  font-size: 1.08rem; line-height: 1.7; max-width: 780px; opacity: 0.93;
}
.page-hero .hero-cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* BOTÕES */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 50px; text-decoration: none;
  font-weight: 600; font-size: 0.92rem; transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: #1579ab; transform: translateY(-1px); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1fbb59; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* TIPOGRAFIA DE SEÇÃO */
.section { padding: 72px 0; }
.section-gray { background: var(--gray); }
.section-tag {
  display: inline-block; color: var(--secondary); font-size: 0.74rem;
  font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--primary); line-height: 1.25; margin-bottom: 16px;
}
.section-subtitle { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 760px; }
.section-head { margin-bottom: 44px; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* CONTEÚDO EDITORIAL */
.content-prose { max-width: 820px; margin: 0 auto; }
.content-prose h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem; color: var(--primary); margin: 40px 0 16px; line-height: 1.3;
}
.content-prose h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem; color: var(--primary); margin: 28px 0 12px; font-weight: 700;
}
.content-prose p { margin-bottom: 16px; color: var(--text); line-height: 1.8; }
.content-prose ul, .content-prose ol { margin: 0 0 20px 22px; color: var(--text); }
.content-prose li { margin-bottom: 8px; line-height: 1.75; }
.content-prose strong { color: var(--primary); }
.content-prose a { color: var(--secondary); text-decoration: underline; }

/* GRID 2 COLUNAS */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-col-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 28px 24px; transition: all 0.3s;
}
.two-col-card:hover { box-shadow: 0 8px 24px rgba(10,61,98,0.08); border-color: var(--secondary); }
.two-col-card h3 {
  font-family: 'Montserrat', sans-serif; font-size: 1.08rem; font-weight: 700;
  color: var(--primary); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.two-col-card h3 i { color: var(--secondary); font-size: 1.05rem; }
.two-col-card ul { margin: 0; padding-left: 20px; color: var(--text); }
.two-col-card li { margin-bottom: 10px; line-height: 1.7; font-size: 0.93rem; }

/* CARD VERDE / VERMELHO para indicações / contraindicações */
.card-indicated {
  background: #F0F9F3; border: 1px solid #C9E9D4; border-left: 4px solid #2ECC71;
  border-radius: 10px; padding: 24px 26px;
}
.card-indicated h3 { color: #1E7E4C; }
.card-indicated h3 i { color: #2ECC71; }
.card-contraindicated {
  background: #FDF5F3; border: 1px solid #F5D5CF; border-left: 4px solid #C0392B;
  border-radius: 10px; padding: 24px 26px;
}
.card-contraindicated h3 { color: #A22A1F; }
.card-contraindicated h3 i { color: #C0392B; }

/* PASSOS (como é feito) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step-counter; }
.steps > li {
  counter-increment: step-counter; position: relative;
  padding: 22px 22px 22px 74px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
}
.steps > li::before {
  content: counter(step-counter, decimal-leading-zero);
  position: absolute; left: 22px; top: 22px;
  width: 36px; height: 36px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; font-family: 'Playfair Display', serif;
}
.steps > li h4 { color: var(--primary); font-size: 1rem; margin-bottom: 6px; font-weight: 700; }
.steps > li p { font-size: 0.93rem; color: var(--text); line-height: 1.7; margin: 0; }

/* BENEFÍCIOS — cards pequenos */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 18px; text-align: center; transition: all 0.25s;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(10,61,98,0.08); }
.benefit-card .bi-icon {
  width: 52px; height: 52px; background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.benefit-card h4 { color: var(--primary); font-size: 0.98rem; margin-bottom: 6px; font-weight: 700; }
.benefit-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* FAQ — dropdowns */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 10px; overflow: hidden; transition: all 0.2s;
}
.faq-item.open { border-color: var(--secondary); box-shadow: 0 4px 14px rgba(10,61,98,0.08); }
.faq-q {
  padding: 18px 24px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; font-weight: 600; color: var(--primary); font-size: 0.98rem;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--secondary); }
.faq-q i { color: var(--secondary); transition: transform 0.3s; font-size: 0.9rem; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 24px; transition: max-height 0.35s ease, padding 0.3s; color: var(--text); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 24px 20px; }
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* CTA STRIP */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff; padding: 60px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-strip::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 50%, rgba(30,139,195,0.22), transparent 50%);
  pointer-events: none;
}
.cta-strip > .container { position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700; margin-bottom: 14px;
}
.cta-strip p { opacity: 0.9; margin-bottom: 26px; font-size: 1rem; }
.cta-strip .btn-whatsapp { font-size: 1rem; padding: 15px 30px; }

/* FOOTER */
footer {
  background: var(--dark); color: #C9D8E6; padding: 56px 0 28px; font-size: 0.88rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: #fff; font-size: 0.98rem; margin-bottom: 16px; font-weight: 700; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer a { color: #C9D8E6; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 0.82rem; opacity: 0.78;
}

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  background: var(--whatsapp); color: #fff; width: 60px; height: 60px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  text-decoration: none; transition: all 0.3s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37,211,102,0.55); }

/* HAMBURGER */
.hamburger { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--primary); margin: 5px 0; transition: all 0.3s; }
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--border); }
.mobile-menu a { display: block; padding: 14px 24px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: block; }

/* RESPONSIVO */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-cta { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 60px 0 70px; }
  .topbar-info { justify-content: center; }
}
@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-logo img { height: 44px; }
}
