/* ==========================================
   BCCP Website - Modern CSS
   ========================================== */

/* CSS Custom Properties */
/* Import similar Google Font as fallback */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;600&display=swap');

:root {
  --color-navy: #1e3a5a;
  --color-navy-light: #2d5a87;
  --color-navy-bright: #5b9bd5;  /* For text on dark backgrounds */
  --color-dark: #1d1e1f;
  --color-light: #d4d7e0;
  --color-white: #ffffff;
  --color-gray: #606060;

  /* Using Montserrat as a similar geometric sans-serif alternative to Galano Grotesque */
  --font-thin: 'Montserrat', 'GalanoGrotesqueThin', sans-serif;
  --font-light: 'Montserrat', 'GalanoGrotesqueLight', sans-serif;
  --font-semibold: 'Montserrat', 'GalanoGrotesqueSemiBold', sans-serif;

  --transition-default: all 0.5s ease;
}

/* Font Faces - Using system fonts as fallback since Galano fonts weren't recovered */
/* If you have the Galano Grotesque font files, place them in assets/fonts/ and uncomment:
@font-face {
  font-family: 'GalanoGrotesqueThin';
  src: url('../assets/fonts/Galano_Grotesque_Thin.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'GalanoGrotesqueLight';
  src: url('../assets/fonts/Galano_Grotesque_Light.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'GalanoGrotesqueSemiBold';
  src: url('../assets/fonts/Galano_Grotesque_Semi_Bold.woff') format('woff');
  font-display: swap;
}
*/

/* Base Styles */
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-light);
  font-weight: 300;
  background: var(--color-dark);
  overflow-x: hidden;
}

#all {
  overflow-x: hidden;
}

/* Video Background */
#bgvid {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  transform: translate(-50%, -50%);
  background-size: cover;
  transition: opacity 1s;
}

/* Hide video controls and play button */
#bgvid::-webkit-media-controls,
#bgvid::-webkit-media-controls-start-playback-button,
#bgvid::-webkit-media-controls-play-button,
#bgvid::-webkit-media-controls-panel,
video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Image fallback when video can't autoplay */
body.video-fallback::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  background: url('../assets/images/video-poster.jpg') no-repeat center center;
  background-size: cover;
}

/* Page Sections */
.page {
  width: 100%;
  min-height: 100vh;
  background: var(--color-dark);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
  height: 60px;
  position: fixed;
  z-index: 999;
  background: var(--color-white);
  width: 100%;
  top: -250px;
  transition: var(--transition-default);
  display: flex;
  align-items: center;
}

header.header-visible {
  top: 0;
}

header h1 {
  margin-left: 90px;
}

header h1 img {
  height: 40px;
}

header nav {
  display: flex;
  margin-left: 3rem;
}

header nav ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

header nav ul li {
  padding-left: 35px;
}

header nav ul li a {
  font-family: var(--font-light);
  font-size: 14px;
  color: #000;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-default);
}

header nav ul li a:hover {
  color: var(--color-navy);
}

/* Hamburger Menu */
.nav-trigger {
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: fixed;
  left: 25px;
  top: 20px;
  z-index: 9999;
  background: transparent;
  border: none;
  padding: 0;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

@media screen and (max-width: 575px) {
  .nav-trigger {
    display: flex;
  }
}

.nav-trigger span {
  background-color: #dcdcdc;
  display: block;
  width: 100%;
  height: 4px;
  transition: var(--transition-default);
}

.nav-trigger.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(135deg);
}

.nav-trigger.active span:nth-child(2) {
  transform: rotate(45deg);
  opacity: 0;
}

.nav-trigger.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-135deg);
}

/* Mobile Navigation */
@media screen and (max-width: 575px) {
  header {
    background: var(--color-white);
    height: 100%;
    top: 0;
    left: -100%;
    flex-direction: column;
    justify-content: center;
  }

  header.menu-open {
    left: 0;
  }

  header h1 {
    margin: 0;
    text-align: center;
    position: absolute;
    top: 25px;
  }

  header nav {
    margin: 0;
    height: auto;
  }

  header nav ul {
    flex-direction: column;
    margin: 0 auto;
  }

  header nav ul li {
    padding: 10px 0;
    text-align: center;
  }

  header nav ul li a {
    font-size: 25px !important;
  }
}

@media screen and (min-width: 576px) and (max-width: 763px) {
  header nav {
    margin-left: 15px !important;
  }

  header nav ul li {
    padding-left: 10px;
  }

  header nav ul li a {
    font-size: 13px;
  }
}

