/* Custom styles — Pine Meadows Apartments */

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid theme('colors.forest.500');
    outline-offset: 2px;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, theme('colors.forest.200') 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.3;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: theme('colors.warm.100');
}
::-webkit-scrollbar-thumb {
    background: theme('colors.forest.300');
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: theme('colors.forest.400');
}

/* Mobile menu animation */
#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    display: block;
    height: 2px;
    width: 24px;
    background-color: theme('colors.forest.700');
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Selection color */
::selection {
    background: theme('colors.forest.200');
    color: theme('colors.forest.900');
}
