/* Suntor — página "Convênios Atendidos" (Figma: Convênios Atendidos 2307:957, frame 1440px).
   .btn, .title, .decor and .cta-visit come from site.css; hovers/entrances are at the end of this file. */

.conv article > * { margin-left: 0; margin-right: 0; max-width: none; }

/* Logo masks: every file is a 198.5×100 cell with the logo centred, painted in the brand colour. */
.conv-logo { display: block; flex: none; width: 198.499px; height: 99.963px; background: var(--primary-800); -webkit-mask: var(--logo) no-repeat center / 100% 100%; mask: var(--logo) no-repeat center / 100% 100%; transition: background-color .3s ease, transform .4s var(--ease, ease); }
/* Allianz only exists in the hero; Figma draws its raw mask proportionally, a little below centre. */
.conv-logo--allianz { width: 158px; height: 79px; margin-top: 4px; -webkit-mask-size: contain; mask-size: contain; }

/* ---------- Hero ---------- */
.conv-hero { position: relative; overflow: hidden; height: 500px; background: var(--primary-50); display: flex; align-items: center; padding: 0 var(--gutter); box-sizing: border-box; }
.conv-hero__shape { position: absolute; width: 937px; height: 644px; pointer-events: none; }
.conv-hero__shape--a { left: calc(50% - 92px); top: -98px; }
.conv-hero__shape--b { left: calc(50% - 946px); top: 212px; }
.conv-hero__lines { position: absolute; left: -79px; top: -19px; width: 671px; height: 440px; pointer-events: none; -webkit-mask: url('../assets/images/convenios/hero-left-mask.svg') no-repeat 0 0 / 671px 440px; mask: url('../assets/images/convenios/hero-left-mask.svg') no-repeat 0 0 / 671px 440px; }
.conv-hero__line { position: absolute; opacity: .1; }
.conv-hero__line--a { left: -200px; top: -285.5px; width: 319.392px; height: 932.75px; }
.conv-hero__line--b { left: 201.83px; top: -367.8px; width: 158.4px; height: 344.05px; }

.conv-hero__content { position: relative; z-index: 1; width: 576px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.conv-hero__text { display: flex; flex-direction: column; gap: 16px; }
.conv-hero__text h1 { margin: 0; font: 400 56px/1.1 var(--font-head); color: var(--primary-500); }
.conv-hero__text p { margin: 0; font: 400 16px/1.4 var(--font-body); color: var(--primary-900); }

.conv-hero__logos { position: absolute; top: 0; bottom: 0; right: calc(var(--gutter) - .343px); display: flex; gap: 24.657px; }
.conv-hero__col { position: relative; width: 230.343px; height: 100%; }
.conv-hero__track { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; gap: 16px; will-change: transform; }
/* One set = 5 cards + 5 gaps (660px); two sets loop seamlessly. Frame 0 matches the design. */
.conv-hero__col--up .conv-hero__track { top: -78px; animation: conv-col-up 38s linear infinite; }
.conv-hero__col--down .conv-hero__track { top: calc(-66px - 660.1px); animation: conv-col-down 38s linear infinite; }
.conv-hero__logos:hover .conv-hero__track { animation-play-state: paused; }
@keyframes conv-col-up { to { transform: translateY(calc(-50% - 8px)); } }
@keyframes conv-col-down { to { transform: translateY(calc(50% + 8px)); } }
.conv-hero__card { aspect-ratio: 278 / 140; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .6); border-radius: 16px; background: var(--primary-50); display: flex; align-items: center; justify-content: center; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }

/* ---------- Lista de convênios ---------- */
.conv-lista { position: relative; overflow: hidden; padding: 80px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 48px; }
.conv-lista__title { position: relative; }
.conv-lista__grid { position: relative; width: 100%; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.conv-lista__item { display: flex; }

/* ---------- Como internar ---------- */
.conv-internar { position: relative; padding: 64px var(--gutter) 0; }
.conv-internar__band { position: absolute; left: 0; top: 0; width: max(1920px, 100%); height: 310px; overflow: hidden; border-bottom-right-radius: 16px; background: var(--primary-50); }
.conv-internar__band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.conv-internar__band::after { content: ''; position: absolute; inset: 0; background: rgba(244, 212, 212, .8); }
.conv-internar__card { position: relative; border-radius: 32px; background: var(--bg); padding: 32px 64px 32px 32px; display: flex; align-items: center; gap: 64px; }
.conv-internar__media { flex: none; width: 608px; height: 344px; border-radius: 16px; overflow: hidden; }
.conv-internar__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease, ease); }
.conv-internar__copy { width: 565px; display: flex; flex-direction: column; gap: 16px; }
.conv-internar__copy p { margin: 0; font: 400 16px/1.4 var(--font-body); color: var(--primary-900); }

