*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
}

:root{
    --desktop-primary-color: #455060;
    --desktop-secondary-color: #0063a6;
    --border-accent-color: #008ecc;
    --mobile-primary-color: #222222;
    --footer-border-color: #262728;
    --main-bg-color:#eeeeee;
    --submenu-link-color:#009dfd;
    --products-hover-link:#004675;
    --gray-color:#e4e4e7;
    --tabbed-content-paragraph:#444;
    --tabbed-content-heading:#535453;
    --products-heading-font-size:1.5rem;
    --products-paragraph-font-size:1rem;
}

p {
    line-height: 1.6rem;
}

.topbar-container {
    background-color: var(--mobile-primary-color);
    width:100%;
    height:3rem;
}

.mobile-topbar {
    max-width:600px;
    height:3rem;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 0px 10px;
}

.mobile-topbar li {
    list-style: none;
}

.mobile-topbar a {
    color: white;
    text-decoration: none;
    font-size:11px;
    display:flex;
    align-items:center;
    gap:0.3rem;
}

.hidden {
    display: none;
}

/*topbar dropdown*/

.topbar-dropdown {
    background-color: var(--mobile-primary-color);
    position: relative;
    z-index:10;
}

.topbar-dropdown ul{
    max-width:600px;
    margin:0 auto;
    padding: 0px 10px;
}

.topbar-dropdown ul li{
    list-style: none;
    padding:0.5rem 0rem
}

.topbar-dropdown ul li a{
    color: white;
    text-decoration: none;
    font-size:12px;
}


/* Desktop topbar */
.desktop-topbar {
    display:none;
}

.topbar-left{
    display:flex;
    align-items: center;
    gap:20px;
}

.topbar-left li{
    list-style: none;
}

.topbar-left li a{
    text-decoration: none;
    color:#fff;
    font-size: 14px;
}

.fa-envelope{
    margin-right: 5px;
}

.fa-phone{
    margin-right: 5px;
}

.topbar-right {
    display:flex;
    align-items: center;
    list-style: none;
    height:3rem;
}

.topbar-right li {
    padding: 0 12px;
    border-left: 1px solid #000;
    height:100%;
    display:flex;
    align-items: center;
}

.topbar-right li a {
    color:#fff;
    font-size: 12px;
    text-decoration: none;
}

.topbar-right li a:hover {
    color:var(--desktop-secondary-color);
    transition:0.2s;
}

.topbar-right li a i {
    color:#fff;
    font-size: 20px;
    display: inline-block; /* Ensures the icon behaves correctly during transformation */
    transition: transform 0.3s ease-in-out; /* Smooth rotation transition */
}

.topbar-right li a:hover i {
    transform: rotate(360deg); /* Full rotation */
    color:var(--secondary-color);
}

.fa-gem, .fa-calculator, .fa-map-marker-alt, .fa-bars {
    font-size:1rem;
}


.mobile-header{
    background-color: var(--desktop-secondary-color);
}

.header-mobile-logo {
    display: flex;
    justify-content: center;
}

.header-mobile-logo img{
    max-height:150px;
    max-width:250px;
}

#bookShowRoomMob {
    text-align:center;
    max-width:200px;
    margin:0 auto;
    background:#139818;
    border-radius:20px;
    border:2px solid #fff;
}

#bookShowRoomMob a {
    color:#fff;
    text-decoration:none;
}

/* Desktop header */

.desktop-header-container{
    display:none;
    z-index:1000;
}

.desktop-header {
    display:flex;;
    margin:auto;
    max-width:1250px;
    width:100%;
    justify-content: space-between;
    align-items: center;
}

.desktop-header-menu {
    display:flex;
    align-items: center;
    padding: 0px 10px;
    gap:1.7rem;
}

/* Invisible hover bridge */
.desktop-nav-container::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 45px; /* Adjust height as needed */
  background: transparent;
}

.desktop-header-logo{
    /* background-color:var(--desktop-secondary-color); */
    position: relative;
    padding: 10px;
    width:310px;
}

