:root {
  --brand-primary: #0d47a1;
  --brand-secondary: #2196f3;
  --brand-dark: #0b1d33;
  --brand-light: #e6f0fa;
  --brand-bg-light: #f9fafc;
  --brand-gradient: linear-gradient(135deg, #0d47a1, #1565c0);
  --brand-alert: #c22734;
  --brand-alert-hover: #a71d2a;
  --brand-alert-soft: #fdecef;
  --bs-danger: var(--brand-alert);
  --bs-danger-rgb: 194, 39, 52;
  --bs-danger-text-emphasis: #66111a;
  --bs-danger-bg-subtle: var(--brand-alert-soft);
  --bs-danger-border-subtle: #f6c8cf;
}

html {
  font-size: 16px;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--brand-bg-light);
  color: #1f2937;
  line-height: 1.6;
}

.text-danger,
.price-discount {
  color: var(--brand-alert) !important;
}

.bg-danger,
.text-bg-danger,
.badge.bg-danger,
.badge.text-bg-danger {
  background-color: var(--brand-alert) !important;
  color: #fff !important;
}

.alert-danger {
  color: var(--bs-danger-text-emphasis) !important;
  background-color: var(--brand-alert-soft) !important;
  border-color: var(--bs-danger-border-subtle) !important;
}

.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-alert);
  --bs-btn-border-color: var(--brand-alert);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-alert-hover);
  --bs-btn-hover-border-color: var(--brand-alert-hover);
  --bs-btn-focus-shadow-rgb: var(--bs-danger-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #881521;
  --bs-btn-active-border-color: #881521;
  --bs-btn-disabled-bg: #d8939b;
  --bs-btn-disabled-border-color: #d8939b;
}

.btn-outline-danger {
  --bs-btn-color: var(--brand-alert);
  --bs-btn-border-color: var(--brand-alert);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-alert);
  --bs-btn-hover-border-color: var(--brand-alert);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #881521;
  --bs-btn-active-border-color: #881521;
  --bs-btn-disabled-color: #d8939b;
  --bs-btn-disabled-border-color: #d8939b;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

p {
  margin-bottom: 1em;
}

main ul li,
main ol li {
  margin-bottom: 0.5em;
}

