/* Rio Ave - Theme overrides: brand palette */
:root, [data-bs-theme="light"] {
  /* Brand primary: Azul Fundo do Mar */
  --bs-primary: #005E71 !important;
  --bs-primary-rgb: 0, 94, 113 !important;
  --bs-link-color: #005E71 !important;
  --bs-link-hover-color: #0B7F96 !important;

  /* Secondary accent: Azul Céu */
  --bs-secondary: #5DAAAB !important;
  --bs-secondary-rgb: 93, 170, 171 !important;

  /* Light and Dark anchors from palette */
  --bs-light: #E5EBDD !important; /* Branco Nuvem */
  --bs-dark: #1A253C !important;  /* Azul Escuro */

  /* Component helpers used by theme */
  --bs-primary-active: #004657 !important; /* darker primary */
  --bs-primary-light: #E0F2F4 !important;  /* subtle bg tint of primary */
  --bs-primary-inverse: #ffffff !important;
  --bs-primary-clarity: rgba(0, 94, 113, 0.2) !important;
}

[data-bs-theme="dark"] {
  /* Dark background and text based on Azul Escuro + Branco Nuvem */
  --bs-body-bg: #1A253C !important;
  --bs-body-color: #E5EBDD !important;
  --bs-heading-color: #E5EBDD !important;

  /* Use lighter accent for contrast on dark */
  --bs-primary: #5DAAAB !important; /* Azul Céu */
  --bs-primary-rgb: 93, 170, 171 !important;
  --bs-link-color: #5DAAAB !important;
  --bs-link-hover-color: #7CCBCD !important;

  --bs-secondary: #005E71 !important; /* Azul Fundo do Mar */
  --bs-secondary-rgb: 0, 94, 113 !important;

  --bs-light: #E5EBDD !important;
  --bs-dark: #1A253C !important;

  --bs-primary-active: #4A9495 !important;
  --bs-primary-light: #0E1F27 !important;
  --bs-primary-inverse: #1A253C !important;
  --bs-primary-clarity: rgba(93, 170, 171, 0.2) !important;
}
