@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #061226;
  --navy2: #0b1e3d;
  --blue: #17396d;
  --gold: #dfa94c;
  --gold2: #f2d486;
  --white: #f7f5ef;
  --muted: #aebbd0;

  --gray-100: #0b1e3d;
  --gray-200: #17396d;
  --gray-300: #29477a;
  --gray-500: #8ba2c7;
  --gray-600: #cbd6e8;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

/* ==========================================================================
   Header / Topbar (Fixo)
   ========================================================================== */
.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 0 clamp(22px, 4.5vw, 72px);
  display: flex;
  align-items: center;
  gap: 42px;
  background: linear-gradient(
    180deg,
    rgba(3, 10, 22, 0.92),
    rgba(3, 10, 22, 0.55) 70%,
    transparent
  );
  transition: 0.3s;
}

.topbar.scrolled {
  background: rgba(4, 14, 30, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  font:
    600 1.24rem 'Cormorant Garamond',
    serif;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.8rem;
  font-weight: 600;
}

.topbar nav a {
  color: #d7dfeb;
  transition: 0.2s;
}

.topbar nav a:hover {
  color: var(--gold2);
}

.admin-menu-link {
  color: var(--gold2) !important;
  opacity: 0.85;
}

.admin-menu-link:hover {
  opacity: 1;
}

.nav-cta {
  margin-left: auto;
  border: 1px solid rgba(242, 212, 134, 0.72);
  color: var(--gold2);
  padding: 10px 19px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: transparent;
  cursor: pointer;
  transition: 0.25s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.menu-button {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.01);
  animation: heroZoom 12s ease-out both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 9, 20, 0.97) 0%,
      rgba(2, 9, 20, 0.79) 35%,
      rgba(2, 9, 20, 0.22) 72%
    ),
    linear-gradient(0deg, var(--navy) 0%, transparent 28%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 80vw);
  padding: 0 0 13vh clamp(24px, 7vw, 112px);
  animation: rise 0.8s ease-out both;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold2);
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker span {
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 0;
  font:
    600 clamp(4.3rem, 7vw, 7.9rem)/0.86 'Cormorant Garamond',
    serif;
  letter-spacing: -0.035em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 em,
.leader h2 em {
  color: var(--gold2);
  font-style: italic;
}

.hero-copy > p:not(.hero-kicker) {
  max-width: 610px;
  color: #e0e6ee;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  margin: 28px 0 30px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: 0.25s;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #071326;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: 4vw;
  bottom: 11vh;
  display: flex;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.6rem;
  color: #c3cddd;
}

.scroll-cue span {
  height: 55px;
  width: 1px;
  background: var(--gold);
}

/* ==========================================================================
   Catalog Section (Essência & Projetos em Destaque)
   ========================================================================== */
.catalog {
  padding: 100px 0 120px;
  background:
    radial-gradient(circle at 90% 5%, rgba(23, 57, 109, 0.45), transparent 30%), var(--navy);
}

.intro {
  padding: 0 clamp(24px, 7vw, 112px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5vw;
  align-items: end;
  margin-bottom: 95px;
}

.intro-header .eyebrow {
  margin-bottom: 12px;
}

.intro-header h2 {
  margin: 0;
  font:
    600 clamp(2.8rem, 4.8vw, 5.2rem)/0.96 'Cormorant Garamond',
    serif;
  color: #ffffff;
}

.intro-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.intro h2,
.row-heading h2,
.membership h2,
.leader h2,
.events-header h2 {
  margin: 0;
  font:
    600 clamp(2.7rem, 4.6vw, 5.3rem)/0.96 'Cormorant Garamond',
    serif;
}

.row-section {
  padding-left: clamp(24px, 7vw, 112px);
  margin-bottom: 90px;
}

.row-heading {
  padding-right: clamp(24px, 7vw, 112px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.row-heading h2 {
  font-size: clamp(2rem, 3.1vw, 3.5rem);
}

.row-heading .eyebrow {
  margin-bottom: 10px;
}

.row-buttons {
  display: flex;
  gap: 8px;
}

.row-buttons button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1.1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-buttons button:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px clamp(24px, 7vw, 112px) 28px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cards::-webkit-scrollbar {
  display: none;
}

.card {
  position: relative;
  flex: 0 0 min(380px, 78vw);
  aspect-ratio: 0.82;
  overflow: hidden;
  border-radius: 5px;
  scroll-snap-align: start;
  background: var(--blue);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}

.card-wide {
  flex-basis: min(620px, 88vw);
  aspect-ratio: 1.34;
}

.card:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  z-index: 2;
}

.card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.card:hover > img {
  transform: scale(1.04);
}

.card-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 8, 18, 0.98), rgba(2, 8, 18, 0.08) 68%),
    linear-gradient(90deg, rgba(2, 8, 18, 0.25), transparent);
}

