/* BroTeam Racing — Enduro Modern. */
.em-site {
    --em-card: #1d2226;
    --em-surface: #272d32;
    background: var(--em-bg);
    color: var(--em-ink);
    font-family: 'Roboto Flex', sans-serif;
    width: 100%;
    min-width: 0;
    overflow: clip;
}

.em-site *,
.em-site *::before,
.em-site *::after {
    box-sizing: border-box;
}

.em-site .em-container {
    width: min(100% - 40px, 1320px);
    margin-inline: auto;
}

.em-site h1,
.em-site h2,
.em-site h3,
.em-site p {
    margin: 0;
    color: inherit;
}

.em-site a {
    text-decoration: none;
}

.em-site .em-eyebrow {
    color: var(--em-accent);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.em-site .em-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--em-accent);
    border-radius: 12px;
    color: #141414;
    background: var(--em-accent);
    font-size: 0.98rem;
    font-weight: 750;
    text-align: center;
    line-height: 1.3;
    transition: background-color 160ms ease, transform 160ms ease;
}

.em-site .em-button:hover {
    background: #ff9246;
    color: #141414;
    transform: translateY(-2px);
}

.em-site .em-button-outline {
    background: transparent;
    color: var(--em-ink);
    border-color: var(--em-line);
}

.em-site .em-button-outline:hover {
    background: var(--em-surface);
    color: var(--em-ink);
}

.em-site .em-hero {
    position: relative;
    isolation: isolate;
    min-height: min(760px, 100svh);
    padding-block: clamp(96px, 8vw, 115px) 32px;
    overflow: hidden;
    background: #111417;
}

.em-site .em-hero::before,
.em-site .em-hero::after {
    content: none;
}

.em-site .em-hero-grid {
    position: relative;
    isolation: isolate;
}

.em-site .em-hero-grid::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -100px;
    right: 0;
    bottom: -40px;
    width: 82%;
    pointer-events: none;
    background-image: linear-gradient(
            90deg,
            #111417 0%,
            rgb(17 20 23 / 90%) 18%,
            rgb(17 20 23 / 52%) 38%,
            transparent 68%
    ),
    var(--em-hero-image);
    background-repeat: no-repeat;
    background-size: 100% 100%, auto 100%;
    background-position: center, right center;
    -webkit-mask-image: radial-gradient(
            ellipse 68% 73% at 95% 50%,
            #000 0%,
            #000 38%,
            rgb(0 0 0 / 90%) 52%,
            rgb(0 0 0 / 35%) 75%,
            transparent 100%
    );
    mask-image: radial-gradient(
            ellipse 63% 68% at 95% 50%,
            #000 0%,
            #000 38%,
            rgb(0 0 0 / 90%) 52%,
            rgb(0 0 0 / 35%) 75%,
            transparent 100%
    );
}

.em-site .em-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(50px, 10vw, 110px);
    min-height: 560px;
}

.em-site .em-hero-copy {
    width: min(100%, 680px);
    min-width: 0;
}

.em-site .em-hero h1 {
    max-width: 680px;
    margin-block: 16px 22px;
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    overflow-wrap: anywhere;
}

.em-site .em-hero h1 span {
    display: block;
    color: var(--em-accent);
}

.em-site .em-hero-lead {
    max-width: 550px;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.5;
    color: var(--em-muted);
}

.em-site .em-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.em-site .em-hero-facts {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 40px;
    row-gap: 12px;
    margin-top: 40px;
    color: var(--em-muted);
}

.em-site .em-hero-location {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    color: var(--em-ink);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.em-site .em-hero-location-text {
  display: flex;
  flex-direction: column;
}

.em-site .em-hero-location .em-location-accent {
  color: var(--em-accent);
}

.em-site .em-hero-location svg {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: var(--em-accent);
}

.em-site .em-section {
    padding-block: clamp(54px, 6vw, 95px);
}

.em-site .em-section:nth-of-type(odd) {
    background: #161a1d;
}

.em-site .em-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.em-site .em-section-heading h2 {
    margin-block: 9px;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    font-weight: 850;
    line-height: 1.12;
}

.em-site .em-section-heading p:last-child {
    color: var(--em-muted);
}

.em-site .em-text-link {
    color: var(--em-accent);
    font-weight: 700;
    white-space: nowrap;
}

.em-site .em-bike-track,
.em-site .em-gallery {
    display: flex;
    gap: 16px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--em-line) transparent;
    padding-bottom: 14px;
}

.em-site .em-bike-card {
    display: flex;
    flex: 0 0 calc((100% - 32px) / 3);
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--em-line);
    border-radius: 18px;
    background: var(--em-card);
    scroll-snap-align: start;
}

.em-site .em-bike-photo {
    background: var(--em-surface);
}

.em-site .em-bike-photo a {
    display: block;
    cursor: zoom-in;
}

.em-site .em-bike-photo a:focus-visible {
    outline: 3px solid var(--em-accent);
    outline-offset: -3px;
}

