
/* ==========================================
   MB YORKS – PREMIUM PLATINUM DESIGN
   COMPLETE STYLESHEET
   MOBILE HERO – LOWER SIDE-BY-SIDE BUTTONS
   ========================================== */

/* 1. Premium colour palette */
:root {
    --navy: #050D10;
    --navy2: #101C20;
    --gold: #D6D8DA;
    --ivory: #FFFFFF;
    --ink: #242D31;
    --muted: #627184;
    --line: #D6D8DA;
}

/* 2. Project cards */
body .entry-content .project-cards .wp-block-column {
    background: #FFFFFF !important;
    border-bottom: 3px solid #D6D8DA !important;
}

body .entry-content .project-cards .wp-block-column h2,
body .entry-content .project-cards .wp-block-column h3,
body .entry-content .project-cards .wp-block-column h4 {
    color: #071A35 !important;
    opacity: 1 !important;
}

body .entry-content .project-cards .wp-block-column p {
    color: #344256 !important;
    opacity: 1 !important;
}

/* 3. Navigation hover */
.nav-links a:hover,
.nav-links a[aria-current="page"],
.header-phones a:hover,
.footer-grid a:hover {
    color: #00C9D2;
}

/* 4. Platinum section labels */
.entry-content .eyebrow,
.entry-content p.eyebrow {
    color: #A5AFB3 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    line-height: 1.5 !important;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .entry-content .eyebrow,
    .entry-content p.eyebrow {
        font-size: 15px !important;
        letter-spacing: 1.5px !important;
    }
}

/* 5. Service card lines */
.entry-content .service-grid .wp-block-column {
    border-top: 4px solid #D6D8DA !important;
}

/* 6. Experience lines */
.entry-content .stat-row .wp-block-column {
    border-left: 3px solid #D6D8DA !important;
}

/* 7. Homepage hero overlay */
.entry-content .wp-block-cover::before {
    background: linear-gradient(
        90deg,
        rgba(5, 13, 16, 0.94) 0%,
        rgba(16, 28, 32, 0.72) 47%,
        rgba(16, 28, 32, 0.10) 100%
    );
}

/* 8. Larger mobile logo and menu */
@media (max-width: 600px) {
    .site-header .brand img {
        width: 190px;
        height: auto;
    }

    .site-header .nav-toggle {
        font-size: 1rem;
        font-weight: 700;
        padding: 12px 16px;
        min-height: 48px;
        white-space: nowrap;
    }
}

/* 9. Obsidian black footer */
.site-footer {
    background: #050D10;
    color: #F4F5F5;
}

/* 10. Platinum footer headings */
.site-footer .footer-grid h3 {
    color: #D6D8DA !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* 11. Spacing below quote buttons */
.entry-content .wp-block-group .wp-block-buttons + p {
    margin-top: 32px !important;
}

/* 12. Platinum silver buttons */
.entry-content .gold-button,
.entry-content .wp-block-button__link {
    background-color: #D6D8DA !important;
    color: #050D10 !important;
    border-color: #D6D8DA !important;
}

/* ==========================================
   13. WHITE BACKGROUNDS ON INNER PAGES
   ========================================== */

body:not(.home) .entry-content .has-mb-ivory-background-color,
body:not(.home) .entry-content .has-ivory-background-color,
body:not(.home) .entry-content .has-cream-background-color {
    background-color: #FFFFFF !important;
}

body:not(.home) .entry-content .bg-ivory,
body:not(.home) .entry-content .bg-cream,
body:not(.home) .entry-content .section-light,
body:not(.home) .entry-content .light-section {
    background-color: #FFFFFF !important;
}

body:not(.home) .entry-content .has-mb-navy-background-color,
body:not(.home) .entry-content .has-navy-background-color,
body:not(.home) .entry-content .section-dark,
body:not(.home) .entry-content .dark-section {
    background-color: #050D10 !important;
}

body:not(.home) .entry-content > .wp-block-group:not(.has-background) {
    background-color: #FFFFFF !important;
}

/* ==========================================
   14. PREMIUM PROJECT ENQUIRY FORM
   ========================================== */

.wpcf7 {
    width: 100%;
    max-width: 900px;
    margin: 35px auto;
    color: #172333;
}

.wpcf7 h3 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 18px;
}

.wpcf7 p {
    line-height: 1.7;
    margin-bottom: 24px;
}

.wpcf7 label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
    color: #253142;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 9px;
    padding: 15px 17px;
    border: 1px solid #c4c9cf;
    border-radius: 5px;
    background: #fff;
    color: #172333;
    font-size: 15px;
    font-family: inherit;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7 textarea {
    min-height: 170px;
    resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #737d89;
    box-shadow: 0 0 0 3px rgba(160, 168, 178, 0.18);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #9299a2;
}

/* Platinum drag-and-drop upload */
.wpcf7 .codedropz-upload-wrapper,
.wpcf7 .codedropz-upload-handler,
.wpcf7 .codedropz-upload-container {
    border-radius: 6px;
}

.wpcf7 .codedropz-upload-container {
    background: #f6f7f8;
    border: 1px dashed #aeb6c0;
    padding: 22px;
}

