/* === HEADER: TRANSPARENT → SEMI-TRANSPARENT ON SCROLL === */
.header {
    background: transparent !important;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    backdrop-filter: blur(0);
    z-index: 1000;
    padding: 0;
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.7) !important;  /* 70% opacity dark */
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* === MENU TEXT COLOR ON SCROLL === */
.header.scrolled .menu-link {
    color: #fff !important;
}

/* === REST OF YOUR ORIGINAL CSS (UNCHANGED) === */
.custom-menu-wrap { width: 100%; }

#custom-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-family: 'Helvetica Neue', sans-serif;
}

#custom-menu > li {
    position: relative;
    flex: 1;
    min-width: 75px;
    text-align: center;
    white-space: nowrap;
}

#custom-menu > li > .menu-link {
    display: block;
    padding: 18px 5px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#custom-menu > li:hover > .menu-link,
#custom-menu > li.active > .menu-link {
    background: rgba(255,255,255,0.15);
}

/* === SUB MENU – OPENS UNDER PARENT === */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 96vw;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    display: flex;
    padding: 30px;
    gap: 35px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    margin-top: 10px;
}

/* SUPPORT & WHERE TO BUY – LEFT-ALIGNED */
.sub-menu[data-submenu="support"],
.sub-menu[data-submenu="wheretobuy"] {
    left: 0;
    right: auto;
    transform: translateX(0);
}

/* SHOW ON HOVER */
#custom-menu > li:hover > .sub-menu,
#custom-menu > li.active > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu[data-submenu="support"]:hover,
.sub-menu[data-submenu="wheretobuy"]:hover {
    transform: translateX(0);
}

/* COLUMNS */
.sub-menu > ul { 
    flex: 1; 
    min-width: 280px; 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}
.sub-menu a { 
    display: block; 
    padding: 10px 0; 
    color: #2c3e50; 
    font-size: 14.5px; 
    text-decoration: none; 
}
.sub-menu a:hover { 
    color: #e74c3c; 
    padding-left: 5px; 
}
.sub-menu .no-click > a { 
    font-weight: 700; 
    pointer-events: auto; 
    font-size: 15px; 
}

.sub-menu .acf-wrapper {
    flex: 1;
    min-width: 280px;
    padding-left: 25px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#dynamic-image, .acf-wrapper .acf-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.acf-text {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 13.5px;
    line-height: 1.6;
}
.acf-text h5 { 
    margin: 0 0 10px; 
    color: #e74c3c; 
    font-weight: 700; 
}

.acf-content {
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 20px;
    width: 360px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-radius: 14px;
    margin-left: 18px;
    display: none;
    z-index: 1000;
}
.sub-menu li:hover > .acf-content { 
    display: block !important; 
}

.sub-menu .sub-menu {
    position: static;
    display: none;
    padding-left: 25px;
    margin-top: 10px;
    border-left: 2px solid #e74c3c;
}
.sub-menu li:hover > .sub-menu { 
    display: block; 
}

/* === APPLICATION: RESIDENTIAL & COMMERCIAL – NOW VISIBLE & CLICKABLE === */
.sub-menu[data-submenu="application"] {
    display: flex;
    padding: 30px;
    gap: 40px;
    width: 900px;
    max-width: 96vw;
}

.sub-menu[data-submenu="application"] > ul {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    
}

.sub-menu[data-submenu="application"] .menu-item-has-children {
    position: relative;
}

.sub-menu[data-submenu="application"] .menu-item-has-children > a {
    font-weight: 700;
    font-size: 15px;
    color: #2c3e50 !important;
    padding: 8px 0;
    display: block;
    text-decoration: none;
    transition: color 0.2s;
}


.sub-menu[data-submenu="application"] .menu-item-has-children > a:hover {
    color: #e74c3c !important;
}

/* SUBMENU (Residential / Commercial dropdown) */
.sub-menu[data-submenu="application"] .sub-menu {
    position: static;
    display: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-top: 8px;
    border-left: 2px solid #e74c3c;
    padding-left: 15px;
}

.sub-menu[data-submenu="application"] .menu-item-has-children:hover > .sub-menu,
.sub-menu[data-submenu="application"] .menu-item-has-children.active > .sub-menu {
    display: block;
}

.sub-menu[data-submenu="application"] .unlinked a {
    color: #555 !important;
    font-size: 14px;
    padding: 4px 0;
    text-decoration: none;
    display: block;
}

.sub-menu[data-submenu="application"] .unlinked a:hover {
    color: #e74c3c !important;
    padding-left: 5px;
}

