* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
}

.header {
  background: #fff;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  gap: 14px;
}

.logo img {
  height: 55px;
}

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

.nav a {
  color: #610000;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  letter-spacing: 0.02em;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #fff;
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #610000;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

.hero-bg-layer.is-active {
  opacity: 1;
}

/* Botão fixo no pé da imagem */
.btn-hero {
  position: absolute;
  bottom: 40px;
  /* distância do pé da imagem */
  left: 50%;
  transform: translateX(-50%);
  /* centraliza */
  background: white;
  color: #922222;
  padding: 15px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  display: inline-block;
  transition: 0.3s;
}

.btn-hero:hover {
  background: #f0f0f0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  /* escurece a imagem para o texto aparecer */
  backdrop-filter: blur(2px);
}

/* Conteúdo continua centralizado */
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 20px;
}

.hero h1,
.hero p {
  transition: opacity .5s ease-in-out;
}

.fade-out {
  opacity: 0;
}

.btn-primary {
  background: #fff;
  color: #610000;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #f4d4d4;
  transform: translateY(-3px) scale(0.995);
}

.hero-image img {
  width: 340px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #610000;
  margin-bottom: 12px;
}

.services,
.projects,
.about,
.contact {
  padding: 40px 20px;
}

/* Espaçamento específico para a seção de serviços (mais compacto) */
.services {
  padding-top: 18px;
  padding-bottom: 18px;
}

.services {
  background: #f9f9f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* equal-height cards */
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

/* Press / click animations */
.pressable {
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
  will-change: transform;
}


.pressable.pressed {
  /* move slightly "back" (up/into the page) while shrinking */
  transform: translateY(-6px) scale(0.985);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

.pressable.clicked {
  animation: click-pulse 420ms ease-out;
}

@keyframes click-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* Hover should also produce a slight recuo (move back) for interactive elements */
.pressable:hover,
.pressable:focus {
  transform: translateY(-4px) scale(0.995);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* smaller icons press */
.service-card .service-icon.pressed {
  /* icon moves slightly back and shrinks when pressed */
  transform: translateY(-4px) scale(0.9);
  transition: transform 0.18s ease;
}

/* animated chevron on click for service-list items */
.service-list li.press-anim::before {
  transform: translateX(8px);
  color: #610000;
}

.service-list li {
  cursor: pointer;
}

.service-card img {
  width: 60px;
  margin-bottom: 15px;
}

/* Ícone dentro do card */
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(155, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

/* Reduzir margens internas dos títulos e parágrafos dentro dos cards para compactar */
.service-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0 0 8px 0;
  line-height: 1.25;
  color: #6f6f6f;
  font-size: 0.95rem;
}

.service-list {
  margin-top: 6px;
  flex: 1 1 auto; /* lets the list expand to fill card height */
}

.service-list li {
  padding: 4px 0;
  font-size: 0.95rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Pequenos ícones para os cards: tamanho reduzido */
.service-card .service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.service-card .service-icon svg {
  width: 20px;
  height: 20px;
}

/* Estilos específicos para o card 'Espelhos' */
.service-card.espelhos {
  background: linear-gradient(135deg, #fff7f7, #ffffff);
  border: 1px solid rgba(155, 0, 0, 0.08);
  padding: 16px;
}

.service-card.espelhos h3 {
  color: #2b2b2b;
  margin-top: 0;
}

.service-card.espelhos p {
  color: #6f6f6f;
  margin-bottom: 0;
}

/* Lista de serviços com seta/chevron */
.service-list {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #333;
  font-size: 0.97rem;
}

.service-list li::before {
  content: '\203A';
  color: #9b0000;
  margin-right: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}

.service-list li:hover::before {
  transform: translateX(3px);
  transition: transform 0.18s ease;
}


@media (max-width: 768px) {

  .hero h1,
  .hero-title {
    font-size: 1.8rem;
    /* ajuste conforme necessário */
    line-height: 1.2;
    padding: 0 20px;
    text-align: center;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 20px;
    text-align: center;
  }


  .btn-hero {
    bottom: 25px;
    padding: 12px 16px;
    font-size: 15px;
  }

  .service-card {
    width: 100%;
  }

  .service-icon {
    width: 48px;
    height: 48px;
  }

  .service-icon svg {
    width: 22px;
    height: 22px;
  }
}

.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  text-align: center;
}

.carousel-item img {
  width: 100%;
  border-radius: 15px;
  max-height: 450px;
  object-fit: cover;
}

.carousel-item span {
  display: block;
  margin-top: 10px;
  font-style: italic;
  color: #666;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(97, 0, 0, 0.7);
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto 28px auto;
  padding: 0 16px;
}

.project-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card.no-action {
  cursor: default;
}

.project-card.no-action:hover img,
.project-card.no-action:focus img,
.project-card.no-action:focus-within img {
  transform: none;
  filter: none;
}

.project-card.no-action:hover h4,
.project-card.no-action:focus h4,
.project-card.no-action:focus-within h4 {
  color: inherit;
  transform: none;
}

.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 10px;
  transition: transform 0.45s cubic-bezier(.2, .9, .2, 1), filter 0.35s ease;
}

/* Lightbox styles */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 1100px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
  display: block;
  margin: 0 auto;
  background: #000;
  object-fit: contain;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(100vh - 160px);
}

/* Transição suave entre imagens no lightbox */
.lightbox-image {
  transition: opacity 360ms ease, transform 360ms cubic-bezier(.2, .9, .2, 1);
  opacity: 1;
  transform: scale(1);
}

.lightbox-image.loading {
  opacity: 0;
  transform: scale(0.985);
}

/* Prev / Next buttons inside lightbox */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: #610000;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.03);
}

.lightbox-caption {
  padding: 16px 20px;
  color: #333;
}

.lightbox-caption h4 {
  margin: 0 0 6px 0;
}

.lightbox-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

.project-card h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #2b2b2b;
}

