/**
 * Boys-Girls-Cuts Core Stylesheet
 * 
 * Location: /public_html/includes/core.css
 * Filename: core.css
 * Function: Core website styles with modern design and accessibility
 * Version: 3.0.0 (Restructured - Modern design system with E-E-A-T optimization)
 * 
 * Features:
 * - Modern CSS custom properties (CSS variables)
 * - Responsive design system
 * - Accessibility optimizations
 * - Performance optimized animations
 * - Core Web Vitals optimized
 * - Modern color scheme for beauty industry
 * - Component-based styling approach
 */

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
:root {
    /* Brand Colors */
    --primary-color: #ffd700;
    --secondary-color: #ffed4e;
    --accent-color: #fff200;
    
    /* Background Colors */
    --dark-color: #000000;
    --light-dark: #0a0a0a;
    --card-background: #111111;
    --section-background: #0d1117;
    
    /* Text Colors */
    --text-color: #ffffff;
    --text-muted: #8b949e;
    --text-secondary: #f0f6fc;
    
    /* Border and Divider Colors */
    --border-color: #333333;
    --border-light: #21262d;
    --divider-color: #30363d;
    
    /* Status Colors */
    --success-color: #238636;
    --warning-color: #f85149;
    --info-color: #58a6ff;
    
    /* Typography */
    --font-family-primary: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Base Styles and Reset
   ======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-family-primary);
    color: var(--text-color);
    background-color: var(--dark-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    font-size: 1.125rem;
}

/* ========================================
   Card Components
   ======================================== */
.card-modern {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-spring);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    border-color: var(--primary-color);
}

.card-service {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-spring);
    height: 100%;
}

.card-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    border-color: var(--primary-color);
}

.card-testimonial {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-spring);
    height: 100%;
    position: relative;
}

.card-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* ========================================
   Button System
   ======================================== */
.btn-modern {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 25px;
    transition: all var(--transition-spring);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    border-color: var(--primary-color);
}

.btn-primary-modern:hover,
.btn-primary-modern:focus {
    background: transparent;
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-outline-modern {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-modern:hover,
.btn-outline-modern:focus {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    border: 2px solid var(--primary-color);
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-cta:hover,
.btn-cta:focus {
    background: transparent;
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    padding: 150px 0;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    color: var(--secondary-color);
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========================================
   Gallery System
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    transition: all var(--transition-spring);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    border-color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: var(--spacing-lg);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ========================================
   Service Variants
   ======================================== */
.service-variant {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

.service-variant:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.service-variant-price {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: var(--spacing-lg);
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.transition-smooth {
    transition: all var(--transition-spring);
}

/* ========================================
   Accessibility
   ======================================== */
.skip-navigation {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: #000;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    font-weight: bold;
    transition: top var(--transition-fast);
}

.skip-navigation:focus {
    top: 0;
}

/* Focus styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #ffffff;
        --text-color: #ffffff;
        --card-background: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in,
    .animate-on-scroll {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xxl: 2rem;
        --spacing-xl: 1.5rem;
    }
    
    .hero-section {
        padding: 100px 0;
        min-height: 80vh;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .card-modern,
    .service-variant {
        padding: var(--spacing-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-modern,
    .btn-cta {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .hero-section {
        background: none !important;
        color: #000 !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .btn-modern,
    .btn-cta {
        display: none !important;
    }
    
    .lightbox {
        display: none !important;
    }
}