/* === MOBILE === */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    cursor: pointer;
    margin-left: auto;
}
.mobile-menu-toggle span { 
    width: 28px; 
    height: 3px; 
    background: #fff; 
    border-radius: 2px; 
    transition: 0.3s; 
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

@media (max-width: 991px) {
    .mobile-menu-toggle { display: flex; }

    #custom-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        z-index: 999;
    }

    #custom-menu.mobile-open { max-height: 10000px; }

    #custom-menu > li > .menu-link {
        padding: 16px 20px;
        border-bottom: 1px solid #333;
        text-align: left;
        font-size: 15px;
        color: #fff;
    }

    .sub-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        display: none;
        background: #222;
        border-radius: 0;
        margin-top: 0;
        flex-direction: column;
        gap: 20px;
        transform: none !important;
    }

    #custom-menu > li.active > .sub-menu { display: flex; }

    .sub-menu > ul,
    .sub-menu .acf-wrapper {
        width: 100%;
        min-width: 100%;
        padding: 0;
        border: none;
    }

    .acf-content {
        position: static;
        width: 100%;
        margin: 15px 0;
        border: 1px solid #444;
        display: none;
    }

    .sub-menu li.active > .acf-content { display: block !important; }

    #dynamic-image { width: 100%; margin: 15px 0; border-radius: 12px; }

    /* APPLICATION MOBILE */
    .sub-menu[data-submenu="application"] {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }

    .sub-menu[data-submenu="application"] .sub-menu {
        display: none;
        border-left: 2px solid #e74c3c;
        padding-left: 15px;
        margin-top: 8px;
    }

    .sub-menu[data-submenu="application"] .menu-item-has-children.active > .sub-menu {
        display: block;
    }

    .sub-menu[data-submenu="application"] .menu-item-has-children > a {
        font-size: 15px;
        padding: 10px 0;
        color: #fff !important;
    }

    .sub-menu[data-submenu="application"] .unlinked a {
        color: #ccc !important;
        font-size: 14px;
    }

    .sub-menu[data-submenu="application"] .unlinked a:hover {
        color: #e74c3c !important;
    }
}

/* Layout */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 1px auto;
  padding: 0 10px;
}

.product-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Box styling */
/* === PRODUCT GRID === */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 80px 0;
}

/* Two columns per row */
.product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.product-box {
  flex: 1 1 45%;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

/* === IMAGE STYLING === */
.product-box img {
  width: 100%;
  height: auto; /* ensures full image shows */
  object-fit: contain; /* no cropping */
  border-radius: 14px;
  margin-bottom: 25px;
  background: #fff; /* helps with transparent images */
  padding: 10px;
}

/* === TEXT === */
.product-box h2 {
  font-size: 2rem; /* larger title */
  font-weight: 700;
  color: #a40000;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.product-box p {
  font-size: 1.25rem; /* larger description */
  color: #333;
  margin-bottom: 22px;
  line-height: 1.7;
}

/* === BUTTON === */
.product-box .btn {
  display: inline-block;
  background-color: #a40000;
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.product-box .btn:hover {
  background-color: #7a0000;
  transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .product-box {
    flex: 1 1 100%;
  }

  .product-box h2 {
    font-size: 1.6rem;
  }

  .product-box p {
    font-size: 1.1rem;
  }
}

/* Button */
.btn {
  display: inline-block;
  background-color: #e74c3c;
  color: white;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 30px;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.btn:hover {
  background-color: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
  .product-box {
    width: 100%;
  }
}
/* Hero / Breadcrumb Section */
.product-hero {
  background: #e74c3c;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.product-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-hero .subtitle {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Product Grid */
.product-list-section {
  padding: 60px 20px;
  background: #fff;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.product-card {
  background: #fff;
  border: 2px solid #e74c3c;
  border-radius: 12px;
  width: 260px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid #e74c3c;
}

.product-card h2 {
  color: #e74c3c;
  font-size: 1.2rem;
  margin: 15px 0 5px;
}

.product-card h3 {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

.product-card p {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Button */
.spec-btn {
  display: inline-block;
  background-color: #e74c3c;
  color: white;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 25px;
  transition: background 0.3s ease;
  margin-bottom: 20px;
}

.spec-btn:hover {
  background-color: #c0392b;
}

/* Responsive */
@media (max-width: 992px) {
  .product-card {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .product-card {
    width: 100%;
  }

  .product-hero h1 {
    font-size: 2rem;
  }

  .product-hero .subtitle {
    font-size: 1rem;
  }
}

/* ===== LOGO STYLING ===== */
.logo-link {
    display: inline-block;
    text-decoration: none;
}

.site-logo {
    height: 68px;
    width: auto;
    transition: all 0.35s ease-in-out;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* ===== HEADER SHRINK ON SCROLL ===== */
.header {
    background: transparent !important;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
    backdrop-filter: blur(0);
    z-index: 1000;
    padding: 18px 0; /* initial padding */
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.7) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 6px 0; /* reduced padding for compact look */
}

/* Shrink logo on scroll */
.header.scrolled .site-logo {
    height: 48px;
    transform: scale(0.95);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .site-logo {
        height: 55px;
    }
    .header {
        padding: 14px 0;
    }
    .header.scrolled {
        padding: 4px 0;
    }
    .header.scrolled .site-logo {
        height: 42px;
    }
}

@media (max-width: 576px) {
    .site-logo {
        height: 45px;
    }
    .header.scrolled .site-logo {
        height: 38px;
    }
}

/* Ensure nested Residential/Commercial show on hover */
.sub-menu[data-submenu="application"] .menu-item-has-children:hover > .sub-menu {
    display: flex; /* flex instead of block for column layout */
    flex-direction: column;
    gap: 8px;
}