/* Link wrapper for project cards: make title underlined and keyboard-focusable */
.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}


.project-link h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #2b2b2b;
  text-decoration: none;
  transition: color 0.22s ease, text-decoration-color 0.22s ease, transform 0.22s ease;
}

.project-link:hover h4,
.project-link:focus h4 {
  color: #610000;
  text-decoration-color: #610000;
  transform: translateY(-2px);
}

.project-link:focus {
  outline: 3px solid rgba(97, 0, 0, 0.12);
  outline-offset: 6px;
  border-radius: 8px;
}

/* Hover / focus effects for project cards */
.project-card:hover img,
.project-card:focus img,
.project-card:focus-within img {
  transform: scale(1.06);
  filter: brightness(0.95) saturate(1.02);
}

.project-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover::after,
.project-card:focus::after,
.project-card:focus-within::after {
  opacity: 1;
}

.project-card:hover h4,
.project-card:focus h4,
.project-card:focus-within h4 {
  color: #610000;
  transform: translateY(-2px);
  transition: color 0.25s ease, transform 0.25s ease;
}

.projects-actions {
  text-align: center;
  margin-top: 8px;
}

.more-projects-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 26px;
  background: #610000;
  color: #fff;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.12s ease;
}

.more-projects-btn:hover {
  background: #7a0000;
  transform: translateY(-3px);
}

/* Seção geral */
.about {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  line-height: 1.7;
  color: #333;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Título principal */
.about .section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #610000;
  position: relative;
}

/* Subtítulos (Missão, Visão, Valores) */
.about h3 {
  margin-top: 35px;
  margin-bottom: 10px;
  color: #610000;
  font-size: 1.4rem;
  border-left: 4px solid #610000;
  padding-left: 10px;
}

/* Parágrafos */
.about p {
  margin-bottom: 15px;
  text-align: justify;
}

/* Lista de valores */
.about ul {
  margin-top: 10px;
  padding-left: 20px;
}

