/*
Theme Name: I-On Security
Theme URI: https://www.onlinemarketingsurgery.co.uk/
Author: Online Marketing Surgery Ltd
Author URI: https://www.onlinemarketingsurgery.co.uk/
Description: Custom ACF flexible content theme for I-On Security Ltd. Colours, company details, accreditations and tracking are all configured under Theme Settings.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ionsecurity
*/
/* Reset and Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--c-body,#3a424b);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar Styles */
.top-bar {
    background-color: #fff;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border,#d8dce1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.currency-selector span {
    color: var(--c-body,#3a424b);
    font-size: 14px;
}

.currency-buttons {
    display: flex;
    border: 1px solid var(--c-border,#d8dce1);
    border-radius: 4px;
    overflow: hidden;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.currency-btn:not(:last-child) {
    border-right: 1px solid var(--c-border,#d8dce1);
}

.currency-btn.active {
    background-color: var(--c-surface-alt,#f4f5f7);
}

.currency-btn img {
    width: 20px;
    height: auto;
}

/* Head Office Styles */
.head-office {
    color: var(--c-body,#3a424b);
    font-size: 14px;
    font-weight: 500;
}

.head-office a {
    color: var(--c-accent,#6b7280);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-left: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s;
}

.social-icon:hover svg {
    opacity: 0.8;
}

/* Main Header Styles */
.site-header {
    /* padding: 20px 0; */
    background: #fff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Reduced gap */
}

.site-branding {
    flex: 0 0 auto; /* Don't let the logo grow */
}

.site-branding img {
    height: 90px;
    width: auto;
}

@media (max-width: 768px) {
    .site-branding {
        margin-top: 42px;
    }}

/* Navigation Styles */
.main-navigation {
    flex: 1;
    margin-top: 50px;
    width: 100%; /* Ensure full width */
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: space-between; /* Changed from center to space-between for better distribution */
    gap: 5px; /* Reduced gap between items */
    margin: 0;
    padding: 0;
    flex-direction: row;
    width: 100%; /* Ensure full width */
}

.main-navigation li {
    position: relative;
    white-space: nowrap; /* Prevent wrapping of menu items */
}

.main-navigation a {
    text-decoration: none;
    color: var(--c-body,#3a424b);
    font-weight: 500;
    font-size: 18px; /* Increased from 15px to 18px */
    padding: 5px 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    /* border-radius: 50px; */
}

.main-navigation a:hover {
    color: var(--c-accent,#6b7280);
    background-color: var(--c-surface-alt,#f4f5f7);
}

/* Overlay for site-main when dropdown is open */
.site-main-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 990; /* Below the dropdown but above everything else */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows mouse events to pass through to elements below */
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s;
    display: inline-block;
}

/* Target the arrow when hovering over the menu item */
.menu-item:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Submenu Styles */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--c-footer-bg,#14181d); /* Change to solid blue background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 280px; /* Increased from 220px */
    z-index: 100;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    border-radius: 4px;
}

.main-navigation ul ul::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--c-footer-bg,#14181d); /* Match dropdown background color */
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    display: block;
    width: 100%;
}

.main-navigation ul ul a {
    padding: 10px 20px; /* Increased padding */
    display: flex; /* Keep as flex for arrow alignment */
    white-space: normal; /* Allow text to wrap if needed */
    font-size: 16px; /* Increased from 14px to 16px */
    color: #ffffff;
    line-height: 1.4; /* Improve line height for readability */
}

.main-navigation ul ul a:hover {
    background-color: var(--c-primary-dark,#0b0e12);
    color: #ffffff;
}

/* Third Level Dropdown Styles - Complete Rewrite */
/* Hide third level menus by default */
.main-navigation ul ul ul,
.menu-item-has-children:not(.stock-menu-item) .sub-menu .sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    transform: none;
    margin-left: 1px;
    margin-top: 0;
    z-index: 110;
    background-color: var(--c-footer-bg,#14181d);
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px 0;
}

/* Show third level ONLY when hovering directly on the second level parent */
.main-navigation ul ul li.menu-item-has-children:hover > ul,
.menu-item-has-children:not(.stock-menu-item) .sub-menu li.menu-item-has-children:hover > ul {
    display: block;
}

/* Hide third level when hovering on first level - this is the key fix */
.main-navigation > ul > li.menu-item-has-children:hover > ul > li > ul,
.menu-item-has-children:not(.stock-menu-item):hover > .sub-menu > li > .sub-menu {
    display: none;
}

/* Ensure submenu items with children are positioned correctly */
.main-navigation ul ul li.menu-item-has-children,
.menu-item-has-children:not(.stock-menu-item) .sub-menu li.menu-item-has-children {
    position: relative;
}

/* Add arrow indicator to second-level items with children */
.main-navigation ul ul li.menu-item-has-children > a::after,
.menu-item-has-children:not(.stock-menu-item) .sub-menu li.menu-item-has-children > a::after {
    content: '\f105'; /* Right arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 12px;
    padding-left: 10px;
}

/* Override to remove dropdown arrow from any menu item that will display the ::after arrow */
.main-navigation ul ul li.menu-item-has-children > a .dropdown-arrow,
.menu-item-has-children:not(.stock-menu-item) .sub-menu li.menu-item-has-children > a .dropdown-arrow {
    display: none;
}

/* Remove triangle indicator from third level */
.main-navigation ul ul ul::before,
.menu-item-has-children:not(.stock-menu-item) .sub-menu .sub-menu::before {
    display: none;
}

/* Search Form Styles */
.search-form-container {
    position: relative;
    margin-top: 50px;
    flex: 0 0 auto; /* Don't let the search grow */
}

.search-form {
    display: flex;
    align-items: center;
}

.search-field {
    padding: 10px 40px 10px 20px;
    border: 1px solid var(--c-border,#d8dce1);
    border-radius: 50px;
    width: 200px; /* Reduced width */
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-field:focus {
    border-color: var(--c-accent,#6b7280);
}

.search-submit {
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.search-submit img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.search-submit:hover img {
    opacity: 1;
}

/* Features Bar Styles */
.features-bar {
    background: transparent;
    padding: 0;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
}

.features-bar .container {
    max-width: 1100px;
}

.feature-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 45px 40px;
    width: 100%;
    margin: 0 0 20px 0;
    flex-shrink: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 54px;
    height: 44px;
    filter: brightness(0) invert(1);
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text span {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.feature-subtitle {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    align-items: center;
}

/* Footer Styles */
.site-footer {
    background-color: var(--c-footer-bg,#14181d);
    color: #ffffff;
    /* padding: 40px 0 20px; */
    padding-bottom: 5px;
}

.footer-content {
    margin-bottom: 20px;
}

/* Footer Logo and Search Row */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo img {
    /* height: 45px; */
    width: auto;
}

.footer-search .search-form {
    position: relative;
}

.footer-search .search-field {
    background: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 40px 12px 20px;
    width: 100%;
    min-width: 300px;
    font-size: 14px;
    color: var(--c-body,#3a424b);
}

.footer-search .search-submit {
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.footer-search .search-submit img {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-search .search-submit:hover img {
    opacity: 1;
}

/* Footer Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Contact Us Column */
.footer-info {
    margin-bottom: 20px;
}

.footer-address {
    margin-bottom: 15px;
}

.footer-contact {
    margin-bottom: 15px;
}

.footer-emails p:nth-child(odd) {
    margin-top: 10px;
    color: #ffffff;
    opacity: 0.9;
}

.footer-emails p:nth-child(even) {
    margin-bottom: 5px;
}

/* Certifications */
.certifications {
    display: flex;
    flex-direction: column;
    width: 85%;
}

.certification-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.certification-logo img {
    height: 145px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.certification-logo img:hover {
    opacity: 1;
}

.certification-text {
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
}

/* Quick Links Menu */
.quick-links-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-menu li {
    margin-bottom: 10px;
}

.quick-links-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.quick-links-menu a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Opening Times */
.footer-column:last-child {
    display: flex;
    flex-direction: column;
}

.time-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffffff;
}

.time-row span:first-child {
    color: #ffffff;
    opacity: 0.9;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--c-footer-bg,#14181d);
    padding: 20px 0;
    border-top: 1px solid #ffffff;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.footer-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 14px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links span {
    color: #ffffff;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    justify-content: flex-end;
}

.footer-social .social-icons {
    display: flex;
    gap: 12px;
}

.footer-social .social-icon {
    width: 24px;
    height: 24px;
}

.footer-social .social-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.footer-social .social-icon:hover svg {
    fill: #ffffff;
    filter: drop-shadow(0 0 1px #ffffff);
}

/* Regular dropdown styles for other menu items */
.menu-item-has-children:not(.stock-menu-item) .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--c-footer-bg,#14181d);
    border: none;
    min-width: 280px; /* Increased from 200px */
    max-width: 400px; /* Set max width */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px 0;
}

.menu-item-has-children:not(.stock-menu-item):hover .sub-menu {
    display: block;
}

.menu-item-has-children:not(.stock-menu-item) .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--c-footer-bg,#14181d); /* Match dropdown background color */
}

.menu-item-has-children:not(.stock-menu-item) .sub-menu a {
    padding: 10px 20px; /* Increased padding */
    display: flex; /* Keep as flex for arrow alignment */
    white-space: normal; /* Allow text to wrap if needed */
    font-size: 16px; /* Increased from 14px to 16px */
    color: #ffffff;
    line-height: 1.4; /* Improve line height for readability */
}

.menu-item-has-children:not(.stock-menu-item) .sub-menu a:hover {
    background-color: var(--c-primary-dark,#0b0e12);
    color: #ffffff;
}

/* Banner Heading Styles */
.banner-heading .blue-text {
    color: var(--c-footer-bg,#14181d);
    margin-bottom: 5px;
    font-weight: 900;
}

.banner-heading .blue-text, .banner-heading .red-text {
    display: block;
    font-size: 72px;
    font-weight: 700;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border,#d8dce1);
}

.filters-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: var(--c-body,#3a424b);
}

.clear-link {
    color: var(--c-body,#3a424b);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.clear-link span {
    margin-left: 3px;
    font-size: 14px;
    line-height: 1;
}

.clear-link:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-body,#3a424b);
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.filter-option label {
    cursor: pointer;
    font-size: 14px;
    color: var(--c-body,#3a424b);
    margin-left: 30px;
}

/* Custom radio button */
.filter-option input[type="radio"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid var(--c-border,#d8dce1);
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

.filter-option input[type="radio"]:checked + label:before {
    border-color: var(--c-accent,#6b7280);
    background: #fff;
}

.filter-option input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-accent,#6b7280);
    transition: all 0.2s ease;
}

.filter-option input[type="radio"]:focus + label:before {
    box-shadow: 0 0 0 3px rgba(196, 18, 47, 0.1);
}

/* Results Header Styles */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--c-border,#d8dce1);
}

.view-toggle {
    display: flex;
}

.view-toggle button {
    background: none;
    border: 1px solid var(--c-border,#d8dce1);
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    color: var(--c-muted,#5b6673);
    transition: all 0.2s ease;
}

.view-toggle button:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.view-toggle button:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-left: none;
}

.view-toggle button.active {
    background-color: var(--c-accent,#6b7280);
    border-color: var(--c-accent,#6b7280);
    color: white;
}

.sort-by select {
    padding: 8px 12px;
    border: 1px solid var(--c-border,#d8dce1);
    border-radius: 4px;
    font-size: 14px;
    color: var(--c-body,#3a424b);
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-gbp {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.price-gbp .flag-icon {
    margin-right: 8px;
}

.price-gbp .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--c-body,#3a424b);
}

.price-gbp .ex-vat {
    margin-left: 5px;
    font-size: 13px;
    color: var(--c-muted,#5b6673);
}

.price-vat {
    display: flex;
    align-items: center;
}

.price-vat .price {
    font-size: 15px;
    color: var(--c-muted,#5b6673);
}

.price-vat .inc-vat {
    margin-left: 5px;
    font-size: 13px;
    color: var(--c-muted,#5b6673);
}

.spec-group {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.spec-icon {
    width: 20px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 10px;
    opacity: 0.7;
}

.registration-icon {
    background-image: url('images/icon-registration.svg');
}

.mileage-icon {
    background-image: url('images/icon-mileage.svg');
}

.axle-icon {
    background-image: url('images/icon-axle.svg');
}

.spec-text {
    font-size: 14px;
    color: var(--c-muted,#5b6673);
}

.btn-view, .btn-enquire {
    flex: 1;
    display: inline-block;
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-view {
    background-color: var(--c-surface-alt,#f4f5f7);
    color: var(--c-body,#3a424b);
    border: 1px solid var(--c-border,#d8dce1);
}

.btn-enquire {
    background-color: var(--c-accent,#6b7280);
    color: white;
    border: 1px solid var(--c-accent,#6b7280);
}

.btn-view:hover {
    background-color: var(--c-border,#d8dce1);
    border-color: var(--c-border,#d8dce1);
}

.btn-enquire:hover {
    background-color: var(--c-accent-dark,#4b5563);
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid var(--c-border,#d8dce1);
    color: var(--c-body,#3a424b);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination li span.current {
    background-color: var(--c-accent,#6b7280);
    border-color: var(--c-accent,#6b7280);
    color: white;
    font-weight: 600;
}

.pagination li a:hover {
    background-color: var(--c-surface-alt,#f4f5f7);
    border-color: var(--c-border,#d8dce1);
}

/* No Results */
.no-results {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.no-results h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--c-body,#3a424b);
}

.no-results p {
    color: var(--c-muted,#5b6673);
    font-size: 16px;
}

.no-results a {
    color: var(--c-accent,#6b7280);
    text-decoration: none;
    font-weight: 500;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 992px) {
    }

@media (max-width: 768px) {
    
    }

@media (max-width: 480px) {
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }}

/* Search styles moved to css/search.css */

/* Links inside paragraphs */
a {
    margin-right: 5px !important;
}

/* Hero Background */
.hero-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: white;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}



/* Fix potential icon issues */
.fa, .fas, .far, .fal, .fab {
    display: inline-block;
}

.view-toggle .fa {
    font-size: 14px;
}

/* Hero Background Styles */
.hero-background {
    position: relative;
    width: 100%;
    height: 765px;
    min-height: unset;
    overflow: hidden;
    z-index: 1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 50%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    margin-top: -648px;
    height: 647px;
    min-height: unset;
    display: flex;
    flex-direction: column;
    z-index: 3;
    width: 100%;
}

.hero-content-wrapper .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    height: 100%;
}

.hero-content {
    color: #ffffff;
    max-width: 1400px;
    width: 85%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 170px;
    margin-bottom: 0;
    flex-grow: 0;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}

.hero-content .hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.4;
    text-align: center;
}

.hero-content .btn {
    display: inline-block;
    background-color: var(--c-footer-bg,#14181d);
    color: white;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 0 auto;
    margin-bottom: 97px;
}

.hero-content .btn:hover {
    background-color: var(--c-primary-dark,#0b0e12);
}

/* Transparent Header Styles */
.has-transparent-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent !important;
    border-bottom: none;
    padding-bottom: 10px;
}

.has-transparent-header .site-branding img {
    /* filter: brightness(0) invert(1); */ /* Make logo white for transparent header */
}

/* Navigation Light Text Styles */
.nav-light a {
    color: #ffffff !important;
}

.nav-light .dropdown-arrow {
    color: #ffffff !important;
}

/* Search Light Text Styles */
.search-light input[type="search"] {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.search-light input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-background {
        height: 550px;
    }
    
    .hero-content-wrapper {
        margin-top: -550px;
        height: 550px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-background {
        height: 540px;
        min-height: unset;
    }
    
    .hero-content-wrapper {
        margin-top: -540px;
        height: auto;
        min-height: unset;
        padding-bottom: 0;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .hero-content .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-content .btn {
        padding: 12px 24px;
        font-size: 16px;
        margin-bottom: 50px;
    }
    
    .features-bar {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-bottom: 0;
    }
    
    .feature-items {
        display: none;
    }}

@media (max-width: 480px) {
    .hero-content-wrapper {
        height: auto;
        min-height: unset;
        padding-bottom: 0;
    }
    
    .hero-content {
        margin-top: 120px;
    }
    
    .hero-content .btn {
        margin-bottom: 40px;
    }
    
    /* ... existing code ... */
}

/* Hide Skip to Content Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
}

/* Hero section fixes */
.has-hero-background {
    position: relative;
}

/* Ensure proper navigation display */
.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-direction: row;
}

/* Fix video background */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Ensure transparent header works */
.has-transparent-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent !important;
    border-bottom: none;
    padding-bottom: 10px;
}

.has-transparent-header .site-branding img {
    /* filter: brightness(0) invert(1); */ /* Make logo white for transparent header */
}

/* Hero section fixes */
.has-hero-background {
    position: relative;
}

.hero-background {
    position: relative;
    width: 100%;
    height: 765px;
    min-height: unset;
    overflow: hidden;
    z-index: 1;
}

/* Navigation Light Text Styles */
.nav-light a {
    color: #ffffff !important;
}

.nav-light .dropdown-arrow {
    color: #ffffff !important;
}

/* Search Light Text Styles */
.search-light input[type="search"] {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.search-light input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-background {
        height: 550px;
    }
    
    .hero-content-wrapper {
        margin-top: -550px;
        height: 550px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-background {
        height: 540px;
        min-height: unset;
    }
    
    .hero-content-wrapper {
        margin-top: -540px;
        height: auto;
        min-height: unset;
        padding-bottom: 0;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .hero-content .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-content .btn {
        padding: 12px 24px;
        font-size: 16px;
        margin-bottom: 50px;
    }
    
    .features-bar {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-bottom: 0;
    }
    
    .feature-items {
        display: none;
    }}

@media (max-width: 480px) {
    .hero-content-wrapper {
        height: auto;
        min-height: unset;
        padding-bottom: 0;
    }
    
    .hero-content {
        margin-top: 120px;
    }
    
    .hero-content .btn {
        margin-bottom: 40px;
    }
    
    /* ... existing code ... */
}

.nav-light a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-content-wrapper .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
}

/* UK Flag styling */
.uk-flag-container {
    position: absolute;
    top: 0px;
    left: 95%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 100%;
}

.uk-flag {
    height: 55px;
    width: auto;
    margin-top: -5px;
    position: relative;
    z-index: 5;
}

/* Contact Top Bar Styles */
.contact-top-bar {
    background-color: var(--c-footer-bg,#14181d);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-column {
    display: flex;
    align-items: center;
    z-index: 99999 !important;
    position: relative;
}

.column-left {
    flex: 2;
}

.column-right {
    flex: 2;
    justify-content: flex-end;
}

.contact-items {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    max-width: 550px; /* Match search box width */
    width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px;
    flex-shrink: 0;
}

/* Social Media Links in Header */
.contact-social {
    padding: 0;
}

.social-link {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    text-decoration: none;
}

.social-link:hover {
    color: #ffffff;
    opacity: 0.8;
    text-decoration: none;
}

.contact-social .contact-icon {
    font-size: 16px;
    height: 16px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.contact-text {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 18px;
}

.contact-text:hover {
    opacity: 0.8;
    color: #ffffff;
}

@media (max-width: 991px) {
    .contact-items {
        max-width: 100%;
    }}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: row; /* Keep as row */
        gap: 10px;
    }
    
    .top-bar-column {
        width: auto;
    }
    
    .column-left {
        display: none; /* Hide left column on mobile to save space */
    }
    
    .column-right {
        flex: 1;
        justify-content: center;
    }

    .contact-social {
        display: none;
        visibility: hidden;
    }
    
    .contact-items {
        flex-direction: row; /* Keep as row */
        align-items: center;
        gap: 15px;
        justify-content: center;
    }}

@media (max-width: 576px) {
    .contact-text {
        font-size: 14px;
    }
    
    .contact-items {
        gap: 10px;
    }}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--c-accent,#6b7280);
    color: #ffffff;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background-color: var(--c-primary,#14181d);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }}

/* Ensure all dropdown links are flex containers for proper arrow alignment */
.main-navigation ul ul a,
.menu-item-has-children:not(.stock-menu-item) .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Global Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

table thead {
    background-color: var(--c-footer-bg,#14181d);
    color: #ffffff;
}

table thead th {
    padding: 15px 20px;
    font-weight: 600;
    text-align: left;
    border: none;
    vertical-align: middle;
}

table tbody tr {
    border-bottom: 1px solid var(--c-surface-alt,#f4f5f7);
    transition: background-color 0.3s ease;
}

table tbody tr:nth-child(even) {
    background-color: var(--c-surface-alt,#f4f5f7);
}

table tbody tr:hover {
    background-color: var(--c-surface-alt,#f4f5f7);
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody td {
    padding: 12px 20px;
    vertical-align: middle;
    border: none;
    color: var(--c-body,#3a424b);
}

/* Highlighted cells */
table .highlight-cell {
    font-weight: 600;
    color: var(--c-accent,#6b7280);
}

/* Table captions */
table caption {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--c-primary,#14181d);
    text-align: left;
}

/* Responsive tables - enable horizontal scrolling on small screens */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        margin: 15px 0;
        font-size: 14px;
    }
    
    table thead th,
    table tbody td {
        padding: 10px 15px;
    }
}

/* Compact tables variation */
.table-compact thead th {
    padding: 10px 15px;
}

.table-compact tbody td {
    padding: 8px 15px;
}

/* Bordered table variation */
.table-bordered tbody td,
.table-bordered thead th {
    border: 1px solid var(--c-border,#d8dce1);
}

/* Striped table variation */
.table-striped tbody tr:nth-child(odd) {
    background-color: var(--c-surface-alt,#f4f5f7);
}

.table-striped tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Gravity Form 2 Styling - Properly target form #2 */
.gform_wrapper #gform_2,
.gform_wrapper.gform_wrapper_2 {
    margin: 0;
}

.gform_wrapper #gform_2 ul.gform_fields,
.gform_wrapper.gform_wrapper_2 ul.gform_fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gform_wrapper #gform_2 li.gfield,
.gform_wrapper.gform_wrapper_2 li.gfield {
    margin: 0 0 20px 0;
    padding: 0;
}

/* Field styling for form 2 */
.gform_wrapper #gform_2 input[type="text"],
.gform_wrapper #gform_2 input[type="email"],
.gform_wrapper #gform_2 input[type="tel"],
.gform_wrapper #gform_2 input[type="url"],
.gform_wrapper #gform_2 input[type="number"],
.gform_wrapper #gform_2 select,
.gform_wrapper #gform_2 textarea,
.gform_wrapper.gform_wrapper_2 input[type="text"],
.gform_wrapper.gform_wrapper_2 input[type="email"],
.gform_wrapper.gform_wrapper_2 input[type="tel"],
.gform_wrapper.gform_wrapper_2 input[type="url"],
.gform_wrapper.gform_wrapper_2 input[type="number"],
.gform_wrapper.gform_wrapper_2 select,
.gform_wrapper.gform_wrapper_2 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--c-border,#d8dce1);
    border-radius: 50px;
    background-color: white;
    font-size: 16px;
    color: var(--c-body,#3a424b);
    line-height: normal;
    box-shadow: none;
    margin-bottom: 0;
}

/* Form textarea styling */
.gform_wrapper #gform_2 textarea,
.gform_wrapper.gform_wrapper_2 textarea {
    height: 150px;
    resize: vertical;
    border-radius: 25px;
}

/* Dropdown styling */
.gform_wrapper #gform_2 select,
.gform_wrapper.gform_wrapper_2 select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 35px;
}

/* Form submit button */
.gform_wrapper #gform_2 .gform_footer,
.gform_wrapper.gform_wrapper_2 .gform_footer {
    padding: 0;
    margin: 20px 0 0 0;
    text-align: right;
}

.gform_wrapper #gform_2 .gform_button,
.gform_wrapper.gform_wrapper_2 .gform_button {
    background-color: var(--c-footer-bg,#14181d);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 150px;
}

.gform_wrapper #gform_2 .gform_button:hover,
.gform_wrapper.gform_wrapper_2 .gform_button:hover {
    background-color: var(--c-primary-dark,#0b0e12);
}

/* Label styling */
.gform_wrapper #gform_2 .gfield_label,
.gform_wrapper.gform_wrapper_2 .gfield_label {
    font-weight: 500;
    font-size: 16px;
    color: var(--c-body,#3a424b);
    margin-bottom: 8px;
    display: block;
}

/* Required field indicator */
.gform_wrapper #gform_2 .gfield_required,
.gform_wrapper.gform_wrapper_2 .gfield_required {
    color: var(--c-accent,#6b7280);
    margin-left: 4px;
}

/* Validation styling */
.gform_wrapper #gform_2 .validation_message,
.gform_wrapper.gform_wrapper_2 .validation_message {
    color: var(--c-accent,#6b7280);
    font-weight: normal;
    font-size: 14px;
    padding: 5px 0 0 0;
}

.gform_wrapper #gform_2 .validation_error,
.gform_wrapper.gform_wrapper_2 .validation_error {
    color: var(--c-accent,#6b7280);
    border-color: var(--c-accent,#6b7280);
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid;
    border-radius: 5px;
    font-size: 14px;
}

.gform_wrapper #gform_2 .gfield_error input,
.gform_wrapper #gform_2 .gfield_error textarea,
.gform_wrapper #gform_2 .gfield_error select,
.gform_wrapper.gform_wrapper_2 .gfield_error input,
.gform_wrapper.gform_wrapper_2 .gfield_error textarea,
.gform_wrapper.gform_wrapper_2 .gfield_error select {
    border: 1px solid var(--c-accent,#6b7280);
}

/* Placeholder styling */
.gform_wrapper #gform_2 ::placeholder,
.gform_wrapper.gform_wrapper_2 ::placeholder {
    color: var(--c-muted,#5b6673);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gform_wrapper #gform_2 input[type="text"],
    .gform_wrapper #gform_2 input[type="email"],
    .gform_wrapper #gform_2 input[type="tel"],
    .gform_wrapper #gform_2 input[type="url"],
    .gform_wrapper #gform_2 input[type="number"],
    .gform_wrapper #gform_2 select,
    .gform_wrapper #gform_2 textarea,
    .gform_wrapper.gform_wrapper_2 input[type="text"],
    .gform_wrapper.gform_wrapper_2 input[type="email"],
    .gform_wrapper.gform_wrapper_2 input[type="tel"],
    .gform_wrapper.gform_wrapper_2 input[type="url"],
    .gform_wrapper.gform_wrapper_2 input[type="number"],
    .gform_wrapper.gform_wrapper_2 select,
    .gform_wrapper.gform_wrapper_2 textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .gform_wrapper #gform_2 .gform_button,
    .gform_wrapper.gform_wrapper_2 .gform_button {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* Additional direct ID targeting for form #2 */
#gform_wrapper_2 {
    margin: 0;
}

#gform_wrapper_2 ul.gform_fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

#gform_wrapper_2 li.gfield {
    margin: 0 0 20px 0;
    padding: 0;
}

#gform_wrapper_2 input[type="text"],
#gform_wrapper_2 input[type="email"],
#gform_wrapper_2 input[type="tel"],
#gform_wrapper_2 input[type="url"],
#gform_wrapper_2 input[type="number"],
#gform_wrapper_2 select,
#gform_wrapper_2 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--c-border,#d8dce1);
    border-radius: 50px;
    background-color: white;
    font-size: 16px;
    color: var(--c-body,#3a424b);
    line-height: normal;
    box-shadow: none;
    margin-bottom: 0;
}

#gform_wrapper_2 textarea {
    height: 150px;
    resize: vertical;
    border-radius: 25px;
}

#gform_wrapper_2 select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 35px;
}

#gform_wrapper_2 .gform_footer {
    padding: 0;
    margin: 20px 0 0 0;
    text-align: right;
}

#gform_wrapper_2 .gform_button {
    background-color: var(--c-footer-bg,#14181d);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 150px;
}

#gform_wrapper_2 .gform_button:hover {
    background-color: var(--c-primary-dark,#0b0e12);
}

/* Remove existing gf_2 styling which isn't working */
.gform_wrapper.gf_2_wrapper,
.gform_wrapper.gf_2_wrapper ul.gform_fields,
.gform_wrapper.gf_2_wrapper li.gfield,
.gform_wrapper.gf_2_wrapper input[type="text"],
.gform_wrapper.gf_2_wrapper input[type="email"],
.gform_wrapper.gf_2_wrapper input[type="tel"],
.gform_wrapper.gf_2_wrapper input[type="url"],
.gform_wrapper.gf_2_wrapper input[type="number"],
.gform_wrapper.gf_2_wrapper select,
.gform_wrapper.gf_2_wrapper textarea,
.gform_wrapper.gf_2_wrapper .gform_footer,
.gform_wrapper.gf_2_wrapper .gform_button,
.gform_wrapper.gf_2_wrapper .gfield_label,
.gform_wrapper.gf_2_wrapper .gfield_required,
.gform_wrapper.gf_2_wrapper .validation_message,
.gform_wrapper.gf_2_wrapper .validation_error,
.gform_wrapper.gf_2_wrapper .gfield_error input,
.gform_wrapper.gf_2_wrapper .gfield_error textarea,
.gform_wrapper.gf_2_wrapper .gfield_error select,
.gform_wrapper.gf_2_wrapper ::placeholder {
    /* These styles now moved to more specific selectors above */
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hide on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000; /* Ensure it appears above other elements */
    position: relative;
}

.mobile-menu-toggle .toggle-bar {
    width: 100%;
    height: 3px;
    background-color: var(--c-body,#3a424b);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.has-transparent-header .mobile-menu-toggle .toggle-bar {
    background-color: #fff;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation - fix overflow issues */
.mobile-navigation-wrapper {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background-color: var(--c-footer-bg,#14181d);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    overflow-y: auto;
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
    display: block;
}

.mobile-navigation-wrapper.active {
    right: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.mobile-nav-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    background-color: var(--c-footer-bg,#14181d);
}

/* Mobile Menu - ensure content flows properly */
.mobile-menu {
    flex: 1 0 auto;
    margin-bottom: 30px;
    padding-top: 15px;
    overflow: visible;
}

/* Fixed position for body to prevent scrolling under the menu */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure flex column layout for proper accordion expansion */
.mobile-menu-items,
.mobile-menu-items ul {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Menu item specific fixes */
.mobile-menu-items .menu-item {
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Force About menu to use proper accordion behavior */
.mobile-menu-items .about-menu > a {
    font-weight: 500;
}

.mobile-menu-items .about-menu.submenu-open > a {
    color: var(--c-footer-bg,#14181d);
    font-weight: 600;
}

/* Restore mobile menu core styles */
.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-menu-items li {
    position: relative;
    border-bottom: 1px solid var(--c-border,#d8dce1);
    width: 100%;
    display: block;
}

.mobile-menu-items li:last-child {
    border-bottom: none;
}

.mobile-menu-items a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Properly implemented accordion submenu styles */
.mobile-menu-items .sub-menu {
    list-style: none;
    padding: 0 0 0 15px !important;
    margin: 0 0 0 0 !important;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-items .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 2000px;
    margin-bottom: 10px !important;
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.mobile-menu-items .sub-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
    padding: 0;
}

.mobile-menu-items .sub-menu a {
    padding: 12px 0;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.mobile-menu-items .sub-menu li:last-child {
    border-bottom: none;
}

/* Toggle button styles */
.submenu-toggle {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--c-muted,#5b6673);
    padding: 0;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.dropdown-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    transition: transform 0.3s ease;
    position: relative;
}

.dropdown-icon:before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #ffffff;
}

.submenu-toggle[aria-expanded="true"] .dropdown-icon:before {
    content: '-';
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Mobile Contact Info */
.mobile-contact-info {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-contact-item {
    margin-bottom: 15px;
}

.mobile-contact-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
}

.mobile-contact-item i {
    width: 20px;
    margin-right: 10px;
    color: #ffffff;
}

.mobile-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-social-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Overlay for mobile menu */
body.mobile-menu-open:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    opacity: 1;
    visibility: visible;
    display: block !important;
    pointer-events: auto !important;
}

/* Fix mobile menu display issues */
@media (max-width: 991px) {
    /* Hide desktop navigation and show mobile toggle */
    .main-navigation {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 10000;
        margin-left: auto;
    }
    
    /* Ensure proper header layout */
    .header-content {
        justify-content: space-between;
        align-items: center;
    }
    
    /* Hide desktop search on mobile */
    .search-form-container {
        display: none !important;
    }
    
    /* Fix logo sizing */
    .site-branding img {
        height: 60px;
    }
    
    /* Hide desktop stock menu on mobile */
    .stock-dropdown-wrapper {
        display: none !important;
    }
    
    /* Ensure fixed mobile menu wrapper */
    .mobile-navigation-wrapper {
        width: 280px;
        right: -280px;
    }
    
    /* Fix for active mobile menu */
    .mobile-navigation-wrapper.active {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Fix stock menu hover only on desktop */
@media (min-width: 992px) {
    .stock-menu-item:hover .stock-dropdown-wrapper {
        display: block;
    }
    
    .stock-dropdown-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        margin-top: 15px;
    }
}

/* Fix mobile menu to be a true accordion */
.mobile-menu-items, 
.mobile-menu-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-menu-items .sub-menu {
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 0 0 15px !important;
    margin: 0 !important;
    border-left: 2px solid rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-items .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 2000px;
    margin-bottom: 10px !important;
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

/* Fix mobile menu accordion appearance */
@media (max-width: 991px) {
    /* Override any top-level menu styles to ensure accordion behavior */
    .mobile-menu-items .sub-menu {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0 0 0 15px !important;
        margin: 0 !important;
        border-left: 2px solid rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
    }
    
    /* Force submenu items to display in block to create accordion */
    .mobile-menu-items li {
        display: block !important;
        width: 100% !important;
    }
    
    /* Fix positioning of toggle buttons */
    .mobile-menu-items .submenu-toggle {
        position: absolute !important;
        right: 0 !important;
        top: 7px !important;
        z-index: 3 !important;
    }
    
    /* Ensure submenu appears below parent, not on top */
    .main-navigation ul ul,
    .menu-item-has-children:not(.stock-menu-item) .sub-menu,
    .mobile-menu-items .sub-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
    
    /* Fix third-level menu appearances */
    .mobile-menu-items .sub-menu .sub-menu {
        margin-left: 0 !important;
        border-top: none !important;
    }
    
    /* Remove dropdown arrows from main navigation in mobile */
    .main-navigation ul ul::before,
    .menu-item-has-children:not(.stock-menu-item) .sub-menu::before,
    .mobile-menu-items .sub-menu::before {
        display: none !important;
    }
}

/* Make toggle buttons more visible on mobile */
@media (max-width: 991px) {
    .mobile-menu-items .submenu-toggle {
        position: absolute;
        right: 0;
        top: 8px;
        width: 35px;
        height: 35px;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    
    .mobile-menu-items .submenu-toggle:hover,
    .mobile-menu-items .submenu-toggle:focus {
        background-color: rgba(255, 255, 255, 0.25);
    }
    
    .mobile-menu-items .dropdown-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 20px;
        color: #ffffff;
    }
    
    /* Fix stock menu styling for blue background */
    .mobile-menu-items .stock-dropdown {
        background-color: transparent !important; 
    }
    
    .mobile-menu-items .menu-deal-content h3 {
        color: #ffffff;
    }
    
    .mobile-menu-items .menu-deal-pricing {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 991px) {
    .mobile-menu-items .menu-item-has-children > a {
        padding-right: 40px !important;
    }
    
    /* Fix positioning for all submenus to ensure accordion style */
    .mobile-menu-items,
    .mobile-menu-items .sub-menu,
    .mobile-menu-items .stock-dropdown-wrapper {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    .mobile-menu-items .submenu-open > a {
        color: #ffffff !important;
        font-weight: 600;
    }}

/* Mobile Menu Logo */
.mobile-menu-logo {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 10px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    /* padding-bottom: 20px; */
}

.mobile-menu-logo img {
    max-width: 240px;
    height: auto;
    margin-top: -30px;
    margin-bottom: -20px;
    filter: unset;
}

.mobile-nav-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    background-color: var(--c-footer-bg,#14181d);
}

@media (max-width: 768px) {
    .uk-flag-container {
        position: absolute;
        top: 0px;
        left: 45%;
        transform: translateX(-50%);
        z-index: 10;
        text-align: center;
        width: 100%;
    }}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        position: relative;
        top: 20px;
        margin-right: 15px;
    }}

@media (max-width: 768px) {
    .feature-item {
        display: flex;
        align-items: center;
        gap: 22px;
        margin-bottom: 20px;
    }
    
    .feature-items {
        flex-direction: column;
        align-items: flex-start;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 8px;
        padding: 30px;
        width: 100%;
        margin: 30px 0 20px 0;
    }
    
    .feature-icon img {
        width: 45px;
        height: 36px;
    }
    
    .feature-text span {
        font-size: 18px;
    }
    
    .feature-subtitle {
        font-size: 13px;
    }
    
    /* ... existing mobile styles ... */
}

@media (max-width: 480px) {
    .feature-items {
        padding: 25px 20px;
        margin: 25px 0 15px 0;
    }
    
    .feature-item {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .feature-item:last-child {
        margin-bottom: 0;
    }
    
    .feature-icon img {
        width: 40px;
        height: 32px;
    }
    
    .feature-text span {
        font-size: 16px;
    }
    
    /* ... existing mobile styles ... */
}

@media (max-width: 480px) {
    .text-image-split-section .content-cta {
        margin-top: 20px;
        padding-bottom: 20px;
    }
    
    /* ... existing code for 480px ... */
}

@media (max-width: 768px) {
    /* Footer mobile styling */
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .footer-logo img {
        height: 75px;
        width: auto;
    }
    
    .footer-search .search-field {
        min-width: 100%;
        width: 100%;
    }
    
    .certification-logos {
        justify-content: center;
    }
    
    .certification-text {
        text-align: center;
    }
    
    .certifications {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .footer-column h3 {
        text-align: center;
        font-size: 18px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 15px;
    }
    
    .footer-info, .footer-address, .footer-contact, .footer-emails {
        text-align: center;
    }
    
    .quick-links-menu {
        text-align: center;
    }
    
    .quick-links-menu li {
        margin-bottom: 12px;
    }
    
    .time-row {
        padding: 0 20px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links span {
        display: none;
    }
    
    /* Show the separator before copyright only */
    .footer-links span:nth-last-child(2) {
        display: none;
        margin: 5px 0;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* ... other existing mobile styles ... */
}

/* Fix for hero section and main content overlap on mobile */
@media (max-width: 768px) {
    /* Ensure the hero content wrapper doesn't overlap with main content */
    .hero-content-wrapper {
        margin-top: -540px;
        min-height: 540px; /* Match height to hero background */
        height: auto;
        padding-bottom: 0;
        position: relative;
        z-index: 5;
    }
    
    /* Ensure main content appears below hero */
    .has-hero-background #primary {
        position: relative;
        z-index: 1;
        margin-top: 0;
        clear: both;
    }
    
    /* Fix content overflow */
    .has-hero-background #content {
        overflow: hidden;
        position: relative;
        z-index: 1;
        margin-top: 0px;
    }
    
    /* Increase heading size on mobile */
    .hero-content h1 {
        font-size: 50px;
    }
}

/* FORCE SEARCH RESULTS STYLING - HIGH PRIORITY */
body .search-results-section {
    position: relative !important;
    padding: 80px 0 !important;
    background: linear-gradient(to right, rgba(245, 249, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
    margin: 0 !important;
    width: 100% !important;
}

body .search-results-section .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

body .search-results-header {
    text-align: center !important;
    margin-bottom: 50px !important;
    padding: 0 !important;
}

body .search-results-title {
    color: var(--c-primary,#14181d) !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
}

body .search-results-title .search-query {
    color: var(--c-accent,#6b7280) !important;
    font-weight: 600 !important;
}

body .search-results-count {
    color: var(--c-accent,#6b7280) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

body .search-results-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 50px !important;
    list-style: none !important;
    padding: 0 !important;
}

body .search-result-item {
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body .search-result-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

body .search-result-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .search-result-image {
    position: relative !important;
    height: 250px !important;
    background-color: var(--c-surface-alt,#f4f5f7) !important;
    overflow: hidden !important;
}

body .search-result-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

body .search-result-item:hover .search-result-thumbnail {
    transform: scale(1.05) !important;
}

body .search-result-content {
    padding: 25px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
}

body .search-result-title {
    margin: 0 0 15px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

body .search-result-title a {
    color: #000000 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

body .search-result-title a:hover {
    color: var(--c-primary,#14181d) !important;
}

body .search-result-excerpt {
    margin-bottom: 20px !important;
    color: var(--c-muted,#5b6673) !important;
    line-height: 1.6 !important;
    flex: 1 !important;
}

body .search-result-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: auto !important;
}

body .search-result-button {
    flex: 1 !important;
    display: inline-block !important;
    padding: 12px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

body .search-result-button:not(.enquire-button) {
    background-color: var(--c-surface-alt,#f4f5f7) !important;
    color: var(--c-body,#3a424b) !important;
    border: 1px solid var(--c-border,#d8dce1) !important;
}

body .search-result-button.enquire-button {
    background-color: var(--c-accent,#6b7280) !important;
    color: white !important;
    border: 1px solid var(--c-accent,#6b7280) !important;
}

/* Override any default WordPress article styles */
body .search-results-section article {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

body .search-results-section .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

body .search-results-section .entry-title {
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive overrides */
@media (max-width: 1200px) {
    body .search-results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    body .search-results-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    body .search-result-image {
        height: 200px !important;
    }
    
    body .search-result-content {
        padding: 20px !important;
    }
    
    body .search-result-title {
        font-size: 18px !important;
    }
    
    body .search-result-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }}

/* Two-Column Hero Content Layout for CAD Upload Form */
.hero-content-two-columns {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    color: #ffffff;
    max-width: 1600px;
    width: 95%;
    margin: 100px auto 30px;
    min-height: 400px;
}

.hero-content-left {
    flex: 0 0 46%;
    max-width: 46%;
}

.hero-content-right {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-two-columns .hero-content {
    margin: 0;
    width: 100%;
    text-align: left;
}

.hero-content-two-columns .hero-content h1 {
    text-align: left;
    margin-bottom: 20px;
}

.hero-content-two-columns .hero-content .hero-subtitle {
    text-align: left;
    margin-bottom: 30px;
}

.hero-content-two-columns .hero-content .btn {
    margin: 0;
    margin-bottom: 0;
}

/* CAD Upload Form Styling */
.cad-upload-form {
    background: rgba(255, 255, 255, 0.25);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.cad-upload-form .gform_wrapper {
    margin: 0;
}

.cad-upload-form .gform_fields {
    margin: 0;
}

.cad-upload-form .gfield {
    margin-bottom: 0px;
}

.cad-upload-form input[type="text"],
.cad-upload-form input[type="email"],
.cad-upload-form input[type="tel"],
.cad-upload-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--c-border,#d8dce1);
    border-radius: 4px;
    font-size: 14px;
    color: var(--c-body,#3a424b);
    background: #fff;
}

.cad-upload-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--c-border,#d8dce1);
    border-radius: 4px;
    background: #fff;
    color: var(--c-body,#3a424b);
}

.cad-upload-form .gform_button {
    background-color: var(--c-footer-bg,#14181d);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.cad-upload-form .gform_button:hover {
    background-color: var(--c-primary-dark,#0b0e12);
}

span#gfield_upload_rules_4_10 {
    color: var(--c-border,#d8dce1);
}

#gform_4 .gform_fields {
    row-gap: 16px;
}

/* Mobile Responsiveness for Two-Column Layout */
@media (max-width: 768px) {
    .hero-content-two-columns {
        flex-direction: column;
        gap: 30px;
        width: 95%;
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .hero-content-left,
    .hero-content-right {
        max-width: 100%;
        flex: none;
    }
    
    .hero-content-two-columns .hero-content {
        text-align: center;
    }
    
    .hero-content-two-columns .hero-content h1 {
        text-align: center;
        font-size: 36px;
    }
    
    .hero-content-two-columns .hero-content .hero-subtitle {
        text-align: center;
        font-size: 20px;
    }
    
    .cad-upload-form {
        max-width: 100%;
        padding: 20px;
    }
    
    /* Extend hero background height on mobile when form is present */
    .has-hero-background .hero-content-wrapper {
        min-height: 800px;
    }
    
    .has-hero-background .hero-background {
        min-height: 800px;
    }
    
    .has-hero-background .hero-video-container,
    .has-hero-background .hero-image-container {
        min-height: 800px;
    }
    
    .has-hero-background .hero-overlay {
        min-height: 800px;
    }
}

@media (max-width: 768px) {
    .has-hero-background .hero-content-wrapper {
        min-height: auto;
    }}

@media (max-width: 768px) {
    .hero-content-wrapper {
        margin-top: -790px;
        min-height: 540px;
        height: auto;
        padding-bottom: 0;
        position: relative;
        z-index: 5;
    }}
/* -------------------------------------------------------------------------
 * Accessibility, WCAG 2.2 AA
 * ---------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--c-focus, #1763b8);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Keep a visible ring on dark surfaces too (2.4.11 Focus Appearance). */
.site-footer :where(a, button):focus-visible,
.has-transparent-header .main-navigation :where(a, button):focus-visible,
.hero-content :where(a, button):focus-visible,
.top-warning-banner :where(a, button):focus-visible {
    outline-color: var(--c-surface, #ffffff);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 8px;
    top: 8px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: var(--c-surface, #ffffff);
    color: var(--c-ink, #14181d);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

/* Minimum target size (2.5.8). */
.social-icons a,
.mobile-menu-toggle,
.search-submit,
.hero-video-toggle {
    min-width: 24px;
    min-height: 24px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-video {
        display: none;
    }
}

/* -------------------------------------------------------------------------
 * Hero video control (2.2.2 Pause, Stop, Hide)
 * ---------------------------------------------------------------------- */

.hero-video-container {
    position: relative;
}

.hero-video-toggle {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--c-surface, #ffffff);
    border-radius: 999px;
    background: rgba(var(--c-primary-rgb, 20, 24, 29), .7);
    color: var(--c-surface, #ffffff);
    font: inherit;
    font-size: .8125rem;
    cursor: pointer;
}

.hero-video-toggle::before {
    content: "";
    width: 10px;
    height: 12px;
    background: currentColor;
    clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0);
}

.hero-video-toggle[data-state="paused"]::before {
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* -------------------------------------------------------------------------
 * Footer, social and accreditations for the settings-driven markup
 * ---------------------------------------------------------------------- */

.site-footer {
    background-color: var(--c-footer-bg, #14181d);
    color: var(--c-footer-text, #ffffff);
}

.footer-bottom {
    background: var(--c-footer-bg, #14181d);
    color: var(--c-footer-text, #ffffff);
    border-top: 1px solid rgba(var(--c-footer-text-rgb, 255, 255, 255), .25);
}

.footer-address {
    font-style: normal;
}

.footer-address span {
    display: block;
}

.footer-label {
    display: block;
    font-weight: 600;
    opacity: .85;
}

.opening-times .time-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.opening-times dt,
.opening-times dd {
    margin: 0;
}

.footer-legal-links,
.certification-logos,
.social-icons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-legal-links li + li::before {
    content: "|";
    margin-right: 12px;
    opacity: .5;
}

.footer-legal-detail span + span::before {
    content: "|";
    margin: 0 8px;
    opacity: .5;
}

.certification-logo img {
    max-width: 140px;
    height: auto;
}

.certification-number {
    display: block;
    font-size: .75rem;
    opacity: .8;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: currentColor;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* -------------------------------------------------------------------------
 * Hero feature bar
 * ---------------------------------------------------------------------- */

.feature-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: currentColor;
}

/* -------------------------------------------------------------------------
 * Listing cards and empty states
 * ---------------------------------------------------------------------- */

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.content-card {
    display: flex;
    flex-direction: column;
    background: var(--c-surface, #ffffff);
    border: 1px solid var(--c-border, #d8dce1);
    border-radius: 4px;
    overflow: hidden;
}

.content-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.content-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.content-card__title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--c-ink, #14181d);
}

.content-card__title a {
    color: inherit;
    text-decoration: none;
}

.content-card__title a:hover {
    text-decoration: underline;
}

.content-card__meta {
    margin: 0;
    color: var(--c-muted, #5b6673);
    font-size: .875rem;
}

.content-card__link {
    margin-top: auto;
    font-weight: 600;
    color: var(--c-accent, #6b7280);
}

.archive-header,
.no-results,
.error-404,
.page-content {
    padding-top: 64px;
    padding-bottom: 32px;
}

.error-404-links ul {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Control outlines carry a 3:1 requirement (1.4.11 Non-text Contrast). */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea {
    border: 1px solid var(--c-border-strong, #6f7985);
}

/* Primary call to action uses the hi-vis highlight with dark text. */
.btn-primary,
.warning-cta-button,
.sectors-cta-button,
.header-cta {
    background-color: var(--c-highlight, #e8a317);
    color: var(--c-on-highlight, #14181d);
    border-color: var(--c-highlight, #e8a317);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.sectors-cta-button:hover,
.header-cta:hover {
    background-color: var(--c-accent-dark, #7e5200);
    border-color: var(--c-accent-dark, #7e5200);
    color: #ffffff;
}
