:root {
    --kd-navy: #031d39;
    --kd-blue: #05b8f4;
    --kd-white: #ffffff;
    --kd-container: 1540px;
    --font-heading: 'Telma', sans-serif;
    --font-body: 'General Sans', sans-serif;
}

/* =====================================
   CUSTOM FONT - TELMA MEDIUM
===================================== */

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

/* Global H1 font */
h1 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 500;
}

body {
    margin: 0;
    font-family: 'General Sans', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--kd-container);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 80px);
}



/* Sticky Header */
body .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(4, 29, 59, 0.08);
}

/* WordPress admin bar */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ==========================================
   HEADER RESPONSIVE IMPROVEMENTS
========================================== */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    display: block;
    width: 130px;
    height: auto;
}

/* NAVIGATION CONTAINER */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #041D3B;
}

/* MENU LINKS */
/* Desktop navigation links */
.main-navigation a {
    color: #041D3B;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* HOVER COLOR */
.main-navigation a:hover,
.main-navigation a:focus-visible {
    color: #05B8F4;
}

/* ACTIVE MENU */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #05B8F4;
}

/* HOVER */

.site-header .main-navigation a:hover,
.site-header .main-navigation a:focus-visible {
    color: #05B8F4;
}

/* ACTIVE PAGE */

.site-header .main-navigation .current-menu-item > a,
.site-header .main-navigation .current_page_item > a {
    color: #05B8F4;
}

.mobile-menu-phone {
    display: none !important;
}

.menu-toggle {
    display: none;
}

/* HEADER PHONE */

.site-header .header-phone,
.site-header .header-phone a {
    color: #041D3B;
}

.site-header .header-phone a:hover {
    color: #05B8F4;
}
/* ==========================================
   TABLET AND MOBILE
========================================== */

@media (max-width: 1100px) {

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 85px;
    }

    .site-logo {
        margin-right: auto;
    }

    .site-logo img {
        width: 100px;
    }

    /* Hide desktop phone */
    .header-phone {
        color: #041D3B;
        display: none !important;
    }

    /* Hamburger on far right */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        width: 44px;
        height: 44px;

        margin: 0 0 0 auto;
        padding: 8px;

        border: 0;
        border-radius: 8px;

        background: transparent;
        cursor: pointer;

        flex-shrink: 0;
        order: 3;
    }

    .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--kd-navy);
        border-radius: 2px;
        transition: transform .3s ease, opacity .3s ease;
    }

    .menu-toggle[aria-expanded="true"]
    .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"]
    .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"]
    .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Dropdown navigation */
    .main-navigation {
        display: none;
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        width: 100%;
        max-height: calc(100dvh - 85px);
        overflow-y: auto;

        padding: 20px 24px 28px;

        background: #041d3b;
        box-shadow: 0 16px 30px rgba(0,0,0,.2);

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        z-index: 100;
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation > a:not(.mobile-menu-phone) {
        display: block;
        width: 100%;

        padding: 15px 0;

        color: #ffffff;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;

        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .main-navigation > a:hover {
        color: #05b8f4;
    }

    /* Phone inside dropdown */
    .main-navigation .mobile-menu-phone {
        display: flex !important;
        align-items: center;
        gap: 14px;

        margin-top: 20px;
        padding: 16px;

        border-radius: 12px;
        background: rgba(5,184,244,.12);

        color: #ffffff;
        text-decoration: none;
    }

    .mobile-phone-icon {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 45px;
        height: 45px;

        background: #05b8f4;
        border-radius: 10px;

        font-size: 22px;
    }

    .mobile-menu-phone small {
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
    }

    .mobile-menu-phone strong {
        display: block;
        font-size: 17px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .header-inner {
        min-height: 75px;
    }

    .site-logo img {
        width: 85px;
    }

    .main-navigation {
        max-height: calc(100dvh - 75px);
        padding-inline: 18px;
    }
}
/* Header layout: desktop navigation, tablet/mobile logo + menu toggle */
/* Sticky positioning is defined above; do not override it here. */
.header-inner { min-height: 105px; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { max-width: 100%; }
.main-navigation a { color: var(--kd-navy); text-decoration: none; font-weight: 600; white-space: nowrap; }
.main-navigation a:hover, .main-navigation a:focus-visible { color: var(--kd-blue); }
.header-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--kd-navy); text-decoration: none; white-space: nowrap; }
.header-phone small, .header-phone strong { display: block; }
.phone-icon { display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--kd-blue); font-size: 23px; }
.menu-toggle:focus-visible, .main-navigation a:focus-visible { outline: 2px solid var(--kd-blue); outline-offset: 4px; }
@media (max-width: 1100px) {
  .header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; }
  .site-logo { margin-right: auto; order: 1; }
  .header-phone { display: none !important; }
  .menu-toggle { display: flex; order: 2; margin-left: auto; color: var(--kd-navy); }
  .main-navigation {
        background: #041D3B;
    }

    .main-navigation > a:not(.mobile-menu-phone) {
        color: #ffffff;
    }

    .main-navigation > a:not(.mobile-menu-phone):hover,
    .main-navigation > a:not(.mobile-menu-phone):focus-visible {
        color: #05B8F4;
    }

    .main-navigation .mobile-menu-phone {
        color: #ffffff;
    }
  .main-navigation.is-open { display: flex; }
  .main-navigation .mobile-menu-phone { display: flex !important; white-space: normal; }
  .main-navigation .mobile-menu-phone small, .main-navigation .mobile-menu-phone strong { display: block; }
}
@media (min-width: 1101px) {
  .main-navigation { display: flex; }
  .main-navigation .mobile-menu-phone { display: none !important; }
  .menu-toggle { display: none; }
}

