/* Contact Us page only (Contact-Us.aspx), built from the skweeky.html wireframe.
   Bootstrap 5.3 supplies the form-control/form-select base; everything visual is here.
   All classes are prefixed cu- and scoped under .cu-page so nothing leaks into the
   shared OfficeLocation header/footer. */

.cu-page {
    --cu-navy: #063e52;
    --cu-teal: #11abc0;
    --cu-ink: #0d3549;
    --cu-muted: #6a8190;
    --cu-line: #d8e4e9;
    --cu-soft: #eef8fb;
    --cu-yellow: #ffd426;
    --cu-error: #c8243b;
    --cu-shadow: 0 16px 38px rgba(2, 48, 65, .13);
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--cu-ink);
    line-height: 1.45;
}

.cu-page h1,
.cu-page h2,
.cu-page h3 {
    font-family: inherit;
    color: inherit;
    font-weight: 700;
    line-height: 1.45; /* wireframe headings inherit the body line-height (Bootstrap sets 1.2) */
}

.cu-page a { color: inherit; }

/* Wireframe container: min(1180px, 100% - 48px) */
.cu-page .container {
    width: min(1180px, calc(100% - 48px));
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin: auto;
}

.cu-anchor {
    display: block;
    position: relative;
    top: -90px;
    visibility: hidden;
}

/* ========================================================
   1. HERO + QUOTE FORM
   ======================================================== */
/* Hero = three layers:
   1. gradient background (+ shade)
   2. office + cleaner photo (Downloads\HeroBackground mock-up with its text and form removed),
      background only (no layout effect)
   3. content container on top: col-lg-5 text + col-lg-5 quote form, the remaining right side
      is left free for the cleaner.
   On desktop ContactUs.js scales/positions the photo so the cleaner's arm comes out from behind
   the live quote card exactly as in the mock-up (her arm and cart were hidden by the mock-up's
   card, so that edge must stay under the card). Without JS the photo simply covers the hero. */
.cu-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(90deg, #053a51 0%, #0a4d66 65%, #0b6376 100%);
}

.cu-hero-photo {
    position: absolute;
    inset: 0;
    background: url('../Images/ContactUs/hero-bg.webp?v=2') right top / cover no-repeat;
}

/* very wide screens: the photo stops short of the edge, so soften its right edge */
.cu-hero-photo.cu-fade-r {
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
}

/* Mock-up proportions: text starts 4.8% in, the quote card ends at ~86% of the width.
   col-lg-5 + col-lg-5 of this container = that span; the last 2 columns are the cleaner's side. */
@media (min-width: 992px) {
    .cu-page .cu-hero .container {
        width: calc(97.68% + 4.8px);
        margin-left: 4.8%;
        margin-right: 0;
    }
}

@media (min-width: 1920px) {
    /* keep the 1920px composition centred on larger screens */
    .cu-page .cu-hero .container {
        width: 1880px;
        margin-left: calc(50% - 868px);
    }
}

.cu-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 56, 75, .25), rgba(4, 56, 75, .06) 70%, rgba(4, 56, 75, 0));
}

.cu-hero-inner {
    position: relative;
    z-index: 2;
    padding: 48px 0;
}

.cu-crumb {
    font-size: 12px;
    margin-bottom: 18px;
    opacity: .88;
}

.cu-crumb a { text-decoration: none; }
.cu-crumb a:hover { text-decoration: underline; }

.cu-page .cu-hero h1 {
    font-size: 49px;
    line-height: 1.06;
    margin: 0 0 20px;
    max-width: 520px; /* wireframe 500px; web Inter is ~2% wider than a locally installed Inter, so "Get a free commercial" needs a little more room to keep the 2-line heading */
    letter-spacing: -.02em;
}

