/* ============================================
   WORLD RECORD EVENT 2026 — CAROUSEL STYLES
   File: style.css
   Theme: Light / Bold Editorial
============================================ */

/* ----- CSS VARIABLES ----- */
:root {
    --wr-white: #ffffff;
    --wr-light: #f5f3ee;
    --wr-gold: #c9a84c;
    --wr-gold-dark: #a07830;
    --wr-charcoal: #1a1a1a;
    --wr-gray: #6b6b6b;
    --wr-overlay-from: rgba(10, 10, 10, 0.62);
    --wr-overlay-to: rgba(10, 10, 10, 0.10);

    --wr-font-display: 'Bebas Neue', 'Noto Sans Tamil', sans-serif;
    --wr-font-heading: 'Barlow Condensed', 'Noto Sans Tamil', sans-serif;
    --wr-font-body: 'Barlow', 'Noto Sans Tamil', sans-serif;

    --wr-slide-h-desktop: 92vh;
    --wr-slide-h-mobile: 85vh;
    --wr-transition: 0.65s cubic-bezier(0.77, 0, 0.175, 1);
    --wr-radius: 6px;
}

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: var(--wr-font-body);
    background: var(--wr-light);
    overflow-x: hidden;
}

/* ============================================
   SECTION WRAPPER
============================================ */
.wr-carousel-section {
    position: relative;
    width: 100%;
    height: var(--wr-slide-h-desktop);
    overflow: hidden;
    background: var(--wr-charcoal);
    border-bottom: 4px solid var(--wr-gold);
}

/* ============================================
   SLIDES TRACK
============================================ */
.wr-slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform var(--wr-transition);
    will-change: transform;
}

/* ============================================
   INDIVIDUAL SLIDE
============================================ */
.wr-slide {
    position: relative;
    min-width: 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

/* Background image */
.wr-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 1.2s ease;
}

.wr-slide.wr-slide--active .wr-slide-bg {
    transform: scale(1);
}

/* Dark overlay (gradient from left) */
.wr-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            var(--wr-overlay-from) 0%,
            var(--wr-overlay-from) 45%,
            var(--wr-overlay-to) 100%);
    z-index: 1;
}

/* ============================================
   SLIDE CONTENT (absolute text block)
============================================ */
.wr-slide-content {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 7vw, 120px);
    top: 50%;
    transform: translateY(-50%);
    max-width: 580px;
    opacity: 0;
    transform: translateY(-40%) translateX(-30px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.wr-slide.wr-slide--active .wr-slide-content {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Badge */
.wr-badge {
    display: inline-block;
    font-family: var(--wr-font-heading);
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--wr-gold);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.40);
    padding: 6px 16px;
    border-radius: 2px;
    margin-bottom: 20px;
}

/* Main Headline */
.wr-headline {
    font-family: var(--wr-font-display);
    font-size: clamp(52px, 7.5vw, 110px);
    line-height: 0.92;
    color: var(--wr-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.wr-headline em {
    font-style: normal;
    color: var(--wr-gold);
    display: block;
}

/* Subtext */
.wr-subtext {
    font-family: var(--wr-font-body);
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    max-width: 420px;
    margin-bottom: 34px;
}

/* ============================================
   CTA BUTTONS
============================================ */
.wr-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.wr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wr-font-heading);
    font-weight: 700;
    font-size: clamp(13px, 1.2vw, 15px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--wr-radius);
    transition: all 0.28s ease;
    cursor: pointer;
    white-space: nowrap;
}

.wr-btn--primary {
    background: var(--wr-gold);
    color: var(--wr-charcoal);
    border: 2px solid var(--wr-gold);
}

