/* Calm, consistent visual system for healthcare communication. */
:root {
  --ink: #15324a;
  --muted: #5d7487;
  --line: #dce8f0;
  --ice: #f5f9fc;
  --shadow: 0 18px 50px rgba(7, 47, 87, .10);
  --radius: 24px;
  --max: 1180px;
}

body {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 5.15vw, 4.25rem); letter-spacing: -.05em; }
h2, .intro-title h2, .section-heading h2, .fleet-copy h2, .faq h2, .contact h2 {
  font-size: clamp(2rem, 3.15vw, 2.75rem);
  letter-spacing: -.04em;
}
h3 { font-size: clamp(1.28rem, 1.8vw, 1.6rem); }
p { margin-top: 0; }
.label, .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.eyebrow.light { background: transparent; padding: 0; }

.nav { height: 88px; gap: 30px; }
.brand { width: 190px; }
.brand img { height: 64px; }
.nav nav { gap: 28px; font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.nav nav a::after { bottom: -7px; }
.nav nav a[aria-current="page"] { color: var(--blue); }
.nav nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { border-radius: 12px; padding: 10px 15px; }
.nav-cta b { font-weight: 700; }

.hero { min-height: 850px; padding-top: 150px; }
.strip-track { width: max-content; gap: 0; padding: 0; animation: stripLoop 28s linear infinite; }
.strip-group { min-width: 100vw; display: flex; align-items: center; justify-content: space-around; gap: 32px; padding: 19px 28px; }
.hero-layout { gap: 64px; }
.hero-copy > p { font-size: 19px; line-height: 1.6; max-width: 610px; }
.hero-actions { margin-top: 30px; }
.button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .005em;
}
.button:hover { transform: translateY(-2px); }
.trust-line { margin-top: 34px; }
.trust-line strong { font-size: 27px; font-weight: 700; }
.trust-line span { font-size: 12.5px; }
.hero-stage { min-height: 580px; }
.hero-photo { border-width: 8px; }
.hero-photo img {
  object-position: center center;
  transition: transform .8s cubic-bezier(.2, .75, .2, 1), filter .8s ease;
}
.hero-stage:hover .hero-photo img { transform: scale(1.035); filter: saturate(1.04) contrast(1.02); }
.medical-card,
.experience-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: 0 20px 48px rgba(7, 47, 87, .16), 0 3px 12px rgba(7, 47, 87, .06);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}
.medical-card { animation: cardFloat 5.6s ease-in-out infinite; }
.experience-card { animation: cardFloat 6.2s ease-in-out .8s infinite reverse; }
.medical-card::after,
.experience-card::after {
  content: "";
  position: absolute;
  inset: -60% -90%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .72) 50%, transparent 58%);
  transform: translateX(-35%);
  transition: transform .7s ease;
  pointer-events: none;
}
.medical-card:hover,
.experience-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 26px 58px rgba(7, 47, 87, .22), 0 5px 16px rgba(7, 47, 87, .08);
  border-color: rgba(35, 182, 223, .36);
}
.medical-card:hover::after,
.experience-card:hover::after { transform: translateX(36%); }
.experience-card b { font-size: 34px; font-weight: 700; }
.service-strip .strip-track { font-size: 13px; font-weight: 600; letter-spacing: .1em; }

.section { padding: 104px 0; }
.intro-layout { grid-template-columns: 120px 1.2fr .8fr; gap: 52px; }
.intro-index span { font-size: 56px; font-weight: 600; }
.intro-index small { font-weight: 700; letter-spacing: .12em; }
.intro-copy p, .section-heading > p, .fleet-copy > p, .faq p { font-size: 16.5px; line-height: 1.7; }
.text-link { font-weight: 700; }