.wpcf7 .codedropz-upload-container h3 {
    font-size: 22px;
    color: #172333;
}

.wpcf7 .codedropz-upload-container a {
    color: #424e5c;
    font-weight: 700;
}

/* Luxury black submit button */
.wpcf7 input[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 19px 28px;
    border: 1px solid #172333;
    border-radius: 4px;
    background: #101b2a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.wpcf7 input[type="submit"]:hover {
    background: #d6dbe1;
    border-color: #aeb6c0;
    color: #101b2a;
}

.wpcf7 .wpcf7-response-output {
    border-radius: 4px;
    padding: 15px 20px;
}

@media (max-width: 600px) {
    .wpcf7 {
        margin: 20px auto;
    }

    .wpcf7 input[type="submit"] {
        font-size: 12px;
        letter-spacing: 1px;
    }
}

/* ==========================================
   15. HOMEPAGE HERO – DESKTOP
   ========================================== */

/* Hide the small MB YORKS strapline */
.home .entry-content .wp-block-cover
.wp-block-cover__inner-container > p:first-child {
    display: none !important;
}

/* Organise hero content */
.home .entry-content .wp-block-cover
.wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transform: none !important;
}

/* Premium white heading */
.home .entry-content .wp-block-cover h1 {
    position: relative;
    top: -35px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: clamp(30px, 3vw, 44px) !important;
    line-height: 1.12 !important;
    color: #F4F5F5 !important;
}

/* Desktop buttons */
.home .entry-content .wp-block-cover
.wp-block-buttons {
    position: relative;
    top: 45px;
    margin-top: 0 !important;
}

/* ==========================================
   16. HOMEPAGE HERO – MOBILE
   FULL-HEIGHT VIDEO + LOWER SIDE-BY-SIDE BUTTONS
   ========================================== */

@media (max-width: 767px) {

    /* Full-height mobile video */
    .home .entry-content .wp-block-cover {
        position: relative !important;
        min-height: 0 !important;
        height: 100svh !important;
        height: 100dvh !important;
        box-sizing: border-box !important;
        padding: 30px 24px 25px !important;
        overflow: hidden;
    }

    /* Hero content */
    .home .entry-content .wp-block-cover
    .wp-block-cover__inner-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 0 !important;
        height: 100% !important;
        transform: none !important;
    }

    /* Heading stays near the logo */
    .home .entry-content .wp-block-cover h1 {
        position: relative !important;
        top: 0 !important;
        margin-top: 25px !important;
        margin-bottom: 0 !important;
        font-size: clamp(27px, 7vw, 34px) !important;
        line-height: 1.14 !important;
        letter-spacing: -0.4px;
        color: #F4F5F5 !important;
        max-width: 100%;
    }

    /* Two buttons side by side, positioned lower */
    .home .entry-content .wp-block-cover
    .wp-block-buttons {
        position: absolute !important;
        top: auto !important;
        bottom: 65px !important;
        left: 24px !important;
        right: 24px !important;
        width: auto !important;
        margin: 0 !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    /* Each button occupies half the row */
    .home .entry-content .wp-block-cover
    .wp-block-button {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* Equal-height, centred button labels */
    .home .entry-content .wp-block-cover
    .wp-block-button__link {
        display: flex !important;
        width: 100% !important;
        min-height: 58px !important;
        height: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 12px 7px !important;
        font-size: clamp(11px, 3vw, 14px) !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }
}

/* Narrow mobile screens */
@media (max-width: 380px) {
    .home .entry-content .wp-block-cover {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .home .entry-content .wp-block-cover h1 {
        font-size: 27px !important;
    }

    .home .entry-content .wp-block-cover
    .wp-block-buttons {
        left: 18px !important;
        right: 18px !important;
        gap: 8px !important;
    }
}

/* Short mobile screens */
@media (max-width: 767px) and (max-height: 650px) {
    .home .entry-content .wp-block-cover h1 {
        margin-top: 10px !important;
        font-size: 27px !important;
    }

    .home .entry-content .wp-block-cover
    .wp-block-buttons {
        bottom: 55px !important;
        gap: 8px !important;
    }

    .home .entry-content .wp-block-cover
    .wp-block-button__link {
        min-height: 46px !important;
        padding: 10px 7px !important;
    }
}

/* ==========================================
   MB YORKS — SHOW THE CORRECT HERO PER DEVICE
   ========================================== */

/* Desktop: show desktop hero, hide mobile hero */
body.home .entry-content .wp-block-cover.mb-yorks-desktop-hero {
    display: flex !important;
}

body.home .entry-content .wp-block-cover.mb-yorks-mobile-hero {
    display: none !important;
}

/* Portrait phones and tablets: show mobile hero only */
@media screen and (max-width: 1024px) and (orientation: portrait) {

    body.home .entry-content .wp-block-cover.mb-yorks-desktop-hero {
        display: none !important;
    }

    body.home .entry-content .wp-block-cover.mb-yorks-mobile-hero {
        display: flex !important;
    }
}

/* MB YORKS - Match header logo width to footer logo */
.site-header .brand {
    width: 235px !important;
    max-width: 235px !important;
    flex-shrink: 0;
}

.site-header .brand img {
    width: 235px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}
