/* BAM 0.1.12 - Fluid homepage layout, based on the approved reference.
   Homepage only: loaded after the legacy stylesheet and image framing rules.
   Image and content remain separate; no mockup is used as a background.
   Gutters, not a fixed 1260px cap, define the width of the visual blocks. */
.page-home {
    --home-gutter: clamp(16px, 2.4vw, 72px);
    --home-gap: clamp(12px, 1.1vw, 24px);
}
.page-home .container {
    width: calc(100% - var(--home-gutter) - var(--home-gutter));
    max-width: none;
    margin-inline: auto;
}
.page-home .header-inner {
    min-height: clamp(76px, 6vw, 96px);
    gap: clamp(18px, 2vw, 36px);
    padding-block: 6px;
}
.page-home .brand img { width: clamp(154px, 13vw, 206px); }
.page-home .header nav { gap: clamp(17px, 1.8vw, 34px); }
.page-home .header nav a {
    position: relative;
    padding-block: 12px;
    font-size: clamp(14px, 1.04vw, 17px);
}
.page-home .header nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset: auto 0 3px;
    height: 3px;
    border-radius: 4px;
    background: var(--blue);
}
.page-home .phone {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    font-size: clamp(13px, 1vw, 16px);
}
/* Continuous hero scene, sized without full-viewport cover magnification. */
.page-home .bam-home-hero {
    min-height: clamp(410px, 28vw, 580px);
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
}
.page-home .bam-home-hero-inner {
    padding: clamp(28px, 2.6vw, 48px) clamp(0px, 3vw, 64px);
}
.page-home .bam-home-hero .bam-hero-picture img {
    inset: auto 0 50% auto;
    width: clamp(760px, 64vw, 1400px);
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    transform: translateY(50%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
    mask-image: linear-gradient(90deg, transparent, #000 24%);
}
.page-home .bam-home-hero::before {
    background: linear-gradient(90deg, #fff 0%, #fffffff5 27%,
        #ffffffb3 39%, #ffffff40 51%, #ffffff00 65%);
}
.page-home .bam-home-hero .eyebrow {
    font-size: clamp(11px, .91vw, 14px);
    letter-spacing: clamp(2px, .19vw, 3px);
}
.page-home .bam-home-hero h1 {
    font-size: clamp(40px, 4.1vw, 68px);
    max-width: min(60vw, 900px);
    line-height: 1.07;
    letter-spacing: -.035em;
    margin: 18px 0 14px;
}
.page-home .bam-home-hero h1 em {
    font-size: clamp(27px, 2.75vw, 44px);
    line-height: 1.2;
    letter-spacing: -.025em;
}
.page-home .bam-home-hero p {
    font-size: clamp(16px, 1.24vw, 20px);
    line-height: 1.5;
    max-width: min(45vw, 610px);
    margin-block: 14px 0;
}
.page-home .bam-home-hero .actions {
    gap: 16px;
    margin-top: 24px;
}
.page-home .bam-home-hero .btn {
    padding: 15px 24px;
    min-height: 48px;
    font-size: clamp(15px, 1.1vw, 18px);
}
/* Six service cards at desktop widths; clean reflow instead of squeezing. */
.page-home .bam-service-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--home-gap);
    margin-top: 12px;
}
.page-home .bam-service {
    min-width: 0;
    min-height: clamp(164px, 11.4vw, 192px);
    padding: clamp(17px, 1.4vw, 26px);
    gap: 9px;
    border-radius: 18px;
}
.page-home .bam-service strong {
    font-size: clamp(16px, 1.16vw, 20px);
    line-height: 1.25;
    overflow-wrap: break-word;
}
.page-home .bam-service small {
    font-size: clamp(13px, .97vw, 16px);
    line-height: 1.45;
    max-width: 30ch;
}
.page-home .bam-service .bam-icon { height: 46px; }
.page-home .bam-service .bam-icon img { width: 43px; height: 43px; }
/* Common outer edges for benefits, location and booking. */
.page-home .bam-benefit-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
    padding: 18px clamp(20px, 2vw, 38px);
    border-radius: 18px;
    gap: clamp(12px, 1.3vw, 24px);
}
.page-home .bam-benefit-strip > div {
    min-width: 0;
    gap: clamp(12px, 1vw, 20px);
    padding-right: 12px;
    border-right: 1px solid #cbddeb;
}
.page-home .bam-benefit-strip > div:last-child { border-right: 0; }
.page-home .bam-benefit-strip strong {
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.3;
}
.page-home .bam-benefit-strip small {
    font-size: clamp(12px, .95vw, 16px);
    line-height: 1.45;
    margin-top: 3px;
}
.page-home .bam-benefit-strip .bam-icon { flex-basis: 44px; }
.page-home .bam-benefit-strip .bam-icon img { width: 40px; height: 40px; }
.page-home .bam-bottom-grid {
    grid-template-columns: minmax(0, 1fr) clamp(292px, 24%, 460px);
    gap: var(--home-gap);
    align-items: stretch;
    margin-top: 24px;
    margin-bottom: 0;
}
.page-home .bam-location {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr);
    padding: 0;
    min-width: 0;
    min-height: 0;
    align-items: stretch;
    border-radius: 18px;
}
.page-home .bam-location-image {
    padding: 12px;
    height: auto;
    min-height: 0;
    justify-content: center;
}
.page-home .bam-location-photo-link { max-width: 520px; }
.page-home .bam-location-photo-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
}
.page-home .bam-location-photo-caption { font-size: 12px; }
.page-home .bam-location-details {
    min-width: 0;
    padding: 14px clamp(14px, 1.3vw, 26px);
}
.page-home .bam-contact-line { gap: 12px; padding-block: 14px; }
.page-home .bam-contact-line > div { min-width: 0; }
.page-home .bam-contact-line strong { font-size: clamp(14px, 1vw, 18px); }
.page-home .bam-contact-line span,
.page-home .bam-contact-line a { font-size: clamp(13px, .95vw, 16px); }
.page-home .bam-map-note {
    grid-column: auto;
    margin: 14px 14px 14px 0;
    padding: 18px 12px;
    min-width: 0;
    min-height: 180px;
}
.page-home .bam-map-note strong { font-size: clamp(17px, 1.12vw, 21px); }
.page-home .bam-map-note small { max-width: 24ch; font-size: 13px; }
.page-home .bam-map-note a { padding: 8px 0; font-size: 14px; }
.page-home .bam-appointment {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-content: center;
    align-items: start;
    gap: 14px 12px;
    padding: clamp(20px, 1.6vw, 30px);
    min-width: 0;
    border-radius: 18px;
}
.page-home .bam-appointment > img { grid-column: 1; width: 40px; height: 40px; }
.page-home .bam-appointment h2 {
    grid-column: 2;
    margin: 0;
    font-size: clamp(20px, 1.55vw, 28px);
    line-height: 1.15;
    letter-spacing: -.035em;
}
.page-home .bam-appointment p,
.page-home .bam-appointment .btn,
.page-home .bam-appointment small { grid-column: 1 / -1; }
.page-home .bam-appointment p {
    margin: 0;
    font-size: clamp(14px, 1.08vw, 17px);
    line-height: 1.55;
    max-width: 36ch;
}
.page-home .bam-appointment .btn { min-height: 48px; font-size: 16px; }
.page-home .bam-appointment small { font-size: 12px; line-height: 1.4; }
/* Wide information band with readable line lengths, not 2000px prose lines. */
.page-home .bam-seo-section {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
    gap: clamp(28px, 4vw, 80px);
    align-items: start;
    padding: 32px clamp(20px, 2vw, 38px) 40px;
    margin-top: 32px;
    margin-bottom: 24px;
    border-top: 1px solid #dce9f4;
}
.page-home .bam-seo-section h2 {
    margin: 0;
    max-width: 26ch;
    font-size: clamp(24px, 1.8vw, 32px);
    line-height: 1.2;
}
.page-home .bam-seo-copy { min-width: 0; max-width: 82ch; }
.page-home .bam-seo-copy p { margin-top: 0; font-size: 16px; line-height: 1.7; }
.page-home .bam-seo-copy a { display: inline-block; padding-block: 6px; }
.page-home .footer-inner { gap: 14px 30px; align-items: center; }
.page-home a:focus-visible,
.page-home button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
/* Desktop thresholds depend on usable width, not a presumed monitor size. */
@media (max-width: 1239px) {
    .page-home .header-inner { gap: 20px; }
    .page-home .header nav { gap: 18px; }
    .page-home .phone { display: none; }
    .page-home .bam-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .page-home .bam-service { min-height: 158px; }
    .page-home .bam-bottom-grid { grid-template-columns: minmax(0, 1fr); }
    .page-home .bam-appointment {
        grid-template-columns: 40px minmax(0, 1fr) minmax(220px, .6fr);
        align-items: center;
        gap: 12px 18px;
    }
    .page-home .bam-appointment > img { grid-column: 1; grid-row: 1 / 3; }
    .page-home .bam-appointment h2 { grid-column: 2; grid-row: 1; }
    .page-home .bam-appointment p { grid-column: 2; grid-row: 2; max-width: none; }
    .page-home .bam-appointment .btn { grid-column: 3; grid-row: 1; }
    .page-home .bam-appointment small { grid-column: 3; grid-row: 2; }
    .page-home .bam-seo-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
}
@media (min-width: 901px) and (max-width: 1239px) {
    .page-home .bam-home-hero::before {
        background: linear-gradient(90deg, #fff 0%, #fffffff5 28%,
            #ffffffcc 40%, #ffffff66 53%, #ffffff00 74%);
    }
}
/* Tablet / phones: single continuous scene below copy, no text over the car. */
@media (max-width: 900px) {
    .page-home .header-inner { min-height: 74px; flex-wrap: wrap; padding-block: 8px; }
    .page-home .brand img { width: 150px; }
    .page-home .menu-toggle {
        display: block;
        margin-left: auto;
        padding: 11px 15px;
        font-size: 15px;
        border: 1px solid #c7d8e8;
        border-radius: 9px;
        background: #fff;
        color: var(--dark);
        font-weight: 700;
    }
    .page-home .header nav {
        display: none;
        order: 3;
        width: 100%;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 0 8px;
    }
    .page-home .header nav.open { display: flex; }
    .page-home .header nav a { font-size: 16px; padding: 12px 5px; }
    .page-home .header nav a[aria-current="page"]::after { width: 36px; inset-inline-start: 5px; }
    .page-home .bam-home-hero {
        --home-scene-height: calc(100vw * .5625);
        display: block;
        min-height: 0;
    }
    .page-home .bam-home-hero-inner {
        padding: 30px 0 calc(var(--home-scene-height) + 12px);
    }
    .page-home .bam-home-hero .bam-hero-picture img {
        inset: auto 0 0;
        width: 100%;
        height: var(--home-scene-height);
        transform: none;
        object-fit: contain;
        -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%);
        mask-image: linear-gradient(180deg, transparent, #000 15%);
    }
    .page-home .bam-home-hero::before { display: none; }
    .page-home .bam-home-hero .bam-hero-picture::after { content: none; }
    .page-home .bam-home-hero h1 { max-width: 100%; font-size: clamp(33px, 5.8vw, 48px); }
    .page-home .bam-home-hero h1 em { font-size: clamp(25px, 4vw, 34px); }
    .page-home .bam-home-hero p { max-width: 54ch; font-size: 16px; }
    .page-home .bam-home-hero .btn { padding: 14px 20px; font-size: 15px; }
    .page-home .bam-benefit-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
    .page-home .bam-benefit-strip > div:nth-child(2n) { border-right: 0; }
    .page-home .bam-location { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .page-home .bam-map-note { grid-column: 1 / -1; margin: 0 12px 12px; min-height: 138px; }
    .page-home .bam-seo-section { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .page-home .bam-seo-section h2 { max-width: none; }
    .page-home .bam-seo-copy { max-width: 76ch; }
    .page-home .footer-inner { flex-direction: row; align-items: start; }
}
@media (max-width: 600px) {
    .page-home .header-inner { min-height: 70px; }
    .page-home .brand img { width: 140px; }
    .page-home .bam-home-hero .eyebrow { letter-spacing: 2px; font-size: 10px; }
    .page-home .bam-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-home .bam-service { padding: 18px 15px; min-height: 172px; }
    .page-home .bam-service strong { font-size: 16px; }
    .page-home .bam-service small { font-size: 13px; }
    .page-home .bam-benefit-strip { padding: 20px 16px; gap: 20px 12px; }
    .page-home .bam-benefit-strip > div { gap: 8px; padding: 0; border: 0; }
    .page-home .bam-benefit-strip .bam-icon { flex-basis: 29px; }
    .page-home .bam-benefit-strip .bam-icon img { width: 28px; height: 28px; }
    .page-home .bam-benefit-strip strong { font-size: 14px; }
    .page-home .bam-benefit-strip small { font-size: 12px; }
    .page-home .bam-location { grid-template-columns: minmax(0, 1fr); }
    .page-home .bam-location-details { padding: 8px 20px 18px; }
    .page-home .bam-map-note { grid-column: auto; }
    .page-home .bam-appointment {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 22px;
        gap: 14px 12px;
        align-items: start;
    }
    .page-home .bam-appointment > img { grid-row: 1; }
    .page-home .bam-appointment h2 { grid-row: 1; grid-column: 2; font-size: 23px; }
    .page-home .bam-appointment p,
    .page-home .bam-appointment .btn,
    .page-home .bam-appointment small { grid-column: 1 / -1; grid-row: auto; }
    .page-home .bam-seo-section { padding: 26px 4px 28px; margin-top: 26px; }
    .page-home .footer-inner { flex-direction: column; }
}
@media (max-width: 359px) {
    .page-home .bam-service-grid { grid-template-columns: minmax(0, 1fr); }
    .page-home .bam-service { min-height: 150px; }
    .page-home .bam-benefit-strip { grid-template-columns: minmax(0, 1fr); }
    .page-home .bam-home-hero h1 { font-size: 30px; }
    .page-home .bam-home-hero h1 em { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .page-home .bam-service, .page-home .btn { transition: none; }
}
