body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #1e1e1e;
}

/*Top contacts */
.topbar {
  background-color: #31353c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 2rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-group a {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease, outline-offset 0.3s ease;
}

.logo-group a:hover,
.logo-group a:focus {
  opacity: 0.8;
  outline: 1px solid #555;
  outline-offset: 2px;
}

.logo-group img {
  height: 0.9rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links img {
  height: 0.8rem;
  width: auto;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #D5481B;
  outline: none;
}

/*NavBaR */
.subbar {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  border-bottom: 10px solid #D5481B;
  height: 6rem;
  position: relative;
}

/* Logo */
.subbar-logo img {
  height: 7rem;
  width: auto;
  position: relative;
  top: 2px;
}

/* NavLinks */
.subbar-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subbar-links li {
  margin: 0;
}

.subbar-links a {
  color: #1e1e1e;
  text-decoration: none;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  transition: color 0.3s ease;
  padding: 0.7rem 0;
  display: inline-block;
}

.subbar-links a:hover,
.subbar-links a:focus {
  color: #D5481B;
  outline: none;
}

.subbar-links a[aria-current="page"] {
  font-weight: 600;
  color: #D5481B;
}

/* SearchBox */
.search-box {
  display: flex;
  align-items: center;
  background: #f1f1f1;
  border-radius: 50px;
  padding: 0.5rem;
  max-width: 250px;
  min-width: 100px;
  flex: 0 1 200px;
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0.4rem;
  outline: none;
  font-size: clamp(0.8rem, 1vw, 1rem);
  width: 100%;
  color: #1e1e1e;
}

.search-box input::placeholder {
  color: #555;
}

.search-box input:focus {
  outline: 2px solid #D5481B;
  outline-offset: -2px;
  border-radius: 50px;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.search-box button:hover,
.search-box button:focus {
  transform: scale(1.1);
  outline: 2px solid #D5481B;
  outline-offset: 2px;
  border-radius: 4px;
}

.search-box button img {
  width: clamp(14px, 1.5vw, 18px);
  height: auto;
  display: block;
}

.hamburger-icon-button {
    display: none; 
}

.mobile-sidebar {
    display: none;
}

.sidebar-overlay {
    display: none;
}



/*PageHeader*/

.page-header {
  width: 100%;
  background: #ffffff;
  padding: 60px 0;
  box-sizing: border-box;
  border-bottom: #d9d9d95d solid;
}

.header-content {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: left;
  gap: 40px;
  flex-wrap: wrap;
}

.header-text {
  flex: 1;
  margin-top: 25px;
  min-width: 300px;
}

.header-text h1 {
  margin-top: 30px;
  font-size: clamp(0.7rem, 2.5vw, 2.1rem);
  color: #1e1e1e;
  margin-bottom: 10px;
}

.header-text p {
  font-size: clamp(0.7rem, 2vw, 1.4rem);
  color: #333;
  margin-top: 10px;
  line-height: 2rem;
  max-width: 500px;
}

.header-video {
  flex: 1;
  min-width: 320px;
  display: flex;
  justify-content: center;
}

.header-video video {
  width: 110%;
  margin-top: -10px;
  height: 300px;
  border-radius: 1px;
  object-fit: cover;

}

/*ServiceHeaderlayout*/
.services {
  background: white;
  padding: 2rem 5%;
  overflow: hidden;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.services-header h2 {
  font-size: clamp(1.5rem, 2vw, 1.6rem);
  font-weight: 450;
  color: #D5481B;
  margin-left: 95px;
}

.arrow-buttons {
  display: flex;
  gap: 3rem;
  margin-right: 90px;
}

.arrow {
  background-color: #D5481B;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius:50px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.arrow:hover {
  background-color: #1e1e1e;
}

/* Carouselstructure */
.carousel-container {
  overflow: hidden;
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.service-box {
  min-width: 33.33%;
  box-sizing: border-box;
  text-align: center;
  padding: 1rem;
}

.service-box img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Gallery Section */
.services-container {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
  background: white;
  position: relative;
  padding-bottom: 20px;
}

.services-container::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%);
    width: 80%; 
    height: 2px;
    background-color: #d9d9d983;
}

.service-box {
  flex: 0 0 calc(19% - -20px);
  margin-bottom: 60px;
  justify-content: center;
  background: white;
  border-radius: 0px;
  text-align: left;
  transition: transform 0.3s ease;
  padding:10px;
}

.service-box img {
  width: 78%;
  margin: 0 auto;
  height: 230px;
  object-fit: cover;
  border-radius: 0px;
  display: block;
  transition: box-shadow 0.3s ease;
}

.service-box:hover img {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 10px white;
}

.service-box:hover {
  transform: scale(1.03);
}

.service-box a {
  text-decoration: none;
  color: inherit; /* Para hindi rin magkulay asul ang text */
}

.service-box p {
  font-weight: normal;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #333;
  text-align: center;
  text-decoration: none;
}

/*FOOTER*/
.footer {
  background-color: #31353c;
  color: #fff;
  padding: 2.5rem 5% 0;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  color: #ddd;
  margin-bottom: 1rem;
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover,
.footer-column a:focus {
  color: #D5481B;
  outline: none;
  text-decoration: underline;
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.address {
  font-style: normal;
  margin-top: 1rem;
}

/* Map Container */
.map-container {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 4px;
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* Footer Bottom Copyright Bar */
.footer-bottom {
  background-color: #D5481B;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin: 0 -5.5%;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* Small Mobile */
@media (max-width: 425px) {
.page-offset-margin {
  margin-top: calc(4rem + 10px);
}

html, body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        width: 100%;
        position: relative; 
    }

    body.no-scroll {
        overflow: hidden; 
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .page-offset-margin {
        margin-top: 5rem; 
    }

    .topbar {
        display: none;
    }

    .subbar {
        height: 5rem; 
        width: 100%;
        padding: 0rem 5%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
    }

    .subbar-logo img {
        height: 4rem;
    }

    .subbar-links {
        display: none;
    }

    .search-box {
        display: none;
    }
    .subbar-links {
        display: none;
    }

    .subbar-links a {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    /*Buttons */
    .btn,
    .btn-about,
    .btn-view-more {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    /* Burgericon-- */
    .hamburger-icon-button {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }

        .hamburger-icon-button .bar {
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }



  /* openBurger*/
    .hamburger-icon-button.open .bar:nth-child(2) { opacity: 0; }
    .hamburger-icon-button.open .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .hamburger-icon-button.open .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }



    /* SIdebar*/
    .sidebar-search-container {
        display: block;
        padding: 20px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }

    .mobile-search-box {
        display: flex;
        align-items: center;
        margin-left: 40px;
        width: 70%;
        background-color: #e0e0e0;
        border-radius: 25px;
        padding: 5px 15px;
        border: none;
    }

    .mobile-sidebar {
        display: block;
        position: fixed; 
        top: 0;
        right: 0;
        width: 85vw;
        height: 100%;
        background-color: #f1f1f1;
        z-index: 1000;
        transform: translateX(100%); 
        transition: transform 0.3s ease-out;
        overflow-y: auto;
        padding-top: 20px;
        box-sizing: border-box;
    }

    .sidebar-overlay {
        display: block ;
        position: fixed;
    }
    
    .mobile-sidebar.open {
        transform: translateX(0) ; 
    }

     .sidebar-search-container {
        padding: 0 20px 20px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 10px;
    }

    .mobile-links {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center; 
    }

    .mobile-links li a {
        display: block;
        padding: 15px 25px;
        color: #333;
        font-size: 1.1rem;
        text-decoration: none;
    }
    
    .mobile-links li a.active-link {
        color: #D5481B; 
        font-weight: 600;
        text-decoration: underline 2px;
        text-underline-offset: 5px;
        text-decoration-color: #D5481B;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-out;
    }

    .sidebar-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

     .mobile-sidebar.open {
        transform: translateX(0); 
    }

    .sidebar-search-container {
        padding: 0 20px 20px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 10px;
    }

    .mobile-links {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center; 
    }

    /* Pageheader*/

    .page-header {
        margin-top: 4rem; 
        padding: 40px 0;
    }

    .header-content {
        flex-direction: column; 
        padding: 0 5%;
        gap: 20px;
    }

    .header-text {
        order: 2;
        margin-top: 0;
        min-width: 100%;
        text-align: center;
    }

    .header-text h1 {
        margin-top: 0; 
        font-size: 1.8rem;
    }

    .header-text p {
        max-width: 100%;
        font-size: 1rem;
    }

    .header-video {
        order: 1; 
        min-width: 100%;
    }

    .header-video video {
        margin-top: 0;
        width: 100%; 
        height: auto;
        max-height: 250px; 
    }

    /*Servicescarousel*/
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 5%; 
    }
    
    .services-header h2 {
        margin-left: 0; 
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .arrow-buttons {
        display: none; 
    }
    
    .carousel-container {
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory; 
        padding: 0 10vw; 
        margin-top: 1rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .carousel-container::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-track {
        transform: none;
        gap: 20px;
    }
    /* Servicebox*/
    .service-box {
        width: 80vw; 
        max-width: 300px;
        flex-shrink: 0;
        scroll-snap-align: center;
        flex: none; 
        margin-bottom: 0;
        padding: 10px;
        text-align: center;
        transform: none;
    }

    .service-box img {
        width: 100%; 
        height: 180px;
        object-fit: cover;
        margin: 0 auto;
    }
    
    .service-box p {
        margin: 10px 0 0 0; 
        font-size: 0.9rem;
        text-align: center;
    }

    .footer {
    width: 24rem;
  }

  .footer-column {
    flex: 1 1 100%;
    text-align: left;
    margin-left:30px;
  }

  .footer-column:nth-child(3) {
    text-align: center;
  }

  .map-container {
    margin: 0 auto;
    width: 420px;
    margin-bottom: 20px;
    margin-left: -50px;
    margin-right: -20px;
  }
  .address {
    text-align: right;
  }
}
