/* MEDS Soluções em Perícia Médica — site estático
   Paleta e fontes reproduzidas do site original (Elementor).
   navy #263D4B · dourado #C3A17B · verde WhatsApp #45C656 · Poppins + Inter */

:root {
  --navy: #263d4b;
  --navy-deep: #1d2c39;
  --navy-2: #33475a;
  --gold: #c3a17b;
  --gold-deep: #b8935f;
  --green: #45c656;
  --green-deep: #37a846;
  --red: #8e2b24;
  --red-deep: #7a231d;
  --bg: #ffffff;
  --bg-alt: #f4f4fb;
  --text: #2b3138;
  --muted: #5f6b73;
  --line: #e6e6ef;
  --shadow: 0 12px 34px rgba(20, 34, 46, .10);
  --radius: 14px;
  --wrap: 1160px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 74px 0; }
section[id], [id].grid-serv { scroll-margin-top: 84px; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--gold-deep); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--navy); }
.section-head h2 span { color: var(--gold-deep); }
.section-head .rule { width: 60px; height: 3px; background: var(--gold); border-radius: 3px; margin: 16px auto 0; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Botão WhatsApp ---------- */
.btn-wa {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .02em;
  padding: 15px 26px; border-radius: 50px;
  box-shadow: 0 10px 24px rgba(69, 198, 86, .32);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  border: none; cursor: pointer; text-align: left; line-height: 1.2;
}
.btn-wa:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(69, 198, 86, .4); }
.btn-wa svg { width: 22px; height: 22px; flex: 0 0 auto; fill: #fff; }
.btn-wa--lg { font-size: 1rem; padding: 17px 32px; }
.cta-center { text-align: center; margin-top: 44px; }

/* ---------- Aviso INSS (repetido em todas as seções) ---------- */
.aviso {
  background: var(--red); color: #fff;
  font-size: .95rem; line-height: 1.65;
  padding: 18px 22px;
}
.aviso .wrap { max-width: 980px; display: flex; align-items: flex-start; gap: 14px; }
.aviso .ic { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; }
.aviso .ic svg { width: 24px; height: 24px; fill: #fff; opacity: .95; }
.aviso p { margin: 0; text-align: left; }
.aviso strong { text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.aviso--slim { padding: 14px 22px; font-size: .88rem; background: var(--red-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 44, 57, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #e8edf2; font-family: var(--font-head); font-weight: 500; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; transition: color .15s; }
.nav a:hover { color: var(--gold); }
.header-social { display: flex; gap: 14px; align-items: center; }
.header-social a { color: #cdd6de; display: inline-flex; }
.header-social svg { width: 18px; height: 18px; fill: currentColor; }
.header-social a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #1d2c39 url("assets/img/pericias-medicas-meds-banner-bg-1.webp") center right / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(29, 44, 57, .95) 30%, rgba(29, 44, 57, .55) 48%, rgba(29, 44, 57, .06) 62%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; min-height: 560px; padding-top: 34px; padding-bottom: 0; }
.hero-copy { align-self: center; padding-bottom: 38px; }
.hero-copy h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); font-weight: 700; letter-spacing: -.01em; }
.hero-copy h1 span { color: var(--gold); }
.hero-copy p { font-size: 1.12rem; color: #d7dee4; max-width: 460px; margin: 0 0 30px; }
.hero-img { position: relative; align-self: end; justify-self: end; }
.hero-img img { width: min(690px, 54vw); height: auto; aspect-ratio: 703 / 486; max-width: none; margin: 0; display: block; }

/* ---------- Perícias / intro ---------- */
.intro-text { max-width: 880px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* ---------- Serviços (layout centrado, ícones de linha) ---------- */
.grid-serv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 40px; max-width: 940px; margin: 0 auto; }
.serv-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 18px;
}
.serv-ic { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 16px; }
.serv-ic img { width: 72px; height: 72px; object-fit: contain; }
.serv-card h3 { color: var(--gold-deep); font-size: 1.18rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.serv-card > p { color: var(--muted); font-size: .96rem; margin: 0 0 10px; max-width: 380px; }
.serv-card .obs { color: var(--red); font-weight: 700; }
.serv-card summary {
  cursor: pointer; list-style: none; color: var(--gold-deep);
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.serv-card summary::-webkit-details-marker { display: none; }
.serv-card summary::before { content: "ⓘ"; font-size: 1rem; }
.serv-card details { margin-top: 4px; }
.serv-card details[open] summary { margin-bottom: 12px; }
.serv-steps { margin: 0 auto; padding: 0; list-style: none; text-align: left; max-width: 380px; }
.serv-steps li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: .9rem; color: var(--text); }
.serv-steps li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* ---------- Carrossel da equipe ---------- */
.team-carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.tc-viewport { overflow: hidden; }
.tc-track { display: flex; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.tc-slide { flex: 0 0 100%; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; padding: 6px 8px; }
.tc-info h3 { color: var(--gold); font-size: 1.7rem; margin-bottom: 14px; }
.tc-crm { display: inline-block; background: var(--gold); color: var(--navy-deep); font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: 5px 16px; border-radius: 30px; margin-bottom: 20px; }
.tc-info ul { list-style: none; padding: 0; margin: 0; }
.tc-info li { position: relative; padding-left: 20px; margin-bottom: 11px; color: #d5dde3; font-size: .96rem; line-height: 1.45; }
.tc-info li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tc-info li .ne { color: inherit; font-size: inherit; font-weight: 600; letter-spacing: .02em; }
.tc-photo { position: relative; display: grid; place-items: end center; min-height: 380px; }
.tc-photo::before {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 161, 123, .16), rgba(195, 161, 123, 0) 68%);
}
.tc-photo img { position: relative; max-height: 440px; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.tc-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(195, 161, 123, .5);
  background: rgba(255, 255, 255, .06); color: var(--gold); cursor: pointer;
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.tc-arrow:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.tc-arrow svg { width: 22px; height: 22px; fill: currentColor; }
.tc-arrow.prev { left: -8px; }
.tc-arrow.next { right: -8px; }
.tc-thumbs { display: flex; justify-content: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.tc-thumb { border: none; background: none; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden; width: 118px; opacity: .6; transition: opacity .18s, transform .18s, box-shadow .18s; }
.tc-thumb img { width: 118px; height: auto; display: block; }
.tc-thumb:hover { opacity: 1; }
.tc-thumb.active { opacity: 1; box-shadow: 0 0 0 3px var(--gold); transform: translateY(-3px); }

/* ---------- Equipe ---------- */
.section-equipe { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; }
.section-equipe .section-head h2 { color: #fff; }
.section-equipe .section-head p { color: #c6cfd6; }
.grid-team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.team-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius); padding: 26px; display: flex; gap: 20px; align-items: flex-start;
}
.team-photo { flex: 0 0 96px; }
.team-photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: #fff; }
.team-info h3 { color: #fff; font-size: 1.16rem; margin-bottom: 4px; }
.team-crm { display: inline-block; background: var(--gold); color: var(--navy-deep); font-family: var(--font-head); font-weight: 600; font-size: .74rem; padding: 3px 12px; border-radius: 30px; margin-bottom: 12px; }
.team-info p { color: #c6cfd6; font-size: .88rem; line-height: 1.55; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 62px 0 0; background: #23323d url("assets/img/banner.webp") center / cover no-repeat; color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 44, 57, .96) 0%, rgba(29, 44, 57, .82) 46%, rgba(29, 44, 57, .42) 100%); }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: end; min-height: 340px; padding-top: 0; padding-bottom: 0; }
.cta-copy { align-self: center; padding-bottom: 46px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); text-align: left; }
.cta-band h2 span { color: var(--gold); }
.cta-band p { color: #d7dee4; max-width: 520px; margin: 0 0 28px; font-size: 1.05rem; text-align: left; }
.cta-photo { align-self: end; }
.cta-photo img { width: 100%; max-width: 360px; margin: 0 auto; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c6cfd6; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 34px; }
.footer-grid img.f-logo { height: 46px; margin-bottom: 18px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid p, .footer-grid li { font-size: .92rem; line-height: 1.7; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul a:hover { color: var(--gold); }
.f-contact div { display: flex; gap: 10px; margin-bottom: 12px; }
.f-contact svg { width: 17px; height: 17px; fill: var(--gold); flex: 0 0 auto; margin-top: 3px; }
.f-social { display: flex; gap: 12px; margin-top: 8px; }
.f-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: background .15s; }
.f-social a:hover { background: var(--gold); }
.f-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 46px; padding: 22px 0; text-align: center; font-size: .84rem; color: #8f9aa4; }
.footer-bar b { color: var(--gold); font-weight: 600; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(69, 198, 86, .5); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero { background-position: center top; }
  .hero::before { background: linear-gradient(180deg, rgba(29, 44, 57, .95) 0%, rgba(29, 44, 57, .62) 44%, rgba(29, 44, 57, .12) 74%, transparent 100%); }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-bottom: 0; }
  .hero-copy { align-self: auto; padding: 30px 0 4px; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-img { order: 2; justify-self: stretch; margin: 0 -22px; }
  .hero-img img { width: 100%; max-width: 100%; margin: 0; }
  .cta-band .wrap { grid-template-columns: 1fr; text-align: center; }
  .cta-band h2, .cta-band p { text-align: center; }
  .cta-band p { margin-left: auto; margin-right: auto; }
  .cta-copy { align-self: auto; padding: 8px 0 0; }
  .cta-photo { order: 2; }
  .cta-photo img { max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tc-slide { grid-template-columns: 1fr; text-align: center; }
  .tc-photo { min-height: 320px; order: -1; }
  .tc-photo img { max-height: 340px; }
  .tc-info ul { display: inline-block; text-align: left; }
  .tc-arrow.prev { left: 2px; }
  .tc-arrow.next { right: 2px; }
  .nav, .header-social { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy-deep);
    padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav.open a { padding: 13px 22px; width: 100%; letter-spacing: .04em; }
}
@media (max-width: 640px) {
  .section { padding: 54px 0; }
  .grid-serv { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn-wa { font-size: .86rem; }
  .tc-thumb, .tc-thumb img { width: 92px; }
  .tc-arrow { top: 130px; }
  .aviso .wrap { gap: 10px; }
}