/* ---------- Relatório médico ---------- */
.conv-relatorio { padding: 80px var(--gutter) 0; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.conv-relatorio__head { width: 586px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.conv-relatorio__head .title { white-space: nowrap; }
.conv-relatorio__head p { margin: 0; font: 400 16px/1.4 var(--font-body); color: var(--primary-900); }
.conv-relatorio__body { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.conv-relatorio__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.conv-check { box-sizing: border-box; border: 1px solid var(--primary-50); border-radius: 20px; padding: 8px; overflow: hidden; display: flex; }
.conv-check__inner { flex: 1; border-radius: 16px; background: var(--white); padding: 24px; display: flex; align-items: center; gap: 32px; filter: drop-shadow(0 1px 1px rgba(237, 103, 104, .2)) drop-shadow(0 4px 3px rgba(237, 103, 104, .1)) drop-shadow(0 24px 20px rgba(237, 103, 104, .2)); transition: transform .35s var(--ease, ease); }
/* the first card sets the row height; its neighbour stretches (Figma: self-stretch) */
/* Figma trims the text box (1.6px top and bottom), so cards are 3.2px shorter than plain line-height */
.conv-check__inner p { flex: 1; min-width: 0; margin: -1.6px 0; font: 500 16px/1.4 var(--font-body); color: var(--primary-900); }
.conv-check__icon { flex: none; display: flex; }
.conv-check__ring, .conv-check__dot { width: 32px; height: 32px; box-sizing: border-box; border-radius: 64px; display: flex; align-items: center; justify-content: center; }
.conv-check__ring { margin-right: -20px; border: 1px dashed #24a129; transition: transform .6s var(--ease, ease); }
.conv-check__dot { position: relative; background: #24a129; }
.conv-check__ring img, .conv-check__dot img { display: block; }

.conv-importante { border-radius: 16px; background: var(--bg); padding: 32px; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.conv-importante__text { width: 964px; max-width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--primary-900); }
.conv-importante__text p { margin: 0; }
.conv-importante__text strong { font-weight: 600; }
.conv-importante__text ul { margin: 22.4px 0; padding: 0; list-style: none; font-weight: 600; line-height: 1.3; }
.conv-importante__text li::before { content: '– '; }
.conv-importante__icon { flex: none; width: 147.632px; height: 166.183px; }

/* ---------- CTA ---------- */
.cta-visit--conv .cta-visit__copy .title { white-space: nowrap; }

/* ---------- Motion ---------- */
.conv-hero__text, .conv-hero__content > .btn { animation: reveal-up .9s var(--ease, ease) backwards; }
.conv-hero__content > .btn { animation-delay: .15s; }
.conv-hero__logos { animation: conv-fade 1.2s var(--ease, ease) .2s backwards; }
@keyframes conv-fade { from { opacity: 0; transform: translateY(24px); } }
.conv-hero__card:hover { background: var(--primary-25); border-color: var(--white); box-shadow: 0 12px 28px rgba(206, 105, 106, .18); }
.conv-hero__card:hover .conv-logo { background: var(--primary-500); }

.conv-lista__item .conv-logo { opacity: .92; }
.conv-lista__item:hover .conv-logo { background: var(--primary-500); opacity: 1; transform: translateY(-4px) scale(1.06); }

.conv-internar__card:hover .conv-internar__media img { transform: scale(1.05); }

.conv-check:hover .conv-check__inner { transform: translateY(-3px); }
.conv-check:hover .conv-check__ring { transform: rotate(90deg); }

.conv-importante__icon { transform-origin: 50% 85%; animation: conv-sway 4.5s ease-in-out infinite; }
@keyframes conv-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg) translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .conv-hero__track, .conv-importante__icon, .conv-hero__text, .conv-hero__content > .btn, .conv-hero__logos { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .conv-hero__content { width: min(576px, calc(100% - 300px)); }
  .conv-hero__col--up { display: none; }
  .conv-internar__card { gap: 40px; padding-right: 40px; }
  .conv-internar__media { width: 48%; flex: none; }
  .conv-internar__copy { flex: 1; width: auto; }
}

@media (max-width: 1100px) {
  .conv-relatorio__head .title, .cta-visit--conv .cta-visit__copy .title { white-space: normal; }
}

@media (max-width: 900px) {
  .conv-internar__card { flex-direction: column; align-items: stretch; gap: 24px; padding: 24px; }
  .conv-internar__media { width: 100%; height: auto; aspect-ratio: 608 / 344; }
  .conv-relatorio__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* hero: text first, logos become a slow horizontal strip below */
  .conv-hero { height: auto; flex-direction: column; align-items: stretch; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
  .conv-hero__content { width: 100%; }
  .conv-hero__text h1 { font-size: 40px; }
  .conv-hero__shape--a { left: auto; right: -620px; }
  .conv-hero__logos { position: relative; right: auto; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; }
  .conv-hero__col--up { display: none; }
  .conv-hero__col--down { width: auto; height: auto; flex: 1; overflow: hidden; }
  .conv-hero__col--down .conv-hero__track { position: static; flex-direction: row; width: max-content; animation: conv-row 38s linear infinite; }
  .conv-hero__col--down .conv-hero__card { width: 180px; }
  .conv-hero__col--down .conv-logo { transform: scale(.78); }
  @keyframes conv-row { to { transform: translateX(calc(-50% - 8px)); } }

  .conv-lista { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .conv-lista__grid { gap: 8px 0; }
  .conv-lista__item { width: 50%; height: 80px; justify-content: center; align-items: center; }
  .conv-lista__item .conv-logo { transform: scale(.8); }
  .conv-lista__item:hover .conv-logo { transform: scale(.84); }

  .conv-internar { padding-top: 40px; }
  .conv-internar__band { height: 200px; }
  .conv-relatorio { padding-top: 56px; gap: 32px; }
  .conv-check__inner { gap: 20px; padding: 20px; }
  .conv-importante { flex-direction: column-reverse; padding: 24px; gap: 16px; }
  .conv-importante__icon { width: 96px; height: auto; }
}
