﻿/* ============================================
   PSM Gestão em Saúde — Paleta da marca (logo)
   Navy #002D62 | Azul #0056B3 | Verde #008B63
   ============================================ */
:root {
  --color-primary: #002d5e;
  --color-primary-dark: #001f45;
  --color-primary-medium: #0056a4;
  --color-brand-light: #00a8e8;
  --color-accent: #008b63;
  --color-accent-hover: #007552;
  --color-text: #2d3748;
  --color-text-muted: #5a6b7d;
  --color-bg: #ffffff;
  --color-bg-soft: #f8f9fa;
  --color-border: #e2e8f0;
  --color-icon-bg: #e8f2fa;
  --shadow-sm: 0 1px 3px rgba(0, 45, 98, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 45, 98, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 45, 98, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --header-height: 80px;
  --hero-fx-delay: 0.12s;
  --container-max: 1200px;
  --spacing-x: 20px;
  --spacing-x-tight: 24px;
  --transition: 0.25s ease;
}

:root[data-theme="dark"] {
  --color-text: #e8f2ff;
  --color-text-muted: #a9bdd4;
  --color-bg: #07111f;
  --color-bg-soft: #0d1b2d;
  --color-border: #213a57;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.42);
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: 0;
  margin-right: auto;
  padding-left: var(--spacing-x-tight);
  padding-right: var(--spacing-x);
}

.header .container {
  max-width: 100%;
  margin: 0;
  padding-left: 12px;
  padding-right: var(--spacing-x);
}

.text-accent {
  color: var(--color-brand-light);
}

.text-accent--shine {
  background: linear-gradient(
    115deg,
    var(--color-brand-light) 0%,
    #4dc4f0 35%,
    var(--color-primary-medium) 70%,
    var(--color-brand-light) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accentShine 5s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: transparent;
  padding: 10px 14px;
}

.btn--ghost:hover {
  background: var(--color-bg-soft);
  transform: none;
}

.btn--login,
.btn--login:hover,
.btn--login:focus-visible {
  min-width: 104px;
  min-height: 42px;
  padding: 0 22px;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  background: var(--color-primary-medium);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
}

.btn--login:hover,
.btn--login:focus-visible {
  background: var(--color-primary);
  transform: translateY(-1px);
}

.btn--login svg {
  display: none;
}

.theme-toggle {
  display: inline-grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--color-primary-medium);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(0, 125, 234, 0.08);
  box-shadow: none;
  transform: translateY(-1px);
}

.theme-toggle__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
  overflow: visible;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  height: 100%;
  gap: 8px;
  overflow: visible;
}

.header__start {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  line-height: 1;
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
}

.logo__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 76px;
  flex: 0 0 88px;
}

.logo__img {
  display: block;
  width: 60px;
  height: 60px;
  max-width: 60px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  margin-right: 0;
  position: relative;
  z-index: 2;
  image-rendering: auto;
}

.logo__seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  color: #075fae;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.logo__seal svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: logoSealRotate 18s linear infinite;
  shape-rendering: geometricPrecision;
}

.logo__seal-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
  opacity: 0.9;
}

.logo__seal-ring--inner {
  display: none;
}

.logo__seal text {
  fill: currentColor;
  font-size: 5.8px;
  font-weight: 800;
  letter-spacing: 0;
  paint-order: normal;
  stroke: none;
  stroke-width: 0;
  text-rendering: geometricPrecision;
}

@keyframes logoSealRotate {
  to {
    transform: rotate(360deg);
  }
}

.logo__text {
  display: inline-block;
  width: 132px;
  margin-left: 6px;
  min-height: 2.2em;
  font-size: 0.96rem;
  line-height: 1.1;
  color: transparent;
  overflow: visible;
  white-space: normal;
  background:
    linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 34%, #4fc3ff 50%, var(--color-primary) 66%, var(--color-primary) 100%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 0 rgba(79, 195, 255, 0));
  animation:
    logoTextShine 3.4s ease-in-out infinite,
    logoTextPulse 2.6s ease-in-out infinite;
}

@keyframes logoTextShine {
  0%,
  18% {
    background-position: 120% 0;
  }

  58%,
  100% {
    background-position: -120% 0;
  }
}

@keyframes logoTextPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(79, 195, 255, 0));
  }

  50% {
    filter: drop-shadow(0 0 5px rgba(79, 195, 255, 0.42));
  }
}

.nav {
  flex: 0 1 auto;
  display: flex;
  justify-content: flex-start;
  margin-left: 10px;
}

/* Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  overflow: visible;
}

.header-entry-link,
.header-admin-direct-link,
.header-entry-menu,
.header__actions > a.btn--login[href*="entrar"],
.header__actions > a.btn--login[href*="Entrar"] {
  display: none !important;
}

body.has-header-entry-actions .header__actions .header-entry-link,
body.has-header-entry-actions .header__actions .header-admin-direct-link,
html.has-header-entry-actions .header__actions .header-entry-link,
html.has-header-entry-actions .header__actions .header-admin-direct-link {
  display: inline-flex !important;
  visibility: visible !important;
}

body.has-header-entry-actions .header-entry-link,
body.has-header-entry-actions .header-admin-direct-link,
body.has-header-entry-actions .header-entry-menu,
body.has-header-entry-actions .header__actions > a.btn--login[href*="entrar"],
body.has-header-entry-actions .header__actions > a.btn--login[href*="Entrar"],
html.has-header-entry-actions .header-entry-link,
html.has-header-entry-actions .header-admin-direct-link,
html.has-header-entry-actions .header-entry-menu,
html.has-header-entry-actions .header__actions > a.btn--login[href*="entrar"],
html.has-header-entry-actions .header__actions > a.btn--login[href*="Entrar"] {
  display: inline-flex !important;
}

body.has-header-entry-actions .header-entry-menu,
html.has-header-entry-actions .header-entry-menu {
  display: block !important;
}

.header-entry-menu {
  position: relative;
  overflow: visible;
}

.header-entry-menu summary {
  list-style: none;
}

.header-entry-menu summary::-webkit-details-marker {
  display: none;
}

.header-entry-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-entry-menu__chevron {
  font-size: 0.82rem;
  line-height: 1;
  transition: transform var(--transition);
}

.header-entry-menu[open] .header-entry-menu__chevron,
.header-entry-menu__trigger[aria-expanded="true"] .header-entry-menu__chevron {
  transform: rotate(180deg);
}

.header-entry-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  z-index: 1003;
}

.header-entry-menu[open] .header-entry-menu__dropdown,
.header-entry-menu__dropdown.is-open {
  display: block;
}

.header-entry-menu--always-open .header-entry-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  display: block;
  width: max-content;
  min-width: 210px;
  max-width: min(260px, calc(100vw - 32px));
  margin-top: 0;
  padding: 8px;
  border: 1px solid #cfe0f3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 40px rgba(7, 59, 120, 0.18);
  z-index: 1200;
}

.header-entry-menu--always-open .header-entry-menu__trigger {
  cursor: default;
}

.header-entry-menu--always-open .header-entry-menu__chevron {
  transform: rotate(180deg);
}

.header-admin-direct-link {
  display: inline-flex;
  min-width: 0;
  margin-top: 8px;
  padding: 0 18px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.header-entry-menu__link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.header-entry-menu__dropdown .header-entry-menu__link {
  text-align: center;
}

.header-entry-menu__link:hover,
.header-entry-menu__link:focus-visible {
  background: #edf5ff;
  color: var(--color-primary-medium);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  isolation: isolate;
  overflow: visible;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
}

.nav__list > li:first-child .nav__link {
  padding-left: 0;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link--service:hover,
.nav__link--service:focus-visible {
  color: var(--color-primary-medium);
  background: #e8f5ff;
  border-radius: 999px;
  font-weight: 700;
}

.nav__flip {
  display: inline-block;
  height: 1.2em;
  line-height: 1.2;
  overflow: visible;
  perspective: 560px;
  vertical-align: middle;
}

.nav__flip-inner {
  display: grid;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.68s cubic-bezier(0.2, 0.72, 0.18, 1);
  will-change: transform;
}

.nav__flip-face {
  grid-area: 1 / 1;
  display: block;
  backface-visibility: hidden;
  white-space: nowrap;
}

.nav__flip-face--front {
  transform: translateZ(0.58em);
}

.nav__flip-face--back {
  transform: rotateX(180deg) translateZ(0.58em);
}

.nav__link:hover .nav__flip-inner,
.nav__link:focus-visible .nav__flip-inner {
  transform: rotateX(-180deg);
}

.nav__link--active,
.nav__link--active:hover {
  color: var(--color-primary-medium);
  background: #e8f5ff;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 700;
  overflow: visible;
  text-shadow: none;
  min-height: 30px;
  padding-left: 10px;
  padding-right: 10px;
}

.nav__list > li:first-child .nav__link--active {
  padding-left: 8px;
}

.nav__link--active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-medium);
  box-shadow: 0 2px 6px rgba(0, 86, 164, 0.28);
  transform: translateX(-50%);
  pointer-events: none;
}

.nav__chevron {
  transition: transform var(--transition);
}

.nav__dropdown-btn[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .logo__seal svg {
    animation: none;
  }

  .logo__text {
    animation: none;
    background-position: 0 0;
  }

  .nav__flip-inner {
    transition: none;
  }

  .nav__link:hover .nav__flip-inner,
  .nav__link:focus-visible .nav__flip-inner {
    transform: none;
  }
}

.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1002;
  transform: translateY(8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown,
.nav__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__item--dropdown:hover .nav__chevron,
.nav__item--dropdown:focus-within .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav__dropdown a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}

/* Hero */
/* Footer */
.footer {
  position: relative;
  margin-top: auto;
  padding-top: 78px;
  background:
    radial-gradient(circle at 100% 0%, rgba(113, 196, 219, 0.36), transparent 24%),
    radial-gradient(circle at 0% 100%, rgba(34, 125, 203, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #eef5fd 100%);
  color: #4f6383;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 148px;
  background: linear-gradient(120deg, #0a56a5 0%, #082f68 48%, #095887 100%);
}

.footer::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 131px;
  height: 92px;
  background: linear-gradient(180deg, #f5f9fe 0%, #ffffff 100%);
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  box-shadow: 0 20px 45px rgba(7, 45, 102, 0.06);
}

.footer__shell {
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.02fr 1.02fr 0.66fr;
  gap: 44px;
  align-items: start;
  padding: 0 22px 86px;
}

.footer__brand,
.footer__contact,
.footer__card {
  position: relative;
}

.footer__contact,
.footer__card {
  padding-left: 52px;
}

.footer__contact::before,
.footer__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(13, 70, 130, 0), rgba(13, 70, 130, 0.16), rgba(13, 70, 130, 0));
}

.footer__logo {
  width: min(100%, 300px);
  height: auto;
}

.footer__accent {
  display: block;
  width: 38px;
  height: 3px;
  margin: 18px 0 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1ca8ba 0%, #1174b8 100%);
}

.footer__brand-text {
  max-width: 290px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.72;
}

.footer__brand-text strong {
  color: #123b78;
}

.footer__title,
.footer__card-title {
  margin: 0;
  color: #123b78;
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 800;
}

.footer__contact-list {
  display: grid;
}

.footer__contact-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
  padding: 10px 0;
  color: #1f3d72;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 62, 119, 0.12);
  transition: color var(--transition), transform var(--transition);
}

