/**
 * Setor Seguro — páginas de produto (seguros/*) alinhadas à home premium.
 * Carregar por último: brand → theme-bridge → ss-shell → este arquivo.
 */
:root {
  --yellow: var(--ss-brand-gold, #ffd002);
  --ink: #e5f0ff;
  --muted: #94a3b8;
  --bg: #020617;
  --card: #020b2a;
  --surface-1: #020b2a;
  --surface-2: #020617;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
  --header-height: var(--ss-header-h-desktop, 88px);
  --wa: #25d366;
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--ss-header-h-mobile, 64px);
  }
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.ss-premium-page {
  margin: 0;
  padding-top: var(--header-offset, var(--header-height));
  font-family: var(--ss-font-body, Inter, system-ui, sans-serif);
  background: #020617;
  color: var(--ink);
}

[data-theme="light"] body.ss-premium-page {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #f8fafc, #eef2f7 42%, #f8fafc);
}

body.ss-premium-page .container {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 0 16px;
}

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

.muted {
  color: var(--muted);
}

/* ——— Header premium alinhado à home ——— */
body.ss-premium-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  padding: 10px 0;
  display: flex;
  align-items: center;
  z-index: 9999;
  background: linear-gradient(140deg, rgba(7, 16, 36, 0.84), rgba(2, 8, 24, 0.68));
  backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid rgba(255, 208, 2, 0.3);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] body.ss-premium-page .site-header {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 252, 0.78));
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.ss-premium-page .nav {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
}

body.ss-premium-page .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.ss-premium-page .brand img {
  height: var(--ss-logo-h-desktop, 72px);
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(2, 6, 23, 0.14));
}

body.ss-premium-page .menu {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 8px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.38), rgba(2, 6, 23, 0.24));
}

[data-theme="light"] body.ss-premium-page .menu {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.86));
  border-color: rgba(15, 23, 42, 0.12);
}

body.ss-premium-page .nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

body.ss-premium-page .nav-link .iconify {
  width: 20px;
  height: 20px;
}

.theme-toggle {
  margin-left: 8px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.88));
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.12);
  transition: 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px) scale(1.04);
}

.theme-toggle .iconify {
  width: 22px;
  height: 22px;
  color: #0b1220;
}

[data-theme="light"] .theme-toggle {
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border-color: rgba(15, 23, 42, 0.12);
}

/* ——— Hero cinematográfico (primeira section.hero no main) ——— */
body.ss-premium-page main > section.hero:first-of-type {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-offset, var(--header-height)));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px 0 72px;
  margin: 0;
}

body.ss-premium-page main > section.hero:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Mesma imagem estável da home (ficheiro local em /assets pode não existir no deploy) */
  background: url("https://images.unsplash.com/photo-1556740758-90de374c12ad?auto=format&fit=crop&w=2200&q=80") center / cover no-repeat;
}

body.ss-premium-page main > section.hero:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.88) 0%,
      rgba(2, 6, 23, 0.72) 38%,
      rgba(2, 6, 23, 0.34) 68%,
      rgba(2, 6, 23, 0.12) 100%
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.35) 0%, rgba(2, 6, 23, 0.05) 42%, rgba(2, 6, 23, 0.78) 100%);
}

/* Hero legível no tema claro (mesma “capa” escura por cima da foto — como na home) */
[data-theme="light"] body.ss-premium-page main > section.hero:first-of-type::after {
  background:
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.9) 0%,
      rgba(2, 6, 23, 0.78) 40%,
      rgba(2, 6, 23, 0.4) 72%,
      rgba(2, 6, 23, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.45) 0%, rgba(2, 6, 23, 0.08) 45%, rgba(2, 6, 23, 0.82) 100%);
}

body.ss-premium-page main > section.hero:first-of-type .container {
  position: relative;
  z-index: 2;
}

body.ss-premium-page main > section.hero:first-of-type h1 {
  margin: 0 0 16px;
  font-family: var(--ss-font-display, inherit);
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #f8fafc;
}

body.ss-premium-page main > section.hero:first-of-type h1 span {
  color: var(--yellow);
}

