/* Medical Save — protótipo v1 — paleta provisória em variáveis (trocar quando vier a identidade real) */
:root {
  --red: #C8102E;
  --red-dark: #9E0C24;
  --navy: #10263F;
  --navy-2: #1B3A5C;
  --ink: #22303F;
  --muted: #4E5E70;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FA;
  --line: #E3E9EF;
  --wa: #0F7A43;
  --wa-dark: #0B5F34;
  --ph-bg: #FFF8E1;
  --ph-line: #D9A62E;
  --ph-ink: #7A5A08;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 38, 63, .08);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 92%); margin: 0 auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 2px; border-radius: 4px; }

/* Topbar 24h */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .t-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .t-24h { background: var(--red); padding: 2px 10px; border-radius: 99px; font-weight: 800; letter-spacing: .3px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .logo-mark { width: 42px; height: 42px; color: var(--red); flex: none; }
.logo .logo-name { color: var(--navy); font-weight: 800; font-size: 20px; letter-spacing: .5px; line-height: 1.1; }
.logo .logo-name .lg-save { color: var(--red); }
.logo .logo-sub { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; }
.nav ul { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; cursor: pointer; color: var(--navy);
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 10px; text-decoration: none; font-weight: 800;
  font-size: 15.5px; border: 2px solid transparent; cursor: pointer; font-family: var(--font);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-soft); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
.kicker { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: 2.2px; font-size: 13px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); margin-bottom: 18px; }
.hero .lead { font-size: 18.5px; color: var(--muted); margin-bottom: 26px; max-width: 54ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 99px; padding: 7px 14px; font-size: 13.5px; font-weight: 700; color: var(--navy);
}
.badge svg { width: 16px; height: 16px; color: var(--red); flex: none; }

/* Placeholder (pendência do cliente) */
.ph {
  border: 2px dashed var(--ph-line); background: var(--ph-bg); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ph-ink); text-align: center; padding: 22px;
}
.ph-media { min-height: 340px; }
.ph-tag {
  background: var(--ph-line); color: #3F2E00; font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; padding: 3px 11px; border-radius: 99px;
}
.ph p { margin: 0; font-weight: 600; font-size: 14.5px; max-width: 34ch; }
.ph-logo { min-height: 84px; font-weight: 700; font-size: 13px; }

