/* ======================================= */
/* 0. ROOT & BASE STYLES (MOBILE-FIRST)    */
/* ======================================= */

:root {
  /* LOGO COLOR PALETTE: Dark Gray, Blue, Yellow */
  --color-primary: #1f2022; /* Dark Gray/Black (Main Text, Background Footer) */
  --color-secondary: #0076a3; /* Blue (Key Highlight, CTA Buttons) */
  --color-accent: #fcd428; /* Yellow (Borders, Secondary Highlights) */

  --color-dark: var(--color-primary);
  --color-light: #f4f4f4; /* Light Gray Background for alternating sections */
  --color-white: #ffffff;

  /* Define Spacing */
  --padding-small: 20px;
  --padding-medium: 40px;
  --padding-large: 80px;
}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", sans-serif;
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Base Typography */
h1,
h2,
h3 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}
h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.8rem;
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1em;
}

/* General Section Styling */
.content-section {
  padding: var(--padding-medium) var(--padding-small);
  max-width: 1200px;
  margin: 0 auto;
}

/* Utility Class */
.text-center {
  text-align: center;
}

/* Buttons & CTA */
.cta-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
  margin-top: 15px;
  border: none;
  cursor: pointer;
}
.cta-button:hover {
  background-color: #005f82;
}
.secondary-cta {
  display: block;
  text-align: center;
  margin-top: 30px;
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 600;
}

/* ======================================= */
/* 1. HEADER & NAVIGATION                  */
/* ======================================= */

.main-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 40px; /* Adjust the size as needed */
  height: auto;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333; /* Adjust the color as needed */
}

/* Remove the iron-bar styles */
.iron-bar {
  display: none; /* Or remove this block entirely */
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333; /* Adjust the color as needed */
}

/* Mobile Navigation */
.main-nav .nav-links {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-nav .nav-links li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--color-white);
  border-bottom: 1px solid #333;
}
.main-nav .nav-links li a:hover {
  background-color: var(--color-secondary);
}

.nav-toggle {
  display: none; /* Hide the toggle button for larger screens */
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 5px;
  color: var(--color-primary);
}
.nav-toggle::before {
  content: "☰";
}

.main-nav.active .nav-links {
  display: block;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none; /* Initially hide the nav links */
    flex-direction: column;
    width: 100%;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links.active {
    display: flex; /* Show the nav links when active */
  }
}

/* Default logo size for small screens */
.logo img {
  max-width: 40px; /* Small screen size */
  height: auto;
  margin-right: 10px;
}

/* Adjustments for the smallest screen sizes */
@media (max-width: 480px) {
  .logo {
    justify-content: center; /* Center the logo, text, and bar */
  }

  .logo img {
    max-width: 30px; /* Smaller logo size for the smallest screens */
  }

  .logo-text {
    font-size: 1rem; /* Smaller text size */
  }

  .iron-bar {
    width: 40px; /* Adjust the bar width for smaller screens */
  }
}

/* Adjust logo size for larger screens */
@media (min-width: 768px) {
  .logo img {
    max-width: 40px; /* Medium screen size */
  }
}

@media (min-width: 1024px) {
  .logo img {
    max-width: 50px; /* Large screen size */
  }
}

/* ======================================= */
/* 2. HERO SECTION                         */
/* ======================================= */

.hero-section {
  background: linear-gradient(rgba(31, 32, 34, 0.7), rgba(31, 32, 34, 0.7)),
    url("hero-bg-image.jpg") no-repeat center center/cover;
  color: var(--color-white);
  padding: 80px var(--padding-small);
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-section h1 {
  font-size: 2.8rem;
  color: var(--color-white);
}

/* ======================================= */
/* 3. ABOUT US (Differentiators Grid)      */
/* ======================================= */

.about-us {
  background-color: var(--color-white);
}

.differentiators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
  text-align: left;
}
.differentiators-grid div {
  padding: 20px;
  border: 1px solid var(--color-light);
  border-top: 4px solid var(--color-secondary);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ======================================= */
/* 4. PRODUCTS SECTION (CATALOG STYLE)     */
/* ======================================= */

.products-section {
  background-color: var(--color-light);
}

.section-subtitle {
  margin-bottom: 40px;
  color: #555;
  font-style: italic;
}

/* Product Catalog Grid Setup */
.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile/Tablet: 2 columns */
  gap: 15px;
  margin-top: 30px;
}