.desktop-header-logo img{
    /* background-color:var(--desktop-secondary-color); */
    z-index:10;
}

.desktop-header-logo:before {
    content: ' ';
    width: 600px;
    position: absolute;
    right:0;
    height: 100%;
    background: var(--desktop-secondary-color);
    border-right:5px solid var(--border-accent-color);
    -webkit-background-size: cover;
    background-size: cover;
    transform: skewX(-45deg)
}

.desktop-header-menu li {
    display:flex;
    list-style: none;
    /* height:100%; */
}

.desktop-header-menu a {
    display:flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size:14px;
    gap:0.5rem;
}


.fa-angle-down{
    font-size: 10px;
}

.get-price-container{
    position: relative;
}

.get-price{
    position: relative;
    top:15px;
    z-index:1000;
}

.desktop-header-logo{
    display: flex;
    align-items: center;
    gap:0.5rem;
}

.desktop-header-logo img{
    max-width:150px;
    max-height: 90px;
    height: auto;
    width: auto;
}

.desktop-nav-container {
    position: relative;
}
  
  /* Bottom sentence */
  .submenu-bottom p {
    font-size: 11px;
    color: #fff;
    margin: 0;
    border-bottom: 1px solid #262728;
    text-align: right;
    padding-top:1.5rem;
    padding-bottom:1rem;
  }


  /* .header-products-mainLink::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px; 
    width: 100%;
    height: 20px; 
    background: red; 
} */

.desktop-nav-container::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 50px; /* Just enough hover buffer */
    background: transparent;
    pointer-events: auto;
}

.header-products-mainLink:hover,
.desktop-nav-container:hover .header-products-mainLink {
    color: var(--submenu-link-color); /* Change to desired hover color */
}

#duration40 {
    width:100%;
    background:#151515;
    text-align:center;
}

#dur40PC {
    width:100%;
    margin:0 auto;
    max-height: 100px;
}

#dur40MOB {
    max-width:100%;
    margin:0 auto;
    max-height:100px;
}


/*PRODUCTS SUBMENU*/

