/* --- Basic Setup & Colours --- */
:root {
    --primary-blue: #015E8C;
    --light-grey-bg: #E9E9E9;
    --border-grey: #cccccc;
    --text-dark: #000033;
    --heading-grey: #666666;
    --special-red: #990000;
}
body {
    font-family: Tahoma, sans-serif;
    margin: 0;
    background-color: var(--light-grey-bg);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}
.page-container {
    max-width: 970px;
    margin: 0 auto;
    background-color: #E9E9E9; 
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: var(--primary-blue);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- Header --- */
.site-header {
    background-color: var(--primary-blue);
}
.header-content-wrapper {
    max-width: 970px;
    height: 120px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-content-wrapper .logo-link img {
    width: 364px;
    height: 100px;
    object-fit: contain;
    display: block;
}
.header-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.header-contact-info {
    color: #CCCCCC;
    font-size: 13px;
    font-weight: normal;
    text-align: right;
    margin-bottom: 5px;
    line-height: 1.4;
}
.header-contact-info .phone-number {
    font-size: 22px;
    color: #ffffff;
}

/* --- Desktop Navigation --- */
.main-nav {
    position: relative;
}
.main-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.main-nav li {
    position: relative;
}
.main-nav > ul > li + li {
    border-left: 1px solid #ffffff;
    margin-left: 10px;
    padding-left: 10px;
}
.main-nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: normal;
}
.main-nav a:hover {
    text-decoration: underline;
}
.hamburger-menu {
    display: none;
    font-size: 30px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Dropdown Menu (Level 2) --- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border: 1px solid var(--border-grey);
}
.dropdown:hover > .dropdown-menu {
    display: block;
}
.dropdown-menu > li {
    position: relative;
}
.dropdown-menu a {
    color: var(--primary-blue);
    padding: 10px 15px;
    font-size: 14px !important;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}
.dropdown-menu li:last-child > a {
    border-bottom: none;
}
.dropdown-menu a:hover {
    background-color: var(--light-grey-bg);
    text-decoration: none !important;
}

/* --- Sub-Menu (Level 3) --- */
.sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: -1px;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border: 1px solid var(--border-grey);
}
.dropdown-menu > li:hover > .sub-menu {
    display: block;
}
.submenu-toggle { display: none; }

/* --- Main Layout --- */
.main-layout {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}
.left-column-custom {
    width: 380px;
}
.left-column-custom h1 {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
}
.left-column-custom h2 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 8px;
}
.left-column-custom p {
    margin-top: 0;
    margin-bottom: 1em;
    text-align: justify;
}
.right-column-custom {
    width: 570px;
}

/* --- Slideshow --- */
.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 598 / 430;
    overflow: hidden;
    background-color: #fff;
    margin-top: 45px;
}
.slideshow-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slideshow-container img.slide-visible {
    opacity: 1;
}

/* --- Product Grid --- */
.product-grid {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 20px;
}
.product-card {
    width: 145px;
}
.product-card a {
    display: block;
    text-decoration: none;
    border: 2px solid transparent;
}
.product-card a:hover {
     border-color: var(--primary-blue);
}
.product-card img {
    width: 100%;
    height: 160px;
    display: block;
}
.product-label {
    display: block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 4px 5px;
    text-align: center;
    font-size: 13px;
}
.product-card--special .product-label {
    background-color: var(--special-red);
}

/* --- Contact Form --- */
.contact-form {
    background-color: var(--light-grey-bg);
    padding: 30px;
    border: 1px solid #dcdcdc;
    margin-top: 15px;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-grey);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}
.contact-form input[type="submit"] {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    align-self: flex-start;
}
.contact-form input[type="submit"]:hover {
    background-color: #004a83;
}
.honeypot {
    display: none;
}

/* --- Find Us Page --- */
.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 71.9%; /* Aspect ratio 430 / 598 */
    margin-top: 15px;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.map-link-container {
    text-align: right;
    font-size: 12px;
    margin-top: 5px;
}

