/*
  Estilos globais base do frontend.
  Define layout principal, cores de fundo e utilitarios reutilizaveis.
*/

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-bg-01);
  color: var(--color-primary-dark);
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  z-index: 2000;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  transition: all 0.28s ease;
}

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

.btn-primary:hover {
  background: #2f846f;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

/* Banner de consentimento de cookies (LGPD) */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 1600;
  width: min(980px, calc(100% - 1.4rem));
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(45, 194, 166, 0.34);
  background: linear-gradient(135deg, rgba(7, 17, 24, 0.96), rgba(10, 22, 30, 0.94));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34), 0 0 18px rgba(45, 194, 166, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-consent__text {
  margin: 0;
  color: #e6f0f8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent__text a {
  color: #72f0d7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: inline-flex;
  gap: 0.55rem;
  flex-shrink: 0;
}

.cookie-consent__btn {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.26s ease, filter 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

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

.cookie-consent__btn--accept {
  background: linear-gradient(135deg, #1fd6a5, #379984);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(45, 194, 166, 0.35);
}

.cookie-consent__btn--reject {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(217, 242, 238, 0.34);
  color: #f2f8fb;
}

@media (max-width: 860px) {
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem;
    bottom: 0.75rem;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__btn {
    flex: 1 1 0;
    width: 100%;
  }
}
