﻿

/* ─── Reset ─────────────────────────────────────── */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    background: #F4F2EF;
    font-size: 18px
}

/* ─── Full-width overrides ───────────────────────── */
#robertspad, #container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ══════════════════════════════════════════════════
       HEADER
    ══════════════════════════════════════════════════ */
#robertspad-header {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 110px;
    display: flex;
    align-items: stretch;
}



    
/* Inner layout: logo left | spacer | buttons right */
.header-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    gap: 24px;
}

/* ── Logo ── */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .header-logo img {
        height: 150px;
        width: auto;
        /* The logo has a black bg — filter makes it transparent-friendly filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));*/

        display: block;
    }

/* ── Tagline (centre, optional) ── */
.header-tagline {
    flex: 1;
    text-align: center;
    color: rgba(255,255,255,.55);
    font-size: 2.3rem;
    font-weight: 400;
    letter-spacing: .4px;
    font-style: italic;
    padding: 0 16px;
}

/* ── Stacked CTA buttons ── */
.header-buttons {
    display: flex;
    flex-direction: column; /* stack vertically */
    gap: 7px;
    flex-shrink: 0;
}

.hdr-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--orange);
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .3px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
    min-width: 148px;
    justify-content: flex-start;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .hdr-btn:hover {
        background: #c97520;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.20),
                    inset 0 1px 0 rgba(255, 255, 255, 0.15);
        transform: translateY(0);
    }

    .hdr-btn svg {
        flex-shrink: 0;
        width: 15px;
        height: 15px;
    }

/* ── Mobile: row layout under ~600px ── */
@media (max-width: 640px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .header-tagline {
        display: none;
    }

    .header-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hdr-btn {
        min-width: unset;
    }

        .hdr-btn span {
            display: none;
        }

    .hdr-btn {
        padding: 9px 12px;
        justify-content: center;
    }

    .header-logo img {
        height: 54px;
    }
}

/* ══════════════════════════════════════════════════
       NAVBAR
    ══════════════════════════════════════════════════ */
nav#main-nav {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 0;
    width: 100%;
}

    nav#main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* ← add this */
    }

        nav#main-nav ul li a {
            display: block;
            color: rgba(255,255,255,.78);
            text-decoration: none;
            padding: 11px 16px;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: .3px;
            text-transform: uppercase;
            transition: color .18s, background .18s;
            position: relative;
        }
            /* Underline slide-in on hover */
            nav#main-nav ul li a::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 50%;
                right: 50%;
                height: 4px;
                background: #f59e0b;
                transition: left .2s ease, right .2s ease;
            }

            nav#main-nav ul li a:hover {
                color: var(--sky);
                background: rgba(148,182,239,.08);
            }

                nav#main-nav ul li a:hover::after {
                    left: 0;
                    right: 0;
                }

            nav#main-nav ul li a.active {
                color: #ffffff;
                background: rgb(216 137 25/95%);
                box-shadow: insert 0 -2px 0 var(--sky);
            }


/* ══════════════════════════════════════════════════
       UTILITY BAR (top of header — contrast + language)
    ══════════════════════════════════════════════════ */
#utility-bar {
    background: #2563ab; /* slightly darker than navy */
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 5px 32px;
    gap: 6px;
    position: relative;
    z-index: 10;
}

/* Shared toggle button style */
.util-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.65);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    line-height: 1;
}

    .util-btn:hover {
        background: rgba(255,255,255,.1);
        color: #fff;
        border-color: rgba(255,255,255,.35);
    }

    .util-btn.active {
        background: var(--sky);
        border-color: var(--sky);
        color: var(--navy);
    }

    .util-btn svg {
        width: 12px;
        height: 12px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        flex-shrink: 0;
    }

/* Language toggle group */
.util-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,.15);
    margin: 0 4px;
}

.lang-group {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 4px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.55);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 4px 10px;
    cursor: pointer;
    transition: all .18s;
    line-height: 1;
}

    .lang-btn:last-child {
        border-right: none;
    }

    .lang-btn:hover {
        background: rgba(255,255,255,.1);
        color: #fff;
    }

    .lang-btn.active {
        background: var(--sky);
        color: var(--navy);
    }

/* ══════════════════════════════════════════════════
       HIGH CONTRAST MODE
       Applied via class="hc" on <body>
    ══════════════════════════════════════════════════ */
