/* style.css */

/* Fontes Google sugeridas */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto&display=swap');

:root {
  --cor-primaria: #0A1A2F;
  --cor-destaque: #F4741F;
  --cor-fundo: #F6F6F6;
  --cor-texto: #2C2C2C;
  --cor-branco: #FFFFFF;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: var(--cor-branco);
  color: var(--cor-texto);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--cor-primaria);
    color: #F6F6F6;
    padding: 15px 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
    background: linear-gradient(to Bottom, #0A1A2F, transparent 110%); /* usa tua cor primária */
    border-bottom: none;
}

header.scrolled {
    background: var(--cor-primaria); /* Keeps the background consistent */
    padding: 10px 0; /* Slightly reduce padding when scrolled */
  }

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #fff; /* Cor padrão dos links */
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a.active {
  color: #ff7d1a; /* Cor laranja para o link ativo */
}

.nav-links a:hover {
  color: #ff7d1a; /* Cor laranja ao passar o mouse */
}


/* Hero */
.hero {
  background-color: var(--cor-branco);
  padding: 60px 0;
  margin-top: 70px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
  }
  
  .image-fade {
    flex: 1;
    position: relative;
    max-width: 50%;
    -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
    mask-image: linear-gradient(to left, black 60%, transparent 100%);
  }
  
  .image-fade img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .hero .text {
    flex: 1;
    padding: 2rem;
  }
  

.hero .text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero .text p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.hero button {
  background-color: var(--cor-destaque);
  color: var(--cor-branco);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.hero img {
  max-width: 100%;
  border-radius: 10px;
}

/* Sobre nós */
.sobre-nos {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--cor-fundo);
}

.sobre-nos h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2em;
}

/* Produtos */
.produtos {
  padding: 60px 0;
  background-color: var(--cor-branco);
}

.produtos h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2em;
  margin-bottom: 40px;
}

.cards {
    display: flex;
    gap: 38px;
    width: 100%;
    justify-content: center;
}

.card {
    background: #f5f6fa;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(10,34,54,0.04);
    padding: 24px 20px 24px 20px; /* topo e fundo iguais */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
    min-width: 160px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(255,125,26,0.12);
 transform: translateY(-4px) scale(1.025);
}

.card img {
    width: 120px;
    height: 120px;
    background: var(--cinza-img);
    border-radius: 10px;
    margin-bottom: 18px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cinza-txt);
    font-size: 1.02rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin: 0 0 6px 0;
}

.card p {
  margin: 8px 0 0 0;
  font-weight: 600;
  color: #ff7d1a;
  font-size: 1.05em;
}

.card button {
  margin-top: 12px;
  background: #ff7d1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  min-width: 120px; /* igual ao botão da página de produtos */
  transition: 
    background 0.2s,
    transform 0.18s cubic-bezier(.77,0,.18,1),
    box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(255,125,26,0.08);
}

.card button:hover {
  background: #e66a00;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(255,125,26,0.18);
}

.card button:active {
  transform: scale(0.96);
  background: #c95d00;
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cards {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
  }
  .card {
    width: 94vw;
    max-width: 340px;
    min-width: 0;
  }
  .image-fade {
    display: none !important;
  }
  .hero {
    background-image:
      linear-gradient(to bottom, rgba(255,255,255,0.85) 60%, rgba(255,255,255,1) 100%),
      url('../img/background.jpeg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 0 0 80px 0; /* sem padding-top */
    margin-top: 0;
  }
  .hero .text {
    padding-top: 90px; /* Ajuste conforme necessário para alinhar com o fim do gradiente */
  }
  .mobile-nav .logo,
  .mobile-nav h1.logo {
    color: #fff !important;
    text-align: center;
    margin-bottom: 32px;
    font-size: 2.2em;
    letter-spacing: 1px;
  }
}

/* Footer */
footer {
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  text-align: center;
  padding: 30px 10px;
  font-size: 0.9em;
}

/* Menu mobile hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  margin-left: 12px;
  z-index: 1201;
  transition: transform 0.3s;
}
.mobile-menu-btn span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fff;

  transition: 0.3s;
}

/* Mobile nav menu */
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10,26,47,0.98);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px);
  transition: opacity 0.35s cubic-bezier(.77,0,.18,1), transform 0.35s cubic-bezier(.77,0,.18,1);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav li {
  margin: 24px 0;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.5em;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.mobile-nav a.active,
.mobile-nav a:hover {
  color: #ff7d1a;
}

/* Mostrar só no mobile */
@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* Menu aberto */
.mobile-nav.open {
  display: flex;
}

/* Fade nos links do menu */
.mobile-nav ul li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-nav.open ul li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav.open ul li:nth-child(1) { transition-delay: 0.10s; }
.mobile-nav.open ul li:nth-child(2) { transition-delay: 0.18s; }
.mobile-nav.open ul li:nth-child(3) { transition-delay: 0.26s; }

.close-mobile-nav {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5em;
  cursor: pointer;
  z-index: 1200;
}

.mobile-nav.open ~ .mobile-menu-btn,
.mobile-menu-btn.open {
  display: none !important;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropbtn {
  background-color: transparent;
  color: #fff;
  padding: 8px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: #fff;
  min-width: 170px;
  box-shadow: 0 8px 24px rgba(10,34,54,0.10);
  border-radius:  8px;
  z-index: 10;
  padding: 0;
  margin: 0;
}

.nav-profile {

  position: relative;
  display: inline-block;
}

.profile-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.3s ease;
}

.profile-btn:hover {
  color: #ff7d1a;

}

.nav-profile.open .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #0a2236;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: #f5f6fa;
  color: #ff7d1a;
}

/* Dropdown links do perfil */
.nav-links .dropdown-content a {
  position: relative;
  display: block;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 14px 28px;
  color: #0a2236;
  text-decoration: none;
  border-radius: 0;
  background: none;
  transition: background 0.2s, color 0.2s;
  overflow: hidden;
}

/* Linha laranja começa no início da palavra */
.nav-links .dropdown-content a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: #ff7d1a;
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.nav-links .dropdown-content a:hover::after {
  transform: scaleX(1);
}

.nav-links .dropdown-content a:hover {
  background: transparent;
  color: #ff7d1a;
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}
.nav-links li {
  position: relative;
}

.nav-links li.open .dropdown-content {
  display: block;
}
