/* 
  Accessibility Fixes for The GP Files
  Target: WCAG 2.1 Level AA Compliance
*/

/* 1. Visual & Contrast Precision */

/* Fix low contrast gray text on light backgrounds (usually body or gray-50) */
body:not(.bg-black):not(.bg-gpBlack) .text-gray-400,
body:not(.bg-black):not(.bg-gpBlack) .text-gray-300,
body:not(.bg-black):not(.bg-gpBlack) .text-gray-200,
section.bg-white .text-gray-400,
section.bg-gray-50 .text-gray-400 {
    color: #767676 !important;
    /* Minimum contrast 4.5:1 on white/light gray */
}

/* Ensure gray-500 passes on black backgrounds (failing at 4.29:1) */
.bg-black .text-gray-500,
.bg-gpBlack .text-gray-500,
footer .text-gray-500 {
    color: #9ca3af !important;
    /* Using gray-400 which has 8.18:1 on black */
}

/* 2. Focus States */
/* Ensure every interactive element has a visible focus indicator */
/* Only use :focus-visible for better UX */
:focus-visible {
    outline: 2px solid #166534 !important;
    outline-offset: 2px !important;
}

/* Disable generic :focus to avoid unnecessary rings */
:focus {
    outline: none;
}

/* 3. Tap Targets */
/* Ensure minimum hit area of 44x44px for smaller elements */

/* Social icons and small nav elements */
footer .flex.gap-4 a,
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: -5px;
    /* Adjust layout if needed */
}

/* 4. Premium Navigation Effects (Main Pages Highlight) */

#desktop-menu a {
    position: relative;
    font-weight: 500;
    padding-bottom: 4px;
}

/* Subtle animated underline for nav links */
#desktop-menu a:not(.rounded-full)::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #166534;
    transition: width 0.3s ease;
}

#desktop-menu a:not(.rounded-full):hover::after {
    width: 100%;
}

/* Enhanced Contact Button */
#desktop-menu a[data-nav="contacto"] {
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#desktop-menu a[data-nav="contacto"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.4);
    background-color: #15803d;
    /* Lighter shade on hover */
}