@import url(variables.css);

/* --- Base Reset --- */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--white);
  color: var(--primary);
  font-size: 1.4rem;
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Header & Navigation  */
header {
  width: 100%;
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: transparent;
  box-shadow: none;
  transition: all 0.4s ease;
}

header .logo,
header .menu-toggle i {
  color: var(--white);
  transition: color 0.4s ease;
}

header.scrolled {
  padding: 1.5rem 0;
  background-color: var(--white);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

header.scrolled .logo,
header.scrolled .menu-toggle i {
  color: var(--primary);
}

header.scrolled .nav-links a {
  color: var(--primary);
}

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

.logo {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  background: var(--secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.logo a:hover {
  opacity: 0.8;
  transition: 0.3s;
}

/* --- Menu Mobile First Default --- */
.menu-toggle {
  display: flex;
  font-size: 2.5rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 10001;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--menu);
  z-index: 10000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

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

.nav-links li {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.nav-links.active li {
  opacity: 1;
  transform: translateX(0);
}

.nav-links.active li:nth-child(1) {
  transition-delay: 0.2s;
}
.nav-links.active li:nth-child(2) {
  transition-delay: 0.3s;
}
.nav-links.active li:nth-child(3) {
  transition-delay: 0.4s;
}
.nav-links.active li:nth-child(4) {
  transition-delay: 0.5s;
}

.nav-links a {
  font-size: 2.4rem;
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* --- Hero Section --- */
.hero-overlay {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 20%),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      transparent 100%
    ),
    url("../../assets/images/hero-image.jpg") center/cover no-repeat;
  position: relative;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  text-align: center; /* Default Mobile */
  width: 100%;
  padding: 0 2rem;
  z-index: 1001;
}

.hero-content h1 {
  font-size: clamp(4rem, 7vw, 7.5rem);
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 2.5rem;
  font-weight: 800;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.8rem;
  max-width: 500px;
  margin: 0 auto 4rem; /* Mobile Center */
}

.btn-hero {
  position: relative;
  padding: 1.6rem 4.5rem;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--secondary);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: 0.4s;
  z-index: 1;
  display: inline-block;
}

.btn-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--secondary);
  transition: 0.4s;
  z-index: -1;
}

.btn-hero:hover::before {
  width: 100%;
}
.btn-hero:hover {
  color: var(--primary);
}

/* --- About section --- */
.about {
  padding: 8rem 0;
  background-color: var(--white);
}

.about-wrapper {
  display: flex;
  flex-direction: column; /* Stacked Mobile */
  align-items: center;
  gap: 4rem;
  text-align: center;
}

.about-image {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  z-index: 2;
  position: relative;
}

.decoration-box {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background-color: var(--secondary);
  z-index: 1;
}

.about-content .subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.about-content h2 {
  font-size: clamp(3rem, 4vw, 4.5rem);
  color: var(--hover);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.about-content .description {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #555;
  max-width: 500px;
}

.btn-secondary {
  display: inline-block;
  margin: 3rem auto 0;
  padding: 1.4rem 3.5rem;
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.btn-secondary:hover {
  background-color: var(--hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.btn-secondary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.3);
  transition: width 0.3s ease;
}

.btn-secondary:hover::after {
  width: 100%;
}

/* --- Product Grid --- */
.products {
  padding: 8rem 0;
}

.section-header-center {
  text-align: center;
  margin-bottom: 5rem;
  font-size: clamp(2.5rem, 3vw, 3.5rem);
  color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default Mobile */
  gap: 3rem;
}

.product-card {
  background: var(--white);
  position: relative;
  transition: 0.4s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  background-color: #f4f4f4;
  padding: 3rem;
  border-radius: 0.8rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image img {
  max-width: 100%;
  height: 250px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2rem;
}

.add-to-cart {
  position: absolute;
  bottom: -60px;
  right: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card:hover .add-to-cart {
  bottom: 1.5rem;
}

.product-info {
  padding: 2rem 0;
}
.product-info h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-category {
  color: #888;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
}

/* --- Footer --- */
.main-footer {
  background: var(--primary);
  color: var(--white);
  padding: 8rem 5% 4rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.main-footer h2 {
  font-size: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.main-footer h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: var(--secondary);
  margin: 1.5rem auto 0;
}

.contact-info p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.contact-info a {
  color: var(--white);
  transition: color 0.3s;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--hover);
}

.social-links i {
  font-size: 2.4rem;
  transition:
    transform 0.3s,
    color 0.3s;
}

.social-links a:hover i {
  color: var(--hover);
  transform: translateY(-5px);
}

.copyright {
  margin-top: 6rem;
  font-size: 1.3rem;
  opacity: 0.6;
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  padding-top: 3rem;
}

/* MEDIA QUERIES DESKTOP */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    flex-direction: row;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    gap: 4rem;
  }

  .nav-links a {
    color: var(--secondary);
    font-size: 1.3rem;
  }

  header.scrolled .nav-links a {
    color: var(--primary);
  }

  .nav-links a:hover {
    background-color: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary);
  }

  .nav-links li {
    opacity: 1 !important;
    transform: none !important;
    transition: none; /* Remove a animação de entrada no desktop */
  }

  .hero-content {
    text-align: left;
    padding-left: 10%;
  }

  .hero-content p {
    margin: 0 0 4rem 0;
    border-left: 3px solid var(--secondary);
    padding-left: 2rem;
  }

  .about-wrapper {
    flex-direction: row;
    text-align: left;
    gap: 8rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .main-footer {
    padding: 4rem 0;
  }
}
