/* =========================================================
   Clinical Cases — stylesheet
   Design language: editorial "clinical chart" — an ECG pulse
   line motif ties the header mark and one section divider
   back to the cardiology imagery used in the hero/about art.
   ========================================================= */

:root {
  /* Color */
  --ink: #14232e;
  --ink-soft: #33424c;
  --paper: #f4f6f5;
  --panel: #e9edeb;
  --line: #d7dedb;
  --pulse: #b4293a;
  --pulse-dark: #8f1f2d;
  --vital: #3c6e68;
  --vital-soft: #e4ece9;
  --white: #ffffff;

  /* Type */
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --section-pad: 6.5rem;
}

@media (max-width: 767px) {
  :root { --section-pad: 3.5rem; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p { max-width: 62ch; }
.legal-body p{max-width:100%;}
a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container-cc {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- kicker / section head ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pulse);
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--pulse);
  display: inline-block;
}

.section-head { margin-bottom: 3rem; max-width: 640px; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn-cc {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-cc svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--pulse); color: var(--white); }
.btn-primary:hover { background: var(--pulse-dark); color: var(--white); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }

.btn-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--white); }

.btn-whatsapp { background: #4fb96f; color: var(--white); }
.btn-whatsapp:hover { background: #2c5551; color: var(--white); }

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  font-size: 0.86rem;
}
.topbar .container-cc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.topbar a { color: rgba(255,255,255,0.88); transition: color 0.15s ease; }
.topbar a:hover { color: var(--white); }
.topbar-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.topbar-phone svg { width: 14px; height: 14px; }
.topbar-social { display: flex; align-items: center; gap: 1rem; }
.topbar-social svg { width: 15px; height: 15px; }

/* ---------- navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; }

.navbar-cc {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0;
  transition: box-shadow 0.2s ease;
}
.navbar-cc.is-scrolled { box-shadow: 0 6px 18px -12px rgba(20,35,46,0.28); }

/* Bootstrap only auto-flexes its own .container* classes inside .navbar —
   container-cc needs the same treatment so the brand pins left and the
   toggler/nav pin right at every breakpoint. */
.navbar-cc .container-cc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.navbar-toggler-cc {
  order: 2;
  margin-left: auto;
}
.brand { order: 1; }
.navbar-collapse { order: 3; }

@media (max-width: 991.98px) {
  .navbar-collapse {
    flex-basis: 100%;
    padding-top: 1rem;
    padding-bottom: 1.1rem;
    border-top: 1px solid var(--line);
    margin-top: 0.9rem;
  }
  .navbar-nav .nav-item { border-bottom: 1px solid var(--line); }
  .navbar-nav .nav-item:last-child { border-bottom: none; }
  .nav-link-cc { padding: 0.85rem 0.2rem !important; }
  .nav-link-cc::after { left: 0.2rem; right: 0.2rem; }
  .navbar-nav .nav-item.cta-item { border-bottom: none; padding-top: 1rem; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 20px; flex-shrink: 0; }
.brand-mark path { stroke: var(--pulse); }

.nav-link-cc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}
.nav-link-cc:hover, .nav-link-cc.active { color: var(--ink) !important; }
.nav-link-cc::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.15rem;
  height: 2px;
  background: var(--pulse);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link-cc:hover::after, .nav-link-cc.active::after { transform: scaleX(1); }

.navbar-toggler-cc { border: 1px solid var(--line) !important; padding: 0.4rem 0.6rem !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-image: url("../assets/images/banner.jpg");
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,25,32,0.55) 0%, rgba(15,25,32,0.55) 35%, rgba(11,19,25,0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 5rem;
  padding-top: 8rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #c9c9c9;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: cc-rise 0.7s ease-out 0.15s forwards;
}
.hero-eyebrow::before { content:""; width: 22px; height: 2px; background: var(--pulse); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  max-width: 25ch;
  margin-bottom: 1.3rem;
  opacity: 0;
  animation: cc-rise 0.7s ease-out 0.3s forwards;
}
.hero-sub {
  color: rgba(255,255,255,0.86);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: cc-rise 0.7s ease-out 0.45s forwards;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: cc-rise 0.7s ease-out 0.6s forwards;
}
@keyframes cc-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pulse-divider { display: block; width: 100%; height: 46px; margin-top: -1px; }
.pulse-divider path { stroke: var(--pulse); }

/* ---------- about ---------- */
.about-section { padding: var(--section-pad) 0; background: var(--paper); }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-md); }
.about-badge {
  position: absolute;
  left: -1.25rem; bottom: -1.25rem;
  background: var(--ink);
  color: var(--white);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  max-width: 230px;
  box-shadow: 0 18px 34px -18px rgba(20,35,46,0.55);
}
.about-badge .num { font-family: var(--font-display); font-size: 1.9rem; color: #f0b8be; display:block; line-height:1; }
.about-badge .lbl { font-size: 0.85rem; color: rgba(255,255,255,0.78); }

@media (max-width: 767px) {
  .about-badge { left: 1rem; bottom: -1.25rem; }
}

.about-copy h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 1.1rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-list { list-style: none; padding: 0; margin: 1.6rem 0; }
.about-list li {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink);
}
.about-list li:last-child { border-bottom: 1px solid var(--line); }
.about-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.2rem; stroke: var(--pulse); }

