/* ============================================
   Dr. Rafael Coutinho — Cirurgia Geral
   Site fictício de portfólio — VOID Systems Agency
   ============================================ */

:root {
  --ink: #16232c;
  --ink-soft: #3f5361;
  --navy-deep: #0d1f2d;
  --navy: #163449;
  --navy-2: #1e4459;
  --teal: #2f7d72;
  --teal-light: #e4efec;
  --sand: #f6f3ec;
  --sand-2: #efe9db;
  --white: #ffffff;
  --gold: #b8863f;
  --coral: #c85a35;
  --coral-dark: #a94a29;
  --border: #e3ddd0;
  --shadow-soft: 0 20px 50px -25px rgba(13, 31, 45, 0.35);
  --shadow-card: 0 10px 30px -18px rgba(13, 31, 45, 0.25);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-serif: 'Fraunces', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- demo ribbon ---------- */
.demo-ribbon {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy) 50%, var(--navy-deep));
  color: var(--teal-light);
  font-size: 12.5px;
  text-align: center;
  padding: 8px 12px;
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold);
}

.section { padding: 96px 0; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy-deep); color: #dbe6ea; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 10px; }
.section-header p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(200, 90, 53, 0.55);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: inherit;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-ghost-navy:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 0.85rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px -18px rgba(13, 31, 45, 0.4);
  border-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-deep);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--navy) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-deep); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  padding: 72px 0 110px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(47,125,114,0.12), transparent 60%),
    var(--sand);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  margin: 18px 0 20px;
}
.hero-copy p.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-credentials {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-credentials div strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-deep);
}
.hero-credentials div span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hero-visual { position: relative; }
.doctor-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
}
.doctor-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 0;
}
.doctor-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,31,45,0) 45%, rgba(13,31,45,0.92) 100%);
  z-index: 1;
}
.portrait-tag {
  position: relative;
  z-index: 2;
  background: rgba(13, 31, 45, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #fff;
  font-size: 0.82rem;
  width: 100%;
}
.portrait-tag strong { display: block; font-family: var(--font-serif); font-size: 1rem; margin-bottom: 2px; }
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-deep);
  animation: floatY 5s ease-in-out infinite;
}
.floating-card svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }
.floating-card.card-1 { top: -22px; left: -26px; animation-delay: 0s; z-index: 3; }
.floating-card.card-2 { bottom: -22px; right: -26px; animation-delay: 1.4s; z-index: 3; }
.floating-card span.sub { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.75rem; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Trust / stats strip ---------- */
.trust-strip {
  background: var(--navy-deep);
  color: #fff;
  padding: 30px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: #b9c9d1; }
.trust-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

/* ---------- Cards grid (specialties) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.specialty-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.specialty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.specialty-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.specialty-icon svg { width: 26px; height: 26px; }
.specialty-card h3 { font-size: 1.25rem; }
.specialty-card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }
.specialty-card .card-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.specialty-card .card-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.specialty-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- About / authority ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.credential-list { display: grid; gap: 14px; margin-top: 26px; }
.credential-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--sand);
  border-radius: var(--radius-md);
}
.credential-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.credential-item strong { display: block; font-size: 0.95rem; color: var(--navy-deep); }
.credential-item span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Steps / process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 22px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--ink-soft); }
.steps .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px; right: -26px;
  width: 26px; height: 1px;
  background: var(--border);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.testimonial-card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(150deg, var(--teal), var(--navy));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 0.95rem;
}
.testimonial-author strong { display: block; font-size: 0.88rem; color: var(--navy-deep); }
.testimonial-author span { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-deep);
  text-align: left;
}
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.25s ease; color: var(--teal); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.92rem; }
.faq-item.open .faq-answer { max-height: 320px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--teal) 130%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 24px;
  max-width: calc(var(--maxw) - 48px);
  margin-inline: auto;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); max-width: 460px; }
.cta-banner p { color: #cfe0e0; margin-top: 10px; max-width: 420px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9bac1; padding: 70px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; font-size: 0.9rem; }
.footer-col ul a:hover { color: #fff; }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .contact-line svg { width: 17px; height: 17px; margin-top: 2px; color: var(--gold); flex-shrink: 0; }
.map-placeholder {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.25);
  padding: 18px;
  font-size: 0.78rem;
  color: #8ba0aa;
  background: rgba(255,255,255,0.03);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #7d919c;
}

/* ---------- Page hero (procedure pages) ---------- */
.page-hero {
  padding: 52px 0 68px;
  background: linear-gradient(180deg, var(--sand) 0%, #fff 100%);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb svg { width: 14px; height: 14px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
.page-hero p.lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 520px; margin-bottom: 26px; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal);
}
.page-visual {
  aspect-ratio: 4/3.4;
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,31,45,0.05) 40%, rgba(13,31,45,0.82) 100%);
  z-index: 1;
}
.page-visual .visual-caption {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 0.78rem;
  padding: 18px 20px;
  opacity: 0.85;
}

/* Two-column content block used across procedure pages */
.content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
}
.content-block h2 { font-size: 1.7rem; margin-bottom: 14px; }
.content-block h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.content-block p { color: var(--ink-soft); margin-bottom: 14px; }
.check-list { display: grid; gap: 12px; margin: 18px 0 8px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; }
.check-list svg { width: 19px; height: 19px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

.side-card {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 26px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.side-card h4 { font-size: 1rem; margin-bottom: 14px; }
.side-card ul { display: grid; gap: 12px; margin-bottom: 20px; }
.side-card li { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--ink-soft); border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.side-card li strong { color: var(--navy-deep); }
.side-card .btn { width: 100%; justify-content: center; }

/* Recovery timeline */
.timeline { display: grid; gap: 0; margin-top: 10px; }
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1px 1fr;
  gap: 22px;
}
.timeline-item .t-label { font-weight: 600; color: var(--navy-deep); font-size: 0.88rem; padding-top: 2px; }
.timeline-item .t-line { position: relative; background: var(--border); }
.timeline-item .t-line::before {
  content: "";
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
}
.timeline-item .t-content { padding-bottom: 30px; }
.timeline-item .t-content h4 { font-size: 0.98rem; margin-bottom: 6px; }
.timeline-item .t-content p { font-size: 0.88rem; color: var(--ink-soft); }
.timeline-item:last-child .t-line { background: transparent; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Whatsapp float button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25b26b;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37, 178, 107, 0.6);
  z-index: 90;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-cta .btn-ghost-navy { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid, .about-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; order: -1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .steps .step::after { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost-navy { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 10px; }
  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 20px 30px -20px rgba(13,31,45,0.3);
  }
  .section { padding: 64px 0; }
  .card-grid, .steps, .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-banner { padding: 36px 26px; flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .trust-strip .container { justify-content: center; text-align: center; }
  .timeline-item { grid-template-columns: 70px 1px 1fr; gap: 14px; }
}