body.ss-premium-page main > section.hero:first-of-type p {
  margin: 0 0 12px;
  max-width: 70ch;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

body.ss-premium-page main > section.hero:first-of-type .muted {
  color: rgba(148, 163, 184, 0.95);
}

body.ss-premium-page main > section.hero:first-of-type a[style*="color"] {
  color: #7dd3fc !important;
}

/* ——— Seções ——— */
body.ss-premium-page main > section {
  padding: 72px 0;
  background: #020617;
}

body.ss-premium-page main > section:nth-of-type(even):not(:first-of-type) {
  background: #030c1f;
}

body.ss-premium-page main > section h2 {
  font-family: var(--ss-font-display, inherit);
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

body.ss-premium-page main > section h3 {
  font-family: var(--ss-font-display, inherit);
  margin-top: 0;
  color: #f8fafc;
}

/* ——— Grid / cards ——— */
body.ss-premium-page .grid {
  display: grid;
  gap: 20px;
}

body.ss-premium-page .grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

body.ss-premium-page .grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  body.ss-premium-page .grid-3,
  body.ss-premium-page .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body.ss-premium-page .grid-3,
  body.ss-premium-page .grid-2 {
    grid-template-columns: 1fr;
  }
}

body.ss-premium-page main > section:not(:first-of-type) .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.18);
}

body.ss-premium-page main > section:not(:first-of-type) .card p {
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.55;
}

body.ss-premium-page .ss-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.ss-premium-page .ss-card-title .iconify {
  width: 20px;
  height: 20px;
  color: #facc15;
  flex: 0 0 auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

body.ss-premium-page .card:hover .ss-card-title .iconify {
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 8px 16px rgba(250, 204, 21, 0.25));
}

/* ——— Botões ——— */
body.ss-premium-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff7c0, var(--yellow), #ff9f0a);
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  border: none;
  font: inherit;
  cursor: pointer;
}

body.ss-premium-page .btn .iconify {
  width: 20px;
  height: 20px;
}

body.ss-premium-page main > section.hero:first-of-type .btn {
  margin-top: 8px;
}

body.ss-premium-page .btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  font: inherit;
  cursor: pointer;
}

body.ss-premium-page .btn-soft .iconify {
  width: 20px;
  height: 20px;
}

body.ss-premium-page main > section:not(:first-of-type) .btn-soft {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #e5e7eb;
}

/* ——— FAQ ——— */
body.ss-premium-page details {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

body.ss-premium-page summary {
  cursor: pointer;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #f8fafc;
}

body.ss-premium-page summary .plus {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e5e7eb;
  flex: 0 0 auto;
}

body.ss-premium-page details p {
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.5;
}

/* ——— Listas com ícones ——— */
body.ss-premium-page ul.list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

body.ss-premium-page ul.list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

body.ss-premium-page ul.list .iconify {
  width: 22px;
  height: 22px;
  color: var(--yellow);
  margin-top: 2px;
  flex: 0 0 auto;
}

body.ss-premium-page ul.list div {
  min-width: 0;
}

/* ——— Rodapé (igual à home) ——— */
body.ss-premium-page footer {
  padding: 22px 0 26px;
  color: #94a3b8;
  border-top: 1px solid rgba(30, 64, 175, 0.65);
  background: radial-gradient(circle at top, var(--surface-2, #020b2a), var(--bg, #020617) 70%);
}

[data-theme="light"] body.ss-premium-page footer {
  color: #64748b;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: radial-gradient(circle at top, #ffffff, var(--bg, #f8fafc) 70%);
}

body.ss-premium-page footer .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

body.ss-premium-page footer .foot img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.9));
}

[data-theme="light"] body.ss-premium-page footer .foot img {
  filter: drop-shadow(0 10px 22px rgba(2, 6, 23, 0.14));
}

body.ss-premium-page footer .social {
  display: flex;
  gap: 0.7rem;
}

