/* RESET & VARIÁVEIS */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 112.5%;
}
:root {
  --color-white:    #fffaf0;
  --color-back:     #fffff0;
  --gold-1:         #d4af37;
  --gold-2:         #ffd700;
  --gold-3:         #fff3b0;
  --black:          #2e2e2e;
}

/* TIPOGRAFIA & BACKGROUND */
body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--color-back);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
ul,
ol { list-style: none; }
img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* NAVBAR */
.navbar { background: var(--color-white) !important; }
.navbar-logo { max-width: 300px; }
.nav-link {
  color: var(--gold-1) !important;
  font-size: 1.1rem;
}
.nav-link:hover,
.nav-item .active {
  color: var(--gold-2) !important;
}

/* SOBRE */
#sobre {
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
.about-section {
  display: flex;
  align-items: center;
  background: var(--color-back);
}
.info-section {
  position: relative;
  background: var(--gold-3);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(212,175,55,0.1);
  z-index: 2;
}
.info-section h2 {
  color: var(--gold-1);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  position: relative;
}
.info-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  width: 5px;
  height: 80%;
  background: linear-gradient(to bottom, var(--gold-1), var(--gold-2));
  border-radius: 5px;
}
.info-section p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
}
.img-grande {
  padding-top: 20px;
  max-width: 65%;
  border-radius: 15px;
}

/* EQUIPE */
#equipe {
  padding: 80px 0;
  background: #fafafa;
}
.profile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: auto;
}
.profile-item {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1rem 1.5rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transition: transform .3s, box-shadow .3s;
  min-height: 360px;
}
.profile-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.profile-photo {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: transparent !important;
}
.profile-content {
  text-align: center;
  margin-top: 5rem;
}
.profile-content h5 {
  font-size: 1.5rem;
  margin-bottom: .3rem;
}
.profile-content p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.4;
}

/* MODAL DE CURRÍCULO */
.detail-view {
  position: fixed;
  top: 80px;
  bottom: 20px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.detail-view.hidden { display: none; }
body.modal-open { overflow: hidden; }
.detail-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 80%;
  max-width: 500px;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 1rem;
}
.back-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  background: var(--gold-1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.back-btn i {
  color: #fff;
  font-size: 1.2rem;
}
.detail-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
}
.detail-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* SERVIÇOS E SERVIÇOS COORPORATIVOS*/
#servicos {
  padding: 80px 0;
  background: var(--color-white);
}
.service-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}
.service-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
}

/* CLIENTES & PARCEIROS */
#clientes {
  padding: 80px 0;
  background: #fafafa;
}
.parceiro-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.parceiro-logo {
  max-width: 100%;
  opacity: .6;
  transition: opacity .3s, transform .3s;
}
.parceiro-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* INSTAGRAM */
#instagram {
  padding: 80px 0;
  background: var(--color-white);
}
#instagram .container {
  max-width: 1140px;
  margin: auto;
}
#instagram .row {
  margin: 0 -0.75rem;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  row-gap: 1rem;
}
#instagram .col-md-4,
#instagram .col-sm-6 {
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}
#instagram iframe {
  width: 100% !important;
  max-width: 400px;
  min-height: 550px !important;
  height: auto !important;
  border: none;
}

/* LOCALIZAÇÃO */
#localizacao {
  padding: 80px 0;
  background: var(--gold-3);
}
.map-container {
  max-width: 820px;
  margin: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* CONTATO */
.contact-section {
  padding: 60px 0;
  background: linear-gradient(45deg,#ffffff 60%,var(--gold-3) 100%);
}
.contact-card {
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  border: 2px solid var(--gold-1);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212,175,55,0.2);
}
.text-gold { color: var(--gold-1) !important; }
.gold-divider {
  height: 3px;
  background: linear-gradient(90deg,var(--gold-1),var(--gold-2));
  border: none;
  margin: 1.5rem 0;
}
.social-links a {
  font-size: 1.8rem;
  color: var(--gold-1);
  margin-right: .75rem;
  transition: transform .3s;
}
.social-links a:hover {
  transform: scale(1.2);
  color: var(--gold-2);
}
.cta-button {
  background: linear-gradient(45deg,var(--gold-1),var(--gold-2));
  padding: .75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: transform .3s, box-shadow .3s;
}
.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(212,175,55,0.4);
}

/* FOOTER */
.footer {
  background: var(--color-white);
  padding: 60px 0 30px;
}
.footer-heading {
  color: var(--gold-1);
  margin-bottom: 1rem;
  position: relative;
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-2);
}
.footer-links a {
  color: #6c757d;
  display: block;
  margin-bottom: .5rem;
  transition: transform .3s, color .3s;
}
.footer-links a:hover {
  transform: translateX(5px);
  color: var(--gold-1);
}
.footer-contact li {
  display: flex;
  margin-bottom: .75rem;
}
.footer-contact i {
  font-size: 1.2rem;
  color: var(--gold-1);
  margin-right: .5rem;
}
.footer-bottom {
  border-top: 1px solid var(--gold-3);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #666;
}

/* RESPONSIVO (≤768px) */
@media (max-width: 768px) {
  .navbar-logo { max-width: 200px; }
  #sobre,
  .about-section,
  #equipe,
  #servicos,
  #clientes,
  #localizacao,
  .contact-section {
    padding: 2rem 1rem;
  }
  .profile-item {
    padding-top: 60px;
    min-height: 360px;
  }
  .profile-photo {
    width: 140px;
    height: 140px;
  }
  .service-icon {
    width: 100px;
    height: 100px;
  }
  #instagram iframe {
    max-width: 100% !important;
    min-height: 700px !important;
  }
}

/* INTERVALO 581–760px: posts e perfis maiores */
@media (max-width: 760px) and (min-width: 581px) {
  /* exibe dois posts lado a lado, cada um com quase metade da largura */
  #instagram .col-md-4,
  #instagram .col-sm-6 {
    flex: 0 0 48%;
    max-width: 48%;
  }
  #instagram iframe {
    width: 100% !important;
    min-height: 650px !important;
  }
  /* perfis maiores nessa faixa */
  .profile-photo {
    width: 160px;
    height: 160px;
  }
  /* ícones de serviço maiores também */
  .service-icon {
    width: 120px;
    height: 120px;
  }
}

/* MOBILE (≤580px) */
@media (max-width: 580px) {
  #sobre,
  .about-section,
  .about-section .container,
  .about-section .row {
    overflow: visible !important;
  }
  .about-section .text-center { display: none; }
  .info-section {
    background-image: url("images/Selo-JuntosODS-2024.png");
    background-size: 180%;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgba(255,250,240,0.85);
  }
  .about-section {
    flex-direction: column !important;
    text-align: center;
    padding: 4rem 1rem 2rem;
  }
  .info-section h2 { font-size: 1.8rem; }
  .info-section p { font-size: 1rem; }

  .profile-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile-item {
    padding-top: 80px;
    max-width: 400px;
    margin: 0 auto;
    min-height: 360px;
  }
  .profile-photo {
    width: 180px;
    height: 180px;
  }
  .service-icon {
    width: 140px;
    height: 140px;
  }

  /* INSTAGRAM móvel: post único, mais largo */
  #instagram .col-md-4,
  #instagram .col-sm-6 {
    flex: 0 0 90%;
    max-width: 90%;
    padding: 0;
  }
  #instagram iframe {
    width: 100% !important;
    min-height: 700px !important;
    margin-bottom: 0.5rem !important;
  }
}
