@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-blue: #006da0;
    --brand-dark: #1c252e;
    --brand-green: #006da0; /* Note: You had this as blue in previous code, kept as provided */
    --text-grey: #666;
    --light-grey: #f4f4f4;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-dark);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { transition: all 0.2s ease; }

/* --- TOP BAR --- */
.beforeHead { 
    background-color: var(--brand-blue); 
    color: #fff; 
    font-size: 13px;
    padding: 10px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.beforeHead .container { display: flex; justify-content: flex-end; align-items: center; gap: 20px; flex-wrap: wrap;}
.beforeHead a { color: #fff !important; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px;}
.beforeHead a:hover { opacity: 0.8; }

/* --- HEADER --- */
.site-header { 
    background: #fff; 
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
    position: relative; 
    z-index: 1000; 
}

.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo a { text-decoration: none; display: block; }
.logo img { max-height: 55px; width: auto; }
.logo div { font-size: 10px; color: #1c252e; margin-top: 5px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }

.menu-toggle { display: none; }

/* --- MAIN NAVIGATION --- */
.nav-primary > ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 25px; }
.nav-primary > ul > li { position: relative; }
.nav-primary > ul > li > a { 
    text-decoration: none; 
    color: var(--brand-dark); 
    font-weight: 700; 
    font-size: 15px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid transparent;
}

.nav-primary > ul > li > a:hover { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
.nav-primary > ul > li > a i { color: var(--brand-blue); font-size: 14px; }

/* --- SUB-MENU (Level 2) --- */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 4px solid var(--brand-blue);
    padding: 10px 0;
    list-style: none;
    z-index: 9999;
    border-radius: 0 0 4px 4px;
}

/* Level 2 shows on HOVER of main item */
.nav-primary li:hover > .sub-menu { display: block; }

.sub-menu li { 
    display: block; 
    width: 100%; 
    position: relative; 
}

.sub-menu li a {
    display: block;
    padding: 10px 25px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600; 
    border-bottom: 1px solid #f9f9f9;
    /* Flexbox for arrow alignment */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-menu li a:hover { background-color: #f4f9fc; color: var(--brand-blue); }

/* --- SUB-SUB-MENU (Level 3 - CLICK TO OPEN) --- */

.sub-sub-menu {
    display: none;       /* HIDDEN BY DEFAULT */
    position: relative;  /* Stacks vertically */
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* This class MUST be toggled by JavaScript */
.sub-sub-menu.visible {
    display: block;      /* SHOWN WHEN CLICKED */
    animation: fadeIn 0.3s ease-in-out;
}

.sub-sub-menu li a {
    font-size: 13px;
    font-weight: 400;
    color: #777;
    background: #fff;
    padding: 8px 25px 8px 50px; /* Deep indent */
    border-bottom: none;
}

.sub-sub-menu li a:hover {
    background-color: #f4f9fc;
    color: var(--brand-blue);
    padding-left: 55px; /* Slight movement animation */
}

/* Arrow Rotation Animation */
.has-children > a i { transition: transform 0.3s ease; }
.has-children > a.active-parent i { transform: rotate(90deg); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER & CONTENT --- */
.site-footer {
    background-color: var(--brand-blue);
    color: #fff;
    padding: 60px 0 30px;
    font-size: 15px;
    margin-top: 50px;
}

.footer-widgets h3 {
    color: #d5de26;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widgets ul { list-style: none; padding: 0; }
.footer-widgets ul li { margin-bottom: 12px; }
.footer-widgets a { color: #e0e0e0; text-decoration: none; transition: color 0.2s; }
.footer-widgets a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

.footer-bottom a { color: #fff; text-decoration: none; }


.banner-slider {
   position: relative;
   height: 500px;
   background-size: cover;
   /* Looks for your custom position, defaults to center if not found */
   background-position: var(--bg-pos-desktop, center);
   display: flex;
   align-items: center;
   background-image: var(--bg-desktop, url('../images/Hero_Image_1.webp'));
}
.carousel-overlay { 
    background-color: rgba(28, 37, 46, 0.9); 
    color: #ffffff; 
    padding: 40px; 
    max-width: 600px; 
    margin-left: 10%;
    border-radius: 0; 
    border-left: 5px solid var(--brand-green); 
}

.carousel-overlay h2 { font-weight: 800; margin-top: 0; font-size: 42px; line-height: 1.1; }

.mini-buckets .bucket { 
    position: relative; 
    height: 350px;
    overflow: hidden; 
    margin-bottom: 30px; 
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    background-color: #eee;
}

.bucket img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bucket .pickgradient { 
    position: absolute; top: 0;
    left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0, 80, 143, 0.9) 100%); 
    z-index: 1; pointer-events: none;
}

.bucket:hover img { transform: scale(1.1); }
.bucket .detail { 
    position: absolute;
    z-index: 2; 
    padding: 30px; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
}

.bucket h3 { font-weight: 800; margin-bottom: 5px; color: #fff; font-size: 24px; }
.bucket h4 { color: #ccc; font-size: 16px; margin-bottom: 20px; font-weight: 400; }

.btn-theme {
    background-color: var(--brand-blue);
    color: #fff !important;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 700;
    border: none;
    display: inline-block;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-theme:hover { background-color: var(--brand-green); transform: translateY(-2px); }

.contact-card { 
    background: #fff; 
    padding: 30px; 
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    border-left: 5px solid var(--brand-green); 
}

.container-fluid { width: 100%; padding: 0; }
.embed-responsive-16by9 { padding-bottom: 56.25%; position: relative; height: 0; overflow: hidden; }
.embed-responsive-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* --- MOBILE STYLES --- */
@media (max-width: 991px) {
    .menu-toggle { display: block; font-size: 26px; background: none; border: none; color: var(--brand-blue); cursor: pointer; }
    .nav-primary { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); padding: 20px; z-index: 9999; }
    .nav-primary.active { display: block; }
    .nav-primary > ul { flex-direction: column; align-items: flex-start; gap: 0; }
    .nav-primary > ul > li { width: 100%; border-bottom: 1px solid #eee; }
    .nav-primary > ul > li > a { padding: 15px 0; }
    
    .sub-menu { 
        position: static;
        display: none; 
        box-shadow: none; 
        border-top: none; 
        padding-left: 20px; 
        background: #f9f9f9; 
        width: 100%;
    }
    .sub-menu.open { display: block; }
    .sub-menu li a { padding: 10px 0; font-size: 13px; }
    
    /* Mobile Sub-Sub-Menu (Same Logic) */
    .sub-sub-menu {
        position: static;
        display: none; /* Hidden on mobile by default too */
        box-shadow: none;
        border-top: none;
        padding-left: 0;
        background: transparent;
        width: 100%;
    }
    
    /* JS adds 'visible' class on click */
    .sub-sub-menu.visible { display: block; }
    
    .sub-sub-menu li a {
        padding-left: 30px; 
        border-bottom: 1px solid #e5e5e5;
    }

    .beforeHead { display: none; }
    .logo div { white-space: normal; line-height: 1.2; }

    .banner-slider {
        background-image: var(--bg-mobile, url('../images/Hero_Image_1-mobile.webp')) !important;

        min-height: 400px;
    }
    .carousel-overlay { margin: 0 15px; padding: 25px; max-width: 100%; }
    .carousel-overlay h2 { font-size: 28px; }
    .mini-buckets .bucket { height: 320px; }
}