.footer__contact-item:hover {
  color: #0c69a7;
  transform: translateX(3px);
}

.footer__contact-item--static:hover {
  color: #1f3d72;
  transform: none;
}

.footer__contact-item:last-child {
  border-bottom: none;
}

.footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef6ff 0%, #e3eefb 100%);
  color: #1174b8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(17, 116, 184, 0.08);
}

.footer__contact-item span:last-child {
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
}

.footer__card {
  max-width: 290px;
  margin-left: auto;
  padding: 26px 22px 20px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 116, 184, 0.1);
  box-shadow: 0 12px 30px rgba(7, 45, 102, 0.06);
  backdrop-filter: blur(6px);
}

.footer__card::before {
  display: none;
}

.footer__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #18a9ae;
  background: linear-gradient(180deg, rgba(28, 168, 186, 0.2), rgba(17, 116, 184, 0.08));
}

.footer__card .footer__accent {
  margin-left: auto;
  margin-right: auto;
}

.footer__card-text {
  max-width: 190px;
  margin: 0 auto 18px;
  font-size: 0.91rem;
  line-height: 1.6;
}

.footer__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  background: linear-gradient(90deg, #17b977 0%, #0e9f93 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(14, 159, 147, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.footer__card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(14, 159, 147, 0.3);
}

.footer__bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 22px 34px;
  color: rgba(255, 255, 255, 0.92);
}

.footer__bottom-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
}

.footer__bottom-item + .footer__bottom-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 30px;
}

.footer__bottom-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer__bottom-item span {
  color: rgba(255, 255, 255, 0.76);
}

.footer__bottom-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #57d0d2;
  background: rgba(43, 134, 212, 0.18);
}

.footer__bottom-item--social {
  gap: 12px;
  justify-content: flex-start;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition), opacity var(--transition);
}

.footer__social-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.18);
}