/* ---------- services ---------- */
.services-section { padding: var(--section-pad) 0; background: var(--panel); }

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--vital);
  border-radius: var(--radius-sm);
  padding: 2rem 1.7rem;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-top-color: var(--pulse); transform: translateY(-3px); }
.service-icon {
  width: 46px; height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--ink); }
.service-card:hover .service-icon { border-color: var(--pulse); background: var(--pulse); }
.service-card:hover .service-icon svg { stroke: var(--white); }
.service-card h3 { font-size: 1.18rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- video learning ---------- */
.video-section { padding: var(--section-pad) 0; background: var(--paper); }
.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  height: auto;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.video-card:hover { border-color: var(--vital); box-shadow: 0 16px 30px -22px rgba(20,35,46,0.45); }
.video-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1c333f, #2c4a56);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.video-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,25,32,0.15), rgba(15,25,32,0.5));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.video-thumb.has-thumb::after { opacity: 1; }
.video-thumb svg.wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; transition: opacity 0.2s ease; z-index: 1; }
.video-thumb.has-thumb svg.wave { opacity: 0; }
.play-btn {
  position: relative; z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.play-btn svg { width: 20px; height: 20px; fill: var(--pulse); margin-left: 3px; }
.video-card:hover .play-btn { transform: scale(1.08); background: var(--white); }
.video-body { padding: 1.2rem 1.3rem 1.4rem; }
.video-body h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.video-body p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0; }
.video-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--vital);
  background: var(--vital-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.modal-cc .modal-content { border: none; border-radius: var(--radius-md); overflow: hidden; }
.modal-cc .modal-header { border-bottom: 1px solid var(--line); }
.modal-cc video { width: 100%; max-height: 72vh; background: #000; display: block; }
.modal-cc .video-missing {
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.modal-cc .video-missing code {
  background: var(--panel);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  color: var(--pulse);
}

/* ---------- why / benefits strip ---------- */
.why-section { padding: var(--section-pad) 0; background: var(--ink); color: var(--white); }
.why-section .section-head h2, .why-section .kicker { color: var(--white); }
.why-section .kicker { color: #f0b8be; }
.why-section .section-head p { color: rgba(255,255,255,0.72); }
.why-item { padding: 1.8rem 0; border-top: 1px solid rgba(255,255,255,0.14); }
.why-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.why-item .why-num { font-family: var(--font-display); font-size: 1.05rem; color: #f0b8be; margin-bottom: 0.5rem; display:block; }
.why-item h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 0.5rem; }
.why-item p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- who it's for ---------- */
.audience-section { padding: var(--section-pad) 0; background: var(--paper); }
.audience-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.9rem;
  height: 100%;
  background: var(--panel);
}
.audience-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.audience-card p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-section { padding: var(--section-pad) 0; background: var(--paper); }
.accordion-cc .accordion-item {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
}
.accordion-cc .accordion-item:last-of-type { border-bottom: 1px solid var(--line); }
.accordion-cc .accordion-button {
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  padding: 1.4rem 0.2rem;
  box-shadow: none !important;
}
.accordion-cc .accordion-button::after {
  background-image: none;
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--pulse);
  transition: transform 0.2s ease;
  width: auto; height: auto;
}
.accordion-cc .accordion-button:not(.collapsed)::after { content: "\2212"; }
.accordion-cc .accordion-button:not(.collapsed) { color: var(--pulse); }
.accordion-cc .accordion-body {
  padding: 0 0.2rem 1.6rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 68ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 2.2rem 0;
  background: var(--pulse);
  color: var(--white);
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -6%; top: -30%;
  width: 480px; height: 480px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display:none;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 16ch; }
.cta-band p { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 50ch; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #0b1620; }

/* ---------- disclaimer ---------- */
.disclaimer-section { padding: 2.75rem 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclaimer-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  max-width: 900px;
  padding-left: 1.2rem;
  border-left: 2px solid var(--vital);
}
.disclaimer-box svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--vital); margin-top: 0.15rem; }
.disclaimer-box p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; max-width: none; }
.disclaimer-box strong { color: var(--ink); }