/* --- Cookie Notice --- */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    z-index: 2000;
}
.cookie-notice.show {
    display: flex;
}
.cookie-notice p {
    margin: 0;
    font-size: 14px;
}
.cookie-btn {
    background-color: var(--primary-blue);
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}
.cookie-btn:hover {
    background-color: #004a83;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-blue);
    color: #CCCCCC;
    font-size: 13px;
}
.footer-content-wrapper {
    max-width: 970px;
    margin: 0 auto;
    padding: 16px 0;
}
.footer-top, .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-contact {
    text-align: right;
}
.footer-strong {
    color: #FFFFFF;
    font-weight: bold;
}
.site-footer a {
    color: #FFFFFF;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}
.site-footer hr {
    border: 0;
    border-top: 1px solid #337a9e;
    margin: 16px 0;
}

/* --- Responsive Styles --- */
.mobile-nav-panel {
    display: none;
}

@media (max-width: 970px) {
     .header-content-wrapper, .footer-content-wrapper {
         padding-left: 15px;
         padding-right: 15px;
     }
}
@media (max-width: 768px) {
    .site-header {
        height: auto;
    }
    .header-content-wrapper {
        height: auto;
        padding: 10px 15px;
    }
    .header-content-wrapper .logo-link img {
        width: 240px;
        height: auto;
    }
    .header-right-content {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .main-layout {
        flex-direction: column;
        padding: 15px; 
        gap: 20px;
    }
    .left-column-custom, .right-column-custom {
        width: 100%;
    }
    .left-column-custom {
        margin-bottom: 0; /* Adjusted from 20px */
    }
    .slideshow-container {
        margin-top: 0;
    }
    .map-container {
        margin-top: 0;
    }
    .product-grid {
        display: none; /* Hide product grid on mobile */
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        justify-content: space-between;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .product-card {
        width: calc(50% - 10px);
    }
    .product-card img {
        width: 100%;
        height: auto;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .footer-top {
        flex-direction: column;
        gap: 15px;
    }
    .footer-contact, .footer-address {
        text-align: center;
    }
    
    /* Mobile Navigation Panel Styling */
    .mobile-nav-panel {
        width: 100%;
        background-color: var(--primary-blue);
    }
    .mobile-nav-panel.show {
        display: block;
    }
    .mobile-nav-panel ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .mobile-nav-panel a { 
        color: #FFFFFF;
        text-decoration: none;
    }
    .mobile-nav-panel a:hover {
        background-color: transparent;
    }
    .mobile-nav-panel a:active, .mobile-nav-panel a:focus {
        background-color: #0067a9;
        outline: none;
    }
    .mobile-nav-panel > ul > li {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #004a83;
    }
    .mobile-nav-panel > ul > li:last-child {
        border-bottom: none;
    }
     .mobile-nav-panel > ul > li > a { 
         padding: 15px 20px;
         flex-grow: 1;
    }
    .mobile-nav-panel .dropdown-menu, .mobile-nav-panel .sub-menu {
        display: none;
        position: static;
        background-color: #004a83;
        border: none;
        box-shadow: none;
        padding: 0;
        width: 100%;
    }
    .mobile-nav-panel .menu-open {
        display: block;
    }
    .mobile-nav-panel .dropdown-menu > li {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
     }
     .mobile-nav-panel .dropdown-menu > li > a {
        padding: 15px 20px 15px 35px;
        font-weight: bold;
        flex-grow: 1;
    }
    .mobile-nav-panel .dropdown-menu a {
         border-bottom: none;
    }
    .mobile-nav-panel .submenu-toggle {
        display: inline-block;
        padding: 15px 20px;
        font-size: 1.2em;
        cursor: pointer;
        color: #D3D3D3;
    }
    .mobile-nav-panel .sub-menu {
        background-color: #00376b;
    }
    .mobile-nav-panel .sub-menu a {
        display: block;
        padding: 10px 20px 10px 50px;
        font-weight: normal;
    }
}