.footer__social:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer__social--linkedin {
  background: linear-gradient(180deg, #2ba7f0 0%, #0077b5 100%);
}

.footer__social--whatsapp {
  background: linear-gradient(180deg, #42dd72 0%, #1bb85b 100%);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero--split {
    min-height: 520px;
  }

  .hero--split .hero__content {
    max-width: min(480px, 58vw);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
    padding-right: 0;
  }

  .footer__card {
    grid-column: 1 / -1;
    max-width: 320px;
    justify-self: center;
    margin-left: 0;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }

  .footer__bottom-item + .footer__bottom-item {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .hero--split {
    min-height: auto;
  }

  .hero--split .hero__inner {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero__backdrop {
    background-position: 72% center;
  }

  .hero--split .hero__content {
    max-width: 100%;
    padding-top: 12px;
    padding-bottom: 280px;
  }

  .footer {
    padding-top: 56px;
  }

  .footer::before {
    height: 240px;
  }

  .footer::after {
    bottom: 214px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 58px;
  }

  .footer__contact,
  .footer__card {
    padding-left: 0;
  }

  .footer__contact::before {
    display: none;
  }

  .footer__card {
    max-width: none;
  }

  .footer__title,
  .footer__card-title {
    font-size: 1.6rem;
  }

  .footer__bottom {
    gap: 18px;
    padding: 20px 0 28px;
  }

  .footer__bottom-item {
    align-items: flex-start;
  }

  .footer__social-divider {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 24px;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  :root[data-theme="dark"] .nav {
    background: #07111f;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .nav__link {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav__list > li:first-child .nav__link--active {
    padding-left: 16px;
  }

  .nav__link--active::after {
    width: 8px;
    height: 8px;
  }

  .nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    margin-top: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height var(--transition);
  }

  .nav__dropdown.is-open {
    max-height: 200px;
    transform: none;
  }

  .header__actions .btn--ghost:not(.header-entry-menu__trigger) {
    display: none;
  }

  body.has-header-entry-actions .header__actions .btn--ghost {
    display: inline-flex !important;
  }

  .header__actions .theme-toggle {
    display: inline-grid !important;
  }

  .header__inner {
    flex-wrap: wrap;
  }

  .header__actions {
    order: 3;
    margin-left: auto;
    align-items: flex-end;
    flex-direction: column;
  }

  .header-entry-menu__trigger {
    display: inline-flex;
  }

  .header-admin-direct-link {
    display: inline-flex;
  }

  .header-entry-menu__dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #cfe0f3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 40px rgba(7, 59, 120, 0.18);
    z-index: 1200;
  }

  .header-entry-menu--always-open .header-entry-menu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    width: max-content;
    min-width: 210px;
    max-width: min(260px, calc(100vw - 32px));
    margin-top: 0;
  }

  .logo__img {
    margin-right: -12px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .about-psm__main {
    grid-template-columns: 1fr;
  }

  .about-psm__visual {
    min-height: 430px;
    order: -1;
  }

  .coordinators__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .internal-content__grid,
  .contact-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 72px;
    --spacing-x-tight: 16px;
    --spacing-x: 16px;
  }

  .logo__img {
    height: 44px;
    max-width: min(180px, 50vw);
  }

  .hero--split {
    padding-top: calc(var(--header-height) + 20px);
  }

  .hero--split .hero__inner {
    padding-bottom: 32px;
  }

  .hero--split > .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .header__actions .btn--primary span:not(svg) {
    display: none;
  }

  .header__actions .btn--primary {
    padding: 10px 14px;
  }

  .diferenciais {
    padding: 48px 0 72px;
  }

  .about-psm {
    padding: 48px 0 64px;
  }

  .about-psm__main {
    gap: 28px;
  }

  .about-psm__visual {
    min-height: 290px;
    border-radius: 14px;
  }

  .about-psm__title {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 16px;
  }

  .coordinators {
    padding: 18px 14px;
  }

  .coordinators__grid {
    grid-template-columns: 1fr;
  }

  .footer__logo {
    width: min(100%, 260px);
  }

  .footer__brand-text,
  .footer__contact-item span:last-child,
  .footer__card-text,
  .footer__bottom-item p {
    font-size: 0.94rem;
  }

  .footer__contact-item {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }

  .footer__contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

.footer__bottom-item--social {
  flex-wrap: wrap;
}
}

.footer--legacy {
  display: none !important;
}

.psm-footer {
  display: none !important;
}

.simple-footer {
  width: 100%;
  min-height: 72px;
  padding: 0;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: #07366f;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.simple-footer .container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.psm-footer {
  position: relative;
  overflow: hidden;
  padding-top: 52px;
  background:
    radial-gradient(circle at 10% 72%, rgba(184, 216, 248, 0.36), transparent 28%),
    radial-gradient(circle at 96% 6%, rgba(158, 219, 240, 0.42), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.psm-footer__glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 8%, rgba(196, 223, 249, 0.58) 24%, transparent 39%),
    linear-gradient(125deg, transparent 28%, rgba(207, 230, 251, 0.34) 42%, transparent 56%);
  pointer-events: none;
  opacity: 0.95;
}

.psm-footer__container {
  position: relative;
  z-index: 2;
}

.psm-footer__top {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(350px, 1fr) 320px;
  gap: 34px;
  align-items: start;
  padding-bottom: 132px;
}

.psm-footer__column--brand,
.psm-footer__column--contact {
  padding-right: 34px;
  border-right: 1px solid rgba(21, 69, 129, 0.12);
}

.psm-footer__brand-image {
  display: block;
  width: min(100%, 350px);
  height: auto;
  margin-bottom: 12px;
}

.psm-footer__accent {
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #1ba7c2 0%, #1d86d6 100%);
}

.psm-footer__accent--center {
  margin-left: auto;
  margin-right: auto;
}

.psm-footer__brand-text {
  max-width: 320px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #617799;
}

.psm-footer__brand-text strong {
  color: #173f84;
  font-weight: 800;
}

.psm-footer__title,
.psm-footer__support-title {
  margin: 0 0 6px;
  color: #133f84;
  font-size: 1rem;
  font-weight: 800;
}

.psm-footer__contact-list {
  display: flex;
  flex-direction: column;
}

.psm-footer__contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(21, 69, 129, 0.12);
  color: #254d8d;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.28;
}