/* ---------- contact ---------- */
.contact-section { padding: var(--section-pad) 0; background: var(--paper); }
.contact-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.6rem;
}
.contact-card h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 0.6rem; }
.contact-card > p { color: rgba(255,255,255,0.72); margin-bottom: 2rem; }
.contact-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.contact-row:last-child { padding-bottom: 0; }
.contact-row svg { width: 20px; height: 20px; stroke: #f0b8be; flex-shrink: 0; margin-top: 0.15rem; }
.contact-row .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 0.15rem; }
.contact-row .val { font-weight: 500; }
.contact-row a.val:hover { color: #f0b8be; }
.contact-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.map-frame { border-radius: var(--radius-md); overflow: hidden; height: 100%; min-height: 340px; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding-top: 4.5rem; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--white); margin-bottom: 1rem; }
.site-footer h4 { color: var(--white); font-size: 0.92rem; font-weight: 600; margin-bottom: 1.2rem; }
.site-footer p { color: rgba(255,255,255,0.62); font-size: 0.93rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.93rem; transition: color 0.15s ease; }
.footer-links a:hover { color: #f0b8be; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.22); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover { border-color: var(--pulse); background: var(--pulse); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 3.2rem; padding: 1.4rem 0; }
.footer-bottom .container-cc { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.85rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.65); margin-left: 1.4rem; }
.footer-bottom-links a:hover { color: var(--white); }
@media (max-width: 575px) { .footer-bottom-links a { margin-left: 0; margin-right: 1.2rem; } }

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #4fb96f; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -10px rgba(20,35,46,0.55);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px); background: #2c5551; color: var(--white); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- reveal on scroll (single subtle pattern, used once per section head) ---------- */
.cc-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.cc-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- simple pages (privacy/terms) ---------- */
.legal-hero { background: var(--ink); color: var(--white); padding: 6rem 0 3.5rem; }
.legal-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-hero p { color: rgba(255,255,255,0.7); }
.legal-body { padding: 4rem 0 6rem; }
.legal-body h2 { font-size: 1.35rem; margin-top: 2.4rem; margin-bottom: 0.9rem; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 0.98rem; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li { margin-bottom: 0.5rem; }
.legal-updated { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 2.5rem; }
