
/* =========================================
   STYLOWA FURA
   STUDIO & MOTOGO PARTNERSHIP
========================================= */

/* =========================================
   STUDIO – LAYOUT
========================================= */

.studio-section .studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.studio-section .studio-grid.has-comparison {
    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(0, 1.2fr);
}

.studio-grid:not(.has-comparison) .studio-copy {
    max-width: 760px;
}

.studio-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

/* =========================================
   ADBL – EXISTING STUDIO BRAND
========================================= */

.studio-partners {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
}

.studio-partners img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* =========================================
   STUDIO – BEFORE & AFTER
========================================= */

.studio-comparison[hidden] {
    display: none !important;
}

.studio-comparison {
    min-width: 0;
    margin: 0;
}

.comparison-heading {
    margin-bottom: 20px;
}

.comparison-kicker {
    display: block;
    margin-bottom: 8px;

    color: var(--gold, #e7c765);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.comparison-heading h3 {
    margin: 0;

    color: var(--white, #ffffff);

    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 700;
}

.comparison-viewport {
    --comparison-position: 50%;

    position: relative;
    isolation: isolate;

    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    border: 1px solid
        var(--line-gold, rgba(231, 199, 101, 0.25));

    border-radius: 8px;

    background: #080c12;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);

    user-select: none;
    -webkit-user-select: none;
}

.comparison-image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
    -webkit-user-drag: none;
}

.comparison-image-before {
    z-index: 1;
}

.comparison-image-after {
    z-index: 2;

    clip-path: inset(
        0
        0
        0
        var(--comparison-position)
    );
}

/* =========================================
   COMPARISON – LABELS
========================================= */

.comparison-label {
    position: absolute;
    top: 16px;
    z-index: 4;

    padding: 8px 13px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;

    background: rgba(7, 11, 18, 0.85);

    color: #ffffff;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    backdrop-filter: blur(8px);

    pointer-events: none;
}

.comparison-label-before {
    left: 16px;
}

.comparison-label-after {
    right: 16px;

    color: var(--gold, #e7c765);

    border-color:
        var(--line-gold, rgba(231, 199, 101, 0.25));
}

/* =========================================
   COMPARISON – DIVIDER
========================================= */

.comparison-divider {
    position: absolute;

    top: 0;
    bottom: 0;
    left: var(--comparison-position);

    z-index: 5;

    width: 2px;

    background: var(--gold, #e7c765);

    transform: translateX(-50%);

    box-shadow:
        0 0 12px rgba(231, 199, 101, 0.35);

    pointer-events: none;
}

.comparison-handle {
    position: absolute;

    top: 50%;
    left: 50%;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    background: var(--gold, #e7c765);
    color: #0b111a;

    transform: translate(-50%, -50%);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4);
}

/* =========================================
   COMPARISON – RANGE INPUT
========================================= */

.comparison-range {
    position: absolute;
    inset: 0;

    z-index: 10;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    opacity: 0;

    appearance: none;
    -webkit-appearance: none;

    cursor: ew-resize;
    touch-action: pan-y;
}

.comparison-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 1px;
    height: 48px;
}

.comparison-range::-moz-range-thumb {
    width: 1px;
    height: 48px;
    border: 0;
}

.comparison-viewport:focus-within {
    outline: 2px solid var(--gold, #e7c765);
    outline-offset: 4px;
}

.comparison-caption {
    margin-top: 14px;

    color: var(--muted, #a5aebb);

    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
}

/* =========================================
   MOTOGO – OFFICIAL PARTNERSHIP
========================================= */

.partners-section {
    position: relative;

    border-top: 1px solid
        var(--line, rgba(255, 255, 255, 0.08));

    background:
        radial-gradient(
            ellipse at 0% 50%,
            rgba(231, 199, 101, 0.045),
            transparent 55%
        );
}

.partners-heading {
    margin-bottom: clamp(26px, 4vw, 40px);
}

.partners-heading h2 {
    max-width: 760px;
    margin-bottom: 0;

    color: var(--white, #ffffff);
}

/* =========================================
   MOTOGO – MAIN PANEL
========================================= */

.partner-feature {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);

    overflow: hidden;

    border: 1px solid
        var(--line-gold, rgba(231, 199, 101, 0.25));

    border-radius: 8px;

    background:
        linear-gradient(
            120deg,
            #111923,
            #0b111a
        );
}

/* =========================================
   MOTOGO – BRAND
========================================= */

.partner-brand-panel {
    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 24px;

    min-height: 270px;

    padding: clamp(28px, 5vw, 56px);

    border-right: 1px solid
        var(--line-gold, rgba(231, 199, 101, 0.25));

    background:
        radial-gradient(
            ellipse at center,
            rgba(231, 199, 101, 0.065),
            transparent 75%
        ),
        rgba(255, 255, 255, 0.015);

    text-align: center;
}

.partner-label {
    color: var(--gold, #e7c765);

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.6;
    text-transform: uppercase;
}

.partner-brand {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 280px;

    text-decoration: none;
}

.partner-brand:focus-visible {
    outline: 2px solid var(--gold, #e7c765);
    outline-offset: 8px;
}

.partner-wordmark {
    color: var(--white, #ffffff);

    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 800;

    letter-spacing: 0.08em;
    line-height: 1.2;

    transition: color 200ms ease;
}

.partner-brand:hover .partner-wordmark {
    color: var(--gold, #e7c765);
}

.partner-logo {
    display: block;

    width: 100%;
    max-width: 250px;
    max-height: 110px;
    height: auto;

    object-fit: contain;

    transition: transform 200ms ease;
}

.partner-brand:hover .partner-logo {
    transform: scale(1.035);
}

.partner-brand-description {
    color: var(--muted, #a5aebb);

    font-size: 0.78rem;
    line-height: 1.6;
}

/* =========================================
   MOTOGO – INFORMATION
========================================= */

.partner-content {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    padding: clamp(28px, 5vw, 58px);
}

.partner-content h3 {
    margin: 0 0 18px;

    color: var(--white, #ffffff);

    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.3;
}

.partner-description {
    max-width: 560px;

    margin: 0 0 26px;

    color: var(--muted, #a5aebb);

    font-size: 0.95rem;
    line-height: 1.8;
}

.partner-content .text-link {
    align-self: flex-start;
}

/* =========================================
   RESPONSIVE – TABLETS
========================================= */

@media (max-width: 900px) {

    .studio-section .studio-grid.has-comparison {
        grid-template-columns: minmax(0, 1fr);
    }

    .studio-comparison {
        width: 100%;
        max-width: 760px;
    }

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

    .partner-brand-panel {
        min-height: 220px;

        border-right: 0;

        border-bottom: 1px solid
            var(--line-gold, rgba(231, 199, 101, 0.25));
    }

}

/* =========================================
   RESPONSIVE – MOBILE
========================================= */

@media (max-width: 600px) {

    .studio-actions {
        gap: 18px;
    }

    .studio-partners {
        margin-top: 26px;
    }

    .studio-partners img {
        width: 90px;
    }

    .comparison-viewport {
        aspect-ratio: 4 / 3;
    }

    .comparison-label {
        top: 10px;

        padding: 6px 10px;

        font-size: 0.65rem;
    }

    .comparison-label-before {
        left: 10px;
    }

    .comparison-label-after {
        right: 10px;
    }

    .comparison-handle {
        width: 42px;
        height: 42px;
    }

    .comparison-handle svg {
        width: 24px;
        height: 24px;
    }

    .partner-brand-panel {
        min-height: 200px;

        gap: 18px;

        padding: 28px 20px;
    }

    .partner-content {
        padding: 28px 22px;
    }

    .partner-logo {
        max-width: 200px;
        max-height: 90px;
    }

}

/* =========================================
   ACCESSIBILITY – REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .partner-wordmark,
    .partner-logo,
    .comparison-handle {
        transition: none;
    }

    .partner-brand:hover .partner-logo {
        transform: none;
    }

}

/* =========================================
   STUDIO – PREMIUM DARK MAP
========================================= */

.studio-section .studio-grid.has-map {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap: clamp(32px, 5vw, 80px);
}

.studio-map {
    width: 100%;
    max-width: 540px;
    min-width: 0;

    justify-self: center;
}

.studio-map-frame {
    position: relative;

    width: 100%;
    padding: 5px;

    isolation: isolate;

    border: 1px solid rgba(231, 199, 101, 0.45);
    border-radius: 9px;

    background: linear-gradient(
        145deg,
        rgba(231, 199, 101, 0.10),
        #101722 45%,
        #0b1018
    );

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);

    transition:
        border-color 300ms ease,
        box-shadow 300ms ease;
}

.studio-map-frame:hover {
    border-color: rgba(231, 199, 101, 0.85);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(231, 199, 101, 0.08);
}

#studio-location-map {
    position: relative;

    width: 100%;
    height: clamp(260px, 26vw, 350px);

    overflow: hidden;

    border-radius: 5px;

    background: #101722;
}

/* =========================================
   MAP GRADIENT
========================================= */

.studio-map-frame::after {
    position: absolute;

    inset: 5px;
    z-index: 450;

    border-radius: 5px;

    background: linear-gradient(
        135deg,
        rgba(12, 17, 25, 0.30),
        transparent 40%,
        transparent 65%,
        rgba(12, 17, 25, 0.35)
    );

    pointer-events: none;

    content: "";
}

/* =========================================
   MAP TILES – DARK NAVY STYLE
========================================= */

#studio-location-map .leaflet-tile-pane {
    filter:
        invert(100%)
        hue-rotate(180deg)
        grayscale(85%)
        brightness(0.85)
        contrast(0.90)
        sepia(15%)
        hue-rotate(175deg)
        saturate(130%);
}

/* =========================================
   GOLD LOCATION PIN
========================================= */

.studio-gold-marker {
    background: transparent;
    border: 0;
}

.studio-gold-marker svg {
    display: block;

    width: 42px;
    height: 54px;

    filter: drop-shadow(
        0 0 10px rgba(231, 199, 101, 0.35)
    );
}

/* =========================================
   MAP POPUP
========================================= */

#studio-location-map .leaflet-popup-content-wrapper,
#studio-location-map .leaflet-popup-tip {
    background: #111923;
    color: #f5f6f8;
}

#studio-location-map .leaflet-popup-content-wrapper {
    border: 1px solid rgba(231, 199, 101, 0.4);
    border-radius: 7px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.studio-map-popup {
    min-width: 160px;

    padding: 4px 0;

    font-family: inherit;
    line-height: 1.6;
}

.studio-map-popup strong {
    display: block;

    margin-bottom: 5px;

    color: #e7c765;
    font-size: 13px;
}

.studio-map-popup span {
    display: block;

    color: #b6bfcc;
    font-size: 12px;
}

.studio-map-popup a {
    display: inline-block;

    margin-top: 10px;

    color: #e7c765;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

/* =========================================
   ZOOM CONTROLS
========================================= */

#studio-location-map .leaflet-control-zoom {
    border: 1px solid rgba(231, 199, 101, 0.35);
    border-radius: 5px;

    overflow: hidden;

    box-shadow: none;
}

#studio-location-map .leaflet-control-zoom a {
    background: #111923;
    color: #e7c765;

    border-color: rgba(231, 199, 101, 0.15);
}

#studio-location-map .leaflet-control-zoom a:hover {
    background: #252a30;
    color: #ffe4a0;
}

/* =========================================
   ATTRIBUTION
========================================= */

#studio-location-map .leaflet-control-attribution {
    background: rgba(12, 17, 25, 0.85);

    color: #b6bfcc;
    font-size: 10px;
}

#studio-location-map .leaflet-control-attribution a {
    color: #d6bd7b;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .studio-section .studio-grid.has-map {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .studio-map {
        max-width: 600px;
    }

    #studio-location-map {
        height: 320px;
    }

}

@media (max-width: 600px) {

    .studio-map {
        max-width: 100%;
    }

    #studio-location-map {
        height: 260px;
    }

    .studio-map-frame {
        padding: 4px;
    }

    .studio-map-frame::after {
        inset: 4px;
    }

}

#studio-location-map .studio-map-popup a {
    color: #e7c765;
    font-weight: 700;
    text-decoration: none;
    transition: color 200ms ease;
}

#studio-location-map .studio-map-popup a:hover {
    color: #ffe7a0;
}