.psm-footer__contact-item:last-child {
  border-bottom: 0;
}

.psm-footer__contact-item--static {
  align-items: start;
}

.psm-footer__contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eff6fd 0%, #e3eefb 100%);
  color: #1778d0;
  box-shadow: 0 12px 24px rgba(32, 91, 164, 0.08);
}

.psm-footer__support {
  padding: 16px 18px 16px;
  border: 1px solid rgba(21, 69, 129, 0.1);
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(27, 67, 126, 0.08);
}

.psm-footer__support-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dff4f7;
  color: #16a9b1;
}

.psm-footer__support-text {
  margin: 0 0 10px;
  color: #687ea1;
  font-size: 0.88rem;
  line-height: 1.42;
}

.psm-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 800;
  background: linear-gradient(90deg, #1fbe79 0%, #1597b6 100%);
  box-shadow: 0 18px 28px rgba(18, 150, 173, 0.2);
}

.psm-footer__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 114px;
  height: 128px;
  z-index: 1;
  pointer-events: none;
}

.psm-footer__wave {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 100%;
}

.psm-footer__wave path {
  animation: psmFooterWaveFloat 12s ease-in-out infinite;
  filter: none;
}

.psm-footer__wave--back {
  bottom: -48px;
  opacity: 1;
}

.psm-footer__wave--back path {
  fill: #2158a3;
  animation-duration: 16s;
}

.psm-footer__wave--mid {
  bottom: -30px;
}

.psm-footer__wave--mid path {
  fill: #17488d;
  animation-duration: 13s;
  animation-direction: reverse;
}

.psm-footer__wave--front {
  bottom: -14px;
}

.psm-footer__wave--front path {
  fill: #103f82;
}

.psm-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 114px;
  background: linear-gradient(90deg, #1d4f9a 0%, #0b3278 42%, #0d4b86 68%, #166892 100%);
  z-index: 0;
  box-shadow: none;
}

.psm-footer__bottom {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 24px;
  background: linear-gradient(90deg, #1d4f9a 0%, #0b3278 42%, #0d4b86 68%, #166892 100%);
  color: #ffffff;
}

.psm-footer__bottom-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.psm-footer__bottom-item + .psm-footer__bottom-item {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 32px;
}

.psm-footer__bottom-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.5;
}

.psm-footer__bottom-item p span {
  color: rgba(255, 255, 255, 0.82);
}

.psm-footer__bottom-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  background: rgba(33, 113, 208, 0.22);
  color: #21e6d7;
}

.psm-footer__bottom-item--social {
  justify-content: flex-end;
}

.psm-footer__social {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(2, 21, 52, 0.18);
}

