/* ===========================
   ZIA GOVERNMENT WEBSITE
   Professional Blue & White Theme
   Architectural Institute Design System
   =========================== */

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    /* Primary Blue Palette - Government Authority */
    --gov-blue-primary: #003d82;
    --gov-blue-light: #0052a3;
    --gov-blue-dark: #002952;
    --gov-blue-accent: #2874a6;
    
    /* White & Neutral Palette */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #ecf0f1;
    --medium-gray: #bdc3c7;
    --dark-gray: #34495e;
    --charcoal: #2c3e50;
    
    /* Accent Colors */
    --gold: #d4af37;
    --success: #27ae60;
    --warning: #f39c12;
    
    /* Shadows - Professional Depth */
    --shadow-sm: 0 2px 8px rgba(0, 61, 130, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 61, 130, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 61, 130, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 61, 130, 0.20);
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ===========================
   ENHANCED NAVIGATION
   =========================== */
.navbar {
    background: var(--white);
    border-bottom: 3px solid var(--gov-blue-primary);
    box-shadow: var(--shadow-md);
}

.logo h1 {
    color: var(--gov-blue-primary);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    color: var(--dark-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
}

.nav-link {
    color: var(--charcoal);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gov-blue-accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gov-blue-primary);
}

/* ===========================
   HERO SECTION - GOVERNMENT STYLE
   =========================== */
.hero {
    background: linear-gradient(135deg, var(--gov-blue-dark) 0%, var(--gov-blue-primary) 50%, var(--gov-blue-light) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===========================
   BUTTONS - GOVERNMENT STYLE
   =========================== */
.btn-primary {
    background: var(--gov-blue-primary);
    color: var(--white);
    border: 2px solid var(--gov-blue-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--gov-blue-light);
    border-color: var(--gov-blue-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--gov-blue-primary);
}

/* ===========================
   CARDS - ARCHITECTURAL DESIGN
   =========================== */
.feature-card,
.stat-card,
.event-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-top: 4px solid var(--gov-blue-primary);
    transition: var(--transition);
}

.feature-card:hover,
.stat-card:hover,
.event-card:hover {
    border-top-color: var(--gov-blue-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.feature-icon {
    background: linear-gradient(135deg, var(--gov-blue-primary), var(--gov-blue-accent));
    border-radius: var(--radius-lg);
}

/* ===========================
   STATS SECTION - PROFESSIONAL
   =========================== */
.stats-section {
    background: var(--gov-blue-dark);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
}

.stat-number {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
}

.stat-label {
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

/* ===========================
   SECTION HEADERS - GOVERNMENT
   =========================== */
.section-header h2 {
    font-family: var(--font-display);
    color: var(--gov-blue-primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gov-blue-accent);
}

.section-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===========================
   PAGE HEADERS - CONSISTENT
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--gov-blue-dark) 0%, var(--gov-blue-primary) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-weight: 300;
    opacity: 0.95;
}

/* ===========================
   FOOTER - GOVERNMENT STYLE
   =========================== */
.footer {
    background: var(--charcoal);
    border-top: 4px solid var(--gov-blue-primary);
}

.footer-col h3 {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li a:hover {
    color: var(--gov-blue-accent);
}

/* ===========================
   ARCHITECTURAL ELEMENTS
   =========================== */

/* Grid Pattern Background */
.grid-background {
    background-image: 
        linear-gradient(rgba(0, 61, 130, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 61, 130, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Blueprint Style Lines */
.blueprint-accent {
    position: relative;
}

.blueprint-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--gov-blue-primary),
        var(--gov-blue-primary) 10px,
        transparent 10px,
        transparent 20px
    );
}

/* Professional Badges */
.badge-government {
    background: var(--gov-blue-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.badge-official {
    background: var(--gold);
    color: var(--charcoal);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

/* ===========================
   ACCESSIBILITY ENHANCEMENTS
   =========================== */

/* Focus States - WCAG Compliant */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--gov-blue-accent);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--gov-blue-primary);
    color: var(--white);
    padding: 1rem 2rem;
    z-index: 10000;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --gov-blue-primary: #001f4d;
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   TYPOGRAPHY ENHANCEMENTS
   =========================== */

/* Professional Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--gov-blue-primary);
    font-weight: 700;
    line-height: 1.2;
}

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); }

/* Body Text */
p {
    line-height: 1.8;
    color: var(--charcoal);
}

/* Links */
a {
    color: var(--gov-blue-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--gov-blue-accent);
}

/* ===========================
   FORM ELEMENTS - GOVERNMENT
   =========================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gov-blue-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

/* ===========================
   TABLES - PROFESSIONAL
   =========================== */
table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
}

th {
    background: var(--gov-blue-primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

tr:nth-child(even) {
    background: var(--off-white);
}

tr:hover {
    background: rgba(0, 61, 130, 0.05);
}

/* ===========================
   LOADING STATES
   =========================== */
.loading-spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--gov-blue-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================
   RESPONSIVE ENHANCEMENTS
   =========================== */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
}
