/* =====================================================================
   service-pages.css — COMMON styles for every Service inner page
   (CSSD Cleaning Solutions, CAAS – Cleaning as a Service, future services).
   Pair with service-pages.js.  Uses the site root colours and fonts.
   ===================================================================== */

:root {
    --blue: #004789;
    --blue-deep: #002f5f;
    --blue-mid: #00336e;
    --blue-light: #e8f0f9;
    --orange: #ff8300;
    --orange-dim: #e67500;
    --orange-pale: #fff4e6;
    --white: #fff;
    --off-white: #f4f7fb;
    --panel: #eef2f8;
    --text-dark: #0d1b2e;
    --text-body: #2c3e55;
    --text-muted: #5b6b82;
    --border: #d9e2ee;
    --font-head: "Oswald", sans-serif;
    --font-body: "Open Sans", sans-serif;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(0, 47, 95, 0.08);
    --shadow-hover: 0 12px 28px rgba(0, 47, 95, 0.14);
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--white);
    margin: 0;
}

.w-90 {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

.svc-narrow {
    max-width: 900px;
}


/* ---------- Hero ---------- */

.svc-hero {
    background: linear-gradient( 115deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-mid) 100%);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}

.svc-hero::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 44%;
    height: 100%;
    background: linear-gradient( 115deg, transparent 0%, rgba(255, 131, 0, 0.16) 100%);
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.svc-hero .w-90 {
    position: relative;
    z-index: 2;
}

.svc-hero-copy {
    max-width: 820px;
}

.svc-eyebrow {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.svc-hero-title {
    font-family: var(--font-head);
    font-size: clamp(30px, 4.6vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin: 0 0 18px;
    text-wrap: balance;
}

.svc-hero-title span {
    color: var(--orange);
}

.svc-hero-sub {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 28px;
}

.svc-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.svc-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.svc-breadcrumb li+li::before {
    content: "/";
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.45);
}

.svc-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.svc-breadcrumb a:hover {
    color: var(--orange);
}


/* ---------- Buttons ---------- */

.btn-svc {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-svc-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-svc-primary:hover {
    background: var(--orange-dim);
    color: var(--white);
}

.btn-svc-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-svc-outline:hover {
    background: var(--white);
    color: var(--blue-deep);
}

.btn-svc:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}


/* ---------- Sections ---------- */

.svc-section {
    padding: 64px 0;
}

.svc-section.svc-alt {
    background: var(--off-white);
}

.svc-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.svc-section-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--orange);
}

.svc-heading {
    font-family: var(--font-head);
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue-deep);
    margin: 0 0 22px;
    text-wrap: balance;
}

.svc-heading .accent {
    color: var(--orange);
}

.svc-text p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-body);
    margin: 0 0 16px;
    /* max-width: 900px; */
}

.svc-text p:last-child {
    margin-bottom: 0;
}

.svc-lead {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
    margin: 0 0 26px;
    max-width: 900px;
}

.svc-note {
    margin: 28px 0 0;
    padding: 16px 20px;
    border-left: 4px solid var(--orange);
    background: var(--orange-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    /* max-width: 900px; */
}


/* ---------- Card grids ---------- */

.svc-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.svc-cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.svc-cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--blue);
}

.svc-alt .svc-card {
    background: var(--white);
}

.svc-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.svc-card-num {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--orange);
    margin-bottom: 10px;
}

.svc-card h3 {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--blue-deep);
    margin: 0 0 10px;
    text-wrap: balance;
}

.svc-card p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
}


/* ---------- Process flow chips ---------- */

.svc-flow {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px;
    padding: 0;
    counter-reset: flow;
}

.svc-flow li {
    counter-increment: flow;
}

.svc-flow a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-deep);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.svc-flow a::before {
    content: counter(flow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.svc-flow a:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.svc-flow a:hover::before {
    background: var(--orange);
}


/* ---------- Numbered steps (timeline) ---------- */

.svc-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.svc-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    align-items: start;
    position: relative;
    scroll-margin-top: 90px;
}

.svc-step::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 52px;
    bottom: -18px;
    width: 2px;
    background: var(--border);
}

.svc-step:last-child::before {
    display: none;
}

.svc-step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px var(--white);
    position: relative;
    z-index: 1;
}

.svc-alt .svc-step-num {
    box-shadow: 0 0 0 5px var(--off-white);
}

.svc-step-num.is-end {
    background: var(--orange);
}

.svc-step-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}

.svc-step-body h3 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    color: var(--blue-deep);
    margin: 0 0 8px;
}

.svc-step-body p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-body);
    margin: 0 0 10px;
}

.svc-step-body p:last-child {
    margin-bottom: 0;
}


/* ---------- Check list (benefit rows) ---------- */

.svc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.svc-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.svc-list li>i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--orange);
    font-size: 18px;
}

.svc-list strong {
    display: block;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--blue-deep);
    margin-bottom: 4px;
}

.svc-list span {
    font-size: 14.5px;
    line-height: 1.65;
}


/* ---------- FAQ ---------- */

.svc-faq {
    /* max-width: 900px; */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-faq details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.svc-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 500;
    color: var(--blue-deep);
}

.svc-faq summary::-webkit-details-marker {
    display: none;
}