/* ==========================================
   HOME SECTION
   ========================================== */
#home.page {
  background: rgba(0, 0, 0, 0.56);
}

.home-logo {
  transition: transform 0.3s ease;
}

.home-logo img {
  max-width: 500px;
  filter: brightness(0) invert(1);
}

@media screen and (max-width: 700px) {
  .home-logo img {
    max-width: 300px;
  }
}


/* ==========================================
   SOBRE SECTION
   ========================================== */
#sobre.page {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/sala_reuniao.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

#sobre.page h2 {
  font-family: var(--font-light);
  font-weight: 300;
  color: var(--color-light);
  font-size: 65px;
  text-transform: uppercase;
}

#sobre.page h3 {
  font-family: var(--font-light);
  color: var(--color-light);
  font-size: 20px;
}

@media screen and (max-width: 1200px) {
  #sobre.page h2 {
    font-size: 33px;
  }
}

/* ==========================================
   QUEM SOMOS SECTION
   ========================================== */
#quemsomos.page {
  padding: 0;
  display: block;
}

#quemsomos.page .container {
  padding-top: 80px;
  padding-bottom: 80px;
}

#quemsomos.page h2 {
  font-family: var(--font-thin);
  font-weight: 200;
  font-size: 64px;
  color: var(--color-navy-bright);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 25px;
}

#quemsomos.page h2::after {
  content: '';
  height: 4px;
  width: 62px;
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--color-white);
}

#quemsomos.page p {
  font-family: var(--font-light);
  color: var(--color-light);
  font-size: 0.9rem;
}

.btn-fale {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-white);
  border: 2px solid var(--color-navy-bright);
  border-radius: 23px;
  padding: 8px 20px;
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
  transition: var(--transition-default);
}

.btn-fale:hover {
  background: var(--color-navy-bright);
  color: var(--color-white);
}

@media screen and (max-width: 1200px) {
  #quemsomos.page h2 {
    font-size: 40px;
  }
}

/* Gallery Swiper */
.col-slide {
  display: flex;
  align-items: center;
}

.gallery-swiper {
  width: 100%;
  height: 500px;
}

.gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  color: var(--color-white);
}

@media screen and (max-width: 767px) {
  .gallery-swiper {
    height: 300px;
  }
}

/* ==========================================
   EQUIPE SECTION
   ========================================== */
#equipe.page {
  display: block;
  padding: 0;
}

#equipe.page .membro {
  background: var(--color-light);
  transition: var(--transition-default);
}

#equipe.page .membro:hover {
  background: var(--color-dark);
}

#equipe.page .membro figure {
  overflow: hidden;
}

#equipe.page .membro figure img {
  transition: var(--transition-default);
  width: 100%;
  height: 390px !important;
  object-fit: cover;
  object-position: top;
}

/* Force 5 columns from 1037px+ to prevent 5th card wrapping */
@media screen and (min-width: 1037px) {
  #equipe.page > .row > .membro {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Between 992px and 1036px, show as 2 rows (3+2 or similar) */
@media screen and (min-width: 992px) and (max-width: 1036px) {
  #equipe.page > .row > .membro {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* Below lg breakpoint, allow full height images */
@media screen and (max-width: 991px) {
  #equipe.page .membro figure img {
    height: auto;
  }
}

/* Grayscale effect only on desktop */
@media screen and (min-width: 769px) {
  #equipe.page .membro figure img {
    filter: grayscale(100%);
  }

  #equipe.page .membro:hover figure img {
    filter: grayscale(0%);
  }
}

#equipe.page .membro .infos {
  padding-bottom: 16px;
}

#equipe.page .membro h3 {
  font-family: var(--font-thin);
  font-weight: 200;
  font-size: 33px;
  color: var(--color-navy);
  text-transform: uppercase;
  margin-top: 1.5rem;
  transition: var(--transition-default);
}

#equipe.page .membro:hover h3 {
  color: var(--color-navy-bright);
}

#equipe.page .membro h4 {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-gray);
  text-transform: uppercase;
}

#equipe.page .membro p {
  font-family: var(--font-light);
  color: #000;
  transition: var(--transition-default);
  line-height: 1.6rem;
  font-size: 0.9rem;
}

#equipe.page .membro:hover p {
  color: var(--color-white);
}

#equipe.page .membro .rs {
  padding-top: 25px;
  padding-bottom: 10px;
}

#equipe.page .membro .rs a {
  color: #37373a;
  border: 2px solid #37373a;
  border-radius: 50%;
  padding: 8px 10px;
  transition: var(--transition-default);
  text-decoration: none;
  display: inline-block;
}

