/* Malcolm Marsdin - Brand overrides */

/* Brand colour variables */
:root {
    --brand: #00a0df;
    --brand-dark: #004987;
    --dark-panel: #222222;
}

/* Header info bar (dark blue) */
header .info { background: #004987 !important; }

/* Logo sizing */
#logo img { width: 110px; }
#logo { margin: 17px 0 0 0; }
.smaller #logo img { width: 50px; }
.smaller #logo { margin: 10px 0 0 0; }

/* Subheader (inner page banner) */
#subheader {
    background-image: url('../images/subheader-bg.webp');
    background-size: cover;
    background-position: center;
}

/* Error section height */
section.bg-error { height: 600px; }

/* Force brand colour on all relevant elements */
.bg-color,
section.bg-color,
#mainmenu li li a:hover,
#mainmenu ul li:hover > a,
.price-row,
.btn-primary,
.bg-id-color,
.pagination > .active > a,
.pagination li span,
.btn-line:hover, a.btn-line:hover,
.btn-line.hover, a.btn-line.hover,
.owl-arrow span,
.small-border,
#jpreBar,
.date-post,
.btn-more,
#btn-search,
.btn-id, .btn-custom,
.tiny-border,
#back-to-top,
.form-submit #submit,
.preloader1,
.de_progress .progress-bar {
    background-color: #00a0df;
}

.feature-box i,
#mainmenu li:hover > a,
.slider_text h1,
.id-color,
.title span,
.feature-box-small-icon i,
.feature-box-small-icon .number,
.box-icon-simple i,
.de_contact_info i,
.de_testi_by,
.crumb a,
#mainmenu li a:after,
#mainmenu .current-menu-item > a {
    color: #00a0df;
}

.feature-box i,
.social-icons i,
.btn-line:hover, a.btn-line:hover {
    border-color: #00a0df;
}

/* Parallax sections - use fixed background instead of JS */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Hero section */
section.hero-section {
    background-image: url('../images/hero-bg.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Why choose us bg */
section.why-choose-bg {
    background-image: url('../images/why-choose-bg.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Service section images */
.svc-img-1 { background-image: url('../images/service-img1.webp'); background-size: cover; background-position: center; }
.svc-img-2 { background-image: url('../images/service-img2.webp'); background-size: cover; background-position: center; }
.svc-img-3 { background-image: url('../images/service-img3.webp'); background-size: cover; background-position: center; }

/* Ensure service text columns have equal height with images */
.svc-row { display: flex; flex-wrap: wrap; }
.svc-row > [class*="col-"] { display: flex; flex-direction: column; }
.svc-img-panel { min-height: 350px; flex: 1; }

/* Google Maps iframe responsive */
iframe { max-width: 100%; }

/* Contact form styling */
#contact_form { background: #f5f5f5; }

/* Text slider (rotating text) */
.text-slider .text-item { display: none; }
.text-slider .text-item:first-child { display: block; }

/* Montserrat font for everything */
body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* About page banner image */
.about-banner img { width: 100%; height: auto; }

/* Building survey images */
.survey-imgs img { width: 100%; height: auto; }

/* ===== Launch optimisations (Nov 2026) ===== */

/* Phones and tablets: fixed backgrounds don't work on iOS and blow up the photo, so scroll normally */
@media (max-width: 991px) {
    section.hero-section, section.why-choose-bg, .parallax, #subheader { background-attachment: scroll; }
}

/* Phones: the hero photo is a clear band at the top and the text sits below it on brand blue,
   rather than the photo being stretched behind the words */
@media (max-width: 767px) {
    section.hero-section {
        display: block;
        min-height: 0;
        background-image: none;
        background-color: #004987;
        padding: 0 0 40px;
    }
    section.hero-section::before {
        content: "";
        display: block;
        height: 260px;
        background: url('../images/hero-bg.webp') center 30% / cover no-repeat;
    }
    .hero-section .spacer-double { display: none; }
    .hero-section h1.big { font-size: 30px; line-height: 1.2; margin-top: 28px; }
    .hero-section h2 { font-size: 18px; line-height: 1.6; }

    /* Service blocks: stack image and text instead of squeezing three columns side by side */
    .svc-row { flex-wrap: wrap; }
    .svc-row > [class*="col-"] { width: 100%; flex: 0 0 100%; }
    .svc-row .svc-img { min-height: 220px !important; }
    .svc-row .svc-text { padding: 36px 24px !important; }
}

/* Links in the footer address and credit */
footer address a, .subfooter a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.subfooter .credit { opacity: .75; font-size: 12px; }
@media (max-width: 991px) { .subfooter .credit { text-align: left; margin-top: 6px; } }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, #menu-btn:focus-visible { outline: 3px solid #00a0df; outline-offset: 2px; }

/* Contact form */
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-note { font-size: 12px; color: #666; margin-top: 10px; }
.form-note a { color: #004987; text-decoration: underline; }
.form-success { background: #00a0df; color: #fff; padding: 18px 20px; border-radius: 4px; font-weight: 600; line-height: 1.5; }
.form-success::before { content: "\2713"; display: inline-block; margin-right: 10px; font-size: 20px; }
.form-error { background: #fdecea; color: #a1281b; padding: 12px 16px; border-radius: 4px; }

/* Map loads only when asked for (no Google cookies until then) */
.map-placeholder { position: relative; height: 450px; background: #e9eef3 url('../images/subheader-bg.webp') center / cover; display: flex; align-items: center; justify-content: center; text-align: center; }
.map-placeholder::before { content: ""; position: absolute; inset: 0; background: rgba(0, 73, 135, .78); }
.map-placeholder > div { position: relative; color: #fff; padding: 20px; }
.map-placeholder address { font-style: normal; margin: 10px 0 18px; font-size: 16px; line-height: 1.6; }
.map-placeholder button { background: #00a0df; color: #fff; border: 0; padding: 12px 22px; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.map-placeholder small { display: block; margin-top: 12px; opacity: .8; }
.map-placeholder small a { color: #fff; text-decoration: underline; }

/* Privacy and 404 pages */
.text-page { padding: 60px 0; }
.text-page h2 { font-size: 22px; margin-top: 36px; }
.text-page p, .text-page li { font-size: 15px; line-height: 1.7; max-width: 760px; }

/* Phones: the portrait logo is taller than the header bar, so show it smaller */
@media (max-width: 991px) {
    header #logo img.logo { width: 64px; }
    header #logo { margin-top: 10px; }
}