.product-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background-color: var(--color-white);
}

.product-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease-in-out;
}

/* Product Overlay for details on hover */
.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75); /* Dark semi-transparent background */
  color: var(--color-white);
  padding: 15px;
  transform: translateY(100%); /* Initially hide the overlay below the item */
  transition: transform 0.3s ease-in-out;
  text-align: left;
}
.product-overlay h4 {
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 5px;
}
.product-overlay p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ddd;
}

/* Hover Effect */
.product-item:hover img {
  transform: scale(1.05); /* Slight zoom on image */
}
.product-item:hover .product-overlay {
  transform: translateY(0); /* Slide overlay up */
}

/* ======================================= */
/* 5. CONTACT & CALL TO ACTION             */
/* ======================================= */

.contact-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}
.contact-section h2 {
  color: var(--color-accent);
  border-bottom-color: var(--color-secondary);
}
.contact-section p {
  color: #cccccc;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
  text-align: left;
  padding-top: 20px;
}

.contact-details h3 {
  color: var(--color-accent);
  margin-top: 0;
  font-size: 1.5rem;
}
.contact-details p {
  color: var(--color-white);
}

.map-container {
  height: 300px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.contact-form {
  display: grid;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #333;
  color: var(--color-white);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form .cta-button {
  width: 100%;
}

/* ======================================= */
/* 6. FOOTER                               */
/* ======================================= */

.main-footer {
  background-color: #111;
  color: #999;
  padding: 20px var(--padding-small);
  text-align: center;
  font-size: 0.9rem;
}

.main-footer a {
  color: var(--color-secondary);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}
.main-footer a:hover {
  color: var(--color-accent);
}

/* ======================================= */
/* MEDIA QUERIES (TABLET & DESKTOP)        */
/* ======================================= */

/* --- TABLET BREAKPOINT (min-width: 768px) --- */
@media (min-width: 768px) {
  /* General Adjustments */
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  .content-section {
    padding: var(--padding-large) var(--padding-medium);
  }

  /* 1. Navigation */
  .nav-toggle {
    display: none;
  }
  .main-nav .nav-links {
    display: flex;
    position: static;
    box-shadow: none;
    background: none;
  }
  .main-nav .nav-links li a {
    padding: 10px 15px;
    border-bottom: none;
    color: var(--color-primary);
  }
  .main-nav .nav-links li a:hover {
    color: var(--color-secondary);
    background: none;
  }

  /* 3. About Us: Differentiators Grid (3 columns) */
  .differentiators-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 4. Products Catalog (3 columns for tablet/desktop) */
  .product-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  /* 5. Contact Layout: 2 columns */
  .contact-layout {
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
  }
  .map-container {
    height: 100%;
  }
}

/* --- DESKTOP BREAKPOINT (min-width: 1024px) --- */
@media (min-width: 1024px) {
  h1 {
    font-size: 3.8rem;
  }
  h2 {
    font-size: 2.5rem;
  }

  /* 4. Products Catalog (4 columns for large desktop) */
  .product-catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .logo img {
    max-width: 80px; /* Adjust the size as needed */
    height: auto;
  }
}

#home {
  background: url("../images/banner.jpg") no-repeat center center/cover;
  color: #fff; /* Ensure text is readable on the banner */
  padding: 100px 20px; /* Adjust padding as needed */
  text-align: center;
}

#home h1,
#home p {
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  display: inline-block; /* Shrink-wrap the background to the text */
  padding: 10px 15px; /* Add padding around the text */
  border-radius: 5px; /* Optional: Add rounded corners */
}

#home h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

#home p {
  font-size: 1.2rem;
  line-height: 1.6;
}