#equipe.page .membro:hover .rs a {
  color: var(--color-white);
  border-color: var(--color-white);
}

/* ==========================================
   ATUACAO SECTION
   ========================================== */
#atuacao.page {
  background: var(--color-navy-light);
  display: block;
  padding: 60px 0;
}

@media screen and (max-width: 992px) {
#atuacao.page {
    min-height: unset;
  }
}


#atuacao.page h2 {
  font-family: var(--font-thin);
  font-weight: 200;
  font-size: 60px;
  color: var(--color-dark);
  text-transform: uppercase;
  margin-bottom: 3rem;
  margin-top: 3.5rem;
}

.accordion-container {
  max-width: 996px;
  margin: 0 auto;
}

#atuacao.page .area {
  margin-bottom: 0;
}

#atuacao.page .area h3 {
  font-family: var(--font-thin);
  font-weight: 200;
  color: var(--color-white);
  text-transform: uppercase;
  font-size: 33px;
  text-align: left;
  border-top: 1px solid var(--color-dark);
  padding: 15px 16px 15px 45px;
  cursor: pointer;
  margin-bottom: 0;
  position: relative;
  min-height: 78px;
  transition: var(--transition-default);
  display: flex;
  align-items: center;
}

#atuacao.page .area h3::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url('../assets/images/ico-location.png') no-repeat center;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 15px;
  margin-top: -9px;
  transition: var(--transition-default);
  border: 2px solid var(--color-white);
  border-radius: 2px;
}

#atuacao.page .area h3::after {
  content: '+';
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: bold;
  color: var(--color-white);
}

#atuacao.page .area.active h3::after {
  content: '-';
}

#atuacao.page .area h3::before {
  display: none;
}

#atuacao.page .area h3:hover {
  background: #cecece;
  color: var(--color-dark);
  padding-left: 55px;
}

#atuacao.page .area h3:hover::after {
  color: var(--color-dark);
}

#atuacao.page .area.active h3 {
  background: var(--color-dark);
  color: var(--color-navy-bright);
}

#atuacao.page .area .texto {
  padding: 16px;
  background: var(--color-dark);
  display: none;
  overflow: hidden;
}

#atuacao.page .area .texto p {
  font-family: var(--font-thin);
  font-weight: 200;
  color: var(--color-white);
  text-align: left;
}

@media screen and (max-width: 1200px) {
  #atuacao.page h2 {
    font-size: 45px;
  }
}

/* ==========================================
   CONTATO SECTION
   ========================================== */
#contato.page {
  display: block;
  padding: 60px 0;
  min-height: unset;
}

#contato.page h2 {
  font-family: var(--font-thin);
  font-weight: 200;
  font-size: 60px;
  color: var(--color-navy-bright);
  text-transform: uppercase;
  margin-bottom: 3rem;
  margin-top: 3.5rem;
}

#contato.page .infos {
  max-width: 996px;
  margin: 0 auto;
}

#contato.page .infos > div {
  background: var(--color-navy);
  padding: 16px;
  margin-bottom: 16px;
}

#contato.page .infos p,
#contato.page .infos a,
#contato.page .infos address {
  font-family: var(--font-light);
  margin: 0;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
}

#contato.page .infos a:hover {
  text-decoration: underline;
}

#contato.page .infos img {
  margin-right: 10px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

@media screen and (min-width: 768px) {
  #contato.page .infos .dif-1 {
    border-right: 7.5px solid var(--color-dark);
  }

  #contato.page .infos .dif-2 {
    border-left: 7.5px solid var(--color-dark);
  }
}

@media screen and (max-width: 1200px) {
  #contato.page h2 {
    font-size: 45px;
  }
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--color-dark);
  padding: 40px 20px;
  text-align: center;
}


.footer-logo {
  max-width: 300px;
  filter: brightness(0) invert(1);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for team members */
#equipe .membro:nth-child(1) { transition-delay: 0s; }
#equipe .membro:nth-child(2) { transition-delay: 0.1s; }
#equipe .membro:nth-child(3) { transition-delay: 0.2s; }
#equipe .membro:nth-child(4) { transition-delay: 0.3s; }
#equipe .membro:nth-child(5) { transition-delay: 0.4s; }

/* Stagger delays for accordion items */
#atuacao .area:nth-child(1) { transition-delay: 0s; }
#atuacao .area:nth-child(2) { transition-delay: 0.1s; }
#atuacao .area:nth-child(3) { transition-delay: 0.2s; }
#atuacao .area:nth-child(4) { transition-delay: 0.3s; }