.mobile-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;
    flex-shrink: 0;

    background: #05B8F4;
    border-radius: 10px;
}

.mobile-phone-icon img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}


/* ==========================================
   KD CLEANERS - GLOBAL FOOTER
========================================== */

.kd-footer {
    position: relative;
    width: 100%;
    background: #041D3B;
    color: #ffffff;
    margin-top: 100px;
    isolation: isolate;
}

/* WAVE */

.kd-footer-wave {
    position: absolute;
    bottom: calc(100% - 1px);
    left: 0;
    width: 100%;
    height: clamp(70px, 8vw, 150px);
    overflow: hidden;
    pointer-events: none;
}

.kd-footer-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* FOOTER CONTAINER */

.kd-footer-container {
    position: relative;
    z-index: 2;
    padding-top: 65px;
    padding-bottom: 25px;
}

/* Remove unwanted offsets */
.kd-footer-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Align footer logo to first column */
.kd-footer-brand {
    margin: 0;
    padding: 0;
}

/* FOUR COLUMNS */

.kd-footer-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(0, 0.85fr)
        minmax(0, 0.85fr)
        minmax(0, 1.2fr);

    gap: clamp(25px, 3vw, 60px);
    align-items: start;
}

.kd-footer-column {
    min-width: 0;
}

/* BRAND */

.kd-footer-logo {
    display: inline-block;
    margin-bottom: 24px;
    margin-left: 0;
    padding-left: 0;
}

.kd-footer-logo img {
    display: block;
    width: 125px;
    height: auto;
    object-fit: contain;
}

.kd-footer-brand p {
    max-width: 350px;
    margin: 0 0 25px;
    font-size: 15px;
    line-height: 1.8;
    color: #D6E2EF;
}

/* COLUMN HEADINGS */

.kd-footer-column > .kd-footer-heading {
    display: block;
    margin: 0 0 28px;
    padding: 0;
    color: #05B8F4;
    font-family: "Cabinet Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* QUICK LINKS / LEGAL */

.kd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kd-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.kd-footer a:hover,
.kd-footer a:focus-visible {
    color: #05B8F4;
}

/* SOCIAL ICONS */

.kd-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kd-footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 44px;
    height: 44px;
    border-radius: 50%;

    background: #164E86;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.kd-footer-social a:hover {
    background: #05B8F4;
    transform: translateY(-4px);
}

