/* Basic Reset & Typography */
:root {
  --primary-color: #0056b3; /* Darker Blue */
  --secondary-color: #f7a000; /* Orange/Yellow */
  --text-dark: #333;
  --text-light: #666;
  --background-light: #f4f4f4;
  --border-color: #ddd;
  --white: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto Slab", serif;
  color: var(--primary-color);
  margin-bottom: 15px;
}

h1 {
  font-size: 2.8em;
}
h2 {
  font-size: 2.2em;
}
h3 {
  font-size: 1.8em;
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

.text-center {
  text-align: center;
  margin-top: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #d18700; /* Slightly darker orange */
}

/* Header & Navbar - Desktop */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative; /* Needed for absolute positioning of mobile menu */
}

.logo {
  /* Remove font styles as it's now an image */
  /* font-family: "Roboto Slab", serif; */
  /* font-size: 1.8em; */
  /* font-weight: 700; */
  color: var(
    --white
  ); /* White for hero section */ /* This can be removed or kept for fallback text if image fails */
  display: flex; /* Helps in aligning the image if needed */
  align-items: center; /* Vertically center the image */
  height: 50px; /* Set a fixed height for the logo container */
}

.logo img {
  height: 100%; /* Make the image fill the height of its parent (.logo) */
  width: auto; /* Maintain aspect ratio */
  max-width: 150px; /* Set a maximum width to prevent it from being too large */
}

/* Footer Logo Styling */
.footer-logo {
  height: 90px; /* Match the height of the header logo for consistency, or adjust as needed */
  margin-bottom: 15px; /* Add some space below the logo */
  display: flex; /* Use flex to potentially center the image if needed */
  align-items: center;
  justify-content: center; /* Center the logo horizontally in the footer column */
}

.footer-logo img {
  height: 100%; /* Make the image fill the height of its container */
  width: auto; /* Maintain aspect ratio */
  max-width: 250px; /* Prevent it from getting too wide */
  /* filter: brightness(0) invert(1); /* This filter makes a dark logo white, useful if you only have a dark version. Adjust if your logo is already white. */
}

.hamburger-menu {
  display: none; /* Hidden by default on large screens */
  background: none;
  border: none;
  font-size: 1.8em;
  color: var(--white);
  cursor: pointer;
  z-index: 101; /* Ensure it's above the menu */
}

.nav-links-container {
  /* No specific styles needed here for desktop, it will just contain the ul */
}

.nav-links {
  display: flex; /* Keeps horizontal layout on desktop */
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  color: var(--white);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/store-interior-1.jpeg") no-repeat center center/cover;
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  display: flex;
  align-items: center;
  min-height: 60vh; /* Adjust as needed */
  position: relative; /* For header positioning */
}

.hero .navbar {
  position: fixed; /* Changed from absolute to sticky */
  top: 0; /* it sticks the element to the top of the viewport */
  left: 0; /* Ensures it spans the full width */
  width: 100%; /* Ensures the navbar spans the full width */
  padding: 20px 20px; /* Keep consistent padding */
  z-index: 100; /* Ensure navbar is above content */
  /* background-color: rgba(
    0,
    0,
    0,
    0.2
  ); /* Slightly transparent background for readability */
  background-color: var(
    --primary-color
  ); /* Make background solid for better visibility when sticky */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow for separation */
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 80px; /* Space for fixed header */
  /* Remove or significantly reduce padding-top as the navbar is no longer absolute */
  /* padding-top: 0; */
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-ctas .btn {
  margin: 0 10px;
}

/* Sections General Styling */
section {
  padding: 60px 0;
  margin-bottom: 30px;
}

section:nth-of-type(even) {
  background-color: var(--background-light);
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
}

.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1em;
  color: var(--text-light);
}

