/* Base & Shell Layout — Front-End Público 2.0 (Classic Burgundy & Sand) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  background-color: var(--bg-sand);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: -160px;
  right: -140px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(191, 168, 147, 0.22) 0%, transparent 68%);
  z-index: -1;
  pointer-events: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

h1, h2 {
  font-family: var(--font-brand);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-burgundy-dark);
}

h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section-block {
  padding: 4.5rem 0;
  position: relative;
}

.section-block--surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-block--sand-deep {
  background-color: var(--bg-sand-deep);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2.75rem auto;
}

.section-header .badge {
  margin-bottom: 0.85rem;
}

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.02rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.88rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.badge-burgundy {
  background-color: rgba(143, 27, 25, 0.08);
  color: var(--color-primary);
  border-color: rgba(143, 27, 25, 0.16);
}

.badge-sand {
  background-color: rgba(191, 168, 147, 0.25);
  color: var(--color-burgundy-dark);
  border-color: rgba(191, 168, 147, 0.45);
}

.badge-success {
  background-color: var(--color-success-glow);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.28);
}

.badge-warning {
  background-color: var(--color-warning-glow);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.28);
}

/* Botões (Regra oficial Open Sans maiúscula) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  max-width: 100%;
  white-space: normal;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 6px 18px var(--color-primary-glow);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(143, 27, 25, 0.26);
}

.btn-cta-gold {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-gold) 100%);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(191, 168, 147, 0.35);
  animation: pulse-glow 2.4s infinite;
}

.btn-cta-gold:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 28px rgba(214, 175, 103, 0.45);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(191, 168, 147, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(191, 168, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(191, 168, 147, 0); }
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--color-primary);
  border-color: rgba(143, 27, 25, 0.25);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: rgba(143, 27, 25, 0.05);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-sm {
  padding: 0.62rem 1.15rem;
  font-size: 0.78rem;
}

/* Header Flutuante (Floating Pill em Dark Burgundy) */
.site-header {
  position: fixed;
  top: 1.15rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  top: 0.55rem;
}

.nav-wrapper {
  background: rgba(74, 21, 20, 0.94);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(191, 168, 147, 0.22);
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 14px 36px -10px rgba(50, 12, 11, 0.38);
  transition: var(--transition);
}