.header-products-submenu {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    position: absolute;
    top: calc(100% + 45px);
    left: -200px;
    background-color: var(--desktop-primary-color);
    padding: 20px;
    min-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    flex-direction: column;
    gap: 16px;
    border-top: 2px solid var(--desktop-secondary-color);
    pointer-events: none;
  }
  
  
  
  /* Keep submenu open when hovering over nav or submenu */
  .desktop-nav-container:hover .header-products-submenu,
  .desktop-nav-container:hover::after,
  .header-products-submenu:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  
  .desktop-nav-container:hover .header-products-submenu {
    display: block;
  }
  
  /* Flex: Image + Lists */
  .submenu-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }
  
  /* Image Section */
  .submenu-image{
    display:flex;
    justify-content: center;
    align-items: center;
  }
  
  .submenu-image img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }
  
  /* Two-column product list */
  .submenu-lists {
    display: flex;
    gap: 40px;
  }
  
  /* Each column */
  .submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .submenu-list li a {
    display: flex;
    justify-content: space-between;
    width:160px;
    gap:2.5rem;
    padding: 6px 0;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom:1px solid #262728;
  }
  
  
  /*submenu icons and hover*/
  
  .submenu-list li a:hover {
    background-color: var(--desktop-primary-color);
    color: var(--submenu-link-color);
  }
  
  .submenu-list li:hover a {
    border-bottom: 1px solid var(--submenu-link-color);
  }
  
  .header-subWindow a span{
    background: url(/Duration-Windows/images/icons/ali-iconsSM.png) 0 0;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 0px 0px;
    width: 25px;
    height: 25px;
    display: block;
  }
  
  .header-subWindow:hover a span {
    background-position: 0 -25px;
  }
  
  .header-subRoof a span{
    background: url(/Duration-Windows/images/icons/ali-iconsSM.png) 0 0;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 0px -100px;
    width: 25px;
    height: 25px;
    display: block;
  }
  
  .header-subRoof:hover a span {
    background-position: 0 -125px;
  }
  
  .header-subSliders a span{
    background: url(/Duration-Windows/images/icons/ali-iconsSM.png) 0 0;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 0px -200px;
    width: 25px;
    height: 25px;
    display: block;
  }
  
  .header-subSliders:hover a span {
    background-position: 0 -225px;
  }
  
  .header-subHeritage a span{
    background: url(/Duration-Windows/images/icons/ali-iconsSM.png) 0 0;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 0px -300px;
    width: 25px;
    height: 25px;
    display: block;
  }
  
  .header-subHeritage:hover a span {
    background-position: 0 -325px;
  }
  
  
  .header-subDoors a span{
    background: url(/Duration-Windows/images/icons/ali-iconsSM.png) 0 0;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 0px -50px;
    width: 25px;
    height: 25px;
    display: block;
  }
  
  .header-subDoors:hover a span {
    background-position: 0 -75px;
  }
  
  .header-subBifolds a span{
    background: url(/Duration-Windows/images/icons/ali-iconsSM.png) 0 0;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 0px -150px;
    width: 25px;
    height: 25px;
    display: block;
  }
  
  .header-subBifolds:hover a span {
    background-position: 0 -175px;
  }
  
  .header-subSecondary a span{
    background: url(/Duration-Windows/images/icons/ali-iconsSM.png) 0 0;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 0px -250px;
    width: 25px;
    height: 25px;
    display: block;
  }
  
  .header-subSecondary:hover a span {
    background-position: 0 -275px;
  }
  
  .header-subCommercial a span{
    background: url(/Duration-Windows/images/icons/ali-iconsSM.png) 0 0;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 0px -350px;
    width: 25px;
    height: 25px;
    display: block;
  }
  
  .header-subCommercial:hover a span {
    background-position: 0 -375px;
  }
  
  /*services dropdown*/
  .header-services-submenu {
    display: none;
    position: absolute;
    background-color: var(--desktop-primary-color);
    border-top: 2px solid var(--desktop-secondary-color);
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 20;
    top: calc(100% + 45px);
    left:-30px;
  }
  
  .header-services-submenu ul {
    list-style: none;
  }
  
  .header-services-submenu li a {
    width:100%;
    display: block;
    padding: 10px 1.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
  }
  
  .header-services-submenu ul li:not(:last-child) {
    border-bottom: 1px solid var(--footer-border-color);
  }
  
  .header-services-submenu li a:hover {
    color: var(--submenu-link-color);
  }
  
  .desktop-nav-container:hover .header-services-submenu {
    display: block;
  }


  /* Footer container */
.footer-container {
    width: 100%;
    padding-top: 3rem;
    background-color: var(--desktop-primary-color);
    border-top: 5px solid var(--border-accent-color);
}

.footer {
    max-width: 1200px;
    margin: auto;
    padding: 0 10px;
}

/* Flex setup for mobile and large screens */
.footer-nav-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-essex, .footer-useful-links, .footer-products, .footer-contact {
    padding: 0.5rem 0;
}

.footer-useful-links, .footer-products {
    display: none; /* Hide these sections on mobile */
}

.footer-lists-title {
    padding-bottom:0.5rem;
}

.footer-lists-title h3 {
    margin-bottom: 0.5rem;
    font-size: 16px;
    color: #fff;
    border-top: none; /* Remove border-top on titles */
}

.essex-description {
    color:#fff;
    padding-top:1rem;
}

.essex-description p {
    line-height:1.45em;
}

.fitter-wrapper {
    display:flex;
    flex-direction: column;
    gap:0.5rem;
    padding-top:1rem;
}

.essex-link {
    color:#fff;
    font-weight:bold;
    text-decoration:none;
}

.useful-links-list, .footer-contact-links {
    list-style-type: none;
    padding: 0;
}

.footer-borders {
    border-bottom:1px solid #262728;
}

.footer-getintouch-link {
    display:flex;
    padding: 8px 0;
    align-items:center;
    padding:8px 0;
    text-decoration: none;
}

