* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'nunito', sans-serif;
}


/* ================= TOP BAR ================= */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #3689dc;   /* dark professional */
  color: #ffffff;
  padding: 10px 40px;
}

.top-bar a {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.top-bar a:hover {
  color: #ddd;
}

.top-bar i {
  margin-right: 5px;
}



/* ================= NAVBAR ================= */

.navbar{
  background:#ffffff;
  padding:7px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:relative;
}



.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:22px;
  font-weight:600;
  color:#000;
}

.logo img{
  height:55px;   /* perfect size */
  width:auto;
}




.menu{
  list-style:none;
  display:flex;
  gap:25px;
}

.menu li{
  position:relative;
}

.menu li a{
  font-size: 18px;
  font-weight: 600;
  color:#000000;
  text-decoration:none;
  padding:8px 10px;
  display:block;
  transition:0.3s;
}

.menu li a:hover{
  color:#2689ec
}

.navbar{
  position: sticky;
  top: 0;
  z-index: 999;
}

/* ================= DROPDOWN ================= */

.submenu{
  position:absolute;
  top:100%;
  left:0;
  background:#fff;
  min-width:160px;
  display:none;
  border-radius:8px;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  list-style: none;
}

.dropdown:hover .submenu{
  display:block;
}

.submenu li a{
  color:#333;
  padding:10px 20px;
  font-size:15px;
}

.submenu li a:hover{
  background:#f2f2f2;
  padding-left:25px;
}

/* Second Level */
.inner-submenu{
  position:absolute;
  top:0;
  left:100%;
  background:#fff;
  min-width:200px;
  display:none;
  border-radius:8px;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  list-style: none;
  font-size: 13px;
}

.has-submenu:hover .inner-submenu{
  display:block;
}

  .menu-toggle{
    display:none;
    color:#000;
  }


  .sub-header {
    background-color: #3689dc;
    color: #fff;
    padding: 8px 10px;
    font-size: 16px;
    font-weight: 500;
  }

  @media(max-width:992px){

  /* ===== Top Bar Mobile ===== */
  .top-bar{
    display: none;
    text-align:left;
    gap:25px;
    padding: 10px 5px;
     font-size: 10px;
  }

  /* ===== Navbar ===== */
  .navbar{
    padding:15px 20px;
  }

  .logo{
    color:#000;
  }

  .logo img{
  height:35px;
}


  .menu-toggle{
    display:block;
    font-size:26px;
    color:#000;
    cursor:pointer;
    transition:0.3s ease;
  }

  .menu-toggle:hover{
    transform:scale(1.1);
  }

  /* ===== Main Mobile Menu ===== */
  .menu{
    flex-direction:column;
    background:#ffffff;
    width:100%;
    position:absolute;
    top:100%;
    left:0;
    padding:0;
    box-shadow:0 15px 30px rgba(0,0,0,0.08);
    border-radius:0 0 15px 15px;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transform:translateY(-10px);
    transition:all 0.4s ease;
  }

  .menu.active{
    max-height:1000px;
    opacity:1;
    transform:translateY(0);
  }

  .menu li{
    width:100%;
    border-bottom:1px solid #f1f1f1;
  }

  .menu li a{
    padding:14px 20px;
    font-size:16px;
    font-weight:500;
    color:#000;
    transition:all 0.3s ease;
  }

  .menu li a:hover{
    background:#f4f8ff;
    color:#3689dc;
    padding-left:25px;
  }

  /* ===== First Level Dropdown ===== */
  .submenu{
    position:relative;
    left:0;
    box-shadow:none;
    border-radius:0;
    background:#f9f9f9;

    max-height:0;
    overflow:hidden;
    transition:max-height 0.4s ease;
  }

  .menu li.active > .submenu{
    max-height:1000px;
  }

  /* ===== Second Level Dropdown ===== */
  .inner-submenu{
    position:relative;
    left:0;
    box-shadow:none;
    border-radius:0;
    background:#f3f6fb;

    max-height:0;
    overflow:hidden;
    transition:max-height 0.4s ease;
  }

  .has-submenu.active > .inner-submenu{
    max-height:1000px;
  }

  .submenu li a,
  .inner-submenu li a{
    padding-left:35px;
    font-size:15px;
  }

  
  .sub-header {
    background-color: #3689dc;
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
  }

}



img{
max-width:100%;
display:block;
}

section{
width:100%;
}




/*=======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;
                        margin-top: 20px;
                     } 
                     
                     .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;
                                                           margin-top: 40px;
                                                         }
                                                         
                                                         .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: 1300px;
                                                                          padding-top: 30px;
                                                                         } 
                                                                         


.hero3 h3{
text-align:center;
font-size:clamp(24px,3vw,35px);
font-weight:500;
margin-bottom:50px;
}

.grid-3x3{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:100px;
max-width: 90%;
margin:auto;
}

.box{
height: 300px;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
font-weight:bold;
transition:0.4s;
filter:brightness(80%);
border-radius:6px;
overflow:hidden;
}

.box:hover{
filter:brightness(100%);
transform:scale(1.03);
}

.box a{
font-size:17px;
font-weight:400;
text-decoration:none;
background:#fff;
color:#000;
padding:10px 18px;
transition:0.3s;
}


@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%;
  }

  .column-1 h3 {
     margin-top: 0px !important;
  }

  .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;
    justify-content: center;
 
  }

  .grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 30px !important;
  }
}

@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;
  }
}
