/**
 * FusedFormations Main Stylesheet
 * 
 * Minimalist, Apple-inspired design system
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --ff-black: #000000;
    --ff-white: #ffffff;
    --ff-gray-100: #f5f5f7;
    --ff-gray-200: #e8e8ed;
    --ff-gray-300: #d2d2d7;
    --ff-gray-400: #86868b;
    --ff-gray-500: #515154;
    --ff-gray-600: #1d1d1f;
    
    --ff-purple: #7c3aed;
    --ff-purple-dark: #6d28d9;
    --ff-purple-darker: #5b21b6;
    --ff-blue: #0071e3;
    --ff-blue-hover: #0077ed;
    --ff-green: #34c759;
    --ff-red: #ff3b30;
    
    /* Typography */
    --ff-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ff-font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    /* Spacing */
    --ff-space-xs: 0.5rem;
    --ff-space-sm: 1rem;
    --ff-space-md: 1.5rem;
    --ff-space-lg: 2rem;
    --ff-space-xl: 3rem;
    --ff-space-2xl: 4rem;
    --ff-space-3xl: 6rem;
    
    /* Layout */
    --ff-container-max: 1200px;
    --ff-container-padding: 1.5rem;
    
    /* Shadows */
    --ff-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --ff-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04);
    --ff-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --ff-transition: all 0.2s ease;
    --ff-transition-slow: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ff-gray-600);
    background-color: var(--ff-white);
}

a {
    color: var(--ff-blue);
    text-decoration: none;
    transition: var(--ff-transition);
}

a:hover {
    color: var(--ff-blue-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--ff-black);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--ff-gray-500);
}

/* ===== Layout ===== */
.container {
    max-width: var(--ff-container-max);
    margin: 0 auto;
    padding: 0 var(--ff-container-padding);
}

.section {
    padding: var(--ff-space-3xl) 0;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ff-gray-200);
}

.header-inner {
    max-width: var(--ff-container-max);
    margin: 0 auto;
    padding: 0 var(--ff-container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--ff-black);
    font-weight: 600;
}

.site-title a:hover {
    color: var(--ff-gray-500);
}

.site-tagline {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ff-gray-500);
    font-weight: 500;
}

/* ===== Navigation ===== */
.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--ff-space-lg);
}

#primary-menu {
    display: flex;
    list-style: none;
    gap: var(--ff-space-lg);
}

#primary-menu a {
    color: var(--ff-gray-600);
    font-weight: 500;
}

#primary-menu a:hover {
    color: var(--ff-black);
}

.nav-actions {
    display: flex;
    gap: var(--ff-space-sm);
}

/* ===== Buttons ===== */
.nav-button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 980px;
    transition: var(--ff-transition);
}

.nav-button--primary {
    background-color: var(--ff-blue);
    color: var(--ff-white);
}

.nav-button--primary:hover {
    background-color: var(--ff-blue-hover);
    color: var(--ff-white);
}

.nav-button--ghost {
    border: 1px solid var(--ff-gray-300);
    color: var(--ff-gray-600);
}

.nav-button--ghost:hover {
    border-color: var(--ff-gray-400);
    color: var(--ff-black);
}

.nav-button--text {
    color: var(--ff-gray-500);
}

.nav-button--text:hover {
    color: var(--ff-black);
}

.menu-toggle {
    display: none;
}

/* ===== Utilities ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* Tagline styling */
.ff-tagline {
    font-style: italic;
    color: var(--ff-gray-500);
    font-weight: 500;
}

/* ===== Admin Fixes ===== */
#adminmenu .toplevel_page_ff-migration .wp-menu-image:before {
    content: "\f463";
    font-family: dashicons;
}

/* ==========================================================================
   FOOTER STYLES - PROPERLY SCOPED (Won't affect other elements)
   ========================================================================== */

/* Base Footer Container */
.site-footer {
    background-color: var(--ff-gray-100);
    padding: var(--ff-space-3xl) 0 var(--ff-space-xl);
    margin-top: var(--ff-space-2xl);
}

/* Footer-specific content wrapper */
.site-footer .footer-content {
    max-width: var(--ff-container-max);
    margin: 0 auto;
    padding: 0 var(--ff-container-padding);
}

/* Footer Grid - Scoped to footer only */
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ff-space-2xl);
    margin-bottom: var(--ff-space-3xl);
    text-align: center;
}

/* Footer Headings - Only in footer */
.site-footer .footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--ff-space-sm);
    color: var(--ff-black);
}

/* Footer Links - Only in footer */
.site-footer .footer-links {
    list-style: none;
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
    color: var(--ff-gray-500);
}

.site-footer .footer-links a:hover {
    color: var(--ff-black);
}

/* Footer Quote System - Only in footer */
.site-footer .footer-quote {
    text-align: center;
    font-style: italic;
    color: var(--ff-gray-400);
    margin: var(--ff-space-3xl) auto;
    font-size: 0.95rem;
    max-width: 800px;
    line-height: 1.6;
}

/* Footer Bottom - Only in footer */
.site-footer .footer-bottom {
    text-align: center;
    padding-top: var(--ff-space-lg);
    border-top: 1px solid var(--ff-gray-200);
}

.site-footer .footer-copyright {
    color: var(--ff-gray-400);
    font-size: 0.875rem;
    margin: 0;
}

/* New scalable footer styles - All properly scoped */
.site-footer .footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Pre-Footer Area */
.pre-footer-area {
    background: var(--ff-gray-200);
    padding: 3rem 0;
    border-bottom: 1px solid var(--ff-gray-300);
}