.em-site .em-bike-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.em-site .em-bike-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 15px;
    min-width: 0;
    padding: 20px;
}

.em-site .em-bike-body :is(h2, h3) {
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.em-site .em-bike-description {
    display: -webkit-box;
    overflow: hidden;
    color: var(--em-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.em-site .em-bike-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.em-site .em-bike-specs span {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--em-surface);
    color: var(--em-muted);
    font-size: 0.8rem;
}

.em-site .em-bike-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 17px;
    border-top: 1px solid var(--em-line);
}

.em-site .em-bike-bottom strong {
    color: var(--em-accent);
    font-size: 1.35rem;
}

.em-site .em-bike-bottom small {
    font-size: 0.8rem;
    color: var(--em-ink);
}

.em-site .em-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.em-site .em-carousel-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--em-line);
    border-radius: 50%;
    background: var(--em-card);
    color: var(--em-ink);
    font-size: 1.25rem;
    cursor: pointer;
}

.em-site .em-carousel-controls button:hover {
    border-color: var(--em-accent);
}

.em-site .em-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-rows: 380px auto;
    align-items: stretch;
    gap: 16px;
}

.em-site .em-video {
    min-width: 0;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 18px;
    background: var(--em-surface);
}

.em-site .em-video-poster {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: transparent;
}

.em-site .em-video-poster img,
.em-site .em-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.em-site .em-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    color: var(--em-ink);
    background: rgb(17 20 23 / 75%);
    font-size: 1.6rem;
}

.em-site .em-gallery-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.em-site .em-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 0;
}

.em-site .em-gallery a {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    scroll-snap-align: start;
}

.em-site .em-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.em-site .em-media-grid > .em-carousel-controls {
    grid-column: 1 / -1;
    margin-top: 0;
}

.em-site .em-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 32px;
    padding: 25px;
    border: 1px solid var(--em-line);
    border-radius: 18px;
    background: var(--em-card);
}

.em-site .em-banner h3,
.em-site .em-gift-card h3,
.em-site .em-contact-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 800;
}

.em-site .em-banner p,
.em-site .em-gift-card p,
.em-site .em-contact-card p {
    color: var(--em-muted);
    line-height: 1.55;
}

.em-site .em-gift-grid,
.em-site .em-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.em-site .em-gift-card,
.em-site .em-contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--em-line);
    border-radius: 18px;
    background: var(--em-card);
}

.em-site .em-gift-card .em-button {
    margin-top: auto;
}

.em-site .em-gift-emoji {
    font-size: 2.6rem;
}

.em-site .em-contact-card a:not(.em-button) {
    color: var(--em-ink);
    overflow-wrap: anywhere;
}

.em-site .em-contact-card a:hover {
    color: var(--em-accent);
}

.em-site .em-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.em-site .em-embedded-map,
.em-site .em-contact-reviews {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.em-site .em-embedded-map iframe {
    max-width: 100%;
    border: 0;
}

@media (max-width: 1023px) {
    .em-site .em-bike-card {
        flex-basis: calc((100% - 16px) / 2);
    }

    .em-site .em-media-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .em-site .em-video {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .em-site .em-gallery-wrap {
        width: min(100%, 640px);
        height: auto;
    }

    .em-site .em-gallery {
        height: auto;
        aspect-ratio: 5 / 4;
    }

}

@media (max-width: 767px) {
    .em-site .em-container {
        width: min(100% - 32px, 520px);
    }

    .em-site .em-gift-grid,
    .em-site .em-contact-grid {
        grid-template-columns: 1fr;
    }

    .em-site .em-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.9rem);
    }

    .em-site .em-section-heading {
        align-items: start;
        flex-direction: column;
    }

    .em-site .em-bike-card {
        flex-basis: min(86%, 350px);
    }

    .em-site .em-bike-bottom .em-button {
        flex: 1 0 100%;
    }


    .em-site .em-banner .em-button {
        width: 100%;
    }
}

@media (max-width: 359px) {
    .em-site .em-container {
        width: calc(100% - 24px);
    }

    .em-site .em-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

    .em-site .em-actions .em-button {
        width: 100%;
    }

    .em-site .em-bike-card {
        flex-basis: min(90%, 300px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .em-site .em-button {
        transition: none;
    }

    .em-site .em-bike-track,
    .em-site .em-gallery {
        scroll-behavior: auto;
    }
}

/* Contacts, reviews and promotions • Enduro Modern */
.em-site .em-contact-card {
    min-width: 0;
}

.em-site .em-socials {
    align-items: center;
    gap: 12px;
}

.em-site .em-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--em-line);
    border-radius: 12px;
    background: var(--em-surface);
    color: var(--em-ink);
    transition: border-color 160ms ease, color 160ms ease;
}

.em-site .em-socials a:hover,
.em-site .em-socials a:focus-visible {
    color: var(--em-accent);
    border-color: var(--em-accent);
}

