/*
  Clínica ProTrauma - versão estática v2
  HTML + CSS, sem JavaScript. Caminhos relativos prontos para /v2/.
*/

:root {
  --bg: #f7fbfa;
  --surface: #ffffff;
  --surface-2: #edf8f5;
  --text: #0f172a;
  --muted: #52616b;
  --brand: #065f46;
  --brand-2: #0f766e;
  --brand-3: #14b8a6;
  --line: #d7ebe5;
  --soft: #e6f7f2;
  --shadow: 0 22px 70px rgba(7, 63, 52, .12);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 166, .10), transparent 28rem),
    radial-gradient(circle at 100% 8%, rgba(6, 95, 70, .10), transparent 24rem),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

strong { font-weight: 800; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.container > *,
.hero-grid > *,
.stats-grid > *,
.doctor-grid > *,
.specialties-grid > *,
.specialty-columns > *,
.feature-grid > *,
.feature-card > *,
.clinic-grid > *,
.contact-grid > *,
.contact-cards > *,
.footer-grid > * {
  min-width: 0;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 110px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(247, 251, 250, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 235, 229, .75);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: min(300px, 62vw);
  display: inline-flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 750;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #24443d;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--soft);
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-toggle,
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - 86px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(6, 95, 70, .92), rgba(15, 118, 110, .76)),
    url('../images/recepcao.webp') center / cover;
  clip-path: inset(0 0 12% 0 round 0 0 56px 56px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 22, 19, .56), rgba(3, 22, 19, .10)),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.22), transparent 22rem);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr);
  gap: 36px;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-copy {
  color: #fff;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #bff7ed; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  max-width: 820px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: .94;
  letter-spacing: -.075em;
}

.hero-copy h1 {
  letter-spacing: -.025em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
  letter-spacing: -.055em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.lead {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.button-secondary {
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.13);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-address {
  display: inline-grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.hero-address span { color: rgba(255,255,255,.78); }

.contact-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: var(--radius);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.panel-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.quick-info {
  margin: 0;
  display: grid;
  gap: 14px;
}

.quick-info div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg);
}

.quick-info dt {
  color: var(--brand);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quick-info dd {
  margin: 0;
  color: #243b35;
}

.stats-strip {
  padding: 0;
  transform: translateY(-48px);
  margin-bottom: -48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-grid article {
  min-height: 122px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 26px;
  border: 1px solid rgba(215,235,229,.88);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

.stats-grid strong {
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.stats-grid article:last-child strong {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.doctor-card {
  position: relative;
  min-height: 100%;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 40px rgba(7, 63, 52, .06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.doctor-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
  opacity: 0;
  transition: opacity .25s ease;
}

.doctor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20,184,166,.44);
  box-shadow: 0 20px 60px rgba(7, 63, 52, .11);
}

.doctor-card:hover::before { opacity: 1; }

.doctor-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--soft);
}

.doctor-card h3 { margin-bottom: 6px; }

.doctor-card p {
  margin: 0;
  color: var(--brand);
  font-size: .95rem;
  font-weight: 800;
}

.specialties {
  background: linear-gradient(180deg, transparent, rgba(237, 248, 245, .76));
}

.specialties-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 34px;
  align-items: start;
}

.specialty-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.specialty-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff;
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: #1f4a41;
  font-size: .94rem;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-image {
  min-height: 100%;
  background: var(--soft);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature-content {
  display: grid;
  align-content: center;
  padding: 34px;
}

.feature-content p:not(.eyebrow) {
  color: var(--muted);
}

.text-link {
  width: fit-content;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 900;
  background:
    linear-gradient(var(--brand), var(--brand)) left bottom / 0 2px no-repeat;
  transition: background-size .2s ease;
}

.text-link:hover,
.text-link:focus-visible { background-size: 100% 2px; }

.clinic-section {
  background: linear-gradient(180deg, rgba(237, 248, 245, .76), transparent);
}

.clinic-grid {
  display: grid;
  grid-template-columns: 1fr .86fr;
  gap: 30px;
  align-items: center;
}

.clinic-photo {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.clinic-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 95, 70, .25));
  pointer-events: none;
}

.clinic-photo img {
  width: 100%;
  max-width: 100%;
  min-height: 440px;
  object-fit: cover;
}

.clinic-copy {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}

.clinic-copy p { color: var(--muted); }

.highlight-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.highlight-box p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.86);
}

.contact-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 32px;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-card {
  min-height: 160px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(7, 63, 52, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(20,184,166,.44);
  box-shadow: 0 20px 60px rgba(7, 63, 52, .12);
}

.contact-card span {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.contact-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 40px 0 96px;
  color: #d7fff5;
  background: #052e28;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid img {
  max-width: 220px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.footer-grid p { margin: 0; color: rgba(255,255,255,.76); }

.footer-grid a {
  color: #fff;
  font-weight: 850;
}

.floating-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 90;
  display: none;
  width: calc(100% - 32px);
  max-width: 460px;
  margin-inline: auto;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(5, 46, 40, .90);
  box-shadow: 0 16px 48px rgba(3,22,19,.26);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.floating-actions a {
  flex: 1;
  padding: 14px 16px;
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.floating-actions a + a { border-left: 1px solid rgba(255,255,255,.2); }

.reveal {
  animation: fade-up .75s both;
  animation-timeline: view();
  animation-range: entry 5% cover 28%;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1040px) {
  .hero-grid,
  .specialties-grid,
  .clinic-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .doctor-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card { grid-template-columns: 1fr; }
  .feature-image { max-height: 540px; }
}

@media (max-width: 840px) {
  .section { padding: 68px 0; }
  .header-inner { min-height: 74px; }
  .brand { width: min(260px, 70vw); }

  .menu-button {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
  }

  .menu-button span,
  .menu-button span::before,
  .menu-button span::after {
    content: "";
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--brand);
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-button span::before { transform: translateY(-7px); }
  .menu-button span::after { transform: translateY(5px); }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: grid;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav a { padding: 13px 14px; }

  .nav-toggle:checked ~ .menu-button span { transform: rotate(45deg); }
  .nav-toggle:checked ~ .menu-button span::before { transform: translateY(0) rotate(90deg); }
  .nav-toggle:checked ~ .menu-button span::after { opacity: 0; }
  .nav-toggle:checked ~ .nav {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg { clip-path: inset(0 0 7% 0 round 0 0 34px 34px); }
  .hero-grid { padding: 54px 0 72px; }
  .hero-actions .button { width: 100%; }

  .stats-grid,
  .doctor-grid,
  .specialty-columns,
  .feature-grid,
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }

  .floating-actions { display: flex; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 24px, var(--container)); }
  .section { padding: 56px 0; }
  h1 { font-size: clamp(2.45rem, 16vw, 4.1rem); }
  h2 { font-size: clamp(2rem, 11vw, 2.85rem); }

  .stats-grid,
  .doctor-grid,
  .specialty-columns,
  .feature-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .specialty-card,
  .feature-content,
  .clinic-copy {
    padding: 22px;
  }

  .clinic-photo img { min-height: 300px; }
  .site-footer { padding-bottom: 104px; }
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
