/**
 * Perform360 Theme - Main Styles
 * Lightweight base styles for Elementor compatibility
 * DO NOT override Elementor classes
 */

/* CSS Variables - Brand Colors */
:root {
  /* Perform360 Brand Colors */
  --p360-blue: #08DBFC;
  --p360-purple: #9957FA;
  --p360-navy: #0E1B2E;
  --p360-green: #27F58A;
  --p360-orange: #FF6B35;
  --p360-light-gray: #E9F1F7;
  
  /* Legacy color names (for backward compatibility) */
  --color-primary: #08DBFC;
  --color-secondary: #9957FA;
  --color-navy: #0E1B2E;
  --color-success: #27F58A;
  --color-accent: #FF6B35;
  --color-gray: #E9F1F7;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-light: #6B7280;
  
  /* Gradients */
  --gradient-primary: linear-gradient(90deg, #08DBFC 0%, #9957FA 100%);
  --gradient-radial: radial-gradient(circle at center, rgba(153, 87, 250, 0.2), transparent);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --border-radius: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Typography - Lightweight to not conflict with Elementor */
body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* Container Utilities - For non-Elementor pages */
.container-full {
  width: 100%;
  max-width: 100%;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-standard,
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.navbar-brand img,
.navbar-brand .custom-logo-link img {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    transition: var(--transition);
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.navbar-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.navbar-menu a:hover {
    color: var(--color-primary);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-nav {
        display: none;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Text Gradient Utility
   ======================================== */
.text-gradient {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    overflow: hidden;
}

.hero-gradient-overlay,
.hero-gradient-overlay-secondary {
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.hero-gradient-overlay {
    opacity: 0.7;
    background: radial-gradient(80% 60% at 50% 0%, rgba(153, 87, 250, 0.35) 0%, rgba(14, 27, 46, 0) 60%);
}

.hero-gradient-overlay-secondary {
    opacity: 0.5;
    background: radial-gradient(60% 50% at 20% 80%, rgba(8, 219, 252, 0.25) 0%, rgba(14, 27, 46, 0) 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 5rem 1.5rem;
}

.hero-inner {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 3s ease-in-out infinite;
}

.hero-decoration-left {
    top: 5rem;
    left: 2rem;
    background: rgba(8, 219, 252, 0.2);
}

.hero-decoration-right {
    bottom: 5rem;
    right: 2rem;
    background: rgba(153, 87, 250, 0.2);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ========================================
   Section Styles
   ======================================== */
.benefits-section,
.social-proof-section {
    padding: 6rem 1.5rem;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Benefits Grid
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-icon-primary {
    color: var(--color-primary);
}

.benefit-icon-secondary {
    color: var(--color-secondary);
}

.benefit-icon-success {
    color: var(--color-success);
}

.benefit-icon-accent {
    color: var(--color-accent);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-navy);
}

.benefit-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========================================
   Stats Grid
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stat-card {
    position: relative;
    padding: 3rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-lg);
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon-primary {
    color: var(--color-primary);
}

.stat-icon-secondary {
    color: var(--color-secondary);
}

.stat-icon-success {
    color: var(--color-success);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-navy);
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* ========================================
   Final CTA Section
   ======================================== */
.final-cta-section {
    position: relative;
    padding: 8rem 1.5rem;
    background: var(--color-navy);
    overflow: hidden;
}

.cta-gradient-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0.7;
    background: radial-gradient(80% 60% at 50% 0%, rgba(153, 87, 250, 0.35) 0%, rgba(14, 27, 46, 0) 60%);
}

.cta-gradient-overlay-secondary {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background: radial-gradient(60% 50% at 50% 100%, rgba(8, 219, 252, 0.25) 0%, rgba(14, 27, 46, 0) 60%);
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cta-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--color-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 1.5rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo img,
.footer-logo .custom-logo-link img {
    height: 40px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--color-primary);
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ========================================
   Content Pages
   ======================================== */
.content-wrapper {
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}

.single-post,
.single-page {
    max-width: 800px;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.entry-title a {
    color: var(--color-navy);
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    display: flex;
    gap: 1rem;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.entry-content {
    line-height: 1.8;
    color: var(--color-text);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* ========================================
   Archive & Posts Grid
   ======================================== */
.archive-header {
    margin-bottom: 3rem;
    text-align: center;
}

.archive-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
}

.read-more:hover {
    color: var(--color-secondary);
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius);
    color: var(--color-navy);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ========================================
   Comments
   ======================================== */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-gray);
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-navy);
}

.comment-list {
    list-style: none;
    margin-bottom: 2rem;
}

.comment-list li {
    padding: 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* ========================================
   404 Error Page
   ======================================== */
.error-404 {
    text-align: center;
    padding: 6rem 1.5rem;
}

.error-title {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.error-text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ========================================
   Widget Area
   ======================================== */
.widget-area {
    padding: 2rem;
    background: var(--color-gray);
    border-radius: var(--border-radius-lg);
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .benefits-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-row {
        flex-direction: column;
        text-align: center;
    }
}