main ul.pagination li {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h4,
h5,
h6 {
  line-height: 1.3;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 3px;
}

.badge-contrast {
  background-color: #ffffff;
  color: var(--brand-primary);
  border: 1px solid rgba(13, 71, 161, 0.18);
  letter-spacing: 0.08em;
}

.body-copy {
  font-size: 1rem !important;
  line-height: 1.6;
}

.text-muted {
  color: #4c5765 !important;
}

.container-wide {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-spacious {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (max-width: 575.98px) {
  .section-spacious {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1200px) {
  .section-spacious {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

:is(.card-modern, .project-card, .apoio-card, .produto-card, .depoimento-card, .contact-card) {
  background: var(--brand-bg-light);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

:is(.card-modern, .project-card, .apoio-card, .produto-card, .depoimento-card, .contact-card):hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(13, 71, 161, 0.15);
  filter: brightness(1.05);
}

.navbar-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.footer-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.navbar-brand .brand-name {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar.bg-primary {
  background: var(--brand-gradient);
}

.nav-link {
  font-weight: 500;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  position: relative;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.navbar-nav {
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }
}


.nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.4rem;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--brand-secondary) !important;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  background-color: var(--brand-secondary);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

section.py-5 {
  position: relative;
}

.hero {
  background: var(--brand-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 5rem 1.5rem;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero .hero-inner {
  max-width: 720px;
}

.hero .hero-lead {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    width: 48px;
    height: 48px;
  }

  .navbar-brand .brand-name {
    font-size: 1rem;
  }

  .hero {
    padding: 4rem 1.25rem;
    min-height: 0;
  }

  .hero .display-4 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero .hero-lead {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 5.5rem 2rem;
    justify-content: flex-start;
    text-align: left;
  }

  .hero .hero-inner {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    background: rgba(11, 29, 51, 0.96);
    border-radius: 14px;
    padding: 1rem;
    margin-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0.75rem !important;
  }
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

@media (min-width: 1200px) {
  .hero {
    padding: 7rem 3rem;
  }

  .hero .hero-inner {
    max-width: 800px;
  }
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-outline-light {
  color: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.65);
  background-color: transparent;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn-outline-light:focus-visible {
  outline-color: #ffffff;
  outline-offset: 4px;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.25);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--brand-dark);
  background-color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

.footer-top {
  background: linear-gradient(160deg, var(--brand-dark), #09192a);
}

.footer-bottom {
  background-color: #f8f9fa;
  padding: 20px 0;
}

.footer-institutional-text {
  color: #555 !important;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

.footer-institutional-text strong {
  font-weight: 600;
}

.footer-institutional-text .footer-dev-link {
  color: #0d47a1;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-institutional-text .footer-dev-link:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-links a,
.footer-link {
  color: #e8eef7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-link:hover {
  color: var(--brand-secondary);
}

.social-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(11, 29, 51, 0.72);
  color: #f8fbff;
  font-size: 1.25rem;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
  background-color: var(--brand-secondary);
  color: #06142b;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.35);
}

.alert a {
  color: inherit;
  font-weight: 600;
}

.alert a:hover {
  text-decoration: underline;
}

.project-section {
  background-color: var(--brand-bg-light);
}

.project-section-title {
  color: #0d47a1;
}

.project-section-subtitle {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card .card-body {
  padding: 2rem;
}

.project-card .card-img-top {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-color: #ffffff;
}

.project-card .card-title {
  color: var(--brand-primary);
  font-weight: 600;
}

.project-card .card-text {
  color: #475569;
}

.project-card-img {
  width: 100%;
  display: block;
}

.apoio-section {
  background-color: #f8fafc;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.apoio-section-header {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.apoio-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.apoio-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.apoio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.apoio-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #fafafa 0%, #f2f4f8 100%);
  padding: 4px;
  box-sizing: border-box;
}


.apoio-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.apoio-card:hover img {
  transform: scale(1.03) rotate(0.5deg);
  filter: brightness(1.05);
}

.apoio-card-body {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.apoio-card-title {
  color: var(--brand-primary);
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.apoio-card-description {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.apoio-card-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.apoio-card-link:hover,
.apoio-card-link:focus {
  text-decoration: underline;
}

.volunteer-card-img {
  height: 220px;
  object-fit: cover;
}

.depoimento-card video {
  object-fit: contain;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  background-color: #000;
}

.pix-qrcode-img {
  max-width: 220px;
}

.loja-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.loja-hero {
  background: linear-gradient(135deg, rgba(29, 78, 137, 0.1), rgba(66, 170, 255, 0.12));
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
}

.vitrine-heading {
  color: var(--brand-primary);
  line-height: 1.4;
}

.vitrine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-content: center;
}

.produto-card {
  padding: 0;
  overflow: hidden;
  max-width: 350px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.produto-media {
  display: block;
  background-color: #f1f5f9;
}

.produto-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.produto-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  background-color: #dbe7f5;
  color: var(--brand-primary);
  font-size: 2rem;
}

.produto-info {
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.produto-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.produto-descricao {
  color: #4c5765;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.produto-preco {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d4e89;
}

.produto-frete {
  color: #334155;
  font-size: 1rem;
}

.produto-frete strong {
  color: #0d6efd;
}

.produto-acoes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.produto-acoes .btn,
.produto-acoes button {
  width: 100%;
}

.btn-detalhes {
  border: 1px solid #d0d7e2;
  background: #ffffff;
  color: var(--brand-primary);
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 16px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-detalhes:not([aria-disabled="true"]):hover,
.btn-detalhes:not([aria-disabled="true"]):focus {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
}

.btn-detalhes.btn-disabled,
.btn-detalhes[aria-disabled="true"] {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #475569;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn-comprar {
  background: var(--brand-primary);
  border: none;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-comprar:hover,
.btn-comprar:focus {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(13, 71, 161, 0.3);
}

.btn-detalhes:focus-visible,
.btn-comprar:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 3px;
}

.produto-card:hover .btn-comprar {
  transform: translateY(-2px) scale(1.02);
}

.produto-card:hover .btn-comprar:hover {
  transform: translateY(-3px) scale(1.03);
}

@media (min-width: 576px) {
  .loja-container {
    padding: 32px;
  }
}

@media (min-width: 768px) {
  .vitrine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .vitrine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.store-product-media {
  background-color: #f1f5f9;
}

.store-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-product-placeholder {
  min-height: 320px;
  background-color: #e2e8f0;
  color: #64748b;
  text-align: center;
  padding: 2rem;
}

.store-product-placeholder i {
  font-size: 3rem;
}

.store-product-pricing {
  background: linear-gradient(135deg, rgba(29, 78, 137, 0.08), rgba(66, 170, 255, 0.12));
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.contact-address-text {
  font-style: normal;
  line-height: 1.6;
  color: #1f2937;
}

.contact-channel-link {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-channel-link:hover,
.contact-channel-link:focus {
  color: var(--brand-secondary);
}

.contact-info-list > li {
  background-color: #f8faff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 2px rgba(13, 71, 161, 0.08);
}

.btn-contact-primary {
  background: var(--brand-secondary);
  border: none;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-contact-primary:hover,
.btn-contact-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66, 165, 245, 0.3);
  color: var(--brand-dark);
}

.contact-card {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(13, 71, 161, 0.1);
}

@media (min-width: 992px) {
  .contact-card {
    padding: 3rem 3.5rem;
  }
}

.contact-social-link {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(13, 71, 161, 0.08);
  color: var(--brand-primary);
  font-size: 1.25rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.contact-social-link:hover,
.contact-social-link:focus {
  transform: translateY(-3px);
  background: rgba(66, 165, 245, 0.2);
  color: var(--brand-dark);
}
