/* ============================================
   Dr. Edson Ristow Jr. — Sistema de Design
   Paleta: branco, azul petróleo/marinho, cinza-chumbo
   Tipografia: Fraunces (display) + Inter (corpo)
   ============================================ */

:root {
  /* Cores */
  --navy: #0A2635;
  --navy-deep: #061A24;
  --petrol: #0F4C56;
  --petrol-light: #1C7A82;
  --petrol-pale: #EAF2F2;
  --gray-900: #1E2528;
  --gray-700: #414B4F;
  --gray-500: #6C787C;
  --gray-300: #C4CDCF;
  --gray-100: #F3F6F6;
  --white: #FFFFFF;
  --line: #E2E9E9;
  --wa: #178A5B;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaçamento */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 2px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 480; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petrol-light);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--petrol-light);
  display: inline-block;
}

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-deep);
  color: var(--gray-300);
  font-size: 0.78rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  gap: 1rem;
}
.topbar a { color: var(--gray-300); }
.topbar .topbar-contact { display: flex; gap: 1.4rem; }
.topbar .topbar-contact span { white-space: nowrap; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 560;
  letter-spacing: -0.01em;
}
.brand span { color: var(--petrol-light); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 0.2rem 0;
}
.nav-links a:hover { color: var(--petrol); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--petrol-light);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--petrol); }
.btn-whatsapp { background: var(--wa); color: var(--white); }
.btn-whatsapp:hover { background: #136d48; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.hero-copy .eyebrow { color: var(--petrol-light); }
.hero-copy .eyebrow::before { background: var(--petrol-light); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--petrol-light); }
.hero-sub {
  color: var(--gray-300);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-top: 1.1rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-credentials {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  flex-wrap: wrap;
}
.hero-credentials div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 500;
}
.hero-credentials div span {
  font-size: 0.76rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-media {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px;
}
.hero-media-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #123642, #0A2635 70%);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media-inner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0.92; }
.hero-media-caption {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(0deg, rgba(6,20,28,0.92), rgba(6,20,28,0));
  width: 100%;
  font-size: 0.78rem;
  color: var(--gray-300);
}
.hero-media-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 560;
  color: var(--white);
  letter-spacing: -0.005em;
  margin-bottom: 0.15rem;
}
.hero-media-caption span {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-media::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 26px; height: 26px;
  border-top: 2px solid var(--petrol-light);
  border-left: 2px solid var(--petrol-light);
}
.hero-media::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 26px; height: 26px;
  border-bottom: 2px solid var(--petrol-light);
  border-right: 2px solid var(--petrol-light);
}

/* ---------- Sections ---------- */
section { padding: var(--section-y) 0; }
.section-alt { background: var(--gray-100); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.3rem, 3vw, 2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--petrol-light); transform: translateY(-2px); }
.card .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--petrol-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
  display: block;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.93rem; }
.card a.card-link { display: inline-block; margin-top: 1rem; font-size: 0.83rem; font-weight: 600; color: var(--petrol); }
.card a.card-link:hover { color: var(--navy); }

.icon-line {
  width: 44px; height: 1px; background: var(--petrol-light); margin-bottom: 1.1rem;
}

/* Diferenciais / stats strip */
.strip {
  background: var(--navy);
  color: var(--white);
}
.strip .grid-4 { text-align: left; }
.strip .stat strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--white);
  display: block;
  font-weight: 480;
}
.strip .stat span {
  font-size: 0.78rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.strip .stat { border-left: 2px solid var(--petrol-light); padding-left: 1.1rem; }

/* Depoimentos */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  position: relative;
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--petrol-pale);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.testimonial p.quote { font-style: italic; color: var(--gray-700); font-size: 1rem; }
.testimonial .author { margin-top: 1.2rem; font-size: 0.82rem; font-weight: 600; color: var(--navy); text-transform: none; }
.testimonial .author span { display: block; font-weight: 400; color: var(--gray-500); font-size: 0.78rem; margin-top: 0.15rem; }

/* CTA band */
.cta-band {
  background: var(--petrol-pale);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 24ch; }
