/* Dr. Ricardo Nacif — Ortopedia e Cirurgia do Joelho — Muriaé/MG
   Paleta: azul #0032AD + terra #58471D · Fundo branco · Playfair + Manrope */
:root {
  --blue-950: #001547;
  --blue-900: #0032AD;
  --blue-800: #002a91;
  --blue-700: #0043cc;
  --blue-500: #1a4fc7;
  --blue-100: #e5eaf5;
  --earth-500: #58471D;
  --earth-400: #7d6935;
  --earth-300: #a58e5c;
  --earth-100: #f5f0e2;
  --earth-50:  #faf7ed;
  --white:     #ffffff;
  --off-white: #fafafa;
  --ink-950:   #0a0a0a;
  --ink-800:   #232323;
  --ink-600:   #555;
  --ink-500:   #6b6b6b;
  --ink-400:   #8a8a8a;
  --line:      #e5e5e5;
  --line-soft: #f0f0f0;
  --success:   #16a34a;
  --wa:        #25d366;
  --wa-dark:   #1fb457;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 2px 6px rgba(0,50,173,.05);
  --shadow-md: 0 8px 24px rgba(0,50,173,.08);
  --shadow-lg: 0 28px 56px rgba(0,50,173,.12);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-800); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-900); }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--blue-900);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; }
h4 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-sans); color: var(--earth-500); font-weight: 700; margin-bottom: 12px; }

p { margin: 0 0 1.2em; }
p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--earth-500);
  margin-bottom: 20px;
}

blockquote {
  border-left: 4px solid var(--earth-400);
  padding: 4px 20px;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--blue-900);
}

/* ====== Header ====== */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 16px;
}
.brand {
  display: flex; flex-direction: column;
  line-height: 1.1; text-decoration: none;
  color: var(--blue-900);
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--earth-500);
  margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-800);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--earth-100); color: var(--blue-900); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  letter-spacing: .01em; text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .2s;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--blue-900); color: var(--white); }
.btn--primary:hover { background: var(--blue-800); color: var(--white); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-dark); color: var(--white); }
.btn--ghost {
  background: transparent; color: var(--blue-900);
  border-color: var(--blue-900);
}
.btn--ghost:hover { background: var(--blue-900); color: var(--white); }
.btn--big { padding: 16px 32px; font-size: 15px; }

.burger {
  display: none;
  width: 40px; height: 40px; border: none;
  background: transparent; cursor: pointer; padding: 8px;
}
.burger span {
  display: block; height: 2px; background: var(--blue-900);
  margin: 5px 0; transition: transform .25s, opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 88px 0 0 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    padding: 32px var(--gutter); gap: 4px;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 99;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .burger { display: block; }
  .hdr__cta-desktop { display: none; }
}

/* ====== Hero ====== */
.hero {
  padding-block: clamp(60px, 8vw, 110px);
  background:
    radial-gradient(1200px 500px at 90% 10%, rgba(88, 71, 29, .07) 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(0, 50, 173, .04) 0%, transparent 60%),
    var(--white);
  position: relative; overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__content h1 em {
  font-style: italic; color: var(--earth-500);
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-600); max-width: 36em;
  margin-block: 24px 32px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__signals {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding-top: 32px; border-top: 1px solid var(--line);
  color: var(--ink-500); font-size: 14px;
}
.hero__signals span { display: inline-flex; align-items: center; gap: 8px; }
.hero__signals svg { color: var(--earth-500); flex-shrink: 0; }

.hero__portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
  box-shadow: var(--shadow-lg);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,21,71,.55) 100%);
}
.hero__badge {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 14px;
  color: var(--blue-900);
}
.hero__badge svg { color: var(--earth-500); flex-shrink: 0; }
.hero__badge strong { display: block; font-family: var(--font-serif); font-size: 1rem; font-weight: 500; }
.hero__badge span { font-size: 12px; color: var(--ink-600); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 420px; margin: 0 auto; }
}

/* ====== Sections ====== */
.section { padding-block: clamp(60px, 8vw, 100px); background: var(--white); }
.section--nude { background: var(--off-white); border-block: 1px solid var(--line-soft); }
.section--dark { background: var(--blue-950); color: rgba(255,255,255,.85); }
.section--dark h2, .section--dark h3 { color: white; }
.section--dark .eyebrow { color: var(--earth-300); }

