html, body {
    overflow-x: hidden;
    overflow-y: auto;
}

* {
    box-sizing: border-box;
}

button {
    display: block;
    margin: 20px auto;
}

/* =============================================================================
   HEADER AND NAVIGATION STYLES
   ============================================================================= */

/* Fixed Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Top Header Section */
.top_headder {
    display: flex;
    gap: 10px;
    color: white;
    font-size: 15px;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    height: 3rem;
}

.phone_NO1 {
    display: flex;
    gap: 2px;
    align-items: center;
}

/* Contact Form Header */
.contact_form_header {
    display: flex;
    gap: 10px;
    color: white;
    font-size: 15px;
    justify-content: flex-end; /* Right-aligned on desktop */
    align-items: center;
    background-color: #27563b;
    height: 3rem;
    padding: 0 1rem;
}

.phone_form_container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone_form_container form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.phone_form_container label {
    margin: 0;
    white-space: nowrap;
    font-size: 14px;
}

.phone_form_container input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
    color: black;
}

.phone_form_container button {
    padding: 4px 12px;
    background-color: #ffffff08;
    color: white;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    border: 1px solid;

}

.phone_form_container button:hover {
    background-color: #0056b3;
}

/* Main Navigation */
nav {
    display: flex;
    justify-content: space-between;
    background: ghostwhite;
}

.navbar {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    margin: auto;
    color: darkgreen;
    width: auto;
}

.logo p {
    font-size: 17px;
    text-align: justify;
    align-items: center;
    font-weight: bold;
}

/* Navigation Menu */
.menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: auto;
}

.menu:hover {
    color: #215d0e;
}

/* Navigation Links */
.nav-link {
    display: block;
    padding: 1.1rem 0rem;
    color: #157c6b;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.nav-item a {
  color: #054f21;
  font-weight: bold;}

.nav-item a:hover {
    color: #35af10;
    font-weight: bold;
}

/* Navigation Item Styling */
.navbar-nav {
    text-align: left;
}

.nav-item {
    margin: 8px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.nav-link .icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.nav-link .material-icons {
    font-size: 24px;
    margin-right: 12px;
}

.nav-link .nav-text {
    font-size: 16px;
}
.alert-msg{
    position:relative;
    background: #b1e7c178;
    width: 50%;
    margin: auto;
    border: 1px solid green;
    border-radius: 3px;
    color: green;
    padding: 8px 5px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;

}
/* =============================================================================
   HAMBURGER MENU AND MOBILE NAVIGATION
   ============================================================================= */

/* Mobile Menu Button */
#menubtn {
    display: none;
}

.material-icons.mobile-menu-icon {
    display: flex !important;
    margin: auto;
    font-size: 2rem;
    padding: 0 0.3rem;
    flex-basis: 13%;
    margin-right: 0.2em;
}

/* Hamburger Toggle Button */
/* Hide hamburger button on desktop by default */
.navbar-toggler {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 3px solid rgb(0, 0, 0);
    background-color: transparent;
    display: none; /* Hidden by default - only show on mobile */
    align-items: center;
    justify-content: center;
    outline: none !important;
    box-shadow: none !important;
    margin: initial;
    border: 1px solid grey;
    border-radius: 6px;
    margin-right: 7px;
}

/* Hamburger Icon */
.hamburger-icon {
    position: relative;
    width: 25px;
    height: 20px;
}

.hamburger-icon span {
    position: absolute;
    height: 2.5px;
    width: 110%;
    background-color: #40724b;
    border-radius: 3px;
    left: 0;
    transition: 0.3s ease-in-out;
}

/* Positioning the lines evenly */
.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2),
.hamburger-icon span:nth-child(3) {
    top: 9px;
}

.hamburger-icon span:nth-child(4) {
    top: 18px;
}

/* Hamburger animation when expanded */
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
}

/* Mobile Menu Container */
#menu-mobile {
    display: none;
    width: 202px;
    height: 100vh;
    background-color: rgb(52 114 79);
    z-index: 9999;
    position: absolute;
    box-shadow: 3px 3px 3px rgb(9, 83, 9);
    padding: 10px 20px;
    right: 0px;
    top: 64px;
    transition: right .35s ease-in-out;
}

/* Menu Overlay */
.menu-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: all 0.3s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* =============================================================================
   MAIN CONTENT STYLES
   ============================================================================= */

.main-content {
    padding-top: 130px; /* Adjust based on header height */
}

