/**
 * BANDAR FIT - Main CSS
 * @package BandarFit
 * Version: 1.0.0
 */

/* ============================================
   TABLE OF CONTENTS
   1. CSS Variables
   2. Reset & Base Styles
   3. Typography
   4. Layout Container
   5. Header & Navigation
   6. Hero Section
   7. Services Section
   8. Methodology Steps
   9. Athletes Gallery
   10. Packages Section
   11. Evaluation Section
   12. CTA Section
   13. Footer
   14. Buttons
   15. Cards
   16. Forms
   17. Modals & Overlays
   18. WordPress Core Styles
   19. Animations
   20. Utilities
   ============================================ */

/* 1. CSS Variables */
:root {
    /* Brand Colors */
    --brand-primary: #C5A880;
    --brand-primary-dark: #B8945A;
    --brand-primary-light: #D4B99A;
    --brand-dark: #0F0F0F;
    --brand-dark-80: #1A1A1A;
    --brand-dark-60: #2A2A2A;
    --brand-text: #E2E8F0;
    --brand-text-muted: rgba(226, 232, 240, 0.6);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    --spacing-5xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --radius-3xl: 3rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-brand: 0 0 20px rgba(197, 168, 128, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-Index Layers */
    --z-negative: -1;
    --z-elevate: 1;
    --z-sticky: 100;
    --z-header: 110;
    --z-overlay: 130;
    --z-modal: 140;
    --z-popover: 150;
    --z-tooltip: 160;
    --z-toast: 170;
}

/* Dark Theme (Default) */
body {
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-tertiary: #1F1F1F;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.05);
}

/* 2. Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 3. Typography */
h1, .h1 {
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    h1, .h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    h1, .h1 {
        font-size: 4.5rem;
    }
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    h2, .h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    h2, .h2 {
        font-size: 3rem;
    }
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.3;
}

@media (min-width: 768px) {
    h3, .h3 {
        font-size: 1.75rem;
    }
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Gold Text */
.gold-text {
    color: var(--brand-primary);
}

.gold-glow {
    text-shadow: var(--shadow-brand);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 4. Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

/* 5. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(16px);
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: var(--brand-primary);
}

/* Navigation */
.primary-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 992px) {
    .primary-nav {
        display: flex;
    }
}

.primary-nav .nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.primary-nav .nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.primary-nav .nav-menu a:hover,
.primary-nav .nav-menu .current-menu-item a {
    color: var(--brand-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    padding: 1.5rem;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* Top Bar */
.top-bar {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.7rem;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-social {
    display: flex;
    gap: 1rem;
}

.top-bar-social-link {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.top-bar-social-link:hover {
    color: var(--brand-primary);
}

/* 6. Hero Section */
.hero-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 95%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 0 80px;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
    display: block;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* 7. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--brand-dark);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-brand);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-secondary:hover {
    background: var(--brand-primary);
    color: var(--brand-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 8. Cards */
.service-card,
.price-card,
.eval-card,
.step-card,
.athlete-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-bounce);
}

.service-card:hover,
.price-card:hover,
.eval-card:hover,
.step-card:hover,
.athlete-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.price-card.featured {
    border: 2px solid var(--brand-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.price-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: var(--brand-dark);
    font-size: 0.6875rem;
    font-weight: 900;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
}

/* 9. Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-widget-title {
    font-size: 1.125rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--brand-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 2rem;
}

/* 10. WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-toast);
    transition: all var(--transition-base);
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 11. Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 45px;
    height: 45px;
    background: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-toast);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand);
}

/* 12. Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroKenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

.fade-in {
    animation: fadeIn var(--transition-slow) ease-out;
}

/* 13. WordPress Core */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* 14. Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overflow-hidden {
    overflow: hidden;
}

/* assets/css/main.css */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px;
    background: var(--brand-primary);
    color: var(--brand-dark);
    z-index: 100000;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}