/* ==========================================================
   Aradel Operations Assets Module
   Scoped to: .ar-ops-section
   Version: 1.0.0
   ========================================================== */

/* ── Section wrapper & padding tokens ────────────────────── */

.ar-ops-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.ar-ops-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 112px;
    padding-right: 112px;
}

/* ── Tab navigation ───────────────────────────────────────── */

.ar-ops-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(max-content, 1fr);
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
    padding: 4px;
    border: none;
    border-radius: 20px;
    background: #F0F3F4;
    overflow: hidden;
}

.ar-ops-tab {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    color: #01303A;
    background: none;
    border: none;
    border-radius: 16px;
    padding: 0 20px;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
    white-space: nowrap;
}

.ar-ops-tabs.is-measuring {
    position: absolute;
    left: 0;
    top: 0;
    width: max-content;
    min-width: max-content;
    visibility: hidden;
    pointer-events: none;
    overflow: visible;
    display: flex;
    z-index: -1;
}

.ar-ops-tabs.is-measuring .ar-ops-tab,
.ar-ops-tabs.is-scrollable .ar-ops-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    overflow-wrap: normal;
}

.ar-ops-tab--active,
.ar-ops-tab[aria-selected="true"] {
    background: linear-gradient(135deg, #C1000F 0%, #01303A 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(193, 0, 15, 0.30);
}

.ar-ops-tab:hover:not(.ar-ops-tab--active) {
    background: rgba(1, 48, 58, 0.08);
    color: #01303A;
}

.ar-ops-tab:focus-visible {
    outline: 2px solid #C1000F;
    outline-offset: 2px;
}

.ar-ops-tabs.is-scrollable {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
}

.ar-ops-tabs.is-scrollable::-webkit-scrollbar {
    display: none;
}

.ar-ops-tabs.is-scrollable .ar-ops-tab {
    white-space: nowrap;
    scroll-snap-align: start;
}

/* ── Panel visibility & fade-in ──────────────────────────── */

.ar-ops-panel {
    /* Panels with [hidden] attribute are hidden by browser default.
       When JS removes [hidden], we animate the panel in. */
}

.ar-ops-panel[hidden] {
    display: none !important;
}

.ar-ops-panel--active {
    animation: ar-ops-fadeIn 300ms ease forwards;
}

@keyframes ar-ops-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Two-column layout ───────────────────────────────────── */

.ar-ops-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 74px;
    align-items: start;
}

/* ── Left column ─────────────────────────────────────────── */

.ar-ops-col--left {
    /* No extra padding — outer .ar-ops-inner carries site tokens */
}

.ar-ops-title {
    font-family: "Nunito Sans", sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: 0.014px;
    color: #000;
    margin: 0 0 32px;
}

.ar-ops-description {
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: #000;
    text-align: justify;
}

.ar-ops-description p {
    margin: 0 0 16px;
}

.ar-ops-description p:last-child {
    margin-bottom: 0;
}

/* ── Right column ────────────────────────────────────────── */

.ar-ops-col--right {
    /* No extra padding */
}

/* ── Media / carousel wrapper ────────────────────────────── */

.ar-ops-media {
    position: relative;
    border-radius: 20px;
    /* overflow removed — dots sit below the slides and must not be clipped */
    margin-bottom: 0;
}

/* ── Slides ──────────────────────────────────────────────── */

.ar-ops-slides {
    position: relative;
    width: 100%;
    /* Aspect ratio matches the UI screenshots */
    aspect-ratio: 590 / 420;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f0;
}

.ar-ops-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}

.ar-ops-slide--active {
    opacity: 1;
    pointer-events: auto;
}

.ar-ops-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Static single image — no carousel chrome */
.ar-ops-media:not(.ar-ops-media--carousel) .ar-ops-slides {
    /* No controls rendered so no extra space needed */
}

/* ── Carousel controls ───────────────────────────────────── */

.ar-ops-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
    z-index: 2;
}

.ar-ops-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(193, 0, 15, 0.45);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background 200ms ease, transform 150ms ease;
    flex-shrink: 0;
}

.ar-ops-carousel-btn:hover {
    background: rgba(193, 0, 15, 0.7);
}

.ar-ops-carousel-btn:active {
    transform: scale(0.95);
}

.ar-ops-carousel-btn:focus-visible {
    outline: 2px solid #C1000F;
    outline-offset: 3px;
}

/* ── Carousel dots ───────────────────────────────────────── */

.ar-ops-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.ar-ops-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D9D9D9;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 200ms ease, transform 150ms ease;
}

.ar-ops-dot--active {
    background: #C1000F;
    transform: scale(1.25);
}

.ar-ops-dot:focus-visible {
    outline: 2px solid #C1000F;
    outline-offset: 3px;
}

/* ── Facts list ──────────────────────────────────────────── */

.ar-ops-facts {
    margin: 58px 0 0;
    padding: 0;
}

.ar-ops-fact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #A1A0A0;
}

.ar-ops-fact:first-child {
    border-top: 1px solid #A1A0A0;
}

.ar-ops-fact__label {
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0.006px;
    color: #C1000F;
    flex: 0 0 auto;
    max-width: 50%;
}

.ar-ops-fact__value {
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.001px;
    color: #5E5E5E;
    text-align: right;
    margin: 0;
    /* Ensures long values wrap rather than overflow */
    flex: 1 1 auto;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ==========================================================
   Tablet — ≤ 1024px
   ========================================================== */

@media (max-width: 1024px) {
    .ar-ops-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .ar-ops-inner {
        padding-left: 64px;
        padding-right: 64px;
    }

    .ar-ops-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* On tablet: left col first, then right col (image + facts) */
    .ar-ops-col--left {
        order: 1;
    }

    .ar-ops-col--right {
        order: 2;
    }

    .ar-ops-title {
        font-size: 38px;
        line-height: 48px;
    }

    .ar-ops-fact__label {
        font-size: 18px;
        line-height: 28px;
        max-width: 55%;
    }

    .ar-ops-fact__value {
        font-size: 18px;
        line-height: 28px;
    }

    .ar-ops-tabs {
        margin-bottom: 36px;
    }

    .ar-ops-tab {
        padding: 0 16px;
        font-size: 13px;
    }

    .ar-ops-tabs.is-scrollable .ar-ops-tab {
        white-space: nowrap;
        scroll-snap-align: start;
    }
}

/* ==========================================================
   Mobile — ≤ 640px
   ========================================================== */

@media (max-width: 640px) {
    .ar-ops-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .ar-ops-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .ar-ops-layout {
        gap: 36px;
    }

    .ar-ops-tabs {
        display: flex;
        margin-bottom: 28px;
    }

    .ar-ops-tab {
        min-height: 44px;
        padding: 0 16px;
        font-size: 12px;
    }

    .ar-ops-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 20px;
    }

    .ar-ops-description {
        font-size: 16px;
        line-height: 24px;
    }

    .ar-ops-facts {
        margin-top: 36px;
    }

    .ar-ops-fact__label {
        font-size: 16px;
        line-height: 24px;
        max-width: 48%;
    }

    .ar-ops-fact__value {
        font-size: 16px;
        line-height: 24px;
    }

    .ar-ops-carousel-btn {
        width: 36px;
        height: 36px;
    }
}
