/*
 * ArtForm AI Enablement , Comprehensive Fixes
 * Addresses: Hero layout, footer contrast, images, WCAG 2.1 AA / Section 508 compliance
 * ============================================================
 */

/* ============================================================
   FIX 1: SKIP NAVIGATION (WCAG 2.4.1)
   ============================================================ */
.skip-nav {
    position: absolute;
    top: -100px;
    left: 0;
    background: #0066ff;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 1rem;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 6px 0;
    transition: top 0.2s ease;
}
.skip-nav:focus {
    top: 0;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* ============================================================
   FIX 2: GLOBAL FOCUS STATES (WCAG 2.4.7 , keyboard navigation)
   ============================================================ */
*:focus-visible {
    outline: 3px solid #0066ff;
    outline-offset: 3px;
    border-radius: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #0066ff;
    outline-offset: 3px;
}
/* Remove default outline only when focus-visible is supported */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================================
   FIX 3: HERO , SPLIT LAYOUT WITH VISIBLE PEOPLE IMAGE
   ============================================================ */

/* Remove the old appended hero override that used background image */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f1228 0%, #1a1f3c 50%, #252b4d 100%) !important;
    overflow: hidden;
    padding-top: 80px;
}

/* Remove the old hero-bg opacity layer , we use a split layout now */
.hero-bg {
    display: none !important;
}

/* Remove the old full-overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,18,40,0.97) 0%, rgba(15,18,40,0.95) 45%, rgba(15,18,40,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

/* Split hero layout */
.hero-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 60px 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 100%;
    padding: 0;
}

.hero-image-panel {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.hero-people-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    min-height: 450px;
}

/* ============================================================
   FIX 4: FOOTER CONTRAST , WCAG 2.1 AA (4.5:1 minimum)
   ============================================================ */
.site-footer {
    background: #0f1228;
    color: #e5e7eb !important; /* Light gray , passes 4.5:1 on dark navy */
    padding: 64px 0 0;
}

.site-footer p,
.footer-brand p,
.footer-govcon-info {
    color: #e5e7eb !important; /* #e5e7eb on #0f1228 = ~11:1 contrast ratio */
    font-size: 0.9rem;
}

.footer-govcon-info {
    margin-top: 16px;
    font-size: 0.85rem;
}

.footer-govcon-info strong {
    color: #ffffff !important;
}

.footer-col h4 {
    color: #ffffff !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #d1d5db !important; /* #d1d5db on #0f1228 = ~9:1 contrast ratio */
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #d1d5db !important;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom a {
    color: #d1d5db !important;
    text-decoration: underline;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: #ffffff !important;
}

.footer-grid {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ============================================================
   FIX 5: REAL PEOPLE IMAGES , Two-column sections
   ============================================================ */
.two-col-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.two-col-reverse {
    direction: rtl;
}

.two-col-reverse > * {
    direction: ltr;
}

.two-col-text .overline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0066ff;
    margin-bottom: 12px;
}

.two-col-text h2 {
    margin-bottom: 20px;
    color: #1a1f3c;
}

.two-col-text .lead-text {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 16px;
    line-height: 1.7;
}

.section-people-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    display: block;
}

/* Pillar list for export readiness */
.pillar-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
}

.pillar-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.pillar-list li:last-child {
    border-bottom: none;
}

.pillar-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0066ff;
    font-weight: 700;
}

/* ============================================================
   FIX 6: WORKSHOP CARD IMAGES
   ============================================================ */
.workshop-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.workshop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.workshop-card:hover .workshop-card-image img {
    transform: scale(1.04);
}

.workshop-card {
    overflow: hidden;
}

.workshop-card-header {
    padding: 20px 24px 0;
}

.workshop-card-body {
    padding: 0 24px 24px;
}

/* ============================================================
   FIX 7: MOBILE NAVIGATION ACCESSIBILITY
   ============================================================ */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.mobile-toggle:focus-visible {
    border-color: #0066ff;
    outline: none;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    display: block;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    background: #0f1228;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav a {
    color: #e5e7eb;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.mobile-nav .btn {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
}

/* ============================================================
   FIX 8: WCAG TEXT CONTRAST , Ensure all body text meets 4.5:1
   ============================================================ */

/* Ensure section-dark text is fully readable */
.section-dark p {
    color: #d1d5db !important; /* ~9:1 on navy-dark */
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #ffffff !important;
}

/* Hero subtitle , ensure readability */
.hero-subtitle {
    color: #e5e7eb !important; /* ~11:1 on dark navy */
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 600px;
}

.hero-subtitle strong {
    color: #ffffff !important;
}

/* Hero stat labels */
.hero-stat .label {
    color: #d1d5db !important; /* Improved from rgba(255,255,255,0.5) */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* Credibility strip , ensure dark text on light bg */
.credibility-item {
    color: #374151 !important; /* ~9:1 on white/light gray */
}

/* ============================================================
   FIX 9: FORM ACCESSIBILITY (WCAG 1.3.1, 3.3.2)
   ============================================================ */
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1f3c !important; /* ~15:1 on white */
    margin-bottom: 6px;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid #9ca3af;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #1a1f3c;
    background: #ffffff;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
}

/* Required field indicator */
.form-group label .required {
    color: #dc2626;
    margin-left: 4px;
    font-weight: 700;
}

/* ============================================================
   FIX 10: RESPONSIVE FIXES FOR NEW LAYOUTS
   ============================================================ */
@media (max-width: 1024px) {
    .hero-split-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-image-panel {
        display: block;
        max-height: 400px;
        overflow: hidden;
    }

    .hero-people-img {
        min-height: 300px;
        max-height: 400px;
    }

    .two-col-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-col-reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto !important;
        padding: 100px 0 60px;
    }

    .hero-image-panel {
        display: none; /* Hide on mobile to keep hero clean */
    }

    .hero-split-inner {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .section-people-img {
        height: 280px;
    }

    .workshop-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== GRADIENT TEXT HIGHLIGHT FOR HERO HEADLINE ===== */
.hero h1 .gradient-text,
.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}