.pre-footer-area .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Styles by Type */
.footer-minimal {
    padding: 1.5rem 0;
}

.footer-minimal .footer-minimal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-minimal .footer-brand p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ff-gray-400);
}

.footer-minimal .footer-minimal-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.footer-minimal .footer-minimal-nav a {
    color: var(--ff-gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-minimal .footer-minimal-nav a:hover {
    color: var(--ff-black);
}

/* Standard Footer */
.footer-standard {
    padding: 4rem 0 1.5rem;
}

.footer-standard .footer-main {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--ff-gray-200);
}

/* Expanded Footer */
.footer-expanded {
    padding: 4rem 0 1.5rem;
}

.footer-expanded .footer-main {
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--ff-gray-200);
}

/* Footer Grid System */
.site-footer .footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
.site-footer .footer-cols-4 { grid-template-columns: repeat(4, 1fr); }
.site-footer .footer-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Footer Column Styles */
.site-footer .footer-column {
    min-width: 0;
    text-align: center;
}

.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-menu li {
    margin-bottom: 0.625rem;
}

.site-footer .footer-menu a {
    color: var(--ff-gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
}

.site-footer .footer-menu a:hover {
    color: var(--ff-black);
}

/* Badges */
.site-footer .badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.25rem;
    letter-spacing: 0.025em;
}

.site-footer .badge-new {
    background: var(--ff-green);
    color: white;
}

.site-footer .badge-hiring {
    background: var(--ff-blue);
    color: white;
}

/* Footer Quote Section */
.site-footer .footer-quote-section {
    text-align: center;
    padding: 2rem 0 3rem;
    border-bottom: 1px solid var(--ff-gray-200);
    margin-bottom: 3rem;
}

.site-footer .footer-quote-section blockquote {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ff-gray-400);
    font-style: italic;
}

.site-footer .footer-quote-section cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--ff-gray-400);
    font-style: normal;
}

/* Footer Bottom */
.site-footer .footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer .footer-legal p {
    margin: 0 0 0.5rem 0;
    font-size: 0.8125rem;
    color: var(--ff-gray-400);
}

.site-footer .footer-legal-nav {
    font-size: 0.8125rem;
}

.site-footer .footer-legal-nav a {
    color: var(--ff-gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-legal-nav a:hover {
    color: var(--ff-gray-600);
}

.site-footer .footer-legal-nav .sep {
    margin: 0 0.5rem;
    color: var(--ff-gray-300);
}

/* Social Links */
.site-footer .footer-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.site-footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ff-gray-200);
    border-radius: 0.375rem;
    color: var(--ff-gray-500);
    transition: all 0.2s;
}

.site-footer .footer-social a:hover {
    background: var(--ff-blue);
    color: white;
}

/* Footer Widgets Support */
.site-footer .footer-widget {
    margin-bottom: 1.5rem;
}

.site-footer .footer-widget:last-child {
    margin-bottom: 0;
}

.site-footer .footer-widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ff-black);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Widget specific styles */
.site-footer .footer-widget.widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-widget.widget_nav_menu li {
    margin-bottom: 0.625rem;
}

.site-footer .footer-widget.widget_text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ff-gray-500);
}

/* Footer spacing and centering fixes */
.site-footer .footer-quote,
.site-footer .footer-quote-section {
    padding: 0 0 1.5rem;
    margin-bottom: 1.5rem;
}

.site-footer .footer-main {
    padding: 2rem 0;
    margin-bottom: 0;
}

.site-footer .footer-grid {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    /* Header responsive */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .menu-toggle-line {
        display: block;
        width: 20px;
        height: 2px;
        background-color: var(--ff-gray-600);
        margin: 4px 0;
        transition: var(--ff-transition);
    }
    
    #primary-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Footer responsive - properly scoped */
    .site-footer {
        padding: 2rem 0 1rem;
        margin-top: 3rem;
    }
    
    .site-footer .footer-container {
        padding: 0 1.5rem;
    }
    
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .site-footer .footer-cols-3,
    .site-footer .footer-cols-4,
    .site-footer .footer-cols-5 {
        grid-template-columns: 1fr;
    }
    
    .site-footer .footer-quote,
    .site-footer .footer-quote-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .site-footer .footer-quote blockquote,
    .site-footer .footer-quote-section blockquote {
        font-size: 1rem;
    }
    
    .site-footer .footer-column {
        margin-bottom: 0;
    }
    
    .site-footer .footer-heading {
        margin-bottom: 0.75rem;
    }
    
    .site-footer .footer-links li {
        margin-bottom: 0.375rem;
    }
    
    .site-footer .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .site-footer .footer-legal-nav {
        margin-top: 0.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .site-footer .footer-legal-nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .site-footer .footer-legal-nav .sep {
        display: none;
    }
    
    .footer-minimal .footer-minimal-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

body.dark-mode .site-footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .site-footer .footer-quote,
body.dark-mode .site-footer .footer-quote-section,
body.dark-mode .site-footer .footer-main {
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .site-footer .footer-heading {
    color: #f3f4f6;
}

body.dark-mode .site-footer .footer-links a,
body.dark-mode .site-footer .footer-menu a {
    color: #9ca3af;
}

body.dark-mode .site-footer .footer-links a:hover,
body.dark-mode .site-footer .footer-menu a:hover {
    color: #059669;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.site-footer a:focus {
    outline: 2px solid var(--ff-blue);
    outline-offset: 2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-footer {
        display: none;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Hide elements on specific footer styles */
.footer-minimal .footer-quote,
.footer-minimal .footer-quote-section,
.footer-minimal .footer-main {
    display: none;
}