.cta-band .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Content page hero (inner pages) */
.page-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3rem);
}
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero .breadcrumbs { font-size: 0.78rem; color: var(--gray-300); margin-bottom: 1.2rem; }
.page-hero .breadcrumbs a { color: var(--gray-300); }
.page-hero .breadcrumbs a:hover { color: var(--white); }
.page-hero .lede { color: var(--gray-300); max-width: 62ch; margin-top: 1rem; font-size: 1.02rem; }

/* Two-col content with sticky aside */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.content-main h2 { margin-top: 2.4rem; margin-bottom: 1rem; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { margin-top: 1.6rem; margin-bottom: 0.6rem; color: var(--petrol); }
.content-main p { font-size: 0.98rem; }
.content-main ul.check { margin: 1rem 0; }
.content-main ul.check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.96rem;
  color: var(--gray-700);
}
.content-main ul.check li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border: 1.5px solid var(--petrol-light);
  transform: rotate(45deg);
}
.divider { height: 1px; background: var(--line); margin: 2.4rem 0; }

.aside-card {
  background: var(--gray-100);
  border: 1px solid var(--line);
  padding: 1.6rem;
  position: sticky;
  top: 100px;
}
.aside-card h3 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.aside-card ul { margin-bottom: 1.3rem; }
.aside-card ul li {
  font-size: 0.88rem;
  color: var(--gray-700);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.aside-card ul li:last-child { border-bottom: none; }
.aside-card .btn { width: 100%; margin-bottom: 0.7rem; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
}
.faq-item h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--navy); }
.faq-item p { font-size: 0.93rem; }

/* Footer */
footer.site-footer {
  background: var(--navy-deep);
  color: var(--gray-300);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.footer-grid .brand { color: var(--white); margin-bottom: 0.8rem; }
.footer-grid p { color: var(--gray-300); font-size: 0.87rem; }
.footer-grid ul li { margin-bottom: 0.6rem; font-size: 0.87rem; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  background: var(--wa);
  color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); }

/* Map embed placeholder */
.map-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  background: var(--gray-100);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--white);
  color: var(--gray-900);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--petrol-light); outline-offset: 1px; border-color: var(--petrol-light); }
textarea { resize: vertical; min-height: 110px; }

/* Utility */
.mt-lg { margin-top: 2.5rem; }
.text-center { text-align: center; }

/* Mobile */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 340px; margin: 0 auto; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strip .grid-4 { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
  .topbar .topbar-contact { display: none; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  header.site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem;
    gap: 1.2rem;
  }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Page banner image (inner pages) */
.page-banner {
  width: 100%;
  aspect-ratio: 21/7;
  overflow: hidden;
  background: var(--gray-100);
}
.page-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .page-banner { aspect-ratio: 4/3; }
}

/* Photo placeholder (Sobre page) */
.photo-placeholder {
  float: right;
  width: 260px;
  max-width: 40%;
  aspect-ratio: 4/5;
  margin: 0 0 1.5rem 2rem;
}
.photo-placeholder-inner {
  width: 100%;
  height: 100%;
  border: 2px dashed var(--gray-300);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.photo-placeholder-inner span {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
}
@media (max-width: 700px) {
  .photo-placeholder { float: none; width: 100%; max-width: 260px; margin: 0 auto 1.5rem; }
}

/* Photo collage (Cirurgia Geral page) */
.photo-collage {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  aspect-ratio: 16/7;
  background: var(--gray-100);
}
.photo-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-collage .cell-main { grid-row: 1 / 3; }
@media (max-width: 700px) {
  .photo-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    aspect-ratio: 4/5;
  }
  .photo-collage .cell-main { grid-column: 1 / 3; grid-row: 1 / 2; }
}

/* Inline clinical figure (CPRE page) */
.inline-figure {
  margin: 1.8rem 0;
  border: 1px solid var(--line);
  background: var(--gray-100);
}
.inline-figure img { width: 100%; display: block; }
.inline-figure figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  background: var(--white);
  border-top: 1px solid var(--line);
}

/* Building photo (Contato page) */
.building-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.building-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .building-photo { aspect-ratio: 3/2; max-width: 420px; margin: 0 auto; }
}

