/**
 * Merged Businesses section (homepage).
 *
 * NextOre + MRead shown side-by-side as tiles. Each tile uses the business image
 * as a full-bleed background that zooms in on hover; logo, description and CTA sit
 * on top of a darkening gradient for readability. New brand colours: orange #F65B1B.
 */

.businesses-merge {
    --biz-orange: #F65B1B;
    --biz-stone: #EEEDED;
    background-color: #000;
}

/* Cancel the base .page-section vertical padding so the section is exactly the
   tile height (100vh on desktop). Higher specificity beats components.css. */
.businesses-merge.page-section {
    padding-top: 0;
    padding-bottom: 0;
}

.businesses-merge__grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

@media (min-width: 1024px) {
    .businesses-merge__grid--count-2 {
        grid-template-columns: 1fr 1fr;
    }
    .businesses-merge__grid--count-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.business-tile {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    background-color: #0b0b0b;
}

@media (min-width: 1024px) {
    .business-tile {
        min-height: 100vh;
    }
    /* Thin separator between adjacent tiles */
    .business-tile + .business-tile {
        box-shadow: -1px 0 0 0 rgba(255, 255, 255, 0.12);
    }
}

/* Full-bleed background image that zooms on hover */
.business-tile__bg {
    position: absolute;
    inset: 0;
    background-color: #1a1a1a;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.001);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    z-index: 0;
}

.business-tile:hover .business-tile__bg,
.business-tile:focus-within .business-tile__bg {
    transform: scale(1.08);
}

/* Darkening gradient for legibility (heaviest at the bottom where content sits) */
.business-tile__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 35%,
        rgba(0, 0, 0, 0.75) 100%
    );
    transition: background 0.4s ease;
}

.business-tile:hover .business-tile__overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(11, 11, 11, 0.2) 35%,
        rgba(0, 0, 0, 0.78) 100%
    );
}

.business-tile__content {
    position: relative;
    z-index: 2;
    width: 100%;
    align-self: flex-end;
    color: var(--biz-stone);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
    max-width: 640px;
}

.business-tile__subtitle {
    color: var(--biz-stone);
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: clamp(0.9rem, 1.4vw, 20px);
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

.business-tile__logo {
    margin: 0 0 1.5rem;
}

.business-tile__logo img {
    display: block;
    height: clamp(40px, 6vw, 60px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left;
}

.business-tile__description {
    color: var(--biz-stone);
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 36px);
    font-weight: 400;
    line-height: 120%;
    margin: 0 0 2rem;
}

/* CTA pill – mirrors the split-hero-logo button (orange glow on hover) */
.business-tile__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--biz-stone);
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: clamp(1rem, 1.4vw, 20px);
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 100px;
    border: 1px solid var(--biz-stone);
    padding: 0.75rem 1.5rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.business-tile__button:hover,
.business-tile__button:focus-visible {
    border-color: var(--biz-orange);
    background: #0b0b0b;
    box-shadow: 0 0 8px 4px rgba(246, 91, 27, 0.25);
    color: var(--biz-orange);
}

.business-tile__button-arrow {
    display: inline-flex;
    transition: transform 0.2s ease;
}

.business-tile__button:hover .business-tile__button-arrow {
    transform: translateX(4px);
}

.business-tile__button-arrow svg {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .business-tile__bg {
        transition: none;
    }
    .business-tile:hover .business-tile__bg,
    .business-tile:focus-within .business-tile__bg {
        transform: none;
    }
}