.kd-footer-social img {
    display: block;
    width: 19px;
    height: 19px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* CONTACT ITEMS */

.kd-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.kd-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.kd-footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;

    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #164E86;
}

.kd-footer-contact-icon img {
    display: block;
    width: 21px;
    height: 21px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.kd-footer-contact-item > div {
    min-width: 0;
}

.kd-footer-contact-label {
    display: block;
    margin-bottom: 5px;
    color: #91A8C2;
    font-size: 12px;
}

.kd-footer-contact-item a,
.kd-footer-contact-text {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* COPYRIGHT */

.kd-footer-bottom {
    margin-top: 65px;
    padding-top: 25px;
    border-top: 1px solid rgba(5, 184, 244, 0.35);
    text-align: center;
}

/* .kd-footer-bottom p {
    margin: 0;
    color: #D6E2EF;
    font-size: 13px;
    line-height: 1.8;
}

.kd-footer-bottom a {
    color: #05B8F4;
} */

/* Footer copyright links — accessibility fix */

.kd-footer-copyright-text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.kd-footer-copyright-text a:hover {
    text-decoration-thickness: 2px;
}

.kd-footer-copyright-text a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* =====================================
   FOOTER BOTTOM - HOVER EFFECT
===================================== */

.kd-footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kd-footer-bottom a:hover,
.kd-footer-bottom a:focus-visible {
    color: #05B8F4;
    text-decoration: none;
}

/* ==========================================
   LAPTOP
========================================== */

@media (max-width: 1200px) {

    .kd-footer-grid {
        gap: 28px;
    }

    .kd-footer-brand p {
        font-size: 14px;
    }

    .kd-footer-column > .kd-footer-heading {
        font-size: 24px;
    }

    .kd-footer-contact-item {
        gap: 10px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

    .kd-footer {
        margin-top: 80px;
    }

    .kd-footer-container {
        padding-top: 50px;
    }

    .kd-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
        row-gap: 50px;
    }

    .kd-footer-brand p {
        max-width: 420px;
    }

    .kd-footer-bottom {
        margin-top: 50px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .kd-footer {
        margin-top: 65px;
    }

    .kd-footer-container {
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .kd-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .kd-footer-logo img {
        width: 90px;
    }

    .kd-footer-brand p {
        max-width: 100%;
        font-size: 14px;
    }

    .kd-footer-column > .kd-footer-heading {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .kd-footer-links {
        gap: 14px;
    }

    .kd-footer-contact-list {
        gap: 18px;
    }

    .kd-footer-bottom {
        margin-top: 45px;
        padding-top: 22px;
    }

    .kd-footer-bottom p {
        font-size: 12px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .kd-footer-social a {
        width: 40px;
        height: 40px;
    }

    .kd-footer-contact-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .kd-footer-contact-item a,
    .kd-footer-contact-text {
        font-size: 13px;
    }
}

/* ==========================================
   SHARED HEADER / FOOTER LOGO ALIGNMENT
   logo.webp has been trimmed of transparent canvas.
   Both wrappers inherit the unchanged global .container.
========================================== */
.site-header .site-logo,
.kd-footer .kd-footer-logo {
    margin-left: 0;
    padding-left: 0;
    flex-shrink: 0;
}
.site-header .site-logo img,
.kd-footer .kd-footer-logo img {
    display: block;
    width: 82px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
@media (max-width: 1100px) {
    .site-header .site-logo img,
    .kd-footer .kd-footer-logo img { width: 63px; }
}
@media (max-width: 480px) {
    .site-header .site-logo img,
    .kd-footer .kd-footer-logo img { width: 54px; }
}

/* ==========================================
   HEADER FINAL COLOR / RESPONSIVE FIXES
   White translucent header, navy links, cyan hover
========================================== */
.site-header .main-navigation > a:not(.mobile-menu-phone) { color: var(--kd-navy); }
.site-header .main-navigation > a:not(.mobile-menu-phone):hover,
.site-header .main-navigation > a:not(.mobile-menu-phone):focus-visible { color: var(--kd-blue); }
.site-header .header-phone,
.site-header .header-phone small,
.site-header .header-phone strong { color: var(--kd-navy); }
.site-header .header-phone:hover small,
.site-header .header-phone:hover strong { color: var(--kd-blue); }
@media (max-width: 1100px) {
  .site-header .header-inner { min-height: 85px; }
  .site-header .hamburger-line { background: var(--kd-navy); }
  .site-header .main-navigation > a:not(.mobile-menu-phone) { color: #fff; }
  .site-header .main-navigation > a:not(.mobile-menu-phone):hover,
  .site-header .main-navigation > a:not(.mobile-menu-phone):focus-visible { color: var(--kd-blue); }
  .site-header .main-navigation .mobile-menu-phone,
  .site-header .main-navigation .mobile-menu-phone small,
  .site-header .main-navigation .mobile-menu-phone strong { color: #fff; }
}
@media (max-width: 480px) {
  .site-header .header-inner { min-height: 75px; }
}

/* ==========================================
   FOOTER MAP + BRAND ALIGNMENT (2026-10)
   Uses the same unmodified global .container as the header.
========================================== */
.kd-footer .kd-footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.2fr);
    column-gap: clamp(24px, 3vw, 56px);
}
.kd-footer .kd-footer-logo {
    display: inline-block;
    margin: 0 0 20px;
    padding: 0;
}
.kd-footer .kd-footer-logo img {
    width: 130px;
    max-width: 100%;
    height: auto;
    display: block;
}
.kd-footer .kd-footer-contact { justify-self: end; width: min(100%, 310px); }
.kd-footer .kd-footer-map {
    width: 100%;
    margin-top: 44px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(5,184,244,.3);
    background: #0c3558;
}
.kd-footer .kd-footer-map iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}
.kd-footer .kd-footer-bottom { margin-top: 30px; }
@media (max-width: 991px) {
    .kd-footer .kd-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 40px; }
    .kd-footer .kd-footer-contact { justify-self: start; width: 100%; }
    .kd-footer .kd-footer-map iframe { height: 300px; }
}
@media (max-width: 767px) {
    .kd-footer .kd-footer-grid { grid-template-columns: minmax(0,1fr); row-gap: 32px; }
    .kd-footer .kd-footer-logo img { width: 115px; }
    .kd-footer .kd-footer-map { margin-top: 34px; border-radius: 10px; }
    .kd-footer .kd-footer-map iframe { height: 250px; }
}
@media (max-width: 480px) {
    .kd-footer .kd-footer-logo img { width: 105px; }
}


/* =====================================
   SERVICES DROPDOWN NAVIGATION
===================================== */

.kd-nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Services menu - arrow alignment */

.kd-nav-parent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.kd-nav-chevron {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

/* Rotate arrow when dropdown opens */
@media (min-width: 992px) {
    .kd-nav-dropdown:hover .kd-nav-chevron,
    .kd-nav-dropdown:focus-within .kd-nav-chevron {
        transform: rotate(180deg);
    }
}

@media (max-width: 991px) {
    .kd-nav-dropdown.is-open .kd-nav-chevron {
        transform: rotate(180deg);
    }
}

.kd-submenu-toggle {
    display: none;
}

.kd-dropdown-menu,
.kd-dropdown-submenu {
    position: absolute;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(4, 29, 59, .14);
    min-width: 265px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.kd-dropdown-menu {
    top: 100%;
    left: 0;
    z-index: 1000;
}

.kd-dropdown-submenu {
    top: 0;
    left: 100%;
    z-index: 1001;
    min-width: 335px;
}

.kd-dropdown-item {
    position: relative;
}

.kd-dropdown-menu a,
.kd-dropdown-submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    color: #041D3B;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* .kd-dropdown-menu a:hover,
.kd-dropdown-menu a:focus-visible,
.kd-dropdown-submenu a:hover,
.kd-dropdown-submenu a:focus-visible {
    background: #0586c7;
    color: #ffffff;
} */

/* Dropdown links - Hover and Focus */

/* Submenu links - default */
.kd-dropdown-menu .kd-dropdown-submenu > a {
    color: #071D3A;
}

/* Submenu links - hover and keyboard focus */
.kd-dropdown-menu .kd-dropdown-submenu > a:hover,
.kd-dropdown-menu .kd-dropdown-submenu > a:focus-visible {
    background-color: #0586c7;
    color: #FFFFFF;
}

/* Keep text white when submenu is open */
.kd-dropdown-menu .kd-dropdown-item > a[aria-expanded="true"] {
    color: #ffffff;
}

@media (min-width: 992px) {

    .kd-nav-dropdown:hover > .kd-dropdown-menu,
    .kd-nav-dropdown:focus-within > .kd-dropdown-menu,
    .kd-dropdown-item:hover > .kd-dropdown-submenu,
    .kd-dropdown-item:focus-within > .kd-dropdown-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* =====================================
   TABLET AND MOBILE
===================================== */

@media (max-width: 991px) {

    .kd-nav-dropdown,
    .kd-dropdown-item {
        display: block;
        width: 100%;
    }

    .kd-nav-parent {
        width: calc(100% - 45px);
    }

    .kd-submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-height: 42px;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .kd-nav-dropdown > .kd-submenu-toggle,
    .kd-dropdown-item > .kd-submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
    }

    .kd-dropdown-menu,
    .kd-dropdown-submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        transition: none;
    }

    .kd-nav-dropdown.is-open > .kd-dropdown-menu,
    .kd-dropdown-item.is-open > .kd-dropdown-submenu {
        display: block;
    }

    .kd-dropdown-menu a,
    .kd-dropdown-submenu a {
        white-space: normal;
        padding: 14px 20px;
        font-size: 14px;
    }

    .kd-dropdown-menu {
        padding-left: 12px;
    }

    .kd-dropdown-submenu {
        padding-left: 14px;
    }
}


/* ==========================================
   MOBILE / TABLET SERVICES DROPDOWN FIX
========================================== */

@media (max-width: 991px) {

    /* Show Services in mobile navigation */
    .main-navigation .kd-nav-dropdown {
        position: relative;
        display: block;
        width: 100%;
        flex: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* Main Services link */
    .main-navigation .kd-nav-parent {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 54px;
        padding: 15px 48px 15px 0;
        margin: 0;
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    /* Hide desktop chevron on mobile */
    .main-navigation .kd-nav-parent .kd-nav-chevron {
        display: none;
    }

    /* Arrow toggle on right */
    .main-navigation .kd-nav-dropdown > .kd-submenu-toggle {
        position: absolute;
        top: 6px;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
        z-index: 2;
    }

    /* First-level submenu */
    .main-navigation .kd-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 0 0 10px 12px;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .main-navigation .kd-nav-dropdown.is-open
    > .kd-dropdown-menu {
        display: block;
    }

    /* Residential and Commercial items */
    .main-navigation .kd-dropdown-item {
        position: relative;
        display: block;
        width: 100%;
    }

    .main-navigation .kd-dropdown-item > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 12px 44px 12px 10px;
        color: #ffffff;
        font-size: 13px;
        font-weight: 500;
        white-space: normal;
        background: transparent;
        text-decoration: none;
    }

    /* Nested submenu toggle */
    .main-navigation .kd-dropdown-item
    > .kd-submenu-toggle {
        position: absolute;
        top: 3px;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
        z-index: 2;
    }

    /* Nested submenu */
    .main-navigation .kd-dropdown-submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 0 0 8px 12px;
        background: rgba(255,255,255,0.04);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .main-navigation .kd-dropdown-item.is-open
    > .kd-dropdown-submenu {
        display: block;
    }

    .main-navigation .kd-dropdown-submenu a {
        display: block;
        padding: 12px 10px;
        color: #dceaf6;
        font-size: 13px;
        white-space: normal;
        text-decoration: none;
    }

    /* Hover / focus */
    .main-navigation .kd-dropdown-menu a:hover,
    .main-navigation .kd-dropdown-menu a:focus-visible,
    .main-navigation .kd-dropdown-submenu a:hover,
    .main-navigation .kd-dropdown-submenu a:focus-visible {
        color: #05B8F4;
        background: transparent;
    }

    /* Rotate the opened arrow */
    .main-navigation .kd-submenu-toggle svg {
        transition: transform 0.25s ease;
    }

    .main-navigation .is-open
    > .kd-submenu-toggle svg {
        transform: rotate(180deg);
    }

    /* Allow expanded menu to scroll */
    .main-navigation {
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
    }
}

/* Remove duplicate submenu arrow on mobile and tablet */
@media (max-width: 991px) {
    .main-navigation .kd-dropdown-item > a > span[aria-hidden="true"] {
        display: none;
    }
}

/* =====================================================
   OUR LOCATIONS - RESPONSIVE HEADER SUBMENU
   Scoped to locations only; global .container untouched.
===================================================== */
.site-header .kd-locations-dropdown > .kd-dropdown-menu {
    min-width: 230px;
    border-radius: 10px;
    overflow: hidden;
    padding: 8px 0;
}
.site-header .kd-locations-dropdown > .kd-dropdown-menu > a {
    display: block;
    padding: 14px 20px;
    white-space: nowrap;
    color: #041D3B;
    font-weight: 600;
    text-decoration: none;
}
.site-header .kd-locations-dropdown > .kd-dropdown-menu > a:hover,
.site-header .kd-locations-dropdown > .kd-dropdown-menu > a:focus-visible {
    color: #fff;
    background: #0586c7;
}
@media (min-width: 1101px) {
    .site-header .kd-locations-dropdown:hover > .kd-dropdown-menu,
    .site-header .kd-locations-dropdown:focus-within > .kd-dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}
@media (max-width: 1100px) {
    .site-header .kd-locations-dropdown {
        display: block;
        width: 100%;
        position: relative;
    }
    .site-header .kd-locations-dropdown > .kd-nav-parent {
        display: inline-flex;
        width: calc(100% - 50px);
        justify-content: flex-start;
    }
    .site-header .kd-locations-dropdown > .kd-submenu-toggle {
        display: inline-flex;
        position: absolute;
        right: 0;
        top: 0;
        width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
    }
    .site-header .kd-locations-dropdown > .kd-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 4px 0;
        box-shadow: none;
        border-radius: 8px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: #fff;
    }
    .site-header .kd-locations-dropdown.is-open > .kd-dropdown-menu {
        display: block;
    }
    .site-header .kd-locations-dropdown.is-open > .kd-nav-parent .kd-nav-chevron {
        transform: rotate(180deg);
    }
    .site-header .kd-locations-dropdown > .kd-dropdown-menu > a {
        padding: 13px 18px;
        white-space: normal;
    }
}


/* ==========================================
   KD CLEANERS - FLOATING BUTTON ALIGNMENT
========================================== */

/* Fixed full-width positioning layer */

.kd-floating-position {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 25px;
    z-index: 9999;
    pointer-events: none;
}

/* Uses the SAME global container as header */

.kd-floating-position .kd-floating-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
}

/* Buttons */

.kd-floating-position .kd-floating-call,
.kd-floating-position .kd-floating-top {
    position: relative;
    inset: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 12px;

    background: #05B8F4;
    color: #FFFFFF;

    box-shadow: 0 6px 20px rgba(4, 29, 59, 0.18);

    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* Icons */

.kd-floating-position .kd-floating-call svg,
.kd-floating-position .kd-floating-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Hover */

.kd-floating-position .kd-floating-call:hover,
.kd-floating-position .kd-floating-top:hover {
    background: #041D3B;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Back to top - hidden initially */

.kd-floating-position .kd-floating-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Show after scrolling */

.kd-floating-position .kd-floating-top.kd-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Tablet */

@media (max-width: 991px) {
    .kd-floating-position {
        bottom: 20px;
    }

    .kd-floating-position .kd-floating-call,
    .kd-floating-position .kd-floating-top {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .kd-floating-position {
        bottom: 16px;
    }

    .kd-floating-position .kd-floating-call,
    .kd-floating-position .kd-floating-top {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 10px;
    }

    .kd-floating-position .kd-floating-call svg,
    .kd-floating-position .kd-floating-top svg {
        width: 21px;
        height: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kd-floating-position .kd-floating-call,
    .kd-floating-position .kd-floating-top {
        transition: none;
    }
}


/* ==========================================
   KD CLEANERS - CALL BUTTON ANIMATION
========================================== */

.kd-floating-position .kd-floating-call {
    position: relative;
    isolation: isolate;
    overflow: visible;
    animation: kd-call-pulse 2.8s ease-in-out infinite;
}

/* Expanding ripple effect */

.kd-floating-position .kd-floating-call::before,
.kd-floating-position .kd-floating-call::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #05B8F4;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    animation: kd-call-ripple 2.8s ease-out infinite;
}

.kd-floating-position .kd-floating-call::after {
    animation-delay: 1.4s;
}

/* Phone ringing effect */

.kd-floating-position .kd-floating-call svg {
    transform-origin: center;
    animation: kd-phone-ring 2.8s ease-in-out infinite;
}

/* Button pulse */

@keyframes kd-call-pulse {
    0%, 100% {
        box-shadow: 0 5px 18px rgba(5, 184, 244, 0.20);
    }

    50% {
        box-shadow: 0 5px 25px rgba(5, 184, 244, 0.50);
    }
}

/* Ripple expanding */

@keyframes kd-call-ripple {
    0% {
        opacity: 0.75;
        transform: scale(1);
    }

    70%, 100% {
        opacity: 0;
        transform: scale(1.65);
    }
}

/* Phone vibration */

@keyframes kd-phone-ring {
    0%, 10%, 30%, 100% {
        transform: rotate(0deg);
    }

    15%, 25% {
        transform: rotate(-14deg);
    }

    20% {
        transform: rotate(14deg);
    }
}

/* Hover effect */

.kd-floating-position .kd-floating-call:hover {
    background: #041D3B;
    transform: translateY(-4px) scale(1.06);
    animation-play-state: paused;
}

.kd-floating-position .kd-floating-call:hover::before,
.kd-floating-position .kd-floating-call:hover::after,
.kd-floating-position .kd-floating-call:hover svg {
    animation-play-state: paused;
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .kd-floating-position .kd-floating-call,
    .kd-floating-position .kd-floating-call::before,
    .kd-floating-position .kd-floating-call::after,
    .kd-floating-position .kd-floating-call svg {
        animation: none;
    }

    .kd-floating-position .kd-floating-call::before,
    .kd-floating-position .kd-floating-call::after {
        display: none;
    }
}


/* ==========================================
   KD CLEANERS - BACK TO TOP BUTTON
========================================== */


.kd-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 110px;
    width: 52px;
    height: 52px;
    z-index: 9999;
    transition: transform 0.3s ease,
                background-color 0.3s ease;
}

.kd-back-to-top:hover {
    transform: translateY(-5px);
}

/* Tablet */
@media (max-width: 991px) {
    .kd-back-to-top {
        right: 24px;
        bottom: 135px;
        width: 50px;
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .kd-back-to-top {
        right: 16px;
        bottom: 120px;
        width: 46px;
        height: 46px;
    }
}


/* ==========================================
   BACK TO TOP - ABOVE CHATBOT
   Uses the actual button class
========================================== */

.kd-floating-position .kd-floating-top {
    position: relative;
    bottom: 105px;
    right: 0;
}

/* Tablet */
@media (max-width: 991px) {
    .kd-floating-position .kd-floating-top {
        bottom: 100px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .kd-floating-position .kd-floating-top {
        bottom: 95px;
    }
}



/* ==========================================
   BREADCRUMB BAR (under the header)
========================================== */

.kd-breadcrumb-bar {
    padding: 14px 0;
    border-bottom: 1px solid #e3eef5;
    background: #f5fafd;
}

.kd-breadcrumb-bar ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #40536b;
    font-size: 14px;
    line-height: 1.5;
}

.kd-breadcrumb-bar li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.6;
}

.kd-breadcrumb-bar a {
    color: #075985;
    text-decoration: none;
}

.kd-breadcrumb-bar a:hover,
.kd-breadcrumb-bar a:focus-visible {
    color: #041D3B;
    text-decoration: underline;
}

.kd-breadcrumb-bar li[aria-current="page"] {
    color: #041D3B;
    font-weight: 600;
}

@media (max-width: 767px) {
    .kd-breadcrumb-bar {
        padding: 11px 0;
    }

    .kd-breadcrumb-bar ol {
        font-size: 13px;
    }
}


/* ==========================================
   HERO BREADCRUMBS (white text on hero background)
========================================== */

.kd-breadcrumbs {
    margin-bottom: 22px;
}

.kd-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #e5f3fc;
    font-family: "General Sans", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.kd-breadcrumbs li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.7;
}

.kd-breadcrumbs a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kd-breadcrumbs a:hover,
.kd-breadcrumbs a:focus-visible {
    color: #05B8F4;
}

@media (max-width: 767px) {
    .kd-breadcrumbs {
        margin-bottom: 16px;
    }

    .kd-breadcrumbs ol {
        font-size: 13px;
    }
}


/* ==========================================
   SERVICE HERO - SMALL CTA (dark hero background)
========================================== */

.kd-service-hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.kd-service-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: "General Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, transform 0.25s ease;
}

.kd-service-hero-btn-primary {
    background: #05B8F4;
    color: #041D3B;
}

.kd-service-hero-btn-primary:hover,
.kd-service-hero-btn-primary:focus-visible {
    background: #ffffff;
    color: #041D3B;
    transform: translateY(-2px);
}

.kd-service-hero-btn-secondary {
    border-color: rgba(255, 255, 255, 0.75);
    background: transparent;
    color: #ffffff;
}

.kd-service-hero-btn-secondary:hover,
.kd-service-hero-btn-secondary:focus-visible {
    border-color: #05B8F4;
    color: #05B8F4;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .kd-service-hero-btn {
        flex: 1 1 100%;
    }
}

/* Linked footer contact icons */
.kd-footer-contact-item a.kd-footer-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: background-color .2s ease;
}

.kd-footer-contact-item a.kd-footer-icon-link:hover {
    background: #05B8F4;
}


/* ==========================================
   KD CLEANERS - MOBILE STICKY CALL BAR
   Mobile only (max-width: 768px). Replaces the round call button.
========================================== */

.kd-mobile-call-bar {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --kd-callbar-h: 72px;
        --kd-callbar-offset: calc(var(--kd-callbar-h) + env(safe-area-inset-bottom, 0px));
    }

    .kd-mobile-call-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99990;
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: var(--kd-callbar-offset);
        padding: 10px 16px env(safe-area-inset-bottom, 0px);
        background: #031D39;
        box-shadow: 0 -4px 16px rgba(3, 29, 57, 0.25);
    }

    .kd-mobile-call-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-sizing: border-box;
        width: 100%;
        height: 52px;
        border-radius: 12px;
        background: #005a8c;
        color: #FFFFFF;
        font-size: 17px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .kd-mobile-call-btn:hover,
    .kd-mobile-call-btn:focus-visible,
    .kd-mobile-call-btn:active {
        background: #FFFFFF;
        color: #031D39;
    }

    .kd-mobile-call-btn span {
        background: transparent;
        color: #FFFFFF;
    }

    .kd-mobile-call-btn svg {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    /* Replace the round floating phone icon; keep back-to-top. */
    .kd-floating-position .kd-floating-call {
        display: none;
    }

    .kd-floating-position {
        bottom: calc(var(--kd-callbar-offset) + 16px);
    }

    /* Keep content and footer clear of the bar. */
    body {
        padding-bottom: var(--kd-callbar-offset);
    }

    /* Chat widget (LeadConnector) and its location label sit above the bar. */
    #chat-widget-container,
    chat-widget {
        bottom: var(--kd-callbar-offset) !important;
    }

    .kd-chat-location-label {
        bottom: calc(var(--kd-callbar-offset) + 28px) !important;
    }
}
