/**
 * Section 3 — Hero Slider
 *
 * Full-bleed lifestyle photo with dark gradient overlay.
 * Copy bottom-aligned on both desktop and mobile (RK-matching layout).
 * Inter font, B&W with red accent (--tnk-red).
 */

.tnk-s3 {
    position: relative;
    background: var(--tnk-black, #0e0e10);
    color: var(--tnk-white, #fff);
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tnk-s3__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 480px;
    max-height: 680px;
}

.tnk-s3__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.tnk-s3__slide.is-on {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s linear 0s;
    z-index: 1;
}

/* Dark gradient overlay so text is always readable */
.tnk-s3__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.40) 45%,
        rgba(0,0,0,0.78) 85%,
        rgba(0,0,0,0.92) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Per-slide placeholder gradients (until admin uploads real images).
 * These only show when no `image_url` is provided in PHP. */
.tnk-s3__slide--1 { background-image: linear-gradient(135deg, #0055A4 0%, #1a1a3a 100%); }
.tnk-s3__slide--2 { background-image: linear-gradient(135deg, #1b1b1d 0%, #3a3a3a 100%); }
.tnk-s3__slide--3 { background-image: linear-gradient(135deg, #c1272d 0%, #1a1a1a 100%); }

/* Copy block — bottom-left on desktop */
.tnk-s3__body {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 64px 64px;
}

.tnk-s3__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    margin-bottom: 18px;
}

.tnk-s3__h {
    font-size: 44px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 14px;
    text-transform: capitalize;
}

.tnk-s3__sub {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255,255,255,0.82);
    margin: 0 0 24px;
    max-width: 460px;
}

.tnk-s3__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--tnk-red, #E31E24);
    color: #fff;
    padding: 14px 26px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background-color 0.2s ease, gap 0.2s ease, transform 0.15s ease;
}

.tnk-s3__cta:hover {
    background: #b8161b;
    gap: 14px;
}

.tnk-s3__cta:active {
    transform: scale(0.98);
}

/* Controls — arrows + dots row */
.tnk-s3__controls {
    position: absolute;
    bottom: 28px;
    right: 64px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
}

.tnk-s3__arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tnk-s3__arrow:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

.tnk-s3__arrow svg {
    width: 18px;
    height: 18px;
}

.tnk-s3__dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tnk-s3__dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.tnk-s3__dot.is-on {
    background: #fff;
    width: 36px;
}

/* Counter (e.g. "01 / 03") */
.tnk-s3__counter {
    position: absolute;
    top: 28px;
    right: 64px;
    z-index: 3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
 * MOBILE — match RK's hero layout
 * Tall portrait card, copy bottom, full-width CTA, dots centered
 * ============================================================ */

@media (max-width: 768px) {
    .tnk-s3__viewport {
        aspect-ratio: 4 / 5;
        min-height: 0;
        max-height: none;
    }

    .tnk-s3__body {
        max-width: 100%;
        padding: 0 20px 56px;
    }

    .tnk-s3__eyebrow {
        font-size: 10px;
        letter-spacing: 0.16em;
        padding: 5px 11px;
        margin-bottom: 14px;
    }

    .tnk-s3__h {
        font-size: 30px;
        line-height: 1.08;
        margin-bottom: 12px;
    }

    .tnk-s3__sub {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .tnk-s3__cta {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 14px 16px;
        font-size: 12px;
    }

    /* Controls — center the row; show minimal-style arrows alongside dots */
    .tnk-s3__controls {
        right: 50%;
        bottom: 16px;
        transform: translateX(50%);
        gap: 10px;
    }

    .tnk-s3__arrow {
        width: 32px;
        height: 32px;
        background: transparent;
        border: 0;
        color: rgba(255,255,255,0.85);
        padding: 0;
    }

    .tnk-s3__arrow:hover {
        background: transparent;
        border: 0;
        color: #fff;
    }

    .tnk-s3__arrow svg {
        width: 16px;
        height: 16px;
        stroke-width: 1.75;
    }

    .tnk-s3__dot {
        width: 22px;
        height: 3px;
    }

    .tnk-s3__dot.is-on {
        width: 30px;
    }

    /* Counter — bottom-left on mobile */
    .tnk-s3__counter {
        top: auto;
        bottom: 18px;
        right: auto;
        left: 20px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .tnk-s3__h { font-size: 26px; }
    .tnk-s3__sub { font-size: 12.5px; }
    .tnk-s3__body { padding: 0 18px 48px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tnk-s3__slide,
    .tnk-s3__cta,
    .tnk-s3__arrow,
    .tnk-s3__dot {
        transition: none !important;
    }
}