.footer-useful-links a,
.footer-contact-links span {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.footer-useful-links a:before {
    font-family: FontAwesome;
    content: '\f105';
    color: #fff;
    font-size: 14px;
    line-height: 14px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.footer-icon-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.footer-contact-icon {
    font-size: 20px;
    line-height: 1;
    width:30px;
    text-align:center;
    color:#fff;
}

.footer-contact-links {
    border-top:1px solid #262728;
}

.footer-images {
    display:none;
    padding-top:2.5rem;
}

.footer-images img {
    width:80%;
    height:auto;
    max-height:100px;
}

.footer-copyright-container {
    width:100%;
}

.footer-copyright-container p{
    color:#fff;
    text-align:center;
    padding-top:3rem;
    padding-bottom:2rem;
}

.footer-paragraphs {
    display:flex;
    flex-direction: column;
    color:#fff;
    gap:20px;
    padding-top:1.5rem;
}

.footer-paragraphs p{
    line-height:1.7rem;
    font-size:12px;
}

.footer-proprietors-container, .footer-terms-container {
    max-width:767px;
    text-align:left;
    margin:auto;
}

.footer-terms-container a{
    color:#fff;
    text-decoration: underline;
    font-weight:bold;
}

/* Apply border-top to each li */
.useful-links-list li {
    border-top: 1px solid #262728; /* Add border to li items */
}

.useful-links-link {
    text-decoration: none;
}

.footer-contact-links li {
    border-top: 1px solid #262728; /* Add border to li items */
}

.footer-trustpilotlogo-container {
    padding-top:2rem;
    display:none;
}

.footer-trustpilotlogo {
    color:#fff;
    display:flex;
    align-items: center;
    gap:0.5rem;
}

.footer-trustpilotlogo p{
    font-size:17px;
}

.footer-trustpilot-5stars {
    max-width:80px;
}

.footer-trustpilot {
    margin-top:2px;
    max-width:75px;
}


@media (max-width: 1024px) {
    #dur40PC {
        display: none;
    }

    #dur40MOB {
        display:block;
    }
}

@media screen and (min-width: 768px) {
    .footer-proprietors-container, .footer-terms-container {
        text-align:left;
        max-width:600px;
    }

    .footer-paragraphs {
        padding-top:3rem;
        display:flex;
        flex-direction:row;
        gap:20px;
    }

    .footer-useful-links {
        display: block;
    }

    .footer-nav-container {
        flex-direction: row; /* Change to row for desktop */
        justify-content: space-between; /* Ensure they are spaced evenly */
    }

    .footer-essex, .footer-useful-links, .footer-products, .footer-contact {
        flex: 1; /* Space out the flex items */
    }

    .footer-images {
        justify-content: center;
        gap:20px;
        display:flex;
        flex-wrap:wrap;
    }
}


@media (min-width: 1024px) {
    .topbar-container{
        background-color: var(--desktop-primary-color);
    }

    .desktop-topbar {
        max-width: 1200px;
        margin: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 3rem;
        padding:0 10px;
    }

    .mobile-topbar {
        display:none;
    }

    .topbar-dropdown {
        display:none;
    }

    .desktop-header-container{
        background: linear-gradient(to right, var(--desktop-secondary-color) 20%, var(--desktop-primary-color) 20%);;
        width:100%;
        display:flex;
        justify-content: space-between;
        margin:auto;
        -webkit-box-shadow: 0 1px 15px #272727;
        -moz-box-shadow: 0 1px 15px #272727;
        box-shadow: 0 1px 15px #272727;
    }

    .mobile-header {
        display:none;
    }

    #dur40PC {
        display: block;
    }

    #dur40MOB {
        display:none;
    }

    .footer-trustpilotlogo-container {
        display:block;
    }
}

@media screen and (min-width: 1080px) {
    .footer-products {
        display: block;
    }
}

.tabbed-content-link {
    text-decoration: none; 
    color:var(--desktop-secondary-color);
    transition: all 0.3s ease;
}

.tabbed-content-link:hover {
    color:var(--products-hover-link);
    text-decoration:underline;
}



