/* CSS Variables */
:root {
    --navy: #0B1B3B;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --cool-gray: #F5F7FA;
    --text-dark: #2D3748;
    --text-light: #718096;
    --border-light: #E2E8F0;
    --success-green: #48BB78;
    --error-red: #F56565;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    --max-width: 1200px;
    --section-padding: 6rem 0;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.375rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

p.lead {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
}

address {
    font-style: normal;
    line-height: 1.6;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 var(--border-radius) 0;
    z-index: 10000;
}

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

/* Enhanced Focus Indicators for Accessibility */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-section img {
    height: 40px;
    width: auto;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
}

nav a:hover,
nav a:focus {
    color: var(--navy);
    background-color: var(--cool-gray);
    outline: none;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--navy);
    margin: 3px 0;
    transition: var(--transition);
}

.mobile-menu-button[aria-expanded="true"] span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2f5f 100%);
    color: var(--white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    background-size: 600px 600px;
    animation: subtleFloat 20s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.hero-content h1 {
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content .subhead {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid var(--gold);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover,
.cta-button:focus {
    background: #b8941f;
    border-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    outline: none;
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: none;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: var(--section-padding);
}

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

.section-header h2 {
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-main h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--cool-gray);
    border-radius: var(--border-radius);
}

.stat-card {
    text-align: center;
}

.stat-card h4 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

/* Mission Section */
.mission {
    background: var(--cool-gray);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem;
}

/* Values Section */
.values {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--gold);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.value-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    font-size: 1.125rem;
    margin: 0;
}

/* Leadership Section */
.leadership {
    background: var(--cool-gray);
}

.leadership-tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: -1rem;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.leadership-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.leader-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 4px solid var(--gold);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.leader-name {
    color: var(--navy);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.leader-title {
    color: var(--gold);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leader-bio {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: left;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-description {
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-item strong {
    color: var(--navy);
}

.contact-item a {
    color: var(--gold);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Contact Form */
.contact-form {
    background: var(--cool-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
}

.success-message {
    background: var(--success-green);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: none;
}

.success-message.show {
    display: block;
}

.error-message {
    background: var(--error-red);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Loading State */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gold);
    color: var(--navy);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    background: #b8941f;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Form Validation Feedback */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: var(--error-red);
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: var(--success-green);
}

.field-error {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.field-error.show {
    display: block;
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0;
}

.footer-location {
    color: var(--gold);
    font-size: 1rem;
    margin: 0;
}

.footer-contact {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-contact strong {
    color: var(--white);
}

.footer-contact a {
    color: var(--gold);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-nav-section h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-nav-section ul {
    list-style: none;
}

.footer-nav-section li {
    margin-bottom: 0.5rem;
}

.footer-nav-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-nav-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Page Specific Styles */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2f5f 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* Criteria Cards */
.criteria-section {
    padding: 3rem 0;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.criteria-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.criteria-card h3 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.criteria-card ul {
    list-style: none;
    padding: 0;
}

.criteria-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.criteria-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* Upload Form */
.upload-section {
    background: var(--cool-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.file-upload-area {
    border: 2px dashed var(--border-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.file-upload-area.drag-over {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .mobile-menu-button {
        display: flex;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-light);
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero {
        padding: 5rem 0;
        min-height: auto;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .values-grid,
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.625rem;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    .leadership-card {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .cta-button,
    .contact-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        color: inherit;
        text-decoration: none;
    }
}