.shead { text-align: center; margin-bottom: 48px; max-width: 800px; margin-inline: auto; }
.shead h2 { margin-bottom: 16px; }
.shead h2 em { font-style: italic; color: var(--earth-500); font-weight: 500; }
.shead p { color: var(--ink-600); font-size: 1.1rem; }
.shead--left { text-align: left; margin-inline: 0; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pillar {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--earth-400); }
.pillar__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--earth-100); color: var(--blue-900);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-600); margin-bottom: 12px; font-size: .95rem; }
.pillar__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px;
  color: var(--blue-800); text-decoration: none;
  margin-top: 8px; letter-spacing: .02em;
}
.pillar__link::after { content: "→"; transition: transform .2s; }
.pillar__link:hover::after { transform: translateX(3px); }

.pillar--gold {
  background: linear-gradient(135deg, white, var(--earth-50));
  border-color: var(--earth-400);
}
.pillar--gold .pillar__icon { background: var(--blue-900); color: var(--earth-300); }

/* Numbered list (procedimentos) */
.proc-list { display: grid; gap: 20px; }
.proc-item {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.proc-item:hover { border-color: var(--earth-400); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.proc-item__num {
  font-family: var(--font-serif);
  font-size: 2.5rem; font-weight: 500;
  color: var(--earth-500);
  line-height: 1;
}
.proc-item h3 { margin: 0 0 8px; font-size: 1.15rem; }
.proc-item p { color: var(--ink-600); margin: 0; font-size: .95rem; line-height: 1.6; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  background: white;
  border-radius: var(--r-xl);
  padding: 40px;
  border: 1px solid var(--line);
}
.stat {
  text-align: center;
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--blue-900);
  line-height: 1;
}
.stat__num span { color: var(--earth-500); }
.stat__label {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ====== CTA band ====== */
.cta-band {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: white;
  padding: 60px clamp(24px, 5vw, 60px);
  border-radius: var(--r-xl);
  text-align: center;
}
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 620px; margin: 12px auto 32px; font-size: 1.05rem; }

/* ====== FAQ ====== */
.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 24px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--earth-400); }
.faq summary {
  font-weight: 600; font-family: var(--font-serif); font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  padding-right: 32px; position: relative;
  color: var(--blue-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--earth-500);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--ink-600); }

/* ====== Prose (article) ====== */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1.2em; color: var(--ink-800); }
.prose li { margin-bottom: .5em; }
.prose__meta {
  font-size: 13px; color: var(--ink-500);
  display: flex; gap: 20px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.prose blockquote {
  background: var(--earth-50);
  border-left: 4px solid var(--earth-500);
  padding: 24px 28px;
  border-radius: var(--r-sm);
  margin: 24px 0;
}

/* Alert box */
.alert {
  background: linear-gradient(135deg, #fef3e2, #fce8c8);
  border-left: 4px solid #f59e0b;
  padding: 24px 28px;
  border-radius: var(--r-md);
  margin: 32px 0;
}
.alert h3 { color: #92400e; margin-top: 0; }
.alert ul { color: #78350f; margin-bottom: 0; }

/* ====== Convênios ====== */
.conv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.conv-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--blue-900);
  font-size: .95rem;
}

/* ====== Breadcrumb ====== */
.crumb {
  padding-block: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-500);
  background: var(--white);
}
.crumb a { color: var(--ink-600); }
.crumb__sep { margin: 0 8px; color: var(--ink-400); }

/* ====== Footer ====== */
.ftr {
  background: var(--blue-950);
  color: rgba(255,255,255,.7);
  padding-block: 64px 32px;
  margin-top: 60px;
}
.ftr__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.ftr h4 { color: white; font-size: 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr ul li { margin-bottom: 10px; font-size: 14px; }
.ftr ul a { color: rgba(255,255,255,.7); transition: color .2s; }
.ftr ul a:hover { color: var(--earth-300); }
.ftr__brand .brand__name { color: white; font-size: 1.2rem; }
.ftr__brand p { color: rgba(255,255,255,.6); margin-top: 12px; font-size: 14px; }
.ftr__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.4);
}

@media (max-width: 700px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}

/* Brand logo variant */
.brand__logo {
  height: 40px; width: auto; max-width: 160px;
  object-fit: contain; display: block;
}
.brand--with-logo {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "logo name" "logo sub";
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
}
.brand--with-logo .brand__logo { grid-area: logo; align-self: center; }
.brand--with-logo .brand__name { grid-area: name; display: block; align-self: end; line-height: 1.1; }
.brand--with-logo .brand__sub  { grid-area: sub; display: block; align-self: start; margin-top: 0; }
@media (max-width: 500px) {
  .brand__logo { height: 32px; max-width: 130px; }
}
.ftr .brand__logo { filter: brightness(0) invert(1); opacity: .85; height: 36px; margin-bottom: 8px; }