.site-header.scrolled .nav-wrapper {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background: rgba(50, 12, 11, 0.97);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.brand-logo-accent {
  color: var(--color-accent-gold);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.35rem 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 99px;
  background-color: var(--color-accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1.05rem;
  border-radius: 9999px;
  background-color: var(--color-accent-gold);
  background-image: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-gold) 48%, #edd091 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border: 1.5px solid rgba(247, 229, 189, 0.42);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-position 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta-pill:hover,
.nav-cta-pill:focus-visible {
  background-position: 100% 50%;
  border-color: #fff2d6;
  color: var(--color-burgundy-deep);
  box-shadow: 0 0 0 3px rgba(214, 175, 103, 0.22);
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.45rem;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mobile-drawer {
  display: none;
  margin-top: 0.65rem;
  background: rgba(50, 12, 11, 0.98);
  border: 1px solid rgba(191, 168, 147, 0.22);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-drawer a {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer a:last-of-type {
  border-bottom: none;
}

/* Footer Institucional */
.site-footer {
  background: linear-gradient(180deg, var(--color-burgundy-dark) 0%, var(--color-burgundy-deep) 100%);
  color: rgba(255, 255, 255, 0.80);
  padding: 3.75rem 0 2.25rem 0;
  border-top: 3px solid var(--color-accent);
  font-size: 0.88rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-logo {
  margin-bottom: 1rem;
}

.footer-disclaimer {
  max-width: 450px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(191, 168, 147, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  text-align: justify;
}

.footer-disclaimer strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
}

.footer-disclaimer p {
  color: inherit;
  margin-bottom: 0.45rem;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-col h4 {
  color: var(--color-accent-gold);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-info-list,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.footer-info-item > svg {
  width: 17px;
  height: 17px;
  color: var(--color-accent-gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-info-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-info-item a:hover {
  color: #ffffff;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.site-footer .footer-ext-icon {
  width: 13px;
  height: 13px;
  color: currentColor;
  opacity: 0.72;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.66);
}

.footer-bottom p {
  color: inherit;
}

.footer-payment {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-payment-card {
  width: 31px;
  height: 22px;
  flex-shrink: 0;
}

.footer-payment-pix {
  height: 21px;
  width: auto;
  flex-shrink: 0;
}

/* Botões Flutuantes de Contato */
.floating-contact {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.floating-btn {
  display: inline-grid;
  grid-template-columns: 20px 0fr;
  align-items: center;
  gap: 0;
  height: 46px;
  padding: 0 12px;
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: grid-template-columns 0.34s cubic-bezier(0.22, 1, 0.36, 1), gap 0.34s cubic-bezier(0.22, 1, 0.36, 1), padding 0.34s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.floating-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.floating-btn span {
  display: block;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.22s ease;
}

.floating-btn:hover,
.floating-btn:focus-visible {
  grid-template-columns: 20px 1fr;
  gap: 0.55rem;
  padding: 0 1.15rem 0 0.95rem;
  transform: translateY(-2px);
}

.floating-btn:hover span,
.floating-btn:focus-visible span {
  opacity: 1;
  transition: opacity 0.28s ease 0.05s;
}

.floating-btn--yt {
  background-color: #c4302b;
  box-shadow: 0 10px 26px rgba(196, 48, 43, 0.32);
}

.floating-btn--yt:hover,
.floating-btn--yt:focus-visible {
  background-color: #9f221e;
}

.floating-btn--zap {
  background-color: #128c7e;
  box-shadow: 0 10px 26px rgba(18, 140, 126, 0.32);
}

.floating-btn--zap:hover,
.floating-btn--zap:focus-visible {
  background-color: #0e7367;
}

/* Toast de Feedback (Flashdata) */
#flash-toast-container {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 1100;
  max-width: 420px;
}

.flash-toast {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  font-weight: 500;
}

.flash-toast .error,
.flash-toast .denied {
  color: #b91c1c;
}

/* Responsivo Mobile */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-disclaimer {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 0.7rem;
  }

  .site-header .container {
    padding: 0 0.75rem;
  }

  .nav-wrapper {
    padding: 0.5rem 0.9rem;
    border-radius: 18px;
  }

  .brand-logo {
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    gap: 0.45rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .brand-logo > span {
    line-height: 1.15;
  }

  .brand-logo-icon {
    width: 24px;
    height: 24px;
  }

  .nav-cta-pill {
    display: none;
  }

  .section-block {
    padding: 3.25rem 0;
  }

  .floating-btn:hover,
  .floating-btn:focus-visible {
    grid-template-columns: 20px 0fr;
    gap: 0;
    padding: 0 12px;
  }

  .floating-btn span,
  .floating-btn:hover span,
  .floating-btn:focus-visible span {
    display: none;
  }
}

/* Modal Público Institucional */
.public-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(34, 10, 10, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.public-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.public-modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.public-modal-box--wide {
  max-width: 780px;
}

.public-modal-backdrop.is-open .public-modal-box {
  transform: translateY(0) scale(1);
}

.public-modal-header {
  padding: 1.35rem 1.5rem 1.05rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-sand);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.public-modal-header h3 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  color: var(--color-burgundy-dark);
  margin-top: 0.45rem;
}

.public-modal-header h3:first-child {
  margin-top: 0;
}

.public-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.public-modal-close svg {
  width: 17px;
  height: 17px;
}

.public-modal-close:hover,
.public-modal-close:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.public-modal-body {
  padding: 1.45rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--text-secondary);
  overflow-y: auto;
}

.modal-bio-body {
  display: flow-root;
}

.modal-bio-body p + p {
  margin-top: 0.85rem;
}

.modal-bio-body p {
  text-align: justify;
}

.modal-bio-avatar {
  float: left;
  width: 248px;
  height: auto;
  aspect-ratio: 0.72;
  margin: 0.2rem 1.5rem 0.9rem 0;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-accent-gold);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--bg-sand-deep);
}

.modal-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.public-modal-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-sand);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .modal-bio-avatar {
    float: none;
    width: 220px;
    height: auto;
    margin: 0 auto 1.15rem auto;
  }
}
