/* =========================================================
   M J BAILES SERVICES
   Global styles
   ========================================================= */

:root {
    --primary-blue: #3d8fc5;
    --primary-blue-dark: #2675a9;
    --dark: #20252a;
    --dark-soft: #30363c;
    --text: #4b5258;
    --light: #f5f7f8;
    --white: #ffffff;
    --border: #e2e6e9;

    --heading-font: "Montserrat", sans-serif;
    --body-font: "Open Sans", sans-serif;

    --container: 1180px;
    --radius: 4px;
    --shadow: 0 8px 30px rgba(20, 30, 40, 0.08);
}


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text);
    background-color: var(--dark);
    background-image: url("../images/collage.png");
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.7;
}

.about-page {
    background-image: none;
    background-color: var(--white);
}

/* ---------- ABOUT INTRO ---------- */

.about-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.about-intro .section-heading {
    max-width: 720px;
}

.about-intro h1 {
    max-width: 700px;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.about-intro-image {
    width: 100%;
}

.about-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ---------- GLOBAL ---------- */

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.section {
    padding: 40px 0;
}

.section-light {
    background: var(--light);
}

.section-dark {
    background: transparent;
    color: var(--white);
}

.why-us {
    min-height: 500px;
}

.eyebrow {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    margin-bottom: 20px;
}

.blue-text {
    color: var(--primary-blue);
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
    color: var(--dark);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 15px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: var(--radius);
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: 0.25s ease;
}

.button-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.button-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.button-secondary {
    border: 1px solid rgba(255,255,255,0.7);
    color: var(--white);
}

.button-secondary:hover {
    background: var(--white);
    color: var(--dark);
}

.text-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--primary-blue-dark);
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 700;
}

.text-link span {
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}


/* ---------- HEADER ---------- */

.site-header {
    position: relative;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-link img {
    width: 185px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: var(--heading-font);
    font-size: 0.82rem;
    font-weight: 600;
}

.main-nav > a:not(.nav-cta) {
    position: relative;
    padding: 8px 0;
}

.main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.25s ease;
}

.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius);
    transition: 0.25s ease;
}

.nav-cta:hover {
    background: var(--primary-blue-dark);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    margin: 5px 0;
    background: var(--dark);
}

.quote-banner {
    background-color: var(--primary-blue);
    color: #ffffff;
    text-align: center;
    padding: 14px 20px;
}

.quote-banner p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: transparent;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero .container {
    margin-left: 4%;
    margin-right: auto;
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 40px 0;
    margin-left: 0;
    margin-right: auto;
}

.hero-business-name {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    color: var(--white);
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    margin: 0;
    text-shadow: 
        2px 3px 5px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(0, 0, 0, 0.7);
}

.hero-text-box {
    display: inline-block;
    padding: 12px 18px;
    background: rgba(20, 25, 30, 0.45);
}

/* ---------- INTRO ---------- */

.intro-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.intro h2 {
    max-width: 450px;
}

.intro-copy {
    max-width: 650px;
    font-size: 1.02rem;
}

.intro-copy h2 {
    max-width: 500px;
}

.intro {
    background: var(--white);
}

.intro-logo {
    width: 325px;
    height: auto;
    margin: 50px auto 30px 0px;
}

.intro-eyebrow {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}


/* ---------- SECTION HEADING ---------- */

.section-heading {
    max-width: 720px;
    margin-bottom: 45px;
}

.section-heading > p:last-child {
    font-size: 1rem;
}

.work-preview {
    background: var(--white);
}

