/* Utility helpers and accessibility */

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* SKIP LINK FOR ACCESSIBILITY */
.skip-link {
    position: absolute;
    top: -100vh;
    left: 0;
    padding: 0.75rem 1.5rem;
    background: var(--green-900);
    color: #fff;
    z-index: 1000;
    border-radius: var(--radius-medium);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    left: 1rem;
    transform: translateY(0);
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(36, 93, 42, 0.92);
    color: #fff;
    border: none;
    box-shadow: 0 12px 24px rgba(36, 93, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

.back-to-top:hover {
    background: rgba(74, 144, 164, 0.95);
    box-shadow: 0 16px 28px rgba(74, 144, 164, 0.35);
    transform: translateY(-2px);
}

/* RESPONSIVE UTILITIES */
@media (max-width: 768px) {
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

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