html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4e9d3;
  font-family: 'Zilla Slab', serif;
  color: #2b1810;
  position: relative;
  overflow-x: hidden;
}

a { color: #a13d1f; text-decoration: none; }
a:hover { color: #7a2c15; }

.bg-texture {
  position: fixed;
  inset: 0;
  background-image: url('../imgs/textura.jpg');
  background-size: cover;
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 5vw;
  background: rgba(244, 233, 211, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #c97a1a;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { height: 38px; width: auto; }
.brand-word { height: 22px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-mobile {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2b1810;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.menu-items {
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu-items a {
    color: #2b1810;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
}
.menu-items a:hover {
    color: #a13d1f;
}
.nav-cta {
  background: #a13d1f;
  color: #f4e9d3 !important;
  padding: 9px 20px;
  border-radius: 2px;
}
.nav-cta:hover { background: #7a2c15; }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../imgs/banda-fundo.jpg');
  background-size: cover;
  background-position: center 30%;
  padding: 60px 24px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,10,5,0.35), rgba(20,10,5,0.72));
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-logo {
  height: clamp(160px, 24vw, 280px);
  width: auto;
  filter: drop-shadow(0 3px 1px rgba(0,0,0,0.75));
}
.hero-tagline {
  width: 65%;
  font-family: 'Bevan', serif;
  color: #f4e9d3;
  font-size: clamp(24px, 3.6vw, 40px);
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-scroll {
  margin-top: 12px;
  color: #f4e9d3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid #c97a1a;
  padding-bottom: 4px;
}
.hero-scroll:hover { color: #c97a1a; }

/* Flags */
.flags {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  gap: 0;
  padding: 10px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #2b1810;
}
.flag {
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
}
.flags-top .flag { border-top: 20px solid; }
.flags-bottom .flag { border-bottom: 20px solid; }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 6vw 60px;
  max-width: 1180px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Bevan', serif;
  color: #a13d1f;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 64px;
  text-align: center;
}
.section-title.light { color: #f4e9d3; }

.feature-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  margin-bottom: 80px;
}
.feature-row.reverse { flex-wrap: wrap-reverse; }
.feature-img {
  flex: 1 1 380px;
  min-width: 280px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(43,24,16,0.2);
}
.feature-text { flex: 1 1 380px; min-width: 280px; }
.kicker {
  color: #c97a1a;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
}
.feature-text h3 {
  font-family: 'Bevan', serif;
  color: #2b1810;
  font-size: clamp(26px, 3vw, 34px);
  margin: 10px 0 18px;
}
.feature-text p {
  font-size: 18px;
  line-height: 1.65;
  color: #3a2618;
  margin: 0;
}

/* Formação */
.section-dark {
  background: #2b1810;
  max-width: none;
  padding: 100px 6vw;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
}
.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid #c97a1a;
}
.member-name {
  font-family: 'Bevan', serif;
  color: #f4e9d3;
  font-size: 19px;
  line-height: 1.3;
  max-width: 180px;
}
.member-role {
  color: #c97a1a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 0.5;
  max-width: 180px;
}

/* Galeria */
#galeria { max-width: 1280px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: filter 0.25s;
}
.gallery-grid img:hover { filter: brightness(0.9); }

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 7, 4, 0.82);
}

.gallery-modal-content {
  position: relative;
  z-index: 1;
  width: min(94vw, 1280px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.gallery-modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.gallery-modal-close,
.gallery-modal-nav {
  border: none;
  color: #f4e9d3;
  background: rgba(18, 10, 6, 0.62);
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-modal-close:hover,
.gallery-modal-nav:hover {
  background: rgba(18, 10, 6, 0.9);
  transform: translateY(var(--nav-translate-y)) scale(1.05);
}

.gallery-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}

.gallery-modal-nav {
  --nav-translate-y: 0;
  width: 52px;
  height: 52px;
  font-size: 30px;
  flex-shrink: 0;
  z-index: 2;
  transform: translateY(var(--nav-translate-y));
}

/* Contato */
.section-contact {
  max-width: none;
  padding: 110px 6vw;
  background: linear-gradient(135deg, #d38905, #a13d1f);
  text-align: center;
}
.contact-text {
  max-width: 680px;
  margin: 0 auto 44px;
  font-size: 19px;
  line-height: 1.65;
  color: #fff3e0;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 16px;
}
.contact-btn.dark { background: #2b1810; color: #f4e9d3 !important; }
.contact-btn.dark:hover { background: #1a0e08; }
.contact-btn.light { background: #f4e9d3; color: #a13d1f !important; }
.contact-btn.light:hover { background: #fff; }
.contact-btn.outline { border: 2px solid #f4e9d3; color: #f4e9d3; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: #1e1108;
  padding: 36px 6vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.footer-icon { height: 28px; opacity: 0.8; }
.footer span { color: #c9a983; font-size: 14px; }





/* Responsive */
@media (max-width: 768px) {
  .hero-tagline { width: 90%; }
  .feature-img { height: 420px; }

  .gallery-modal-content {
    width: 100%;
    padding: 0 12px;
    gap: 0;
  }

  .gallery-modal-nav {
    width: 46px;
    height: 46px;
    font-size: 26px;
    --nav-translate-y: -50%;
    position: absolute;
    top: 50%;
    z-index: 2;
    background: rgba(18, 10, 6, 0.74);
  }

  .gallery-modal-prev {
    left: 8px;
  }

  .gallery-modal-next {
    right: 8px;
  }
}

@media (max-width: 600px) {
  .feature-img { height: 360px; }
}

@media (max-width: 473px) {

    .nav-links {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menu-mobile {
        position: relative;
    }

    /* Botão hambúrguer */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        padding: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #2b1810;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* Menu fechado */
    .menu-items {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;

        flex-direction: column;
        align-items: flex-start;
        gap: 0;

        min-width: 150px;
        padding: 8px 0;

        background: #f4e9d3;
        border: 1px solid #c97a1a;
        box-shadow: 0 8px 20px rgba(43, 24, 16, 0.2);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .menu-items a {
        width: 100%;
        padding: 10px 16px;
    }

    /* Menu aberto */
    .menu-mobile.open .menu-items {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* ☰ → X */
    .menu-mobile.open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-mobile.open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-mobile.open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-cta {
        padding: 9px 16px;
    }

    .hero-tagline {
        width: 100%;
    }

    .feature-img {
        height: auto;
    }
}