/* Base Styles */
:root {
  --navy-blue: #0a2463;
  --red: #e51d1d;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --text-color: #333333;
  --border-radius: 4px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Style for the header */

/* Overlay for slight transparency */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(0, 0, 0, 0.4); /* Adjust transparency */
  z-index: 1;
}

/* Ensuring content is above overlay */
.header .container {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
}

/* Core layout styles */
.header {
  background-color: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
}

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

/* Navigation styles */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Logo position (desktop default: right) */
.nav-logo-right {
  order: 2;
}

.nav-logo-right img {
  height: 40px;
  width: auto;
}

.logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  margin-right: 5px;
}

.logo img {
  display: block;
  height: 60px;
  width: auto;
}
/* Hamburger styles (hidden by default) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Responsive behavior */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: stretch;
  }

  /* Move logo to top-left */
  .nav-logo-right {
    order: -1;
    align-self: flex-start;
    margin-bottom: 10px;
  }

  /* Hide nav list initially on small screens */
  .nav-list {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  /* Show hamburger */
  .mobile-menu-toggle {
    display: flex;
    align-self: flex-end;
    margin-top: -45px;
  }

  /* When nav is open (you’ll toggle this with JS) */
  .nav.active .nav-list {
    display: flex;
  }
}
.mobile-menu-toggle:hover .bar:nth-child(1) {
  transform: rotate(2deg);
}
.mobile-menu-toggle:hover .bar:nth-child(2) {
  transform: scaleX(1.2);
}
.mobile-menu-toggle:hover .bar:nth-child(3) {
  transform: rotate(-2deg);
}
.nav-item a {
  position: relative;
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.nav-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #f01a16;
  transition: width 0.3s ease-in-out;
}

.nav-item a:hover {
  color: #f01a16;
}

.nav-item a:hover::after {
  width: 100%;
}
/* Responsive layout */

/* Button Styling */
.btn-primary {
  background-color: #007bff;
  border: none;
  padding: 8px 16px;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #0056b3;
}

body {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;

  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  line-height: 1.2;
  color: var(--navy-blue);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #c11414;
}

.btn-secondary {
  background-color: var(--navy-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #081b4a;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-red {
  background-color: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}

.btn-outline-red:hover {
  background-color: rgba(229, 29, 29, 0.1);
}

.btn-full {
  width: 100%;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--navy-blue);
  transition: var(--transition);
}

/* Hero Section */

.hero {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: 80px 0;
  position: relative; /* This is the fix */
  overflow: hidden; /* Prevent the background from bleeding out */
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../image/header.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.1; /* Adjust opacity for watermark effect */
  z-index: 1; /* Ensure it’s below the content */
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Page Hero */
.page-hero {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 2px;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
}

/* Section Styles */
section {
  padding: 30px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* Featured Products */
.featured-products {
  background-color: var(--white);
  text-align: center;
  padding: 30px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center; /* ✅ Center grid items */
  max-width: 1200px; /* ✅ Optional: control width */
  margin: 0 auto; /* ✅ Center the grid container */
  padding: 0 15px; /* ✅ Optional: responsive padding */
}

.product-card {
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  margin-bottom: 10px;
}

.product-info p {
  margin-bottom: 20px;
  color: var(--dark-gray);
}

/* Why Choose Us */
.why-choose-us {
  background-color: var(--light-gray);
}

.features-grid {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  justify-content: space-between;
}

.feature-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(229, 29, 29, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 30px;
  color: var(--red);
}

/* Product Categories */
.product-categories {
  background-color: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.category-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 5px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
}

.category-image {
  height: 100%;
  min-height: 300px;
}

.category-content {
  padding: 30px;
  margin-top: 0 px;
}

.category-content h2 {
  margin-bottom: 15px;
}

.category-content p {
  margin-bottom: 20px;
}

.category-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.category-image img {
  width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.category-content {
  flex: 1;
}

.category-content ul li {
  margin-bottom: 5px;
}

/* Help Section */
.help-section {
  background-color: var(--light-gray);
  text-align: center;
  padding: 60px 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.column-content h2 {
  margin-bottom: 20px;
}

.column-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.our-mission h2 {
  color: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

/* Contact Section */

.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  font-family: "Arial", sans-serif;
  background-color: #f9f9f9;
}

.contact-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
  margin-bottom: 1rem;
  color: #4a6baf;
  font-size: 2rem;
}

.info-content h3 {
  margin: 0 0 0.5rem 0;
  color: #2a4365;
  font-size: 1.3rem;
}

.info-content p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.business-hours {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.business-hours h3 {
  margin: 0 0 1.5rem 0;
  color: #2a4365;
  font-size: 1.4rem;
  text-align: center;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

.hours-item {
  padding: 1.2rem;
  background: #f8fafc;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.day {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.1rem;
}

.time {
  color: #555;
  margin: 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .business-hours {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 1rem;
  }

  .contact-grid {
    padding: 1.5rem;
  }

  .info-item {
    padding: 1.5rem 1rem;
  }
}

/* Footer */
.footer {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer .logo span {
  color: var(--white);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-links a i {
  color: var(--white);
  font-size: 18px;
}

.footer-links h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-contact h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-contact ul li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li i {
  color: var(--red);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

.hero .container,
.two-column {
  grid-template-columns: 1fr;
}

.hero-content {
  text-align: center;
  margin: 0 auto;
}

.hero-buttons {
  justify-content: center;
}

.category-card {
  grid-template-columns: 1fr;
}

.contact-grid {
  grid-template-columns: 1fr;
}

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

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }
}

/* Featured Products Responsive */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-card {
    max-width: 100%;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* Why Choose Us Responsive */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-about {
    text-align: center;
  }

  .footer-links,
  .footer-contact {
    text-align: center;
  }

  .footer-links ul,
  .footer-contact ul {
    align-items: center;
  }
}

/* General Mobile Styles */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
.product-grid,
.features-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}

/* For larger screens */
@media (min-width: 769px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