/* Seções */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Cards de serviço */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.card .ic {
  width: 52px; height: 52px; border-radius: 12px; background: var(--bg-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.card .ic svg { width: 27px; height: 27px; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.card .more { color: var(--red); font-weight: 800; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.card .more:hover { text-decoration: underline; }

/* Diferenciais */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.why-item .ic { width: 46px; height: 46px; color: var(--red); margin-bottom: 12px; }
.why-item .ic svg { width: 100%; height: 100%; }
.why-item h3 { font-size: 17.5px; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* Faixa de números */
.stats { background: var(--navy); color: #fff; padding: 54px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .lbl { font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; color: #B9C7D6; margin-top: 6px; font-weight: 700; }
.stat .ph-inline {
  border: 2px dashed var(--ph-line); background: rgba(255, 248, 225, .12); color: #F4D77B;
  border-radius: 10px; padding: 4px 12px; display: inline-block; font-size: 26px; font-weight: 800;
}

/* Passos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; counter-reset: passo; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .n {
  width: 40px; height: 40px; border-radius: 99px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.step h3 { font-size: 17.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* Clientes */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.logo-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 96px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.logo-item img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s ease, opacity .2s ease; }
.logo-item:hover img { filter: grayscale(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .logo-item img { transition: none; } }

/* Faixa CTA */
.cta-band { background: var(--navy); color: #fff; padding: 60px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); max-width: 26ch; }
.cta-band p { color: #B9C7D6; margin: 8px 0 0; }

/* Página interna */
.page-hero { background: linear-gradient(120deg, #0B1B2E 0%, #123253 68%, #2C1521 100%); border-bottom: 3px solid var(--red); padding: 54px 0; color: #fff; }
.page-hero .breadcrumb { font-size: 13.5px; color: #A9B9C9; margin-bottom: 12px; }
.page-hero .breadcrumb a { color: #A9B9C9; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; max-width: 24ch; }
.page-hero .lead { color: #C6D2DE; font-size: 17.5px; max-width: 66ch; margin: 0; }

.layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.prose h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em 1.3em; }
.prose li { margin-bottom: 7px; }
.check-list { list-style: none; margin: 0 0 1em !important; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-list svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 3px; }

.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px;
}
.aside-card h3 { font-size: 18px; }
.aside-card .tel { font-size: 22px; font-weight: 800; color: var(--navy); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.aside-card .tel svg { width: 20px; height: 20px; color: var(--red); }
.aside-card small { color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 12px; background: #fff; }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 20px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 16px; color: var(--muted); }

/* Formulário */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-family: var(--font); font-size: 15px; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(200, 16, 46, .25); border-color: var(--red);
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-success {
  display: none; border: 1.5px solid var(--navy); background: var(--bg-soft); border-radius: 12px;
  padding: 18px 20px; font-weight: 600; color: var(--navy); margin-top: 16px;
}
.form-success.show { display: block; }

/* Contato info */
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.ci { display: flex; gap: 14px; align-items: flex-start; }
.ci svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }
.ci strong { display: block; color: var(--navy); font-size: 15px; }
.ci a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ci a:hover { text-decoration: underline; }
.ci small { color: var(--muted); }

/* Footer */
.site-footer { background: #0B1B2E; color: #C6D2DE; font-size: 14.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding: 56px 0 40px; }
.site-footer h3 { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C6D2DE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.f-logo svg { width: 34px; height: 34px; color: var(--red); }
.f-logo span { color: #fff; font-weight: 800; font-size: 17px; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8CA0B3; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff;
  border-radius: 99px; padding: 13px 20px 13px 15px; text-decoration: none; font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: 15px;
}
.wa-float:hover { background: var(--wa-dark); }
.wa-float svg { width: 22px; height: 22px; }

/* Banner de cookies */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 160;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18); padding: 18px 22px;
  display: none; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 860px; margin: 0 auto;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: 14px; color: var(--muted); max-width: 60ch; }
.cookie a { color: var(--navy-2); }

/* Nota de protótipo */
.proto-note {
  background: var(--ph-bg); border-bottom: 2px dashed var(--ph-line); color: var(--ph-ink);
  font-size: 13px; font-weight: 700; text-align: center; padding: 7px 12px;
}

/* Responsivo */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 4%; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: 13px 6px; font-size: 16px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .header-cta .btn { display: none; }
  .topbar .t-mail { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
}

/* Hero cinematográfico da home: vídeo de fundo + giroflex de ambulância */
.hero-cine { position: relative; color: #fff; overflow: hidden; background: #0B1B2E; }
.hero-cine .hc-media { position: absolute; inset: 0; z-index: 0; }
.hero-cine .hc-media .bgvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cine .hc-media .hc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-cine .giroflex { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.hero-cine .giroflex .beam { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.hero-cine .giroflex::before { content: ""; position: absolute; inset: 0; opacity: 0; will-change: opacity; background: radial-gradient(130% 105% at 80% 10%, rgba(235,34,60,.66), rgba(214,22,52,.2) 45%, transparent 66%); animation: giro 1.5s ease-in-out infinite; }
.hero-cine .giroflex .beam.r { background: radial-gradient(80% 118% at 100% 0%, rgba(255,86,98,1) 0%, rgba(232,28,56,.78) 34%, transparent 72%); animation: giro 1.5s ease-in-out infinite; }
.hero-cine .giroflex .beam.l { background: radial-gradient(64% 90% at 0% 100%, rgba(255,86,98,.98), rgba(232,28,56,.45) 42%, transparent 64%); animation: giro 1.5s ease-in-out infinite; animation-delay: .13s; }
@keyframes giro { 0% { opacity: 0; } 5% { opacity: 1; } 11% { opacity: .18; } 17% { opacity: 1; } 26% { opacity: 0; } 100% { opacity: 0; } }
.hero-cine .hc-overlay { position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(6,15,26,.94) 0%, rgba(6,15,26,.78) 40%, rgba(6,15,26,.32) 100%),
    linear-gradient(0deg, rgba(6,15,26,.86) 0%, rgba(6,15,26,.1) 55%); }
.hero-cine .container { position: relative; z-index: 3; padding: 96px 0 84px; min-height: 540px; display: flex; flex-direction: column; justify-content: center; }
.hero-cine .seal { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 7px 16px; font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #E7EEF6; margin-bottom: 24px; width: max-content; max-width: 100%; }
.hero-cine .seal b { color: var(--red); }
.hero-cine h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.5px; max-width: 20ch; margin-bottom: 20px; }
.hero-cine h1 .hl { border-bottom: 5px solid var(--red); padding-bottom: 2px; }
.hero-cine .hc-lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #D6E0EA; max-width: 52ch; margin-bottom: 30px; }
.hero-cine .cta-row { margin-bottom: 28px; }
.hero-cine .hc-seals { display: flex; flex-wrap: wrap; gap: 22px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; }
.hero-cine .hc-seals .it { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: #DCE5EE; }
.hero-cine .hc-seals .it svg { width: 19px; height: 19px; color: var(--red); flex: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-cine .giroflex::before { animation: none; opacity: .32; }
  .hero-cine .giroflex .beam.r { animation: none; opacity: .42; }
  .hero-cine .giroflex .beam.l { animation: none; opacity: 0; }
}
@media (max-width: 600px) {
  .hero-cine .container { padding: 60px 0 56px; min-height: auto; }
}