.psm-footer__social--linkedin {
  background: linear-gradient(180deg, #2fb7f2 0%, #0f89d5 100%);
}

.psm-footer__social--whatsapp {
  background: linear-gradient(180deg, #49dc5f 0%, #2cc160 100%);
}

.psm-footer__social-divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.22);
}

@keyframes psmFooterWaveFloat {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-22px) translateY(8px);
  }
}

@media (max-width: 1100px) {
  .psm-footer__top {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 148px;
  }

  .psm-footer__column--brand,
  .psm-footer__column--contact {
    padding-right: 0;
    border-right: 0;
  }

  .psm-footer__support {
    max-width: 420px;
  }

  .psm-footer__bottom {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .psm-footer__bottom-item + .psm-footer__bottom-item {
    border-left: 0;
    padding-left: 0;
  }

  .psm-footer__bottom-item--social {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .psm-footer {
    padding-top: 44px;
  }

  .psm-footer__top {
    gap: 18px;
    padding-bottom: 134px;
  }

  .psm-footer__brand-image {
    width: min(100%, 320px);
  }

  .psm-footer__brand-text,
  .psm-footer__support-text,
  .psm-footer__contact-item,
  .psm-footer__bottom-item p {
    font-size: 0.95rem;
  }

  .psm-footer__contact-item {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .psm-footer__contact-icon {
    width: 42px;
    height: 42px;
  }

  .psm-footer__support {
    padding: 24px 20px 20px;
  }

  .psm-footer__waves {
    bottom: 102px;
    height: 112px;
  }

  .psm-footer::after {
    height: 106px;
  }

  .psm-footer__bottom-item {
    align-items: flex-start;
  }
}

:root[data-theme="dark"] body {
  background: #07111f;
}

:root[data-theme="dark"] .header {
  background: #07111f;
  border-bottom-color: rgba(79, 195, 255, 0.12);
  backdrop-filter: none;
  box-shadow: none;
}

:root[data-theme="dark"] .header--scrolled {
  box-shadow: none;
}

:root[data-theme="dark"] .nav,
:root[data-theme="dark"] .nav__dropdown {
  background-color: transparent;
}

:root[data-theme="dark"] .internal-page,
:root[data-theme="dark"] .internal-content,
:root[data-theme="dark"] .about-psm,
:root[data-theme="dark"] .medical-page,
:root[data-theme="dark"] .work-medicine-page {
  background-color: #07111f;
}

:root[data-theme="dark"] .nav__link,
:root[data-theme="dark"] .btn--ghost {
  color: #e8f2ff;
}

:root[data-theme="dark"] .nav-toggle span {
  background: #e8f2ff;
}

:root[data-theme="dark"] .nav__link:hover,
:root[data-theme="dark"] .btn--ghost:hover {
  color: #8edaff;
  background: #0d1b2d;
}

:root[data-theme="dark"] .nav__link--active,
:root[data-theme="dark"] .nav__link--active:hover {
  color: #7bd4ff;
  background: #10243a;
}

:root[data-theme="dark"] .nav__dropdown {
  border-color: #213a57;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .nav__dropdown a {
  color: #dceaff;
}

:root[data-theme="dark"] .nav__dropdown a:hover {
  color: #8edaff;
  background: #0d1b2d;
}

:root[data-theme="dark"] .header-entry-menu__dropdown {
  background: rgba(11, 23, 40, 0.98);
  border-color: #213a57;
}

:root[data-theme="dark"] .header-entry-menu__link {
  color: #e8f2ff;
}

:root[data-theme="dark"] .header-entry-menu__link:hover,
:root[data-theme="dark"] .header-entry-menu__link:focus-visible {
  color: #8edaff;
  background: #10243a;
}

:root[data-theme="dark"] .internal-card,
:root[data-theme="dark"] .coordinators,
:root[data-theme="dark"] .coordinator-card,
:root[data-theme="dark"] .about-pillar {
  color: #e8f2ff;
  background: #0b1728;
  border-color: #213a57;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .internal-card h2,
:root[data-theme="dark"] .internal-card h3,
:root[data-theme="dark"] .coordinator-card h3,
:root[data-theme="dark"] .about-pillar h3 {
  color: #e8f2ff;
}

:root[data-theme="dark"] .internal-card p,
:root[data-theme="dark"] .internal-card li,
:root[data-theme="dark"] .coordinator-card p,
:root[data-theme="dark"] .about-pillar p {
  color: #a9bdd4;
}

:root[data-theme="dark"] .simple-footer {
  color: #ffffff;
  background: #07366f;
}

