/* ==========================================================================
   Cendro Radiologia — componentes das páginas internas
   (carregado depois de style.css)
   ========================================================================== */

/* Espaço reservado para foto */
.photo-slot {
  display: grid; place-items: center; align-content: center; gap: 10px; text-align: center;
  min-height: 200px; padding: 20px; border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, #eef3f6 0 12px, #e6edf2 12px 24px);
  border: 1px dashed #c9d6df; color: var(--muted); font-size: .9rem;
}
.photo-slot svg { width: 32px; height: 32px; color: var(--cyan-600); }
.events__past { display: flex; flex-direction: column; gap: 16px; }
.events__past h3 { margin: 0; }
.events__past p { color: var(--ink-soft); margin: 0; }
.events__slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; flex: 1; }

/* Cabeçalho de página com foto */
.page-hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 40px 100px -30px rgba(0, 169, 224, .45), 0 0 0 1px rgba(255,255,255,.1);
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media .validar { position: absolute; left: 12px; bottom: 12px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; color: #b9c7d5; font-size: .95rem; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero__meta svg { width: 18px; height: 18px; color: #5fd3f5; flex: none; }
.page-hero .validar { background: rgba(255, 214, 102, .14); color: #ffd666; border-color: rgba(255, 214, 102, .45); }

/* Seção em duas colunas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-soft); }
.check-list svg { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.section--dark .check-list li { color: #c9d6e2; }
.section--dark .validar { background: rgba(255, 214, 102, .14); color: #ffd666; border-color: rgba(255, 214, 102, .45); }

/* Grade de serviços */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
a.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3ee; }
.svc__tag { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-600); }
.svc h3 { font-size: 1.08rem; margin: 0; }
.svc p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
.svc .link-arrow { margin-top: auto; padding-top: 8px; font-size: .9rem; }

/* Linha do tempo */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before {
  content: ""; position: absolute; left: 89px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--teal) 60%, rgba(25,179,148,.1));
}
.timeline li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 40px; padding: 0 0 30px; }
.timeline li::before {
  content: ""; position: absolute; left: 83px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy-950); border: 3px solid var(--cyan); box-shadow: 0 0 0 5px rgba(0,169,224,.15);
}
.timeline__year { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; text-align: right; line-height: 1.3; }
.timeline__text { color: #b5c3d1; }
.timeline__text strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: 2px; }

/* Destaques da trajetória */
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.highlight { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.highlight__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.highlight__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.highlight:hover .highlight__media img { transform: scale(1.04); }
.highlight figcaption { padding: 22px 24px 26px; }
.highlight time { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-600); }
.highlight h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.highlight p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Equipe completa */
.team__grid--full { grid-template-columns: repeat(4, 1fr); }

/* Unidades: grade */
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.unit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.unit-card__media { position: relative; aspect-ratio: 456 / 217; overflow: hidden; background: var(--navy-800); }
.unit-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.unit-card:hover .unit-card__media img { transform: scale(1.06); }
.unit-card__media .validar { position: absolute; left: 10px; bottom: 10px; }
.unit-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.unit-card__body h3 { margin: 0; font-size: 1.25rem; }
.unit-card__line { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .93rem; color: var(--ink-soft); }
.unit-card__line svg { width: 18px; height: 18px; color: var(--cyan-600); margin-top: 3px; }
.unit-card .link-arrow { margin-top: auto; padding-top: 8px; }

/* Unidade: página própria */
.unit-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: stretch; }
.unit-page .unit__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; border: 1px solid var(--line); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.info-card h2 { font-size: 1.5rem; }
.info-card dl { margin: 0 0 24px; display: grid; gap: 16px; }
.info-card dl div { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.info-card dt { color: var(--cyan-600); }
.info-card dt svg { width: 20px; height: 20px; margin-top: 3px; }
.info-card dd { margin: 0; font-size: .97rem; color: var(--ink-soft); }
.info-card dd strong { display: block; color: var(--ink); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list a, .pill-list span {
  display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: .9rem; font-weight: 500; text-decoration: none; transition: border-color .2s;
}
.pill-list a:hover { border-color: var(--cyan); }

/* Caixas e grades simples */
.note-box { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.note-box h3 { font-size: 1.05rem; }
.note-box p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.section-head .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (max-width: 1024px) {
  .page-hero__grid, .split, .unit-page { grid-template-columns: minmax(0, 1fr); }
  .svc-grid, .unit-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .team__grid--full { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .svc-grid, .unit-grid, .cards-3, .highlights, .events__slots { grid-template-columns: 1fr; }
  .team__grid--full { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .timeline li::before { left: 1px; }
  .timeline__year { text-align: left; }
  .unit-page .unit__map { min-height: 320px; }
}

/* O número "30" precisa vencer a cor de ".anos p" para o gradiente aparecer */
.anos .anos__number { color: transparent; -webkit-text-fill-color: transparent; }

/* Downloads */
.dl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }

/* Botão flutuante de WhatsApp (computador; no celular a barra inferior já cumpre esse papel) */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 96;
  display: inline-flex; align-items: center; gap: 0;
  height: 58px; padding: 0 17px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6), 0 4px 12px rgba(0,0,0,.18);
  transition: gap .35s var(--ease), padding .35s var(--ease), transform .35s var(--ease), box-shadow .35s;
}
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { gap: 10px; padding: 0 22px 0 18px; transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .75), 0 4px 12px rgba(0,0,0,.2); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 140px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: wa-pulse 3s infinite;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.menu-open .wa-float { display: none; }
@media (max-width: 760px) { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* Convênios */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.filter__btn {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter__btn:hover { border-color: var(--cyan); }
.filter__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter__btn { scroll-margin-top: calc(var(--header-h) + 24px); }
.filter__status { color: var(--muted); font-size: .92rem; margin: 0 0 24px; min-height: 1.5em; }
.filter__empty { margin-bottom: 24px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.logo-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .3s;
}
.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-card[hidden] { display: none; }
.logo-card__img { aspect-ratio: 3 / 2; background: #fff; padding: 12px; border-bottom: 1px solid var(--line); }
.logo-card__img img { width: 100%; height: 100%; object-fit: contain; }
.logo-card figcaption { padding: 12px 14px 14px; display: grid; gap: 2px; }
.logo-card figcaption strong { font-family: var(--font-display); font-size: .95rem; }
.logo-card figcaption span { font-size: .78rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 760px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Pilares culturais (Sobre) */
.mv { display: grid; gap: 20px; margin-top: 32px; }
.mv div { border-left: 3px solid var(--cyan); padding-left: 18px; }
.mv strong { display: block; font-family: var(--font-display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-600); margin-bottom: 4px; }
.mv p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.pillar {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  padding: 26px 28px; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.pillar:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: #cfe3ee; }
.pillar__num {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff;
  background: var(--grad); box-shadow: var(--shadow-glow);
}
.pillar__name { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-600); margin-bottom: 6px; }
.pillar h3 { font-size: 1.2rem; margin: 0 0 8px; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 1024px) { #missao .split > div[style*="sticky"] { position: static !important; } }
@media (max-width: 760px) {
  .pillar { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .pillar__num { width: 48px; height: 48px; border-radius: 14px; font-size: 1rem; }
}

/* Equipe da página inicial: 3 radiologistas */
.team__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .team__grid--3 { grid-template-columns: minmax(0, 1fr); } .team__grid--3 .member__body ul { display: block; } }
