/* === Google Fonts Settings === */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
}
h1, h2, h3, blockquote {
  font-family: 'Lora', serif;
  margin-bottom: 1rem;
}

/* Global Reset & Box Model */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.9);
  padding: 1rem 2rem;
  flex-wrap: wrap;
}
.nav-links {
  list-style: none;
  display: flex;
}
.nav-links li {
  margin-left: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
  transition: background 0.3s;
}
.nav-links a:hover {
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}
.nav-links .active {
  border-bottom: 2px solid #3882f6;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: rgba(25, 25, 112, 0.9); 
  color: white;
  padding: 6rem 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-content {
  flex: 1 1 45%;
  text-align: left;
  z-index: 1;
}
.hero-image {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}
.hero-img {
  max-width: 80%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: #3882f6;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s;
  text-decoration: none;
}
.btn:hover {
  opacity: 0.8;
}

/* Preview Grid */
.preview {
  padding: 5rem 2rem;
  text-align: center;
}
.preview-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.preview-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.preview-item img {
  width: 370px;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.preview-item img:hover {
  transform: scale(1.05);
}
.preview-item h3 {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  text-align: left;
  margin: 0;
  flex: 1;
}

/* Quote Section */
.quote {
  padding: 2rem 2rem;
  background: #f5f5f5;
  text-align: center;
  font-style: italic;
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

/* Banner CTA */
.banner-cta {
  padding: 2rem 2rem;
  background: #1f2937;
  color: #fff;
  text-align: center;
  padding-bottom: 0;
}
.banner-cta .btn {
  background: #fff;
  color: #333;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
  padding: 2rem;
}
.product-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card img {
  width: 100%;
  border-radius: 4px;
  height: 30vw; 
  object-fit: cover;
  will-change: transform;
}
.product-card .price {
  margin: 0.5rem 0;
  font-weight: bold;
}
.fix-button .btn {
  margin-top: 2rem; 
}
main h1 {
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

/* About Page */
.about {
  padding: 4rem 2rem;
}
.about .story {
  margin-top: 2rem;
  font-style: italic;
}
.story h2 {
  text-align: center;
  font-size: 1.6rem;
}

/* Contact Form */
.contact-page {
  padding: 4rem 2rem;
}
#contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contact-form label span {
  color: red;
}
#contact-form input,
#contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#contact-form button {
  width: 150px;
  align-self: flex-start;
}
.contact-page p {
  margin-bottom: 3rem;
  font-size: 1rem;
  color: #000000;
  text-align: center;
}

/* Footer */
footer {
  background: #1f2937;
  color: #e5e7eb;
  text-align: center;
  padding: 2rem 1rem;
}
.footer-social img {
  width: 30px;
  margin: 0 0.5rem;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.footer-social img:hover {
  opacity: 0.7;
}

/* Logo */
.logo-img {
  height: 50px; 
  width: auto;  
  vertical-align: middle;
  margin-right: 1rem; 
}
@media screen and (max-width: 600px) {
  .logo-img {
    height: 40px;
  }
}

/* === Responsive Media Queries === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }

 .nav-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

/* When screen is small */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    order: 2;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  #nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
  }
}

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .hero-image {
    flex: 1 1 100%;
  }

  .hero-content {
    text-align: center;
  }

  .preview-item {
    flex-direction: column;
    text-align: center;
  }

  .preview-item img {
    width: 100%;
    height: auto;
  }

  .preview-item h3 {
    text-align: center;
  }

  .product-card img {
    height: auto;
  }

  .product-card {
    padding: 1rem 0.5rem;
  }

  .product-card h2 {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    padding: 0.6rem 1rem;
  }

  .about,
  .contact-page {
    padding: 2rem 1rem;
  }

  .story h2 {
    font-size: 1.3rem;
  }

  .contact-page p,
  .about p {
    font-size: 1rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .footer-social img {
    width: 25px;
  }

  footer {
    font-size: 0.9rem;
  }
}

/* Background Gradient */
body {
  position: relative;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(118deg, #ffbf00, #8155ba, #6dece0);
  opacity: 0.4;
  z-index: -1;
}
