/* Brett Academy - Custom Styles (Fly Fitness Reference) */

/* ==============================================================================
   Material Symbols & Material Icons (Self-Hosted + Multi-Tier CDN Fallback)
   ============================================================================== */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/materialsymbolsoutlined/v375/kJF4BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzBwG-RpA6RzaxHMPdY40KH8nGzv3fzfVJU22ZZLsYEpzC_1ver5Y0.woff2') format('woff2');
}

.material-symbols-outlined,
.material-icons {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga' 1;
    font-feature-settings: 'liga' 1;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    user-select: none;
    flex-shrink: 0;
}

/* ==============================================================================
   Native View Transitions & Zero-Flash Canvas Optimization
   ============================================================================== */
@view-transition {
    navigation: auto;
}

:root, html {
    background-color: #f7f9fb;
    color-scheme: light;
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    background-color: #f7f9fb;
    color: #0f172a;
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
}

#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    min-height: 5rem;
}

@media (min-width: 640px) {
    #header-placeholder {
        min-height: 7.25rem;
    }
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}


/* Custom Thin Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Kinetic Cards & Hover Transitions */
.theme-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

.kinetic-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-circle {
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}


.kinetic-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 108, 78, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

/* Custom Form Elements */
.form-input {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #006c4e;
    box-shadow: 0 0 0 3px rgba(0, 108, 78, 0.15);
}

/* Floating CTA Button (Fly Fitness Standard Reference) */
.floating-cta-btn {
    position: fixed;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    background-color: #0f271e; /* deep emerald slate */
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 800;
    font-size: 13.5px;
    line-height: 1;
    white-space: nowrap;
    
    border-radius: 9999px;
    border: 1px solid rgba(204, 160, 80, 0.3);
    box-shadow: 0 10px 25px -3px rgba(10, 46, 34, 0.4), 
                0 0 0 1px rgba(0, 108, 78, 0.3), 
                0 4px 12px rgba(0, 108, 78, 0.25);
    
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 0.3s ease, 
                box-shadow 0.25s ease, 
                background-color 0.2s ease;
}

/* Desktop layout (default): centered bottom floating pill */
@media (min-width: 769px) {
    .floating-cta-btn {
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%) translateY(30px);
        padding: 11px 20px;
        font-size: 14px;
    }

    .floating-cta-btn.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .floating-cta-btn:hover {
        transform: translateX(-50%) translateY(-2px) scale(1.03);
        background-color: #004d37;
        box-shadow: 0 14px 30px -4px rgba(10, 46, 34, 0.5), 
                    0 0 0 1px rgba(204, 160, 80, 0.6), 
                    0 6px 16px rgba(0, 108, 78, 0.4);
    }

    .floating-cta-btn:active {
        transform: translateX(-50%) translateY(0) scale(0.97);
    }
}

/* Mobile layout (< 768px): compact floating pill centered */
@media (max-width: 768px) {
    .floating-cta-btn {
        bottom: 18px;
        left: 50%;
        width: auto;
        max-width: max-content;
        height: 44px;
        padding: 0 18px;
        font-size: 13px;
        transform: translateX(-50%) translateY(25px);
    }

    .floating-cta-btn.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .floating-cta-btn:hover {
        background-color: #004d37;
    }

    .floating-cta-btn:active {
        transform: translateX(-50%) translateY(0) scale(0.96);
        background-color: #004d37;
    }
}

.floating-cta-btn .floating-cta-text {
    letter-spacing: 0.02em;
    font-weight: 800;
}

.floating-cta-btn .floating-cta-badge {
    background: rgba(204, 160, 80, 0.2);
    color: #cca050;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 9999px;
    border: 1px solid rgba(204, 160, 80, 0.4);
    letter-spacing: 0.02em;
}

.floating-cta-btn .floating-cta-icon {
    width: 16px;
    height: 16px;
    color: #cca050;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.floating-cta-btn:hover .floating-cta-icon {
    transform: translateX(3px);
}

/* Kaptein Brandt Authentic WhatsApp Pulse Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-pulse-active {
    animation: whatsapp-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20ba5a;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 88px;
    right: 24px;
    z-index: 39;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: #006c4e;
    border-color: #006c4e;
    transform: translateY(-2px);
}

/* Metric Gauge Rings Animation */
.ring-circle {
    transition: stroke-dashoffset 1s ease-in-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Blurred Sample Voucher */
.blurred-voucher {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* ==============================================================================
   Discount Popup & Floating Tab Styles (Fly Fitness Reference Standard)
   ============================================================================== */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.popup-overlay.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Popup Content */
.popup-content {
    background-color: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px rgba(0, 46, 34, 0.25);
    width: 90%;
    max-width: 650px;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: none;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 640px) {
    .popup-content {
        grid-template-columns: 1fr 1fr;
    }
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-image {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    background: #004d37;
}

.popup-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.popup-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 77, 55, 0.1) 0%, rgba(10, 46, 34, 0.35) 100%);
    pointer-events: none;
}

/* Badge Style - Zero White Border */
.popup-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #cca050 0%, #b08332 100%);
    color: #ffffff;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.05;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transform: rotate(-8deg);
    border: none;
    font-family: 'Montserrat', sans-serif;
    z-index: 2;
}

.popup-text {
    padding: 2.25rem 2rem;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

.popup-content h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.85rem;
    color: #0f172a;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
}

.popup-content p {
    font-size: 0.925rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #006c4e;
    color: #ffffff;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 108, 78, 0.3);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.popup-cta:hover {
    background-color: #0a2e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 108, 78, 0.4);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}
.popup-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

/* Floating Tab */
.floating-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg) translateX(-50%);
    transform-origin: top left;
    background: linear-gradient(135deg, #006c4e 0%, #0a2e22 100%);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    z-index: 45;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 46, 34, 0.35);
    border: 1px solid rgba(204, 160, 80, 0.4);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.floating-tab:hover {
    transform: translateY(-50%) rotate(-90deg) translateX(-45%);
    background: #006c4e;
}

.floating-tab.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==============================================================================
   Interactive FAQ Accordion Engine (CodeWays Standard)
   ============================================================================== */
.faq-item {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.faq-item.active {
    border-color: rgba(0, 108, 78, 0.45) !important;
    box-shadow: 0 6px 24px rgba(0, 46, 34, 0.08) !important;
}

.faq-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    width: 100%;
    outline: none;
}

.faq-toggle:focus-visible {
    outline: 2px solid #006c4e;
    outline-offset: -2px;
}

.faq-toggle .faq-icon-wrapper {
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.faq-toggle .faq-icon {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.active .faq-toggle .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle .faq-icon-wrapper {
    background-color: #e6f4ea !important;
    color: #006c4e !important;
}

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 0;
}

.faq-content.open,
.faq-item.active .faq-content {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-content-inner {
    overflow: hidden;
}

/* Fallback for browsers without grid-template-rows animation */
@supports not (grid-template-rows: 0fr) {
    .faq-content {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    }
    .faq-content.open,
    .faq-item.active .faq-content {
        max-height: 800px;
    }
}

/* Custom Modal Thin Scrollbar */
.custom-modal-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.custom-modal-scroll::-webkit-scrollbar {
    width: 5px;
}
.custom-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.custom-modal-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}
.custom-modal-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Hero Showcase Batter Image Alignment - Emphasize Player and Cricket Bat */
.hero-batter-img {
    object-fit: cover !important;
    object-position: center 40% !important;
}