/* =============================================================================
   FOOTER STYLES
   ============================================================================= */

.footer {
    background-color: var(--footer-bg);
    font-size: 14px;
    height: auto;
    padding: 3rem 0 2rem;
}
.container-footer {
    width:90%;
    margin:auto;
    width: fit-content;
}
.container-footer h4{
    margin:auto;
    width: fit-content;
}

.footer h4 {
    color: var(--text-light);
    font-weight: 600;
    font-size: 18px;
}

.footer h5 {
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 1px solid var(--footer-section-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.footer hr {
    border-color: var(--footer-section-border);
    opacity: 0.5;
}

.footer p {
    color: var(--text-light);
    opacity: 0.9;
}

/* Footer Sections */
.footer-section {
    padding: 0 15px;
    margin-bottom: 10px;
    border-right: 1px solid var(--footer-section-border);
    height: auto;
}

.footer-section:last-child {
    border-right: none;
}

.footer-section-icons {
    padding: 0 15px;
    margin-bottom: 10px;
    border-right: 1px solid var(--footer-section-border);
    height: auto;
}

/* Footer Links */
.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Services Links */
.services-links i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.service-link {
    transition: all 0.3s ease;
}

.contact-info p {
    margin-bottom: 10px;
}

/* =============================================================================
   SOCIAL MEDIA AND SHARE STYLES
   ============================================================================= */

/* Social Icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 45px;
    margin-left: 47px;
}

.social-icon {
    color: var(--text-light);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Social Media Hover Effects */
.social-icon.facebook:hover {
    background-color: var(--facebook-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.social-icon.twitter:hover {
    background-color: var(--twitter-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.social-icon.pinterest:hover {
    background-color: var(--pinterest-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.social-icon.youtube:hover {
    background-color: var(--youtube-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.social-icon.instagram:hover {
    background: var(--instagram-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.social-icon.linkedin:hover {
    background-color: var(--linkedin-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Share Links */
.share-links i {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    padding: 7px;
    border-radius: 50%;
    display: inline-block;
    font-size: 20px;
    background-color: white;
    color: #215d0e;
}

.share-links i:hover {
    transform: scale(1.1);
    color: #215d0e;
    background-color: #ffc100;
}

/* =============================================================================
   MAP STYLES
   ============================================================================= */

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

.google-map {
    width: 100%;
    border-radius: 8px;
}

/* =============================================================================
   MOBILE RESPONSIVE STYLES
   ============================================================================= */

@media (max-width: 768px) {
    /* Global Mobile Overrides */
    /* * {
        overflow-x: hidden;
    } */

    /* Mobile Navigation */
    .material-icons.mobile-menu-icon {
        display: flex !important;
        margin: auto;
        font-size: 2rem;
        padding: 0 0.3rem;
        flex-basis: 13%;
        margin-right: 0.2em;
    }

    .menu {
        display: none;
    }

    .nav-link {
        display: block;
        padding: 1.1rem 0rem;
        color: #0c6859;
        text-decoration: none;
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    }

    /* Mobile Logo */
    .logo p {
        font-size: 20px;
        /* text-align: center; */
        align-items: center;
        font-weight: bold;
    }

    .logo {
        display: flex;
        align-items: center;
        margin: auto;
        color: darkgreen;
        width: auto;
    }

    /* Mobile Menu Button */
    #menubtn {
        display: block;
    }

    #menubtn button i {
        color: black;
    }

    #content {
        display: none;
    }

    /* Mobile Contact Form */
    .contact_form_header {
        justify-content: center; /* Centered on mobile */
        padding: 0 0.5rem;
    }

    .phone_form_container input {
        width: 120px; /* Smaller input on mobile */
        font-size: 13px;
    }

    .phone_form_container label {
        font-size: 13px;
    }

    .phone_form_container button {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* Tablet and Small Desktop Responsive */
@media (max-width: 991.98px) {
.navbar-collapse {
  position: fixed;
  top: 80px;
  right: 0;
  width: 190px;
  height: 100%;
  background-color:var(--bs-gray-dark);
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 20px 20px;
  overflow-y: auto;
  z-index: 1000;
}
.navbar-collapse.show {
  transform: translateX(0);
}
}


@media (max-width: 991.98px) {
    .navbar-toggler {
        display: flex; /* Show hamburger on mobile/tablet */
    }
    
    /* Hide desktop menu on mobile/tablet */
    .menu {
        display: none !important;
    }
}