:root {
  --azul-principal: #0059b3;
  --azul-escuro: #003366;
  --azul-claro: #e6f0ff;
  --branco: #ffffff;
  --cinza-texto: #333;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background: var(--azul-claro);
  color: var(--cinza-texto);
}


header {
  background: linear-gradient(90deg, var(--azul-escuro), var(--azul-principal));
  color: var(--branco);
  padding: 15px 25px;
}

.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 45px;
}

.menu a {
  color: var(--branco);
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.menu a:hover {
  color: #cce0ff;
}

/* ================= HERO SECTION ================= */
.hero {
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul-principal));
  color: var(--branco);
  padding: 80px 20px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-hero {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  background: var(--branco);
  color: var(--azul-escuro);
}

.btn-hero.secondary {
  background: transparent;
  border: 2px solid var(--branco);
  color: var(--branco);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero.secondary:hover {
  background: var(--branco);
  color: var(--azul-escuro);
}


main {
  padding: 30px 20px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background: var(--branco);
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-bottom: 10px;
  color: var(--azul-principal);
}

.card ul {
  margin-left: 20px;
}

.card li {
  margin-bottom: 8px;
}


.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}


.galeria img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}


.galeria img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* ================= EQUIPE & SERVIÇOS GRID ================= */
.servicos-grid,
.servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.servico-card,
.servico {
  background: var(--branco);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 89, 179, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servico-card:hover,
.servico:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 89, 179, 0.15);
  border-color: var(--azul-principal);
}

.foto-perfil {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--azul-principal);
  padding: 5px;
  background: var(--branco);
  transition: transform 0.3s;
}

.servico-card:hover .foto-perfil {
  transform: scale(1.1) rotate(5deg);
}

.servico-card h3,
.servico h3 {
  color: var(--azul-escuro);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.servico-card p,
.servico p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

form.card {
  max-width: 600px;
  margin: 0 auto 30px auto;
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--azul-escuro);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: border 0.3s, box-shadow 0.3s;
}

form textarea {
  resize: vertical;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--azul-principal);
  box-shadow: 0 0 0 2px rgba(0, 89, 179, 0.2);
}

button {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  background: linear-gradient(90deg, var(--azul-principal), var(--azul-escuro));
  color: var(--branco);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(0);
}


footer {
  text-align: center;
  padding: 15px;
  background: var(--azul-escuro);
  color: var(--branco);
}

/* ================= LOJA ================= */

.loja {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

/* FILTROS */
.filtros {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  height: fit-content;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.filtros h2 {
  color: var(--azul-principal);
  margin-bottom: 15px;
}

/* Categoria Buttons */
.filtros button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
  background: #e6f0ff;
  color: #003366;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

/* Hover dos filtros */
.filtros button:hover {
  background: var(--azul-principal);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Botão Mostrar todos */
.filtros .btn-todos {
  background: #2d2d2d;
  color: #ffffff;
  margin-top: 18px;
}

.filtros .btn-todos:hover {
  background: #000000;
}

/* VITRINE */
.vitrine {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.produto {
  position: relative;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.produto img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

.produto h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--azul-escuro);
}

.produto-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}

.produto-link:hover {
  transform: scale(1.02);
}

/* PREÇOS */
.preco-antigo {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.preco-novo {
  color: #009739;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* BOTÃO */
.produto button {
  padding: 10px;
  width: 100%;
  background: var(--azul-principal);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.produto button:hover {
  background: var(--azul-escuro);
  transform: translateY(-4px);
}



/* BADGES */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: white;
  font-weight: bold;
}

.badge.oferta {
  background: #c00000;
}

.badge.novo {
  background: #009739;
}


.modal-carrinho {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--branco);
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fechar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--cinza-texto);
}

.fechar-modal:hover {
  color: var(--azul-principal);
}

.itens-carrinho {
  margin-top: 20px;
}

.item-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.item-carrinho:last-child {
  border-bottom: none;
}

.total-carrinho {
  margin-top: 20px;
  text-align: right;
  font-size: 20px;
  font-weight: bold;
  color: var(--azul-escuro);
}

.btn-finalizar {
  background: #009739;
  margin-top: 20px;
}

.btn-finalizar:hover {
  background: #007a2d;
}

.carrinho {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  transition: background 0.3s;
}

.carrinho:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ================= RESPONSIVIDADE ================= */

@media (max-width: 768px) {

  .topo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-area {
    justify-content: center;
    margin-bottom: 10px;
  }

  .menu {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .menu a {
    margin: 0;
  }

  .carrinho {
    display: block;
    margin-top: 10px;
    font-weight: bold;
  }

  .loja {
    grid-template-columns: 1fr;
  }


  .filtros {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu a {
    padding: 8px 0;
  }

  .produto img {
    height: 150px;
  }
}