* {
  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: 500px;
}

.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=======*/ 
.hero1 { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.587), rgba(0, 0, 0, 0.6)), url("images/herico-home-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: 500px; 
       padding-top: 20px;
     } 
     
     .hero1 h1 {
         font-size: 90px;
          font-weight: 600;
           margin-top: 30px; 
           margin-left: 30px; 
           margin-right: 650px;
            line-height: 1.1; 
        } 

        .span { 
            font-size: 70px;
             font-weight: 100; 
            }
            
            .hero1 h3 {
                 font-size: 55px;
                  font-weight: 400;
                   margin-left: 30px;
                 } 
                 
                 .btn-1 { 
                    background-color: #ffffff;
                     color: #000000; 
                     padding: 10px 18px;
                      text-decoration: none;
                       margin-left: 30px; 
                       position: absolute;
                        top: 550px;
                     } 
                     
                     .btn-1:hover { 
                        opacity: 0.75;
                     } 
                     
                     /*======hero2=====*/
                      .hero2 {
                         background-color: #ffffff;
                          color: #000000; 
                          height: 500px;
                         }
                         
                         .hero2-section {
                             display: flex; 
                             width: 100%; 
                            } 
                            
                            .column-1 {
                                 width: 850px;
                                  height: auto;
                                 } 
                                 
                                 .hero2 h3 {
                                     font-size: 35px;
                                      font-weight: 500; 
                                      margin-top: 50px;
                                       margin-left: 30px; 
                                    } 
                                    
                                    .hero2 h4 {
                                         font-size: 20px; 
                                         font-weight: 600;
                                          color:#165da4;
                                           margin-top: 10px;
                                            margin-left: 30px; 
                                        } 
                                        
                                        .hero2 p {
                                             font-size: 18px;
                                              margin-top: 10px;
                                               margin-left: 30px;
                                                margin-right: 150px;
                                                 line-height: 1.5; 
                                                } 
                                                
                                                .btn-2 {
                                                     background-color: #ffffff;
                                                      color: #000000;
                                                       border: 2px solid#3689dc;
                                                        border-radius: 25px; 
                                                        padding: 10px 18px; 
                                                        text-decoration: none;
                                                         margin-left: 30px;
                                                          position: absolute;
                                                           top: 1000px; 
                                                           transition: 0.5s ease;
                                                         }
                                                         
                                                         .btn-2:hover {
                                                             background-color: #3689dc; 
                                                             color: #ffffff; } 
                                                             
                                                             .column-2 {
                                                                 width: 400px;
                                                                  height: auto;
                                                                } 
                                                                .column-2 img { 
                                                                    margin-top: 30px;
                                                                     width: 400px;
                                                                      height: 330px;
                                                                     } 

                                                                     /*======hero3======*/ 
                                                                     .hero3 { 
                                                                        background-color: #ffffff;
                                                                         color: #000000; 
                                                                         height: 1500px;
                                                                          padding-top: 30px;
                                                                         } 
                                                                         
                                                                         .hero3 h3 { 
                                                                            text-align: center; 
                                                                            font-size: 35px; 
                                                                            font-weight: 500;
                                                                             margin-top: 30px; 
                                                                            } 
                                                                            
                                                                            .grid-3x3 {
                                                                                 display: grid;
                                                                                  grid-template-columns: repeat(3, 1fr);
                                                                                   gap: 60px;
                                                                                    max-width: 100%; 
                                                                                    margin: 30px;
                                                                                 }
                                                                                 
                                                                                 .box { 
                                                                                  
                                                                                    height: 400px;
                                                                                      border: 2px solid #ffffff; 
                                                                                      display: flex;
                                                                                       align-items: center;
                                                                                     justify-content: center;
                                                                                      font-size: 24px; 
                                                                                      font-weight: bold;
                                                                                       transition: 0.5s ease;
                                                                                       
                                                                                      
                                                                                     } 
                                                                                     
                                                                                     .box a { 
                                                                                        font-size: 17px;
                                                                                         font-weight: 400;
                                                                                          text-decoration: none; 
                                                                                          background-color: #ffffff;
                                                                                           color: #000000;
                                                                                            padding: 10px 18px;
                                                                                             transition: 0.5s ease;
                                                                                             }
                                                                                              .box a:hover {
                                                                                            
                                                                                                 opacity: 0.85;
                                                                                                 }



@media (max-width: 1024px) {

  /* ===== HERO 1 ===== */
  .hero1 {
    height: auto;
    padding-bottom: 80px;
  }

  .hero1 h1 {
    font-size: 60px;
    margin-right: 200px;
    margin-top: 80px;
  }

  .span {
    font-size: 48px;
  }

  .hero1 h3 {
    font-size: 36px;
  }

  .btn-1 {
    position: relative;
    top: auto;
    margin-top: 30px;
    display: inline-block;
  }

  /* ===== HERO 2 ===== */
  .hero2 {
    height: auto;
    padding-bottom: 50px;
  }

  .hero2-section {
    flex-direction: column;
  }

  .column-1,
  .column-2 {
    width: 100%;
  }

  .hero2 p {
    margin-right: 40px;
  }

  .btn-2 {
    position: relative;
    top: auto;
    margin-top: 20px;
    margin-left: 0px !important;
    display: inline-block;
  }

  .column-2 img {
    width: 100%;
    height: auto;
  }

  /* ===== HERO 3 ===== */
  .hero3 {
    height: auto;
  }

  .grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /* ===== HERO 1 ===== */
  .hero1 {
    height: auto;
    padding: 40px 20px 60px;
  }

  .hero1 h1 {
    font-size: 40px;
    margin: 40px 0 10px 0;
  }

  .span {
    font-size: 30px;
  }

  .hero1 h3 {
    font-size: 24px;
    margin-left: 0;
  }

  .btn-1 {
    position: relative;
    top: auto;
    margin: 20px 0 0  0;
    
  }

  /* ===== HERO 2 ===== */
  .hero2 {
    height: auto;
    padding: 40px 20px;
  }

  .hero2-section {
    flex-direction: column;
  }

  .hero2 h3 {
    font-size: 26px;
    margin-left: 0;
  }

  .hero2 h4 {
    font-size: 18px;
    margin-left: 0;
  }

  .hero2 p {
    font-size: 16px;
    margin: 10px 0;
  }

  .btn-2 {
    position: relative;
    top: auto;
    margin-top: 20px;
  }

  .column-2 img {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  /* ===== HERO 3 ===== */
  .hero3 {
    height: auto;
    padding: 40px 20px;
  }

  .hero3 h3 {
    font-size: 28px;
  }

  .grid-3x3 {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 20px 0;
  }

  .box {
    height: 300px;
  }

  .box a {
    font-size: 16px;
  }
}













.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;
  }
}