.about ul li {
  margin-bottom: 6px;
}

/* Efeito suave quando o usuário passa o mouse */
.about ul li:hover {
  color: #004a7c;
  transition: 0.3s;
}


.contact {
  background: #f5f5f5;
  text-align: center;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

textarea {
  min-height: 120px;
}

/* Footer Geral */
.footer {
  background: #610000;
  color: #fff;
  padding: 50px 20px;
  font-family: "Poppins", sans-serif;
}

/* Container com 3 colunas */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-simple {
  justify-content: center;
  text-align: center;
  align-items: center;
}

.footer-column {
  flex: 1;
  min-width: 260px;
  text-align: center;
}

.footer-column h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer .social-icons {
  display: flex;
  flex-direction: column;
}

.info-item a {
  color: #fff;
  text-decoration: none;
}

.info-item a:hover {
  opacity: 0.7;
}

/* ---------- HORÁRIO DE FUNCIONAMENTO ---------- */

.opening-hours {
  margin-top: 25px;
  text-align: left;
}

.opening-hours h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #ffffff;
  border-left: 4px solid #ffffff;
  padding-left: 10px;
}

.opening-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.7;
}

.opening-hours li {
  font-size: 0.95rem;
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.opening-hours li strong {
  font-weight: 600;
}

/* Destacar o dia atual automaticamente (opcional com JS) */
.opening-hours li.active {
  color: #00d1ff;
  font-weight: bold;
}

/* Logos */
.partner-logo {
  width: 130px;
  margin-bottom: 20px;
}

/* Ícones de redes sociais */
.social-icons img {
  width: 40px;
  margin: 0 10px;
  transition: 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* Informações */
.info-item {
  margin: 10px 0;
  font-size: 1rem;
}

.info-item img {
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Mapa */
iframe {
  margin-top: 20px;
  border-radius: 10px;
}

/* Diretos autorais */
.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.social-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centraliza horizontalmente */
  gap: 18px;
  /* espaço entre os itens */
  margin-top: 15px;
}

.social-item {
  width: 55px;
  height: 55px;
  background: #ffffff15;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  border: 1px solid #ffffff20;
}

.social-item img {
  width: 28px;
  height: 28px;
}

.social-icons a {
  display: flex;
  align-items: center;
  /* alinha texto com o ícone */
  justify-content: center;
  gap: 12px;
  /* espaço entre ícone e texto */
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  .social-icons {
    gap: 18px;
  }

  .social-item {
    width: 48px;
    height: 48px;
  }

  .social-item img {
    width: 24px;
    height: 24px;
  }

  .social-icons a {
    color: #fff;
    /* deixa o texto branco (ou outra cor que quiser) */
    text-decoration: none;
    /* remove o sublinhado */
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
  }

  /* Se quiser um efeito suave ao passar o mouse */
  .social-icons a:hover {
    opacity: 0.7;
  }


  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .opening-hours li {
    flex-direction: column;
    gap: 2px;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .header {
    margin: 0;
    position: sticky;
  }

  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(32, 8, 8, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    padding: 18px 20px;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav a {
    color: #fff;
    margin: 0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    font-size: 1.05rem;
    padding: 6px 2px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .nav.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
  }

  .menu-toggle:active {
    background: rgba(97, 0, 0, 0.08);
  }

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

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

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

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* BOTÕES DE REDES SOCIAIS FLUTUANTES */
.social-floating {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.social-floating a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #610000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.social-floating a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.social-floating img {
  width: 26px;
  height: 26px;
}

/* Cores personalizadas por rede */
.social-floating .whatsapp {
  background: #25d366;
}

.social-floating .instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-floating .facebook {
  background: #1877f2;
}

@media (max-width: 800px) {
  .social-floating {
    position: fixed;
    right: 20px;
    bottom: 45px;
    gap: 10px;
  }

  .social-floating a {
    width: 45px;
    height: 45px;
  }
}