.card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
}

.card-copy span {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold2);
  font-weight: 700;
}

.card-copy h3 {
  font:
    600 clamp(1.8rem, 2.3vw, 2.6rem)/1 'Cormorant Garamond',
    serif;
  margin: 8px 0;
  color: #ffffff;
}

.card-copy p {
  color: #c7d0dd;
  margin: 0;
  font-size: 0.84rem;
  max-width: 490px;
}

.values-row {
  margin: 0 clamp(24px, 7vw, 112px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.values-row article {
  display: flex;
  gap: 22px;
  padding: 36px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.values-row article:last-child {
  border: 0;
}

.values-row b {
  font:
    500 1.2rem 'Cormorant Garamond',
    serif;
  color: var(--gold);
}

.values-row h3 {
  font:
    600 1.7rem 'Cormorant Garamond',
    serif;
  margin: 0 0 5px;
  color: #ffffff;
}

.values-row p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Custom Sections (Seções Customizadas via CMS Admin)
   ========================================================================== */
#secoes-customizadas-container {
  padding: 0 clamp(24px, 7vw, 112px);
  margin: 70px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.custom-section-card {
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: clamp(30px, 4vw, 50px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.custom-section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.custom-section-card.no-image {
  grid-template-columns: 1fr;
}

.custom-section-img-wrapper {
  width: 100%;
  height: min(340px, 50vw);
  border-radius: 6px;
  overflow: hidden;
}

.custom-section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.custom-section-card:hover .custom-section-img {
  transform: scale(1.03);
}

.custom-section-placeholder {
  background: linear-gradient(135deg, rgba(23, 57, 109, 0.8), rgba(6, 18, 38, 0.9));
  border: 1px dashed rgba(242, 212, 134, 0.4);
  border-radius: 6px;
  height: min(280px, 40vw);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold2);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.custom-section-copy .eyebrow {
  margin-bottom: 12px;
}

.custom-section-copy h3 {
  font:
    600 clamp(2rem, 3.2vw, 3.2rem)/1.05 'Cormorant Garamond',
    serif;
  margin: 0 0 16px;
  color: #ffffff;
}

.custom-section-copy p {
  color: #cbd4e0;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* ==========================================================================
   Events Section (Agenda & Encontros)
   ========================================================================== */
.events-section {
  padding: 100px clamp(24px, 7vw, 112px);
  background:
    radial-gradient(circle at 15% 20%, rgba(23, 57, 109, 0.45), transparent 45%), var(--navy2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.events-header {
  margin-bottom: 50px;
}

.events-header h2 {
  font-size: clamp(2.5rem, 4.2vw, 4.8rem);
  margin-bottom: 14px;
}

.events-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 650px;
  line-height: 1.6;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.event-card {
  background: linear-gradient(145deg, rgba(23, 57, 109, 0.65), rgba(6, 18, 38, 0.95));
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(242, 212, 134, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.5);
  border-color: var(--gold);
}

.event-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card-media img {
  transform: scale(1.05);
}

.event-card-placeholder {
  height: 180px;
  background: linear-gradient(135deg, rgba(23, 57, 109, 0.9), rgba(6, 18, 38, 0.95));
  border-bottom: 1px solid rgba(242, 212, 134, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold2);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.event-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.event-date {
  font-size: 0.78rem;
  color: var(--gold2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-card h3 {
  font:
    600 clamp(1.6rem, 2.2vw, 2.2rem)/1.15 'Cormorant Garamond',
    serif;
  margin: 0 0 12px;
  color: #ffffff;
}

.event-card p {
  font-size: 0.9rem;
  color: #cbd4e0;
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
}

.event-status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-programado {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-encerrado {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-cancelado {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Impact Section
   ========================================================================== */
.impact {
  height: 82vh;
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
}

.impact > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.impact-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 12, 28, 0.98) 0%,
      rgba(3, 12, 28, 0.79) 45%,
      rgba(3, 12, 28, 0.08) 78%
    ),
    linear-gradient(0deg, rgba(3, 12, 28, 0.5), transparent);
}

.impact-copy {
  position: relative;
  z-index: 2;
  margin-left: clamp(24px, 9vw, 145px);
  max-width: 650px;
}

.impact blockquote {
  font:
    600 clamp(3rem, 5vw, 6rem)/0.94 'Cormorant Garamond',
    serif;
  margin: 0 0 26px;
  color: #ffffff;
}

.impact-copy > p:not(.eyebrow) {
  color: #cbd4e0;
  max-width: 570px;
}

.impact-copy > a,
.impact-copy > button {
  margin-top: 20px;
}

/* ==========================================================================
   Leader Section (Adriana Malta)
   ========================================================================== */
.leader {
  background: var(--white);
  color: #14213a;
  padding: clamp(85px, 10vw, 150px) clamp(24px, 10vw, 160px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 9vw;
  align-items: center;
}

.leader-photo {
  position: relative;
}

.leader-photo img {
  width: 100%;
  height: min(700px, 72vw);
  object-fit: cover;
  object-position: center 18%;
  box-shadow: -22px 22px 0 var(--gold);
  border-radius: 4px;
}

.leader-photo span {
  position: absolute;
  bottom: 26px;
  right: -40px;
  padding: 13px 20px;
  background: var(--navy);
  color: var(--gold2);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  border-radius: 2px;
}

.leader .eyebrow {
  color: #9c6c1d;
}

.leader h2 {
  font-size: clamp(4.2rem, 7vw, 7.4rem);
  color: var(--blue);
  line-height: 0.78;
  margin-bottom: 38px;
}

.leader-copy > p:not(.eyebrow) {
  font-size: 1rem;
  color: #4f5868;
  max-width: 620px;
}

.signature {
  font:
    italic 600 1.55rem 'Cormorant Garamond',
    serif;
  color: var(--blue);
  border-top: 1px solid #d5c29e;
  margin-top: 34px;
  padding-top: 22px;
}

/* ==========================================================================
   Membership Section ("Quero me associar")
   ========================================================================== */
.membership {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 90px clamp(24px, 9vw, 145px);
  background: var(--navy);
}

.membership > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.25;
}

.membership-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 9, 20, 0.1),
    rgba(2, 9, 20, 0.88) 55%,
    rgba(2, 9, 20, 0.98)
  );
}

.membership-copy {
  position: relative;
  width: min(610px, 52vw);
}

.membership h2 {
  font-size: clamp(3.2rem, 5vw, 6rem);
}

.membership-copy > p:not(.eyebrow) {
  color: #cbd3df;
}

.membership ul {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.membership li {
  font-size: 0.82rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.membership li:before {
  content: '✦';
  color: var(--gold);
  margin-right: 9px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: #020914;
  padding: 65px clamp(24px, 7vw, 112px) 28px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 42px;
  color: #9eabbf;
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-brand img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong {
  font:
    600 1.5rem 'Cormorant Garamond',
    serif;
  color: white;
  display: block;
}

.footer-brand p {
  margin: 2px 0;
  font-size: 0.8rem;
}

.footer-brand + div b,
footer > div:nth-child(3) b {
  display: block;
  color: var(--gold2);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 13px;
}

footer a,
footer > div > p {
  font-size: 0.8rem;
  margin: 5px 0;
  display: block;
}

footer a:hover {
  color: var(--gold2);
}

.copyright-bar {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 22px;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 0.72rem;
  color: #9eabbf;
}

.copyright {
  margin: 0;
  font-size: 0.72rem;
}

.dev-credits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.92;
  transition: opacity 0.2s ease;
  font-size: 0.76rem;
}

.dev-credits-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.dev-credits-link:hover {
  opacity: 1;
  color: var(--gold2, #f2d486);
}

.dev-credits-link:hover .ava-logo-footer {
  transform: scale(1.08);
}

.ava-logo-footer {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

/* ==========================================================================
   Floating CTA Button
   ========================================================================== */
.floating-cta {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 22px;
  background: var(--gold);
  color: var(--navy);
  padding: 13px 18px;
  border-radius: 3px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  font-size: 0.75rem;
  font-weight: 800;
  transition: 0.25s;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.floating-cta:hover {
  transform: translateY(-3px);
  background: var(--gold2);
}

/* ==========================================================================
   Modais & Overlay
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 9, 20, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--navy2);
  border: 1px solid rgba(242, 212, 134, 0.3);
  border-radius: 8px;
  padding: 36px;
  width: min(640px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.modal-sm {
  width: min(420px, 94vw);
}

.modal-xl {
  width: min(920px, 96vw);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.2s;
}

.modal-close:hover {
  color: var(--gold2);
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 12px;
}

.modal-header h2 {
  font:
    600 2.2rem 'Cormorant Garamond',
    serif;
  margin: 6px 0;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Form inputs & Groups */
.modal-form,
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 11px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.char-count {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}

.required-asterisk {
  color: var(--gold2);
}

.field-error {
  color: #f87171;
  font-size: 0.75rem;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.alert-icon {
  font-weight: 800;
  font-size: 1.1rem;
}

/* ==========================================================================
   Admin Panel (Abas, Subguias e Listas de Membros)
   ========================================================================== */
.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.admin-header-row h2 {
  font:
    600 1.8rem 'Cormorant Garamond',
    serif;
  margin: 0;
}

.admin-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 4px 0 0;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab {
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.admin-tab.active {
  color: var(--gold2);
  border-bottom-color: var(--gold);
  font-weight: 700;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Subguias da Guia Geral */
.subtabs-bar {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.subtab-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}

.subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.subtab-btn.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.subtab-pane {
  display: none;
}

.subtab-pane.active {
  display: block;
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.file-upload-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.image-preview-wrapper {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.upload-preview {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.favicon-preview {
  width: 32px;
  height: 32px;
}

.admin-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 25px 0;
}

.admin-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.admin-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.admin-item-info h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #ffffff;
}

.admin-item-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-admin-action {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

.btn-edit {
  background: rgba(242, 212, 134, 0.2);
  color: var(--gold2);
  border: 1px solid rgba(242, 212, 134, 0.4);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-toggle-status {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  border: none;
}

.btn-status-ativo {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.btn-status-inativo {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.seq-badge {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 6px;
}

.input-readonly {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--gold2) !important;
  font-weight: 700;
  cursor: not-allowed;
}

.admin-item-timestamps {
  display: flex;
  gap: 20px;
  font-size: 0.76rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 4px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.07);
  }
  to {
    transform: scale(1.01);
  }
}

/* ==========================================================================
   Media Queries & Responsividade
   ========================================================================== */
@media (max-width: 900px) {
  .topbar {
    height: 72px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand span {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .menu-button {
    order: 3;
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
  }

  .topbar nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(4, 14, 30, 0.98);
    padding: 25px;
    flex-direction: column;
  }

  .topbar nav.open {
    display: flex;
  }

  .hero-copy {
    padding-bottom: 12vh;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 11vw, 6rem);
  }

  .intro {
    grid-template-columns: 1fr;
    margin-bottom: 70px;
  }

  .intro .eyebrow {
    margin-bottom: -15px;
  }

  .values-row {
    grid-template-columns: 1fr;
  }

  .values-row article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .impact {
    min-height: 700px;
  }

  .leader {
    grid-template-columns: 1fr;
  }

  .leader-photo {
    max-width: 620px;
  }

  .leader-photo img {
    height: 680px;
  }

  .leader-photo span {
    right: -10px;
  }

  .membership-copy {
    width: min(620px, 90vw);
  }

  .membership-shade {
    background: linear-gradient(90deg, rgba(2, 9, 20, 0.78), rgba(2, 9, 20, 0.92));
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-inline: 16px;
  }

  .nav-cta {
    font-size: 0.65rem;
    padding: 9px 11px;
  }

  .hero {
    min-height: 830px;
  }

  .hero-bg {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(2, 9, 20, 0.9), rgba(2, 9, 20, 0.3)),
      linear-gradient(0deg, var(--navy) 0%, transparent 42%, rgba(0, 0, 0, 0.5));
  }

  .hero-copy {
    width: 100%;
    padding: 0 22px 105px;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-copy > p:not(.hero-kicker) {
    font-size: 0.92rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    padding-inline: 18px;
  }

  .scroll-cue {
    display: none;
  }

  .catalog {
    padding-top: 74px;
  }

  .intro {
    padding-inline: 22px;
  }

  .row-section {
    padding-left: 22px;
  }

  .row-heading {
    padding-right: 22px;
  }

  .row-buttons {
    display: none;
  }

  .card {
    flex-basis: 82vw;
  }

  .card-wide {
    flex-basis: 88vw;
    aspect-ratio: 0.82;
  }

  .card-copy {
    padding: 24px;
  }

  .values-row {
    margin-inline: 22px;
  }

  .impact {
    height: auto;
    min-height: 760px;
    align-items: flex-end;
    padding-bottom: 80px;
  }

  .impact > img {
    object-position: 62% center;
  }

  .impact-overlay {
    background: linear-gradient(0deg, rgba(3, 12, 28, 0.99) 5%, rgba(3, 12, 28, 0.44) 78%);
  }

  .impact-copy {
    margin: 0 22px;
  }

  .impact blockquote {
    font-size: 3.2rem;
  }

  .leader {
    padding-inline: 28px;
  }

  .leader-photo img {
    height: 520px;
  }

  .leader h2 {
    font-size: 4.6rem;
  }

  .membership {
    min-height: 760px;
    padding-inline: 22px;
    align-items: flex-end;
  }

  .membership > img {
    object-position: 58% center;
  }

  .membership-copy {
    width: 100%;
  }

  .membership h2 {
    font-size: 3.6rem;
  }

  .membership ul {
    grid-template-columns: 1fr;
  }

  .membership .button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .floating-cta {
    right: 14px;
    bottom: 14px;
    padding: 11px 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Estilos de Opções de Login & Esqueci Minha Senha */
.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 20px 0;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted, #aebbd0);
  user-select: none;
}

.checkbox-label input[type='checkbox'] {
  accent-color: var(--gold, #dfa94c);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-label:hover {
  color: #ffffff;
}

.forgot-password-link {
  color: var(--gold, #dfa94c);
  font-size: 0.85rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: var(--gold2, #f2d486);
}