.story-frame { height: 620px; border-radius: 28px; }
.story-frame img { object-position: center center; }
.story-frame::after { background: linear-gradient(90deg, rgba(5, 39, 72, .94) 0%, rgba(5, 39, 72, .72) 32%, rgba(5, 39, 72, .18) 62%, transparent 78%); }
.story-overlay { left: 60px; bottom: 58px; }
.story-overlay h3 { font-size: clamp(2rem, 3vw, 2.5rem); }
.story-overlay p { font-size: 17px; }
.story-badge {
  min-width: 188px;
  border-radius: 22px;
  padding: 21px 24px 19px;
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: 0 22px 55px rgba(7, 47, 87, .18);
  overflow: hidden;
  animation: badgeDrift 6s ease-in-out infinite;
}
.story-badge::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}
.story-badge::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -42px;
  top: -45px;
  border-radius: 50%;
  background: rgba(35, 182, 223, .1);
}
.story-badge b {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 4px;
  font-size: 43px;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.05em;
}
.story-badge b span { color: var(--cyan); font-size: 25px; line-height: 1; letter-spacing: 0; }
.story-badge small { display: block; font-size: 12px; color: var(--navy); }
.story-badge i { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.section-heading { gap: 64px; margin-bottom: 46px; }
.services-grid { gap: 16px; }
.service-card { min-height: 315px; padding: 30px; border-radius: 20px; }
.service-card .card-number { font-size: 50px; font-weight: 600; }
.service-card .icon { margin-bottom: 50px; border-radius: 14px; }
.service-card h3 { font-size: 22px; }
.service-card p { font-size: 15.5px; line-height: 1.6; }
.service-card a:not(.button) { left: 30px; bottom: 27px; font-size: 14px; font-weight: 700; }
.statement h3 { font-size: 28px; }

.fleet {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f5f9fc 0%, #edf7fc 52%, #f8fbfd 100%);
}
.fleet::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -180px;
  top: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 182, 223, .14), transparent 68%);
}
.fleet-layout { position: relative; z-index: 1; gap: 72px; }
.fleet-copy li { font-weight: 600; }
.fleet-collage {
  min-height: 650px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 16px;
  isolation: isolate;
}
.fleet-collage figure {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  border: 7px solid rgba(255, 255, 255, .96);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(7, 47, 87, .14);
  transition: transform .45s cubic-bezier(.2, .75, .2, 1), box-shadow .45s ease;
}
.fleet-collage figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(4, 29, 53, .7));
  pointer-events: none;
}
.fleet-collage figure:hover {
  z-index: 5;
  transform: translateY(-7px) scale(1.018);
  box-shadow: 0 30px 65px rgba(7, 47, 87, .2);
}
.fleet-collage figure:hover img { transform: scale(1.065); }
.fleet-collage figcaption {
  position: absolute;
  z-index: 2;
  left: 17px;
  bottom: 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.fleet-collage .f1 { grid-column: 1 / 9; grid-row: 2 / 11; }
.fleet-collage .f2 { grid-column: 8 / 13; grid-row: 1 / 6; }
.fleet-collage .f3 { grid-column: 7 / 13; grid-row: 6 / 13; }
.fleet-collage .f1 img { object-position: center; }
.fleet-collage .f2 img { object-position: center; }
.fleet-collage .f3 img { object-position: center 58%; }
.fleet-tag {
  left: auto;
  bottom: auto;
  grid-column: 1 / 7;
  grid-row: 10 / 13;
  align-self: end;
  justify-self: start;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 42px rgba(7, 47, 87, .2);
  backdrop-filter: blur(12px);
  animation: badgeDrift 6.5s ease-in-out .7s infinite reverse;
}
.partner-shell { border-radius: 28px; padding: 58px; }
.partner-shell h2 { font-size: clamp(2rem, 3vw, 2.65rem); }
.partner-list span { min-height: 88px; border-radius: 15px; font-size: 16px; font-weight: 700; }
.partner-shell > div { min-width: 0; }
.partner-marquee {
  position: relative;
  align-self: center;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partner-row { overflow: hidden; padding: 3px 0; }
.partner-track {
  display: flex;
  width: max-content;
  gap: 11px;
  animation: partnerScroll 46s linear infinite;
  will-change: transform;
}
.partner-row.reverse .partner-track { animation-direction: reverse; animation-duration: 50s; }
.partner-marquee:hover .partner-track { animation-play-state: paused; }
.partner-logo {
  flex: 0 0 142px;
  height: 78px;
  display: grid;
  place-items: center;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(2, 30, 58, .16);
  transition: transform .3s ease, box-shadow .3s ease;
}
.partner-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(2, 30, 58, .24);
}
.partner-logo img {
  width: 100%;
  height: 100%;
  max-width: 112px;
  max-height: 48px;
  object-fit: contain;
}
.partner-logo img[src*="apramed"] { transform: scale(1.5); }
.partner-logo img[src*="cesp"],
.partner-logo img[src*="gastro-saude"] { transform: scale(1.32); }
.partner-logo img[src*="hra"],
.partner-logo img[src*="cassi"] { transform: scale(1.14); }
.faq-layout { gap: 78px; }
.accordion summary { font-size: 17px; font-weight: 600; line-height: 1.45; }
.contact { padding: 104px 0; background: #031c35; }
.contact-image {
  background-image: url('../img/frota-noturna-v2.jpg');
  background-position: center 58%;
  filter: saturate(.9) contrast(1.04);
  transform: scale(1.015);
}
.contact-overlay {
  background: radial-gradient(circle at 76% 42%, rgba(35, 182, 223, .14), transparent 36%), linear-gradient(90deg, rgba(3, 25, 49, .98), rgba(4, 36, 70, .9) 52%, rgba(3, 26, 51, .78));
  backdrop-filter: blur(1.2px);
}
.contact p { font-size: 18px; }
.contact-panel { border-radius: 24px; padding: 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.contact-panel a, .contact-panel address { font-size: 17px; font-weight: 600; }
.footer-grid b { font-weight: 700; }
.footer-grid > div:last-child a:nth-last-child(-n+2) { font-size: 14px; color: #8fc7df; }
.developer-credit { display: inline-flex; align-items: center; gap: 10px; }
.developer-credit > span { white-space: nowrap; }
.developer-credit a { display: inline-flex; align-items: center; }
.developer-credit img { width: 84px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }

/* Keep the footer brand proportional even when intrinsic image dimensions are present. */
.footer-grid > div:first-child > img { width: 230px; height: auto; }

.cookie-banner {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 18px;
  width: min(calc(100% - 48px), 1400px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 22px;
  color: #fff;
  background: rgba(3, 24, 43, .97);
  border: 1px solid rgba(117, 217, 240, .34);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity .35s ease, transform .35s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cookie-copy { max-width: 980px; }
.cookie-copy strong { display: block; margin-bottom: 4px; font: 600 16px 'Sora', sans-serif; }
.cookie-copy p { margin: 0; color: #d3e0e9; font-size: 15px; line-height: 1.55; }
.cookie-copy a { color: #75d9f0; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions button { min-height: 48px; padding: 0 22px; border-radius: 11px; cursor: pointer; font-weight: 800; white-space: nowrap; }
.cookie-essential { color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: transparent; }
.cookie-accept { color: #fff; border: 1px solid var(--red); background: var(--red); }

.legal-hero { padding: 156px 0 76px; background: linear-gradient(135deg, #eef9ff, #fff); }
.legal-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 4.7vw, 3.7rem); }
.legal-hero p { max-width: 720px; color: var(--muted); font-size: 18px; }
.legal-body { padding: 80px 0; }
.legal-layout { display: grid; grid-template-columns: 270px 1fr; gap: 64px; }
.legal-aside { position: sticky; top: 118px; align-self: start; padding: 25px; border-radius: 20px; background: var(--ice); }
.legal-aside b { display: block; margin-bottom: 9px; font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; }
.legal-aside a { display: block; padding: 8px 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.legal-content section { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 112px; }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { font-size: clamp(1.65rem, 2.5vw, 2rem); }
.legal-content h3 { margin-top: 24px; font-size: 20px; }
.legal-content p,
.legal-content li { color: var(--muted); line-height: 1.72; }
.legal-content a { color: var(--blue); font-weight: 700; }
.legal-note { padding: 18px 20px; border-left: 4px solid var(--cyan); border-radius: 0 14px 14px 0; background: var(--ice); }

.floating-call {
  top: 50%;
  right: 0;
  bottom: auto;
  width: 64px;
  height: 64px;
  padding: 10px;
  gap: 10px;
  overflow: hidden;
  border-radius: 19px 0 0 19px;
  box-shadow: 0 18px 44px rgba(229, 38, 54, .32);
  animation: none;
  transform: translateY(-50%);
  transition: width .36s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.floating-call > span {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 20px;
}
.floating-call div {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width .36s ease, opacity .24s ease;
}
.floating-call:hover,
.floating-call:focus {
  width: 208px;
  box-shadow: 0 22px 52px rgba(229, 38, 54, .4);
  transform: translateY(-50%);
}
.floating-call:hover div,
.floating-call:focus div { max-width: 126px; opacity: 1; }

.ethics-hero { padding: 156px 0 76px; }
.ethics-hero h1 { font-size: clamp(2.6rem, 4.7vw, 3.7rem); max-width: 820px; }
.ethics-hero p { font-size: 18px; color: var(--muted); }
.ethics-body { padding: 80px 0; }
.ethics-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
.ethics-aside { position: sticky; top: 118px; align-self: start; border-radius: 20px; padding: 25px; background: var(--ice); }
.ethics-aside b { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; }
.ethics-aside a { display: block; padding: 8px 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.ethics-content section { padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 112px; }
.ethics-content h2 { font-size: clamp(1.65rem, 2.5vw, 2rem); }
.ethics-content h3 { font-size: 20px; margin-top: 25px; }
.ethics-content p, .ethics-content li { line-height: 1.72; }

:focus-visible { outline: 3px solid rgba(35, 182, 223, .55); outline-offset: 4px; }

@keyframes cardFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

@keyframes badgeDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes partnerScroll {
  to { transform: translateX(calc(-50% - 5.5px)); }
}

@keyframes stripLoop {
  to { transform: translateX(-50%); }
}

@media (max-width: 1080px) {
  .nav nav.open { top: 88px; }
  .hero { padding-top: 135px; }
  .intro-layout { grid-template-columns: 90px 1fr; }
}

@media (max-width: 800px) {
  .ethics-grid { grid-template-columns: 1fr; gap: 36px; }
  .ethics-aside { position: relative; top: auto; }
  .legal-layout { grid-template-columns: 1fr; gap: 36px; }
  .legal-aside { position: relative; top: auto; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .nav { height: 76px; }
  .brand { width: 150px; }
  .nav nav.open { top: 76px; }
  .hero { padding: 116px 0 62px; }
  .hero-copy > p { font-size: 17px; }
  .hero-stage { min-height: 450px; }
  .section { padding: 76px 0; }
  .intro-layout { grid-template-columns: 1fr; gap: 22px; }
  .intro-index span { font-size: 38px; }
  .story-frame { height: 560px; border-radius: 22px; }
  .story-overlay { left: 24px; right: 24px; bottom: 30px; }
  .story-badge { min-width: 154px; padding: 16px 18px 15px; }
  .story-badge b { font-size: 34px; }
  .story-badge b span { font-size: 21px; }
  .section-heading { margin-bottom: 36px; }
  .service-card { min-height: 285px; padding: 26px; }
  .service-card .icon { margin-bottom: 42px; }
  .service-card a:not(.button) { left: 26px; bottom: 24px; }
  .fleet-collage {
    min-height: 510px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 285px 205px;
    gap: 12px;
  }
  .fleet-collage .f1 { grid-column: 1 / 3; grid-row: 1; }
  .fleet-collage .f2 { grid-column: 1; grid-row: 2; }
  .fleet-collage .f3 { grid-column: 2; grid-row: 2; }
  .fleet-collage figure { border-width: 5px; border-radius: 18px; }
  .fleet-collage figcaption { left: 11px; bottom: 10px; font-size: 9px; }
  .fleet-tag {
    position: absolute;
    left: 14px;
    bottom: 15px;
    padding: 14px 16px;
    animation: none;
    transform: scale(.9);
    transform-origin: left bottom;
  }
  .partner-shell { padding: 32px 22px; border-radius: 22px; }
  .partner-list span { min-height: 76px; font-size: 14px; }
  .partner-marquee { margin-inline: -8px; }
  .partner-logo { flex-basis: 122px; height: 70px; padding: 11px; }
  .partner-logo img { max-width: 100px; max-height: 44px; }
  .contact { padding: 82px 0; }
  .floating-call,
  .floating-call:hover,
  .floating-call:focus {
    top: auto;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    padding: 7px;
    border-radius: 50%;
    transform: none;
    box-shadow: 0 12px 32px rgba(229, 38, 54, .34);
  }
  .floating-call > span { width: 42px; height: 42px; flex-basis: 42px; border-radius: 50%; }
  .ethics-hero { padding: 124px 0 60px; }
  .ethics-body { padding: 60px 0; }
  .legal-hero { padding: 124px 0 60px; }
  .legal-hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); letter-spacing: -1.8px; overflow-wrap: anywhere; }
  .legal-body { padding: 60px 0; }
  .developer-credit { margin-top: 10px; }
  .cookie-banner {
    bottom: 82px;
    width: calc(100% - 24px);
    display: block;
    padding: 18px;
    border-radius: 18px;
  }
  .cookie-copy { padding-right: 0; }
  .cookie-actions { margin-top: 14px; }
  .cookie-actions button { flex: 1; min-width: 0; min-height: 44px; padding-inline: 10px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none !important; transform: none; }
  .strip-group[aria-hidden="true"] { display: none; }
  .partner-marquee { overflow-x: auto; mask-image: none; }
  .partner-track { animation: none !important; }
  .partner-logo[aria-hidden="true"] { display: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
