/* ===============================
   SABIA QUE? – ULTRA PREMIUM
   =============================== */

:root {
  /* Brand */
  --primary: #005b99;
  --primary-light: #3399ff;

  /* Overlays */
  --overlay-soft-start: rgba(0, 91, 153, 0.08);
  --overlay-soft-end: rgba(0, 91, 153, 0.18);
  --overlay-strong: rgba(0, 91, 153, 0.45);

  /* Borders */
  --border-soft: rgba(0, 91, 153, 0.12);
  --border-hover: rgba(0, 91, 153, 0.28);

  /* Text */
  --text-dark: #0f172a;
  --text-medium: #475569;

  /* Background */
  --bg-light: #f4f8fb;

  /* Radius */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;

  /* Shadows */
  --shadow-soft: 0 6px 22px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 22px 50px rgba(0, 0, 0, 0.09);
}

/* ===============================
   HERO (REGRA: SEMPRE À ESQUERDA)
   =============================== */

.sabia-hero {
  background:
    linear-gradient(
      90deg,
      rgba(0, 60, 110, 0.88) 0%,
      rgba(0, 60, 110, 0.65) 35%,
      rgba(0, 60, 110, 0.30) 60%,
      rgba(0, 60, 110, 0.08) 100%
    ),
    url("../../images/sabia-hero.png") center / cover no-repeat;

  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  padding: 0 24px;
  color: #fff;
}

.sabia-hero-content {
  max-width: 720px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start !important;
  text-align: left !important;
  margin-left: 0;
}

.sabia-hero-content h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
}

.highlight {
  color: #6ec1ff;
}

.sabia-hero-content p {
  font-size: 1.25rem;
  line-height: 1.65;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ===============================
   CABEÇALHO
   =============================== */

.sabia-section-header {
  max-width: 780px;
  margin: 4.5rem 0 3.2rem;
}

.sabia-section-header h2 {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  padding-left: 48px;
}

.sabia-section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 4px;
  background: var(--primary);
  border-radius: 999px;
}

.sabia-section-header p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-medium);
  max-width: 720px;
}

/* ===============================
   GRID PRINCIPAL
   =============================== */

.sabia-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3rem;
  margin-bottom: 4.5rem;
}

/* ===============================
   CARDS
   =============================== */

.sabia-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.sabia-card {
  background: #fff;
  padding: 2.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
}

.sabia-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Ícone + micro-animação */
.sabia-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.35s ease;
}

.sabia-card:hover .sabia-icon-box {
  transform: translateY(-2px) scale(1.05);
  background-color: rgba(0, 91, 153, 0.08);
}

.sabia-icon-box i {
  color: var(--primary);
  font-size: 1.15rem;
  transition: transform 0.35s ease, color 0.35s ease;
}

.sabia-card:hover .sabia-icon-box i {
  transform: scale(1.1);
}

/* Tag */
.sabia-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 0.35rem;
  transition: letter-spacing 0.3s ease, opacity 0.3s ease;
}

.sabia-card:hover .sabia-tag {
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.sabia-card h3 {
  font-size: 1.12rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.sabia-card p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ===============================
   IMAGEM LATERAL
   =============================== */

.sabia-image-side {
  background: url("../../images/sabia-que.jpg") center / cover no-repeat;
  border-radius: var(--radius-xl);
  min-height: 640px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.12);
}

/* ===============================
   BLOCO FINAL
   =============================== */

.sabia-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 4.5rem;
}

/* Texto final */
.sabia-conclusao {
  position: relative;
  background: #f8fbff;
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 1.2rem;
}

.sabia-conclusao::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  background: var(--primary);
  border-radius: 999px;
}

.sabia-icon {
  font-size: 1.4rem;
  color: var(--primary);
  opacity: 0.3;
}

.sabia-conclusao p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-medium);
  margin: 0;
}

/* ===============================
   CONTACTOS
   =============================== */

.contactos-rapidos {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contactos-rapidos h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 1.6rem;
}

.contacto-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contacto-item i {
  font-size: 1.15rem;
  color: var(--primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.contacto-item:hover i {
  transform: scale(1.15);
}

/* ===============================
   ACESSIBILIDADE
   =============================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===============================
   RESPONSIVIDADE
   =============================== */

@media (max-width: 1024px) {
  .sabia-hero-content h1 {
    font-size: 2.7rem;
  }

  .sabia-hero-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 900px) {
  .sabia-grid,
  .sabia-bottom {
    grid-template-columns: 1fr;
  }

  .sabia-cards {
    grid-template-columns: 1fr;
  }

  .sabia-image-side {
    min-height: 300px;
    border-radius: var(--radius-lg);
  }

  .sabia-hero {
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  .sabia-hero-content {
    padding-left: 0;
  }

  .sabia-hero-content h1 {
    font-size: 2.1rem;
  }

  .sabia-hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .sabia-hero-content h1 {
    font-size: 1.7rem;
  }

  .sabia-hero-content p {
    font-size: 0.9rem;
  }
}