body.ss-premium-page footer .social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at top left,
    color-mix(in srgb, var(--surface-1, #020b2a) 92%, #ffffff 8%),
    var(--surface-2, #020617) 80%
  );
  color: #e2e8f0;
  text-decoration: none;
}

body.ss-premium-page footer .social a:hover {
  color: #f8fafc;
}

[data-theme="light"] body.ss-premium-page footer .social a {
  border-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  color: #0f172a;
}

body.ss-premium-page footer .social .iconify {
  width: 22px;
  height: 22px;
}

body.ss-premium-page .ss-foot-copy {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.5;
}

body.ss-premium-page .ss-foot-portais {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-top: 6px;
}

body.ss-premium-page .ss-foot-portais a {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

body.ss-premium-page .ss-foot-portais a:hover {
  text-decoration: underline;
  color: #cbd5e1;
}

[data-theme="light"] body.ss-premium-page .ss-foot-portais a {
  color: #64748b;
}

body.ss-premium-page .ss-foot-portais > span[aria-hidden="true"] {
  color: #475569;
  user-select: none;
}

/* ——— FAB WhatsApp (classe da home) ——— */
body.ss-premium-page .fab-whats {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  z-index: 99999;
  transition: 0.2s;
  text-decoration: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

body.ss-premium-page .fab-whats:hover {
  transform: translateY(-3px);
}

body.ss-premium-page .fab-whats .iconify {
  width: 22px;
  height: 22px;
}

/* Legado: wa-fab → mesmo visual do FAB da home */
body.ss-premium-page .wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

body.ss-premium-page .wa-fab .iconify {
  width: 22px;
  height: 22px;
}

@supports (padding: max(0px)) {
  body.ss-premium-page .fab-whats,
  body.ss-premium-page .wa-fab {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: max(14px, env(safe-area-inset-right));
  }
}

/* ——— Hero: texto claro em ambos os temas (foto continua escurecida) ——— */
[data-theme="light"] body.ss-premium-page main > section.hero:first-of-type h1,
[data-theme="light"] body.ss-premium-page main > section.hero:first-of-type h1 span,
[data-theme="light"] body.ss-premium-page main > section.hero:first-of-type p,
[data-theme="light"] body.ss-premium-page main > section.hero:first-of-type .muted {
  color: #f8fafc;
}

[data-theme="light"] body.ss-premium-page main > section.hero:first-of-type .muted {
  color: rgba(226, 232, 240, 0.88);
}

/* ——— Tema claro: corpo das páginas em superfícies claras (como a home) ——— */
[data-theme="light"] body.ss-premium-page main > section:not(.hero) {
  background: #f8fafc;
  color: #0b1220;
}

[data-theme="light"] body.ss-premium-page main > section:nth-of-type(even):not(.hero) {
  background: #eef2f7;
}

[data-theme="light"] body.ss-premium-page main > section:not(.hero) h2,
[data-theme="light"] body.ss-premium-page main > section:not(.hero) h3 {
  color: #0f172a;
}

[data-theme="light"] body.ss-premium-page main > section:not(.hero) summary {
  color: #0f172a;
}

[data-theme="light"] body.ss-premium-page main > section:not(.hero) .section-title {
  color: #0f172a;
}

[data-theme="light"] body.ss-premium-page main > section:not(.hero) .crumbs,
[data-theme="light"] body.ss-premium-page main > section:not(.hero) .crumbs a {
  color: #334155;
}

[data-theme="light"] body.ss-premium-page main > section:not(:first-of-type) .card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08), 0 4px 12px rgba(2, 6, 23, 0.05);
}

[data-theme="light"] body.ss-premium-page main > section:not(:first-of-type) .card p {
  color: #334155;
}

[data-theme="light"] body.ss-premium-page main > section:not(:first-of-type) .card .chip {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
  color: #0369a1;
}

[data-theme="light"] body.ss-premium-page details {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] body.ss-premium-page details p {
  color: #475569;
}

/* ——— Hub /seguros/ (lista de modalidades) ——— */
body.ss-premium-page .section-title {
  font-size: clamp(1.55rem, 2.3vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 12px;
  color: #f8fafc;
}

body.ss-premium-page .crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.92);
}

body.ss-premium-page .crumbs .sep {
  opacity: 0.55;
}

body.ss-premium-page .crumbs .iconify {
  width: 18px;
  height: 18px;
  vertical-align: -0.15em;
}

body.ss-premium-page main > section.hero:first-of-type .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  margin-bottom: 1rem;
}

body.ss-premium-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff7c0, var(--yellow), #ff9f0a);
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

body.ss-premium-page .btn-primary .iconify {
  width: 20px;
  height: 20px;
}

body.ss-premium-page .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  backdrop-filter: blur(12px);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

body.ss-premium-page .btn-ghost .iconify {
  width: 20px;
  height: 20px;
}

body.ss-premium-page main > section:not(:first-of-type) .card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

body.ss-premium-page main > section:not(:first-of-type) .card .card-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 208, 2, 0.12);
  border: 1px solid rgba(255, 208, 2, 0.28);
  color: #facc15;
}

body.ss-premium-page main > section:not(:first-of-type) .card .card-ico .iconify {
  width: 24px;
  height: 24px;
}

body.ss-premium-page main > section:not(:first-of-type) .card .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #bae6fd;
}

body.ss-premium-page main > section:not(:first-of-type) .card .chip .iconify {
  width: 16px;
  height: 16px;
}

body.ss-premium-page main > section:not(:first-of-type) .card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 14px;
  font-weight: 800;
  font-size: 0.92rem;
  color: #facc15;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

body.ss-premium-page main > section:not(:first-of-type) .card .more:hover {
  transform: translateX(4px);
  color: #fde047;
}

body.ss-premium-page main > section:not(:first-of-type) .card .more .iconify {
  width: 18px;
  height: 18px;
}
