* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
}

/* ================= TOP BAR ================= */
.top-bar {
  background: #3689dc;
  height: 35px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
}

.top-bar a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.top-bar a:hover {
  color: #ddd;
}

.top-bar i {
  margin-right: 5px;
}

/* ================= HEADER ================= */
.header {
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}


.logo {
  position: absolute;
  top: 2px;
  left: 30px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 65px;      /* Desktop size */
  width: auto;
  transition: 0.3s ease;
}


.nav-menu {
  display: flex;
  gap: 42px;
  list-style: none;
}

.nav-menu a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-menu a:hover {
  color: #3689dc;
}

/* ================= DROPDOWN ================= */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 140%;
  left: 0;
  width: 210px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.dropdown.active {
  max-height: 550px;
}

.dropdown {
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.dropdown.active {
  opacity: 1;
}

.dropdown li a {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}

/* ================= SUB HEADER ================= */
.sub-header {
  background: #3689dc;
  padding: 6px 30px;
  
}

.sub-header p {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 50%;
  height: 120vh;
  background: #3689dc;
  padding: 80px 25px;
  transition: right 0.4s ease;
  border-radius: 8px;
  z-index: 2000;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.mobile-submenu {
  display: none;
  margin-top: 10px;
  margin-left: 15px;
}

.mobile-submenu.active {
  display: block;
}

.menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .top-bar,
  .navbar {
    display: none;
  }

    .logo {
  display: flex;
  position: absolute;
  top: 10px;
  left: 30px;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

  .hamburger {
    display: flex;
  }
}

@media (min-width: 769px) {
  .mobile-menu,
  .hamburger {
    display: none;
  }
}



.hero1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.443), rgba(0, 0, 0, 0.575)), url("images/herico-flanges-backgro-page1.png");;
    background-size: cover;       /* Fill the entire area */
    background-position: center;  /* Center the image */
    background-repeat: no-repeat; /* No repeating */  
    color: #ffffff;
    height: 200px;
    padding-top: 20px;
}
    
.hero1 h2 {
    text-align: center;
     font-size: 70px;
    font-weight: 100px;
    text-decoration: underline;
  text-underline-offset: 25px; /* space */
  text-decoration-thickness: 3px;
  
}

.hero2 {
  background-color: #ffffff;
  color: #000000;
  height: 1200px;
  padding-top: 20px;
}

.hero2 h3 {
  text-align: left;
  font-size: 23px;
  font-weight: 700;
  margin-left: 30px;
  margin-top: 50px;
}

.hero2 h4 {
  font-size: 20px;
  font-weight: 600;
  margin-left: 30px;
  margin-top: 60px;
} 

.hero2 h5 {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-top: 60px;
}

.hero2 p {
  font-size: 17px;
  margin-top: 30px;
  margin-left: 380px;
  margin-right: 300px;
  line-height: 1.5;
}

.btn-1 {
  position: absolute;
  left: 580px;
  background-color: #3689dc;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 15px;
  text-decoration: none;
  margin-top: 50px;
  margin-bottom: 120px;
  transition: 0.3s;
}

.btn-1:hover {
 opacity: 0.75;
}

.heading1 {
  text-decoration: underline;
  text-underline-offset: 10px; /* space */
  text-decoration-thickness: 2px;
}


.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  max-width: 100%;
  margin: auto;
  margin-left: 100px;
  margin-top: 100px;
}

.product-item {
  text-align: center;
  width: 200px;
}

.product-item img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  transition: 0.3s;
}

.product-item img:hover {
  filter: brightness(60%);
}

.hero3 {
  background-color: #ffffff;
  color: #000000;
  height: auto;
  padding-top: 60px;
}

.hero3  p {
  font-size: 18px;
  margin-top: 30px;
  margin-left: 30px;
  line-height: 1.5;
}

.hero3 h4 {
  font-size: 23px;
  font-weight: 600;
  margin-top: 30px;
  margin-left: 30px;
}

.hero3 h5 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 30px;
  margin-left: 30px;
  margin-bottom: -20px;
}

.table-wrapper {
  max-width: 1000px;
  margin: 40px auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #999;
}

.spec-table th {
  border: 1px solid #999;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #333;
}

.spec-table td {
  border: 1px solid #ddd;
  padding: 18px;
  font-size: 16px;
  color: #444;
}

.spec-table td:first-child {
  width: 30%;
  font-weight: 500;
}

.spec-table td:last-child {
  width: 70%;
}

.hero3 li {
  font-size: 16px;
  font-weight: 500;
  margin-left: 90px;
  line-height: 1.5;
}

