/* =========================
   eFMLA SHARED STYLESHEET
   =========================


   This file contains ONLY styles shared across all pages:
   - CSS Variables
   - Base Styles (typography, links, etc.)
   - Header & Navigation
   - Footer
   - Mobile Menu
   - Responsive Breakpoints
   
   Page-specific styles (hero, features, etc.) belong in individual HTML files.
   ========================= */

/* CSS Variables for Consistency */
:root {
    /* Color System - eFMLA Brand Colors from Logo */
    --color-primary: #2c5a7c;        /* Deep teal from header: trust, authority */
    --color-primary-light: #3d7aa0;
    --color-primary-dark: #1e3d52;
    --color-secondary: #7cb342;      /* Vibrant green from logo: growth, action */
    --color-secondary-light: #9bc76d;
    --color-secondary-dark: #5a9b2f;
    --color-accent: #7cb342;          /* Use brand green for CTAs */
    --color-warning: #f57c00;
    
    /* Neutrals - Subtle warm backgrounds for sophistication */
    --color-bg-primary: #fafafa;     /* Very light warm gray - professional, not harsh */
    --color-bg-secondary: #f5f5f5;   /* Slightly darker for alternating sections */
    --color-bg-dark: #2c5a7c;        /* Brand teal for dark sections */
    --color-text-primary: #2d3e50;
    --color-text-secondary: #5a6c7d;
    --color-text-light: #8896a4;
    --color-border: #e5e5e5;
    --color-white: #ffffff;
    
    /* Typography */
    --font-display: 'Crimson Pro', 'Georgia', serif;  /* Authority, tradition */
    --font-body: 'Work Sans', -apple-system, system-ui, sans-serif;  /* Modern clarity */
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows - Subtle depth */
    --shadow-sm: 0 2px 8px rgba(45, 63, 80, 0.08);
    --shadow-md: 0 4px 16px rgba(45, 63, 80, 0.12);
    --shadow-lg: 0 8px 32px rgba(45, 63, 80, 0.16);
    
    /* Transitions */
    --transition-quick: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Navigation offset for anchor links */
    --nav-offset: 70px;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* =========================
   BASE STYLES
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-offset);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

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

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

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

a:hover {
    color: var(--color-primary-light);
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
.header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    padding-left: 8px; /* was var(--space-sm) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--space-sm);
    min-height: 72px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity var(--transition-base);
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 64px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: white;
    opacity: 1;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    transition: all var(--transition-quick);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-align: center;
    display: inline-block;
}

.btn-admin {
    background: var(--color-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-admin:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-employee {
    background: var(--color-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-employee:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--color-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-accent {
    background: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto var(--space-xl);
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.footer-links li::before {
    content: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-quick);
}

.footer-links a:visited {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.9rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* =========================
   MOBILE MENU
   ========================= */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary-dark);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding: var(--space-lg);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.mobile-menu .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .nav-links a {
    display: block;
    padding: 1rem 0;
    color: white;
    font-size: 1.1rem;
}

.mobile-menu .nav-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-container .nav-cta {
        display: none;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.3rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}