/* Value Proposition */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.benefit-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-item .icon {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.benefit-item h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

/* Product Categories */
.product-categories {
  background-color: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.category-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block; /* Make the whole card clickable */
  color: var(--text-dark); /* Ensure text color for the link */
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block; /* Remove extra space below image */
}

.category-card h3 {
  font-size: 1.3em;
  margin: 15px 0 20px;
  color: var(--primary-color);
}

/* Special Offers */
.special-offers {
  background-color: var(--background-light);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.offer-card {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
}

.offer-card img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.offer-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.offer-card .price {
  font-size: 1.2em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.offer-card .price s {
  color: var(--text-light);
  margin-right: 10px;
}

.offer-card .sale-price {
  color: #e74c3c; /* Red for sale price */
  font-weight: 700;
}

/* Testimonials */
.testimonials {
  background-color: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--background-light);
  padding: 25px;
  border-left: 5px solid var(--secondary-color);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  box-shadow: 0 2px 10px var(--shadow);
}

.testimonial-card p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.testimonial-card cite {
  display: block;
  text-align: right;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact Info */
.contact-info {
  background-color: var(--background-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Adjust ratio as needed */
  gap: 50px;
  align-items: flex-start; /* Align top of content */
}

.contact-details h3 {
  margin-top: 0;
  font-size: 1.6em;
}

.contact-details p,
.contact-details ul {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.contact-details ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
}

.contact-details ul li {
  margin-bottom: 5px;
}

.map-container {
  height: 450px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.get-directions-btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-col h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--white);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--secondary-color);
}

.social-icons a {
  color: var(--white);
  font-size: 1.5em;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
}

.footer-bottom p {
  margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Stack on smaller screens */
  }
  .map-container {
    height: 350px; /* Adjust map height */
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }
  h2 {
    font-size: 1.8em;
  }
  h3 {
    font-size: 1.4em;
  }

  .hero {
    padding: 80px 0;
    min-height: 50vh;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Remove original nav-links mobile styles */
  /*
  .nav-links {
    margin-top: 15px;
    flex-wrap: wrap; /* Allow links to wrap */
  /* justify-content: center;
  } 
  .nav-links li {
    margin: 5px 10px; /* Adjust spacing for smaller screens */
  /* } */
  .logo {
    margin-bottom: 10px;
  }
  .hero .navbar {
    padding: 15px 20px; /* Adjust header padding */
  }

  .hero-content {
    padding-top: 0; /* No extra padding for fixed header on mobile if navbar expands */
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .hero-ctas .btn {
    margin: 0; /* Remove horizontal margin */
    width: 100%; /* Make buttons full width */
  }

  .benefits-grid,
  .categories-grid,
  .offers-grid,
  .testimonial-grid,
  .footer-content {
    grid-template-columns: 1fr; /* Stack all grids on very small screens */
  }

  .testimonial-card {
    margin-bottom: 20px; /* Space between stacked testimonials */
  }

  .footer-col {
    text-align: center;
  }
  .social-icons {
    justify-content: center;
    display: flex; /* Center social icons */
  }
}

/* Responsive Design - Mobile Navbar */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row; /* Keep logo and hamburger on the same row */
    justify-content: space-between; /* Space out logo and hamburger */
    align-items: center; /* Vertically center them */
    padding: 15px 20px;
  }

  .hamburger-menu {
    display: block; /* Show hamburger on small screens */
  }

  .nav-links-container {
    position: absolute;
    top: 100%; /* Position below the navbar */
    left: 0;
    width: 100%;
    background-color: var(--primary-color); /* Background for the mobile menu */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Hide content that overflows */
    max-height: 0; /* Initially hidden */
    transition: max-height 0.3s ease-out; /* Smooth slide out effect */
    z-index: 100;
  }

  .nav-links-container.active {
    max-height: 200px; /* Adjust based on content. Needs to be large enough to show all links */
    /* Alternatively, for dynamic height, use 'height: auto; transition: height 0.3s ease-out;'
       but max-height is generally smoother for transitions. */
  }

  .nav-links {
    flex-direction: column; /* Stack links vertically */
    padding: 10px 0; /* Padding inside the menu */
    width: 100%;
  }

  .nav-links li {
    margin: 0; /* Remove horizontal margins */
    width: 100%; /* Make each link take full width */
    text-align: center; /* Center the link text */
  }

  .nav-links li a {
    display: block; /* Make the whole area of li clickable */
    padding: 10px 20px; /* Padding for each link */
    color: var(--white); /* Ensure links are white in mobile menu */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
  }

  .nav-links li:last-child a {
    border-bottom: none; /* No border for the last link */
  }

  /* Adjust hero section padding-top if navbar height changes with the new mobile menu */
  .hero-content {
    padding-top: 80px; /* Keep this if the navbar becomes fixed and covers content */
  }
  .hero .navbar {
    position: fixed; /* sticky or keep fixed if you want it always visible */
    top: 0;
    background-color: var(
      --primary-color
    ); /* Solid background for mobile header */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  .hero-content h1 {
    font-size: 1.8em;
  }
  .hero-content p {
    font-size: 1em;
  }
  section {
    padding: 40px 0;
  }
  .map-container {
    height: 300px;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed; /* Makes the button stick to the viewport */
  bottom: 20px; /* Distance from the bottom of the screen */
  right: 20px; /* Distance from the right of the screen */
  background-color: #25d366; /* WhatsApp green */
  color: white;
  width: 60px; /* Width of the button */
  height: 60px; /* Height of the button */
  border-radius: 50%; /* Makes it a perfect circle */
  text-align: center;
  font-size: 2.5em; /* Size of the WhatsApp icon */
  line-height: 60px; /* Vertically centers the icon */
  z-index: 1000; /* Ensures it stays on top of other content */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex; /* Use flexbox for robust centering */
  justify-content: center;
  align-items: center;
}

.whatsapp-float i {
  /* No specific styles needed here if using flexbox for centering */
}

.whatsapp-float:hover {
  background-color: #1da851; /* Darker green on hover */
  transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Adjust for smaller screens (optional, but good practice) */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 2em;
    line-height: 50px;
    bottom: 15px;
    right: 15px;
  }
}

/* Company History Section */
.company-history {
  background-color: var(--white); /* Or var(--background-light) if you prefer */
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.history-item {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
  text-align: left; /* Align text within history items */
  border-top: 4px solid var(--primary-color); /* A subtle top border */
}

.history-item h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 10px;
}

.history-item p {
  color: var(--text-dark);
  font-size: 1em;
  line-height: 1.7;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
  .history-grid {
    grid-template-columns: 1fr; /* Stack columns on smaller screens */
  }
}