.svc-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.svc-faq details[open] summary::after {
    content: "\2212";
    background: var(--orange);
    color: var(--white);
}

.svc-faq details[open] summary {
    color: var(--blue);
}

.svc-faq summary:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: -3px;
}

.svc-faq details>div {
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
}


/* ---------- CTA band ---------- */

.svc-cta {
    background: linear-gradient(115deg, var(--blue-deep) 0%, var(--blue) 100%);
    padding: 60px 0;
    border-top: 4px solid var(--orange);
}

.svc-cta-inner {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    flex-direction: column;
}

.svc-cta h2 {
    font-family: var(--font-head);
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin: 0 0 14px;
    text-wrap: balance;
}

.svc-cta h2 span {
    color: var(--orange);
}

.svc-cta p {
    font-size: 15.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.svc-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}


/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .svc-cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .svc-section {
        padding: 52px 0;
    }
    .svc-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .svc-cta-btns {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .svc-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .svc-hero {
        padding: 44px 0 40px;
    }
    .svc-section {
        padding: 44px 0;
    }
    .svc-cards,
    .svc-cards-2,
    .svc-cards-4 {
        grid-template-columns: 1fr;
    }
    .svc-hero-cta,
    .svc-cta-btns {
        flex-direction: column;
    }
    .btn-svc {
        width: 100%;
    }
    .svc-step {
        grid-template-columns: 40px 1fr;
        gap: 14px;
    }
    .svc-step::before {
        left: 19px;
        top: 40px;
    }
    .svc-step-num {
        width: 40px;
        height: 40px;
        font-size: 16px;
        box-shadow: 0 0 0 4px var(--white);
    }
    .svc-alt .svc-step-num {
        box-shadow: 0 0 0 4px var(--off-white);
    }
    .svc-step-body {
        padding: 16px 16px;
    }
    .svc-step-body h3 {
        font-size: 18px;
    }
    .svc-faq summary {
        font-size: 16px;
        padding: 16px 16px;
    }
    .svc-faq details>div {
        padding: 0 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .svc-card,
    .btn-svc,
    .svc-flow a {
        transition: none;
    }
    .svc-card:hover {
        transform: none;
    }
}

.svc-subhead {
    font-family: var(--font-head);
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 600;
    color: var(--blue-deep);
    margin: 30px 0 18px;
}


/* ════════ POPUPS — Download Catalogue + Get Quote ════════ */


/* PRODUCT POPUPS — Download Brochure + Get Quote
   Uses the same brand tokens as the site (:root); fallbacks included so it also works standalone. */

.up-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 20, 50, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
}

.up-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.up-box {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white, #fff);
    border-radius: var(--radius-lg, 10px);
    box-shadow: var(--shadow-lg, 0 16px 48px rgba(0, 0, 0, 0.22));
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
}

.up-overlay.is-open .up-box {
    transform: none;
    opacity: 1;
}

.up-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px 18px;
    background: var(--blue-deep, #002f5f);
    border-bottom: 4px solid var(--orange, #ff8300);
}

.up-eyebrow {
    margin-bottom: 6px;
    font-family: var(--font-body, "Open Sans", Arial, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--orange, #ff8300);
}

.up-title {
    margin: 0 0 6px;
    font-family: var(--font-head, "Oswald", "Arial Narrow", Arial, sans-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.up-sub {
    margin: 0;
    font-family: var(--font-body, "Open Sans", Arial, sans-serif);
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.up-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.up-close:hover,
.up-close:focus-visible {
    background: var(--orange, #ff8300);
    border-color: var(--orange, #ff8300);
    color: #fff;
    outline: none;
}

.up-body {
    padding: 24px 26px 28px;
    font-family: var(--font-body, "Open Sans", Arial, sans-serif);
    font-size: 14px;
    color: var(--text-body, #2c3e55);
}


/* Light styling for Gravity Forms inside the popup (safe to remove) */

.up-body .gform_wrapper .gfield_label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-deep, #002f5f);
}

.up-body .gform_wrapper input[type="text"],
.up-body .gform_wrapper input[type="email"],
.up-body .gform_wrapper input[type="tel"],
.up-body .gform_wrapper select,
.up-body .gform_wrapper textarea,
.ginput_container.ginput_container_number input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border, #d0dae8);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.up-body .gform_wrapper input:focus,
.up-body .gform_wrapper select:focus,
.up-body .gform_wrapper textarea:focus {
    outline: 2px solid var(--blue, #004789);
    outline-offset: 1px;
}

.up-body .gform_wrapper .gform_button,
.up-body .gform_wrapper input[type="submit"] {
    background: var(--orange, #ff8300);
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    padding: 13px 28px;
    font-family: var(--font-head, "Oswald", Arial, sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: background 0.22s;
}

.up-body .gform_wrapper .gform_button:hover,
.up-body .gform_wrapper input[type="submit"]:hover {
    background: var(--orange-dim, #e67500);
}

@media (max-width: 576px) {
    .up-overlay {
        padding: 12px;
        align-items: flex-end;
    }
    .up-header {
        padding: 18px 18px 14px;
    }
    .up-title {
        font-size: 18px;
    }
    .up-body {
        padding: 18px 18px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .up-overlay,
    .up-box {
        transition: none;
    }
}