/* ---------- SERVICES ---------- */

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.services-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 250px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-number {
    color: var(--primary-blue);
    font-family: var(--heading-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.92rem;
    margin-bottom: 22px;
}

.service-card a {
    color: var(--primary-blue-dark);
    font-family: var(--heading-font);
    font-size: 0.78rem;
    font-weight: 700;
}

.service-card a span {
    margin-left: 5px;
}

.service-card-more {
    background: var(--dark);
}

.service-card-more h3,
.service-card-more p {
    color: var(--white);
}

/* ---------- SERVICES PAGE ---------- */

.services-page {
    background-image: none;
    background-color: var(--white);
}

.page-intro {
    background: var(--white);
}

.page-intro .section-heading {
    max-width: 800px;
}

.page-intro h1 {
    max-width: 750px;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.page-intro p {
    max-width: 760px;
    font-size: 1.08rem;
}

.section-light {
    background: var(--light);
}

.service-category-heading {
    max-width: 800px;
    margin-bottom: 45px;
}

.service-category-heading h2 {
    margin-bottom: 0;
}

.service-feature {
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 70px;
}

.service-feature:last-child {
    margin-bottom: 0;
}

.service-feature-reverse {
    direction: rtl;
}

.service-feature-reverse > * {
    direction: ltr;
}

.service-photo {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7eaec;
    border-radius: var(--radius);
    overflow: hidden;
}

.service-photo span {
    color: #8a9298;
    font-family: var(--heading-font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-feature-content {
    max-width: 540px;
}

.service-feature-content h3 {
    font-size: 1.65rem;
    margin-bottom: 20px;
}

.service-feature-content p {
    font-size: 1rem;
}

.service-category + .service-category {
    border-top: 1px solid var(--border);
}


/* ---------- SERVICES PAGE MOBILE ---------- */

@media (max-width: 760px) {

    .service-feature {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 55px;
    }

    .service-feature-reverse {
        direction: ltr;
    }

    .service-photo {
        min-height: 280px;
    }

    .service-feature-content {
        max-width: none;
    }

}

/* ---------- OUR WORK ---------- */

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.project-placeholder {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.placeholder-box {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7eaec;
    border: 1px solid var(--border);
    color: #8a9298;
    font-family: var(--heading-font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.placeholder-after {
    background: #dce9f0;
}

.placeholder-arrow {
    color: var(--primary-blue);
    font-family: var(--heading-font);
    font-size: 2rem;
}

.photo-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #8a9298;
}


/* ---------- WHY CHOOSE US ---------- */

.why-choose {
    background: var(--light);
}

.why-heading {
    max-width: 650px;
    margin-bottom: 45px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.why-card {
    position: relative;
    min-height: 285px;
    padding: 30px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: 0.25s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.why-accent {
    width: 35px;
    height: 3px;
    background: var(--primary-blue);
    margin-bottom: 25px;
}

.why-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.why-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}


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

.cta {
    background: var(--white);
}

.services-page .cta {
    background: var(--light);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 15px 0;
}

.cta h2 {
    margin-bottom: 10px;
}

.cta p {
    max-width: 650px;
}

/* ---------- GALLERY PAGE ---------- */

.gallery-page {
    background-image: none;
    background-color: var(--white);
}

.gallery-intro {
    background: var(--white);
}

.gallery-intro .section-heading {
    max-width: 800px;
}

.gallery-intro h1 {
    max-width: 750px;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.gallery-intro p {
    max-width: 760px;
    font-size: 1.08rem;
}


/* ---------- GALLERY PROJECTS ---------- */

.gallery-projects {
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 40px;
}

.gallery-card {
    background: var(--white);
    border: 1px solid var(--border);
    transition: 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7eaec;
    overflow: hidden;
}

.gallery-image span {
    color: #8a9298;
    font-family: var(--heading-font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-content {
    padding: 25px 28px 28px;
}

.gallery-card-content h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.gallery-card-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* ---------- GALLERY CTA ---------- */

.gallery-cta {
    background: var(--white);
}

/* ---------- CONTACT PAGE ---------- */

.contact-page {
    background-image: none;
    background-color: var(--white);
}


/* ---------- CONTACT INTRO ---------- */

.contact-intro {
    background: var(--white);
}

.contact-intro .section-heading {
    max-width: 800px;
}

.contact-intro h1 {
    max-width: 750px;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.contact-intro p {
    max-width: 760px;
    font-size: 1.08rem;
}


/* ---------- CONTACT DETAILS ---------- */

.contact-details {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: start;
}


/* ---------- CONTACT FORM ---------- */

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-family: var(--heading-font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 0.95rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(61, 143, 197, 0.12);
}

.form-group textarea {
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aa1a6;
}

.contact-form .button {
    align-self: flex-start;
    border: 0;
    cursor: pointer;
}

.form-note {
    margin-top: 20px;
    margin-bottom: 0;
    color: #8a9298;
    font-size: 0.8rem;
}


/* ---------- CONTACT INFORMATION ---------- */

.contact-info {
    padding-top: 10px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info > p {
    max-width: 500px;
}

.contact-info-block {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.contact-info-block:first-of-type {
    margin-top: 35px;
}

.contact-info-block h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.contact-info-block p {
    margin-bottom: 0;
    font-size: 0.95rem;
}


/* ---------- CONTACT CTA ---------- */

.contact-cta {
    background: var(--white);
}


/* ---------- CONTACT MOBILE ---------- */

@media (max-width: 760px) {

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-wrapper {
        padding: 28px 24px;
    }

    .contact-info {
        padding-top: 0;
    }

    .contact-form .button {
        width: 100%;
    }

}


/* ---------- GALLERY MOBILE ---------- */

@media (max-width: 760px) {

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-card-content {
        padding: 22px 24px 25px;
    }

}


/* ---------- FOOTER ---------- */

.site-footer {
    background: #171b1f;
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 60px;
    padding: 65px 0;
}

.footer-logo {
    width: 155px;
    background: var(--white);
    padding: 8px;
    margin-bottom: 15px;
}

.footer-grid h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-grid a {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
}

.footer-grid a:hover {
    color: var(--primary-blue);
}

.footer-grid p {
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.75rem;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 950px) {

    .main-nav {
        gap: 18px;
    }

    .intro-grid,
    .why-grid {
        gap: 50px;
    }

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

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


@media (max-width: 760px) {

    .section {
        padding: 65px 0;
    }

    .header-inner {
        min-height: 78px;
    }

    .logo-link img {
        width: 155px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        padding: 20px 4%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav > a {
        padding: 12px 0 !important;
    }

    .main-nav .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 55px 0;
    }

    .intro-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .split-heading {
        align-items: start;
        flex-direction: column;
    }

    .project-placeholder {
        grid-template-columns: 1fr;
    }

    .placeholder-box {
        min-height: 230px;
    }

    .placeholder-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .cta-inner {
        align-items: start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 50px 0;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}


@media (max-width: 480px) {

    h1 {
        font-size: 2.45rem;
    }

    .hero-text {
        font-size: 0.98rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }
}