.hero3 a {
  color: #000000;
  text-decoration: none;
  font-size: 19px;
  font-weight: bold;
  transition: 0.3s ;
}

.hero3 a:hover {
  color: #1068c0;
}

/* ================= TABLET ================= */
@media (max-width: 992px) {

  .hero1 {
    height: 220px;
  }

  .hero1 h2 {
    font-size: 45px;
  }

  .hero2 {
    height: auto;
    padding: 40px 40px;
    margin-left: -10px;
  }

  .hero2 p {
    margin-left: 0;
    margin-right: 0;
  }

  .btn-1 {
    position: static;
    display: inline-block;
    margin-top: 30px;
    margin-bottom: -100px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-left: 0;
    gap: 40px;
    justify-items: center;
  }

  .product-item {
    width: 100%;
  }

  .hero3 {
    padding: 40px 40px;
    margin-left: -30px;
  }

  .hero3 li {
    margin-left: 50px;
  }

  .table-wrapper {
    overflow-x: auto;
  }

}


/* ================= MOBILE ================= */
@media (max-width: 600px) {

  .hero1 {
    height: 170px;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  
  }

  .hero1 h2 {
    font-size: 30px;
  }

  .hero2 {
    height: auto;
    padding: 30px 20px;
   
  }

  .hero2 h3 {
    font-size: 20px;
    margin-left: 15px;
  }

  .hero2 h4 {
    font-size: 18px;
    margin-left: 10px;
  }

  .hero2 p {
    margin-left: 10px;
    margin-right: 0;
    font-size: 15px;
  }

  .btn-1 {
    position: static;
    display: inline-block;
    font-size: 14px;
    margin-top: 50px;
    margin-bottom: -70px;
    margin-left: 10px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
    gap: 30px;
  }

  .product-item img {
    height: 180px;
  }

  .hero3 {
    padding: 30px 20px;
    margin-left: -20px;
  }

  .hero3 p {
    font-size: 15px;

  }

  .hero3 h4 {
    font-size: 18px;
  }

  .hero3 h5 {
    font-size: 16px;
  }

  .hero3 li {
    margin-left: 50px;
    font-size: 15px;
  }

  .spec-table {
    min-width: 600px;
    margin-left: 50px;
  }

  .table-wrapper {
    overflow-x: auto;
  }

}







.site-footer {
  background-color: #ffffff;
  color: #000000;
  height: 400px;
}

.footer-section {
  display: flex;
  margin: 60px;
  gap: 50px;

}

.column-a {
  width: 700px;
  height: 300px;
  border: 2px solid#ffffff;
} 

.column-a h3 {
    font-size: 40px;
    font-weight: 500;
    margin-left: 10px;
}

.column-a p {
  font-size: 17px;
  font-weight: 500;
  margin-left: 10px;
  margin-top: 60px;
  line-height: 1.5;
}

.column-a a {
  color: #000000;
  text-decoration: none;
}
.column-b {
  width: 400px;
  height: 300px;
  border: 2px solid#ffffff;
}

.column-b h4 {
   font-size: 28px;
    font-weight: 600;
    margin-left: 10px;
}

.column-b p {
   font-size: 17px;
  font-weight: 500;
  margin-left: 10px;
  margin-top: 30px;
  line-height: 1.5;
}

.column-b a {
  display: block;
  color: #000000;
  text-decoration: none;
  margin-bottom: 5px;
  margin-left: 10px;
}


/* ---------- Mobile Responsive Footer ---------- */
@media (max-width: 768px) {

  .site-footer {
    height: auto; /* allow footer to expand */
    padding-bottom: 30px;
  }

  .footer-section {
    flex-direction: column; /* stack columns */
    margin: 20px;
    gap: 30px;
  }

  .column-a,
  .column-b {
    width: 100%;
    height: auto;
  }

  .column-a h3 {
    font-size: 28px;
    margin-left: 0;
    text-align: left;
  }

  .column-a p {
    font-size: 15px;
    margin-left: 0;
    margin-top: 20px;
  }

  .column-b h4 {
    font-size: 22px;
    margin-left: 0;
  }

  .column-b p {
    font-size: 15px;
    margin-left: 0;
    margin-top: 15px;
  }

  .column-b a {
    margin-left: 0;
    font-size: 15px;
  }
}


/* ---------- Extra Small Devices (phones < 480px) ---------- */
@media (max-width: 480px) {

  .footer-section {
    margin: 15px;
  }

  .column-a h3 {
    font-size: 24px;
  }

  .column-b h4 {
    font-size: 20px;
  }

  .column-a p,
  .column-b p,
  .column-b a {
    font-size: 14px;
  }
}