.cu-hero h1 span { color: #15c0dc; }

.cu-lead {
    font-size: 17px;
    max-width: 505px;
    color: #f1f8fa;
    margin: 0;
}

.cu-contacts {
    display: grid;
    gap: 18px;
    margin-top: 27px;
}

.cu-contact {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cu-ico {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #14b9d0;
    display: grid;
    place-items: center;
}

.cu-ico { font-size: 23px; } /* wireframe icons are text symbols: ☎ ✉ ◷ */

.cu-contact small {
    display: block;
    color: #d7e9ef;
    font-size: 13px;
}

.cu-contact a,
.cu-contact strong {
    display: block;
    margin-top: 2px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cu-contact a:hover { text-decoration: underline; }

/* Quote card: shared with the location pages, see QuoteForm.css */


/* ========================================================
   2. LOCATIONS
   ======================================================== */
.cu-locs {
    padding: 33px 0 26px;
    overflow-x: clip;
}

.cu-kicker {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .05em;
    color: #0b5269;
}

.cu-kicker::before {
    content: "";
    display: inline-block;
    width: 42px;
    height: 4px;
    border-radius: 3px;
    background: #13b9ca;
    margin-right: 15px;
    vertical-align: middle;
}

.cu-page .cu-locs h2 {
    font-size: 34px;
    margin: 12px 0 4px;
    letter-spacing: -.025em; /* wireframe -.015em; compensates for web Inter being ~2% wider so the line length matches */
}

.cu-intro {
    margin: 0 0 24px;
    color: #718796;
    font-size: 15px;
}

.cu-location-grid {
    display: grid;
    grid-template-columns: 292px 1fr;
    gap: 22px;
    align-items: start;
}

/* Map: the wireframe map artwork (baked-in pins removed) with HTML pins at the correct city centres.
   Each .cu-pin is a zero-size anchor placed at the pin centre; the label is separate so it can sit
   left or right of the pin for readability. */
.cu-map {
    position: relative;
    width: 292px;
    height: 442px;
}

.cu-map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cu-pin {
    position: absolute;
    width: 0;
    height: 0;
    text-decoration: none;
    outline: none;
}

/* Correct pin centres (percent of the map image), from the pin reference */
.cu-pin-newcastle { left: 54%; top: 42%; }
.cu-pin-manchester { left: 48%; top: 58%; }
.cu-pin-birmingham { left: 51%; top: 69%; }
.cu-pin-cambridge { left: 72%; top: 72%; }
.cu-pin-cardiff { left: 38%; top: 80%; }
.cu-pin-bristol { left: 44%; top: 80%; }
.cu-pin-london { left: 69%; top: 79%; }
.cu-pin-exeter { left: 30%; top: 86%; }   /* reference 35/88 put the pin tip on the south coast; nudged into Devon */

.cu-pin-icon {
    position: absolute;
    left: -11px;   /* circle centre of the 22x29 icon sits on the anchor */
    top: -11px;
    width: 22px;
    height: 29px;
    filter: drop-shadow(0 2px 2px rgba(4, 40, 55, .35));
}

.cu-pin-icon path {
    fill: var(--cu-yellow);
    stroke: #fff;
    stroke-width: 1.4;
}

.cu-pin-icon circle { fill: #0d3549; }

.cu-pin-label {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(13, 53, 73, .92);
    box-shadow: 0 3px 8px rgba(4, 40, 55, .28);
    color: #fff;
    font: 700 12px/1.25 Inter, Arial, sans-serif;
    white-space: nowrap;
    transition: background-color .15s;
}

.cu-pin-label-right .cu-pin-label { left: 15px; }
.cu-pin-label-left .cu-pin-label { right: 15px; }
.cu-pin-exeter .cu-pin-label { top: 12px; }   /* drop below the pin centre so it clears the Cardiff label */
.cu-pin-label-below .cu-pin-label {
    left: -10px;
    top: 18px;
    transform: none;
}

.cu-pin:hover .cu-pin-label,
.cu-pin:focus-visible .cu-pin-label,
.cu-pin.on .cu-pin-label { background: #0f8fa1; }

.cu-pin:focus-visible .cu-pin-label {
    outline: 3px solid var(--cu-yellow);
    outline-offset: 1px;
}

.cu-pin:hover,
.cu-pin:focus-visible,
.cu-pin.on { z-index: 2; }

.cu-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cu-page .cu-card {
    display: block;
    min-width: 0;
    text-decoration: none;
    border: 1px solid #dde7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(11, 58, 73, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cu-page .cu-card:hover,
.cu-page .cu-card:focus-visible,
.cu-page .cu-card.on {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(11, 58, 73, .12);
    border-color: #8ed2d9;
    outline: none;
}

.cu-card img {
    display: block;
    width: 100%;
    height: 78px;
    object-fit: cover;
}

.cu-card-body { padding: 12px; }

.cu-page .cu-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.cu-card p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
}

.cu-address { color: #607987; }

.cu-address span {
    color: #10abc0;
    margin-right: 7px;
}

.cu-phone {
    font-weight: 800;
    color: #0089a1;
}

.cu-view {
    display: block;
    margin-top: 12px;
    color: #00a0b8;
    font-size: 12px;
    font-weight: 800;
}

/* ========================================================
   3. TRUST STRIP
   ======================================================== */
.cu-trust {
    background: #eef7fb;
    padding: 29px 0;
}

.cu-trust-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 35px;
    align-items: center;
}

.cu-page .cu-trust h3 {
    font-size: 20px;
    margin: 15px 0 16px;
}

.cu-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    font-size: 13px;
}

.cu-check {
    display: flex;
    gap: 9px;
    align-items: center;
}

.cu-check i {
    flex: none;
    font-style: normal;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #18af9f;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.cu-trust-art {
    border-left: 1px solid #cedfe6;
    padding-left: 25px;
}

/* Same accreditation logos and trusted-organisations strip as the Bristol (OfficeLocation) pages.
   Logos are sized in container-width units (cqw) so the single row scales with the column;
   the px values first are the fallback for browsers without container queries. */
.cu-trust-art { container-type: inline-size; }

.cu-accreds {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    gap: 2cqw;
}

.cu-accred-seal {
    flex: none;
    width: 76px;
    height: 76px;
    width: min(13.6cqw, 80px);
    height: min(13.6cqw, 80px);
}

.cu-accred-bics {
    width: 128px;
    width: min(22.9cqw, 134px);
    height: auto;
}

.cu-accred-cyber {
    width: auto;
    height: 80px;
    height: min(14.3cqw, 84px);
}

.cu-trusted {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 18px;
    border-radius: 8px;
}

/* ========================================================
   4. CTA BAND
   ======================================================== */
.cu-cta {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: #063f53;
}

.cu-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../Images/ContactUs/cta-bg.webp?v=3') center / cover no-repeat;
    opacity: .55;
}

.cu-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(4, 55, 73, .6);
}

.cu-cta-inner {
    position: relative;
    z-index: 2;
    min-height: 174px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cu-page .cu-cta h2 {
    font-size: 31px;
    margin: 0 0 7px;
    line-height: 1.12;
}

.cu-cta h2 span { color: #16c0dc; }

.cu-cta p {
    margin: 0;
    color: #e3eef2;
}

.cu-page .cu-cta-btn {
    text-decoration: none;
    background: var(--cu-yellow);
    color: #0a3a4d;
    font-weight: 900;
    padding: 15px 23px;
    border-radius: 6px;
    white-space: nowrap;
    transition: transform .15s;
}

.cu-cta-btn:hover { transform: translateY(-2px); }

/* ========================================================
   5. RESPONSIVE (wireframe breakpoints: 1000 / 780 / 560)
   ======================================================== */
/* Stacked hero (below Bootstrap lg): no room beside the form for the cleaner, so only the
   (text-free) office side of the photo is used, behind the text */
@media (max-width: 991.98px) {
    .cu-hero-photo {
        background-position: left top;
        opacity: .85;
    }
    .cu-hero .row { --bs-gutter-y: 36px; }
}

@media (max-width: 1000px) {
    /* Smaller 250px map: tighter labels, London label under its pin (clear of Cambridge) */
    .cu-pin-label {
        padding: 3px 7px;
        font-size: 11px;
    }
    .cu-pin-london .cu-pin-label {
        left: -10px;
        right: auto;
        top: 18px;
        transform: none;
    }
    .cu-location-grid { grid-template-columns: 250px 1fr; }
    .cu-map {
        width: 250px;
        height: 380px;
    }
    .cu-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
    .cu-hero-inner { padding: 38px 0; }
    .cu-page .cu-hero h1 { font-size: 42px; }
    .cu-location-grid { grid-template-columns: 1fr; }
    .cu-map {
        width: 292px;
        height: 442px;
        margin: auto;
    }
    .cu-trust-inner { grid-template-columns: 1fr; }
    .cu-trust-art {
        border-left: 0;
        border-top: 1px solid #cedfe6;
        padding: 22px 0 0;
    }
}

@media (max-width: 560px) {
    .cu-page .container { width: min(100% - 24px, 1180px); }
    .cu-page .cu-hero h1 { font-size: 36px; }
    .cu-cards { grid-template-columns: 1fr; }
    .cu-checks { grid-template-columns: 1fr; }
    .cu-cta-inner {
        padding: 30px 0;
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
    }
    .cu-page .cu-cta h2 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
    .cu-page * { transition: none !important; }
}