body.hc {
    /* Override colour palette with WCAG AA/AAA high-contrast values */
    --navy: #000;
    --navy-text: #000;
    --orange: #b85c00;
    --sky: #005fcc;
    --off-white: #fff;
    --light-blue: #fff;
    background: #fff !important;
}

    /* Force all section backgrounds to either pure white or pure black */
    body.hc .hp-section {
        background: #fff !important;
    }

        body.hc .hp-section:nth-child(even) {
            background: #f0f0f0 !important;
        }

    body.hc #robertspad-header,
    body.hc nav#main-nav,
    body.hc #utility-bar,
    body.hc #site-footer {
        background: #000 !important;
    }

        body.hc #robertspad-header::before {
            opacity: 0;
        }

        /* All text on dark backgrounds → white */
        body.hc nav#main-nav ul li a,
        body.hc .header-tagline,
        body.hc .footer-links li,
        body.hc .footer-links a,
        body.hc .footer-tagline,
        body.hc .footer-contact-line,
        body.hc .footer-contact-line a,
        body.hc .footer-bottom {
            color: #fff !important;
        }

            /* Nav hover → bright yellow for visibility */
            body.hc nav#main-nav ul li a:hover {
                color: #ffff00 !important;
                background: #000 !important;
            }

            body.hc nav#main-nav ul li a::after {
                background: #ffff00;
            }

    /* All body text → near-black */
    body.hc .hp-body,
    body.hc .hp-step-body,
    body.hc .hp-card-quote,
    body.hc .hp-card-author {
        color: #111 !important;
    }

    body.hc .hp-title {
        color: #000 !important;
    }

    body.hc .hp-label {
        color: #b85c00 !important;
    }

    /* Buttons → solid high-contrast */
    body.hc .hp-btn,
    body.hc .hdr-btn {
        background: #b85c00 !important;
        color: #fff !important;
        outline: 2px solid #000;
    }

        body.hc .hp-btn:hover,
        body.hc .hdr-btn:hover {
            background: #7a3d00 !important;
        }

    /* Cards → white with strong border */
    body.hc .hp-card {
        background: #fff !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
    }

    /* Steps */
    body.hc .hp-step {
        background: #fff !important;
        border: 2px solid #000 !important;
    }

    body.hc .hp-step-title {
        color: #000 !important;
    }

    body.hc .hp-step-num {
        background: #b85c00 !important;
        outline: 2px solid #000;
    }

    /* Stat values */
    body.hc .hp-stat-val {
        color: #b85c00 !important;
    }

    body.hc .hp-stat-lbl {
        color: #000 !important;
        opacity: 1 !important;
    }

    /* Pills */
    body.hc .hp-pill {
        background: #000 !important;
        color: #fff !important;
    }

    /* Placeholder boxes */
    body.hc .placeholder-box {
        background: #e0e0e0 !important;
        border-color: #000 !important;
    }

    /* Alt-grid row */
    body.hc .alt-grid.row {
        background: #f0f0f0 !important;
    }

    /* Utility bar active states in HC */
    body.hc .util-btn.active,
    body.hc .lang-btn.active {
        background: #ffff00 !important;
        color: #000 !important;
        border-color: #000 !important;
    }

    /* Footer heading */
    body.hc .footer-heading {
        color: #94B6EF !important;
    }

    /* Focus rings for keyboard nav */
    body.hc *:focus {
        outline: 3px solid #ffff00 !important;
        outline-offset: 2px;
    }

/* City skyline background in header */
#robertspad-header {
    position: relative;
    overflow: hidden;
}

    #robertspad-header::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('cityBackground2.png');
        background-repeat: repeat-x;
        background-size: 60% 120%;
        background-position: left center;
        opacity: 0.15;
        pointer-events: none;
        z-index: 0;
    }

/* Hide city background on phones */
@media (max-width: 767px) {
    #robertspad-header::before {
        display: none;
    }
}

/* Ensure header content sits above the background */
#robertspad-header .header-inner {
    position: relative;
    z-index: 1;
}

/* Playfair Display for tagline */
.header-tagline {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    max-width: 24ch;
    word-wrap: break-word;
}
/* ══════════════════════════════════════════════════
       BELOW-HEADER CONTENT AREA (placeholder row)
    ══════════════════════════════════════════════════ */
.alt-grid.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    background: #fff;
}

    .alt-grid.row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

.placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #d9e8f5;
    border: 2px dashed #6aafd6;
    color: #3a7ca8;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    min-height: 260px;
    width: 100%;
    height: 100%;
}

    .placeholder-box svg {
        margin-bottom: 10px;
        opacity: .45;
    }

    .placeholder-box span {
        font-size: 12px;
        font-weight: normal;
        color: #6aafd6;
        margin-top: 6px;
    }

    .placeholder-box.poster-ph {
        background: #e8f0d9;
        border-color: #8ab86a;
        color: #4a7a2a;
    }

        .placeholder-box.poster-ph svg {
            opacity: .4;
        }

        .placeholder-box.poster-ph span {
            color: #8ab86a;
        }

@media (max-width: 767px) {
    .placeholder-box {
        min-height: 180px;
        font-size: 13px;
    }

    .alt-grid.row .col-xs-6 {
        width: 100% !important;
    }

    .alt-grid.row .col-xs-4 {
        width: 100% !important;
    }
}

/* ══════════════════════════════════════════════════
       HOMEPAGE SECTIONS
    ══════════════════════════════════════════════════ */
.hp-section {
    width: 100%;
}

.hp-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 36px;
}

/* Two-column layout */
.hp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hp-flip {
    direction: rtl;
}

    .hp-flip > * {
        direction: ltr;
    }

@media (max-width: 760px) {
    .hp-two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hp-flip {
        direction: ltr;
    }

    .hp-inner {
        padding: 44px 20px;
    }
}

/* Text elements */
.hp-label {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 8px;
}

.hp-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 14px;
}

.hp-body {
    font-size: .95rem;
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 22px;
}

/* CTA button */
.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 7px;
    transition: background .2s, transform .15s;
}

    .hp-btn:hover {
        background: #c97520;
        transform: translateY(-2px);
        color: #fff;
        text-decoration: none;
    }

/* Stat chips */
.hp-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hp-stat {
    text-align: center;
}

.hp-stat-val {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.hp-stat-lbl {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy-text);
}

/* Service pills */
.hp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hp-pill {
    border-radius: 20px;
    padding: 5px 13px;
    font-size: .73rem;
    font-weight: 700;
}

/* Image placeholder */
.hp-media {
    width: 100%;
}

.hp-img-ph {
    width: 100%;
    min-height: 220px;
    border-radius: 12px;
    border: 2px dashed #b0c4d8;
    background: rgba(255,255,255,.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #7a9ab8;
    font-size: .8rem;
    font-weight: 600;
}

    .hp-img-ph svg {
        width: 40px;
        height: 40px;
        opacity: .45;
    }

/* How it works steps */
.hp-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 760px) {
    .hp-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hp-steps {
        grid-template-columns: 1fr;
    }
}

.hp-step {
    background: rgba(255,255,255,.55);
    border-radius: 10px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid rgba(230,140,58,.15);
}

.hp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.hp-step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hp-step-body {
    font-size: .82rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Testimonial cards */
.hp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 760px) {
    .hp-cards {
        grid-template-columns: 1fr;
    }
}

.hp-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px;
    box-shadow: 0 2px 16px rgba(33,62,96,.07);
    border-top: 3px solid var(--orange);
}

.hp-card-quote {
    font-size: .88rem;
    line-height: 1.7;
    font-style: italic;
    color: #4a5a6e;
    margin-bottom: 14px;
}

.hp-card-author {
    font-size: .75rem;
    font-weight: 700;
    color: var(--navy-text);
}

    .hp-card-author span {
        font-weight: 400;
        color: #7a8a9a;
    }

/* ══════════════════════════════════════════════════
       FOOTER
    ══════════════════════════════════════════════════ */
#site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.75);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 52px 36px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
}

@media (max-width: 760px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    height: 52px;
    width: auto;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.3));
}

.footer-tagline {
    font-size: .78rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255,255,255,.5);
}

.footer-heading {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--sky);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .footer-links li, .footer-links a {
        font-size: .82rem;
        color: rgba(255,255,255,.65);
        text-decoration: none;
        transition: color .18s;
    }

        .footer-links a:hover {
            color: var(--sky);
        }

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 8px;
}

    .footer-contact-line svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
        opacity: .7;
    }

    .footer-contact-line a {
        color: rgba(255,255,255,.8);
        text-decoration: none;
        transition: color .18s;
    }

        .footer-contact-line a:hover {
            color: var(--sky);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    padding: 16px 36px;
    font-size: .72rem;
    color: rgba(255,255,255,.35);
}