.wr-btn--primary:hover {
    background: var(--wr-gold-dark);
    border-color: var(--wr-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.wr-btn--ghost {
    background: transparent;
    color: var(--wr-white);
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.wr-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--wr-white);
    transform: translateY(-2px);
}

/* ============================================
   BIG YEAR WATERMARK
============================================ */
.wr-slide-year {
    position: absolute;
    z-index: 2;
    right: -10px;
    bottom: -30px;
    font-family: var(--wr-font-display);
    font-size: clamp(120px, 18vw, 260px);
    color: rgba(255, 255, 255, 0.045);
    letter-spacing: -4px;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* ============================================
   NAV BUTTONS (LEFT / RIGHT)
============================================ */
.wr-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: clamp(44px, 4.5vw, 60px);
    height: clamp(44px, 4.5vw, 60px);
    background: var(--wr-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
    transition: all 0.25s ease;
    color: var(--wr-charcoal);
}

.wr-nav-btn svg {
    width: 20px;
    height: 20px;
}

.wr-nav-btn--prev {
    left: clamp(12px, 3vw, 36px);
}

.wr-nav-btn--next {
    right: clamp(12px, 3vw, 36px);
}

.wr-nav-btn:hover {
    background: var(--wr-gold);
    color: var(--wr-white);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 28px rgba(201, 168, 76, 0.40);
}

.wr-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

/* ============================================
   DOTS INDICATOR
============================================ */
.wr-dots-bar {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.wr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.wr-dot.wr-dot--active {
    width: 28px;
    border-radius: 4px;
    background: var(--wr-gold);
    border-color: var(--wr-gold);
}

.wr-dot:hover:not(.wr-dot--active) {
    border-color: var(--wr-white);
    background: rgba(255, 255, 255, 0.30);
}

/* ============================================
   SLIDE COUNTER
============================================ */
.wr-slide-counter {
    position: absolute;
    bottom: 26px;
    right: clamp(16px, 3.5vw, 40px);
    z-index: 10;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--wr-font-heading);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    letter-spacing: 1px;
}

#wr-current-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--wr-gold);
    line-height: 1;
}

.wr-counter-sep {
    color: rgba(255, 255, 255, 0.40);
    margin: 0 2px;
}

.wr-total-num {
    color: rgba(255, 255, 255, 0.50);
}

/* ============================================
   RESPONSIVE — MOBILE
============================================ */
@media (max-width: 767px) {
    .wr-carousel-section {
        height: var(--wr-slide-h-mobile);
    }

    .wr-slide-content {
        left: 20px;
        right: 20px;
        max-width: 100%;
        padding-right: 10px;
    }

    .wr-slide-overlay {
        background: linear-gradient(to bottom,
                rgba(10, 10, 10, 0.55) 0%,
                rgba(10, 10, 10, 0.68) 60%,
                rgba(10, 10, 10, 0.80) 100%);
    }

    .wr-slide-content {
        top: auto;
        bottom: 80px;
        transform: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
    }

    .wr-slide.wr-slide--active .wr-slide-content {
        opacity: 1;
        transform: translateY(0);
    }

    .wr-badge {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .wr-subtext {
        display: none;
    }

    .wr-cta-group {
        gap: 10px;
    }

    .wr-btn {
        padding: 12px 22px;
        font-size: 12px;
    }

    .wr-nav-btn {
        width: 38px;
        height: 38px;
    }

    .wr-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .wr-nav-btn--prev {
        left: 10px;
    }

    .wr-nav-btn--next {
        right: 10px;
    }

    .wr-dots-bar {
        bottom: 16px;
    }

    .wr-slide-counter {
        bottom: 14px;
        right: 14px;
    }

    #wr-current-num {
        font-size: 18px;
    }

    .wr-slide-year {
        font-size: clamp(90px, 35vw, 150px);
        right: -5px;
        bottom: -20px;
    }


}

/* ============================================
   RESPONSIVE — TABLET
============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .wr-carousel-section {
        height: 75vh;
    }

    .wr-slide-content {
        left: 50px;
        max-width: 460px;
    }

    .wr-headline {
        font-size: clamp(60px, 9vw, 90px);
    }

    .wr-subtext {
        font-size: 15px;
        max-width: 360px;
    }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {

    .wr-slides-wrapper,
    .wr-slide-bg,
    .wr-slide-content,
    .wr-btn,
    .wr-nav-btn,
    .wr-dot {
        transition: none !important;
    }
}