/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@500;700&display=swap');

:root {
  --primary-color: #b48a3b; /* warm gold inspired by logo */
  --secondary-color: #c91424; /* vibrant red echoing product labels */
  --accent-color: #17345c; /* deep navy for contrast */
  --light-bg: #fdf7e9; /* soft cream background */
  --text-color: #333;
  --max-width: 1200px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}

header .nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-color);
}
.logo img {
  height: 40px;
  margin-right: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav a {
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}
nav a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem 6rem;
  position: relative;
}
.hero::after {
  content: "";
  background-image: url('images/60adb74e-5865-431d-83c9-faf46baafe6f.JPG');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #555;
}
.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease-in-out;
}
.btn-primary:hover {
  background-color: #a1101a;
}

/* Products Section */
.products-section {
  background-color: #fff;
  padding: 4rem 1.25rem;
}
.products-section .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.products-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  text-align: center;
}
.product-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.product-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  background-color: #fff;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card h3 {
  font-size: 1.5rem;
  padding: 1rem 1rem 0.5rem;
  color: var(--accent-color);
}
.product-card p {
  padding: 0 1rem 1rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* About Section */
.about-section {
  background-color: var(--light-bg);
  padding: 4rem 1.25rem;
}
.about-section .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.about-text {
  flex: 1 1 400px;
}
.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.about-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.about-image {
  flex: 1 1 350px;
  text-align: center;
}
.about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-section {
  background-color: #fff;
  padding: 4rem 1.25rem;
}
.contact-section .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}
.contact-info p {
  margin-bottom: 0.75rem;
  color: #555;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  font-size: 1rem;
}
form button {
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
form button:hover {
  background-color: var(--accent-color);
}

/* Footer */
footer {
  background-color: var(--accent-color);
  color: #fff;
  padding: 2rem 1.25rem;
}
footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
footer p {
  font-size: 0.875rem;
}

/*
 * Responsive layout adjustments
 * These media queries ensure the site remains easy to navigate and read on
 * smaller devices. When the viewport is narrow, navigation links stack
 * vertically, font sizes scale down, and spacing is adjusted.
 */
@media (max-width: 768px) {
  /* Stack the header elements and navigation on top of each other */
  header .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Display nav links as a vertical list */
  nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }
  nav a {
    display: block;
    padding: 0.5rem 0;
  }

  /* Reduce heading sizes for better fit */
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .products-section h2,
  .about-text h2,
  .contact-info h2 {
    font-size: 2rem;
  }

  /* Allow product images to shrink naturally */
  .product-card img {
    height: auto;
  }
}

/* hide menu icon on desktop */
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* mobile adjustments */
@media (max-width: 768px) {

  nav {
    display: none;
    flex-direction: column;
    gap: 20px;
    background: white;
    padding: 20px;
    position: absolute;
    top: 70px;
    right: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  nav.show {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}