/* ==========================================================================
   McHattons Estate Agents — main sponsor banner (sections/mchattons.php)
   rem base is 10px on this site.
   ========================================================================== */

.mchattons {
    --mch-navy: #15233b;
    --mch-teal: #19b3be;
    --mch-teal-dark: #0e7f88;
    background: var(--color-white);
}

/* Full-bleed feature block (no section-head): keep the band tight so the
   banner reads as an ad strip, not a full section. */
main.home>.mchattons {
    padding-top: clamp(2.4rem, 4vw, 4rem);
    padding-bottom: clamp(2.4rem, 4vw, 4rem);
}

.mchattons__banner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(2rem, 4vw, 5rem);
    width: 100%;
    max-width: 110rem;
    padding: 2.4rem clamp(2.4rem, 4vw, 4.8rem) 3.2rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d5eef0;
    box-shadow: 0 1rem 2.6rem rgba(21, 35, 59, 0.08);
    color: var(--mch-navy);
    font-family: "Montserrat", sans-serif;
}

.mchattons__snow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--mch-teal);
    fill: var(--mch-teal);
    opacity: 0.22;
    pointer-events: none;
}

.mchattons__wave {
    fill: var(--mch-teal);
}

.mchattons__banner>*:not(.mchattons__snow) {
    position: relative;
}

.mchattons__logo {
    display: block;
    line-height: 0;
}

.mchattons__logo img {
    display: block;
    width: clamp(16rem, 19vw, 21rem);
    height: auto;
    /* The supplied PNG has a solid near-white background; multiply drops it
       into the white banner so no box shows. */
    mix-blend-mode: multiply;
}

/* Message --------------------------------------------------------------- */
.mchattons__message p {
    margin: 0;
}

.mchattons__eyebrow {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mch-teal-dark);
}

.mchattons .mchattons__headline {
    margin-top: 0.4rem;
    font-size: clamp(2.2rem, 2.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
}

.mchattons .mchattons__towns {
    margin-top: 0.8rem;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-grey-dark-2);
}

/* Actions --------------------------------------------------------------- */
.mchattons__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.mchattons__cta,
.mchattons__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.1rem 2.2rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid var(--mch-teal);
    transition: background 0.2s ease, color 0.2s ease;
}

.mchattons__cta {
    background: var(--mch-navy);
    border-color: var(--mch-navy);
    color: #fff;
}

.mchattons__phone {
    background: #fff;
    color: var(--mch-navy);
}

.mchattons__phone svg {
    width: 1.6rem;
    height: 1.6rem;
    flex: none;
}

.mchattons__cta:hover,
.mchattons__cta:focus-visible {
    background: var(--mch-teal-dark);
    border-color: var(--mch-teal-dark);
}

.mchattons__phone:hover,
.mchattons__phone:focus-visible {
    background: var(--mch-teal);
    color: var(--mch-navy);
}

.mchattons a:focus-visible {
    outline: 2px solid var(--mch-navy);
    outline-offset: 3px;
}

/* Media-query rems are 16px (not the site's 10px root).
   Tablet: logo + message on one row, actions side by side underneath. */
@media (max-width: 56rem) {
    .mchattons__banner {
        grid-template-columns: auto 1fr;
    }

    .mchattons__actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .mchattons__actions a {
        flex: 1;
    }
}

/* Phone: logo, message, then both buttons on one row. The slice-scaled
   wave gets too tall at this width, so swap it for a plain teal edge. */
@media (max-width: 40rem) {
    .mchattons__banner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.4rem;
        padding: 2rem 1.6rem;
        border-bottom: 0.6rem solid var(--mch-teal);
        text-align: center;
    }

    .mchattons__snow {
        display: none;
    }

    .mchattons__logo img {
        width: 16rem;
    }

    .mchattons .mchattons__headline {
        font-size: 2rem;
    }

    .mchattons .mchattons__towns {
        font-size: 1.1rem;
    }

    .mchattons__actions {
        width: 100%;
        gap: 0.8rem;
    }

    .mchattons__cta,
    .mchattons__phone {
        padding: 1rem 0.8rem;
        font-size: 1.4rem;
    }
}