/* Logo lockup (sample placement in header) */
.brand-logo { display: flex; align-items: center; gap: 0.65rem; }
.brand-logo img { height: 34px; width: auto; display: block; }
.brand-logo span {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 560;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-logo span em { font-style: normal; color: var(--petrol-light); }
@media (max-width: 420px) {
  .brand-logo span { font-size: 1.02rem; }
}

/* Highlight card (destaque within page content) */
.highlight-card {
  background: var(--petrol-pale);
  border-left: 3px solid var(--petrol-light);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  margin: 2.4rem 0;
}
.highlight-card h2 { margin-top: 0 !important; }
.highlight-card .eyebrow { margin-bottom: 0.6rem; }

/* Anchor scroll offset (sticky header clearance) */
[id] { scroll-margin-top: 110px; }

/* Integrated approach highlight band (Home) */
.integrated-band {
  background: var(--navy);
  padding: clamp(2.6rem, 5vw, 3.6rem) 0;
}
.integrated-band p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 440;
  font-size: clamp(1.08rem, 2.3vw, 1.4rem);
  color: var(--white);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* Card icons (Diferenciais) */
.card-icon { width: 42px; height: 42px; margin-bottom: 1.1rem; color: var(--petrol-light); }
.card-icon svg { width: 100%; height: 100%; display: block; }

/* Services line above integrated-band text */
.services-line {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petrol-light);
  text-align: center;
  margin-bottom: 0.9rem;
}

/* Why-choose layout: photo + smaller cards */
.why-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}
.why-photo {
  aspect-ratio: 4/5;
  border: 2px dashed var(--gray-300);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  position: sticky;
  top: 100px;
}
.why-photo span { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }
.why-cards.grid-2 { gap: 1.1rem; }
.card-sm { padding: 1.3rem 1.4rem; }
.card-sm .card-icon { width: 32px; height: 32px; margin-bottom: 0.7rem; }
.card-sm h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.card-sm p { font-size: 0.85rem; }
@media (max-width: 900px) {
  .why-layout { grid-template-columns: 1fr; }
  .why-photo { position: static; max-width: 280px; margin: 0 auto; aspect-ratio: 3/2; }
}

/* Hero services tagline */
.hero-services {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--petrol-light);
}

/* Timeline (Sobre page) */
.timeline { position: relative; margin: 1.6rem 0 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-left: 62px;
  margin-bottom: 2.2rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--petrol-pale);
  border: 1px solid var(--petrol-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--petrol);
  z-index: 1;
}
.timeline-marker svg { width: 20px; height: 20px; }
.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--petrol-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.timeline-content h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.timeline-content p { font-size: 0.92rem; color: var(--gray-500); margin: 0; }

/* Timeline + side quote layout */
.timeline-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: start;
}
.timeline-quote {
  position: sticky;
  top: 100px;
}
.timeline-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 460;
  font-size: 1.05rem;
  color: var(--petrol);
  border-left: 3px solid var(--petrol-light);
  padding-left: 1.2rem;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .timeline-layout { grid-template-columns: 1fr; }
  .timeline-quote { position: static; margin-top: 0.5rem; }
}

/* Professional credentials line */
.credentials-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.03em;
}

/* Library pillars page */
.library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2rem); }
.library-pillar { background: var(--white); border: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.2rem); }
.library-pillar h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.library-pillar p { font-size: 0.93rem; }
.library-articles { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.library-empty { font-size: 0.82rem; color: var(--gray-500); font-style: italic; margin: 0; }
@media (max-width: 700px) { .library-grid { grid-template-columns: 1fr; } }

/* Footer content-library teaser band */
.library-teaser {
  background: var(--petrol-pale);
  border-top: 1px solid var(--line);
  padding: clamp(2.2rem, 5vw, 3rem) 0;
  text-align: center;
}
.library-teaser h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin-bottom: 0.6rem;
}
.library-teaser p {
  max-width: 56ch;
  margin: 0 auto 1.1rem;
  font-size: 0.95rem;
}
.library-teaser a.library-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--petrol);
  border-bottom: 1px solid var(--petrol-light);
  padding-bottom: 2px;
}
.library-teaser a.library-link:hover { color: var(--navy); }

/* Reusable article CTA block (use at the end of every future article) */
.article-cta {
  background: var(--petrol-pale);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  margin: 2.6rem 0;
  text-align: center;
}
.article-cta p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.article-cta .actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
