@import url("colors.css");

/* Botão Voltar fixo estilo nossa-historia */
.back-button {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--primary-coral, #FC7A57);
    color: #fff;
    border: none;
    padding: 0.45rem 1.1rem 0.45rem 0.9rem;
    border-radius: 25px;
    font-family: 'Thank You Regular', 'Open Sans', sans-serif;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,1,.7,1.2);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 1000;
    opacity: 0.7;
    box-shadow: none;
}
.back-button i {
    font-size: 1.05rem;
    transition: color 0.2s;
}
.back-button:hover, .back-button:focus {
    background: var(--primary-cta, #E62987);
    color: #fff;
    opacity: 1;
    outline: none;
}
.back-button:hover i, .back-button:focus i {
    color: #fff;
}
/* Estilos exclusivos para páginas de projetos */

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  background: var(--bg-warm-pink);
  color: var(--text-dark);
  font-family: 'Brother 1816 Book', 'Open Sans', sans-serif;
}
.projeto-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--neutral-cream);
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(230,41,135,0.07);
}
.projeto-texto {
  margin-bottom: 2rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-medium);
}
.projeto-fotos h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--primary-cta);
  font-family: 'Quiche Sans Thin', 'Quicksand', sans-serif;
}
.galeria img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: none;
  background: var(--neutral-cream);
  box-shadow: 0 2px 8px rgba(230,41,135,0.07);
}
.galeria img:hover {
  box-shadow: 0 0 0 2px var(--primary-cta);
  transform: scale(1.08);
}

.galeria img:hover {
  box-shadow: 0 0 0 3px var(--primary-cta);
  transform: scale(1.07);
}
.foto-destaque {
  width: 350px;
  height: 350px;
  display: block;
  margin: 2rem auto 2rem auto;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(230,41,135,0.12);
  border: 3px solid var(--primary-cta);
  object-fit: cover;
  transition: transform 0.3s ease;
}
.foto-destaque:hover {
  transform: scale(1.05);
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,230,243,0.97);
  justify-content: center;
  align-items: center;
}
.modal.active {
  display: flex;
}
.modal img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(230,41,135,0.12);
  border: none;
}
.modal .close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 2rem;
  color: var(--primary-cta);
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
  transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55), color 0.2s;
}
.modal .close:hover {
  transform: rotate(180deg) scale(1.2);
  color: var(--primary-coral);
}
.modal-arrow {
  position: absolute;
  top: 50%;
  font-size: 2.5rem;
  color: var(--primary-cta);
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
  padding: 0 0.5rem;
  transition: color 0.2s, transform 0.2s;
}
.modal-arrow-left {
  left: 32px;
  transform: translateY(-50%);
}
.modal-arrow-right {
  right: 32px;
  transform: translateY(-50%);
}
.modal-arrow:hover {
  color: var(--primary-coral);
  transform: scale(1.2);
}

/* Botão voltar ao topo - identidade visual */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-coral, #FC7A57);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(252, 122, 87, 0.18);
    transition: all 0.3s cubic-bezier(.4,1,.7,1.2);
    z-index: 1000;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
}

.back-to-top.show {
    opacity: 0.7;
    transform: translateY(0);
}

.back-to-top.show:hover {
    background: var(--primary-pink, #E62987);
    color: #fff;
    opacity: 1;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(230, 41, 135, 0.25);
}

.back-to-top:active {
    transform: translateY(-1px) scale(1.03);
}

.foto-principal {
  transition: transform 0.35s cubic-bezier(.4,1,.7,1.2), box-shadow 0.25s;
  cursor: pointer;
}
.foto-principal:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 32px rgba(230,41,135,0.18);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .projeto-container {
      padding: 1rem;
      border-radius: 10px;
      max-width: 100vw;
    }
    .topicos {
      flex-direction: column;
      gap: 24px;
    }
    .topicos::before {
      display: none !important;
    }
    .topicos > div {
      max-width: 100%;
      padding: 0 4px;
      min-width: 0;
    }
    .galeria {
      gap: 8px;
      justify-content: center;
    }
    .galeria img {
      width: 90px;
      height: 68px;
    }
    h1, h2, h3 {
      font-size: 1.2rem !important;
    }
}
@media (max-width: 480px) {
  .projeto-container {
    padding: 0.5rem;
    border-radius: 6px;
    max-width: 100vw;
  }
  .topicos {
    gap: 12px;
  }
  .galeria img {
    width: 70px;
    height: 52px;
  }
  h1, h2, h3 {
    font-size: 1rem !important;
  }
}

:root {
    --primary-coral: #FC7A57;
    --primary-coral-dark: #E5653D;
    --primary-pink: #E62987;
}