.em-site .em-socials svg {
    width: 26px;
    height: 26px;
}

.em-site .em-socials svg path,
.em-site .em-socials svg rect,
.em-site .em-socials svg circle {
    fill: currentColor;
}

.em-site .em-contact-reviews {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.em-site .em-contact-reviews .em-reviews-frame {
    position: relative;
    width: 100%;
    height: 480px;
    min-height: 480px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.em-site .em-reviews-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

.em-site .em-contact-reviews .em-reviews-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--em-accent);
    font-size: 0.9rem;
}

.em-site .em-guide-hint {
    margin-top: 12px;
}

.em-site .em-gift-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 1px solid color-mix(in srgb, var(--em-accent) 45%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--em-accent) 12%, transparent);
    color: var(--em-accent);
}

.em-site .em-gift-icon svg {
    width: 42px;
    height: 42px;
}

@media (max-width: 767px) {
    .em-site .em-contact-reviews .em-reviews-frame {
        height: 440px;
        min-height: 440px;
    }
}


/* Contact layout: metadata above, aligned embeds below. */
.em-site .em-contact-grid {
    grid-template-areas:
    "location contact"
    "map reviews";
    grid-template-rows: auto auto;
    align-items: stretch;
}

.em-site .em-contact-info--location {
    grid-area: location;
}

.em-site .em-contact-info--contact {
    grid-area: contact;
}

.em-site .em-contact-widget--map {
    grid-area: map;
}

.em-site .em-contact-widget--reviews {
    grid-area: reviews;
}

.em-site .em-contact-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.em-site .em-contact-widget .em-embedded-map,
.em-site .em-contact-widget .em-reviews-frame {
    width: 100%;
    height: 480px;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
}

.em-site .em-contact-widget .em-embedded-map iframe,
.em-site .em-contact-widget .em-reviews-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
    border-radius: inherit;
}

.em-site .em-contact-widget .em-reviews-link {
    margin-top: 0;
}

@media (max-width: 767px) {
    .em-site .em-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
      "location"
      "map"
      "contact"
      "reviews";
    }

    .em-site .em-contact-widget .em-embedded-map,
    .em-site .em-contact-widget .em-reviews-frame {
        height: 400px;
    }
}

/* Location icon and address */
.em-site .em-location-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.em-site .em-location-icon {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--em-line);
    border-radius: 12px;
    background: var(--em-surface);
    color: var(--em-ink);
}

.em-site .em-location-icon svg {
    width: 26px;
    height: 26px;
}

.em-site .em-location-address p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
    .em-site .em-hero-grid::before {
        width: 100%;
        top: -40px;
        bottom: -20px;
        background-size: 100% 100%, auto 100%;
    }
}

@media (max-width: 767px) {
    .em-site .em-hero {
        min-height: auto;
        padding-block: 84px 28px;
        background: #111417;
    }

    /* Mobile: full-bleed, subdued image behind the Hero content. */
    .em-site .em-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image: radial-gradient(
                ellipse 82% 65% at 50% 45%,
                rgb(17 20 23 / 52%) 0%,
                rgb(17 20 23 / 72%) 45%,
                rgb(17 20 23 / 92%) 78%,
                #111417 100%
        ),
        linear-gradient(rgb(17 20 23 / 55%), rgb(17 20 23 / 55%)),
        url('../images/landing/hero-mobile.webp');
        background-size: 100% 100%, 100% 100%, cover;
        background-position: center, center, center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    .em-site .em-hero-grid {
        position: relative;
        z-index: 1;
        min-height: 600px;
        gap: 55px;
    }

    /* On mobile, hide the desktop image and its scrolling offset. */
    .em-site .em-hero-grid::before,
    .em-site .em-hero-grid::after {
        content: none;
    }

    .em-site .em-hero-location {
        font-size: 1rem;
    }
}

@media (max-width: 461px) {
  .em-site .em-hero-facts {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
}

/* Motopark */
.em-motopark {
    flex: 1 0 auto;
    padding-block: clamp(100px, 9vw, 132px) clamp(40px, 6vw, 80px);
}

.em-motopark .em-motopark-header {
    margin-bottom: clamp(24px, 4vw, 42px);
}

.em-motopark .em-motopark-header h1 {
    margin-bottom: 12px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
}

.em-motopark .em-motopark-header p,
.em-site .em-motopark-empty {
    color: var(--em-muted);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.em-motopark .em-motopark-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.em-motopark .em-bike-photo {
    aspect-ratio: 3 / 2;
}

.em-motopark .em-bike-description {
    display: block;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.em-motopark .em-bike-bottom .em-button {
    color: var(--em-bg) !important;
}

.em-motopark .em-bike-bottom .em-button:focus-visible {
    outline: 2px solid var(--em-ink);
    outline-offset: 3px;
}

@media (max-width: 1023px) {
    .em-motopark .em-motopark-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .em-motopark {
        padding-top: 88px;
    }

    .em-motopark .em-motopark-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
