/* Custom styles for Laughter Consulting */

/* Mobile Navigation */
body.menu-open {
    overflow: hidden;
}

.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 20rem;
    background-color: var(--bg-primary);
    overflow-y: auto;
    z-index: 9999;
    border-left: 1px solid rgb(229 231 235 / 0.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation Links */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: var(--bg-hover);
}

.mobile-nav-link[aria-current="page"] {
    color: rgb(255 255 255);
    font-weight: 500;
    background-color: rgb(17 24 39);
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
    padding: 0.75rem 1rem;
}

.dark .mobile-nav-link[aria-current="page"] {
    color: rgb(17 24 39);
    background-color: rgb(255 255 255);
}

/* Desktop Navigation Active State */
.nav-link[aria-current="page"] {
    color: rgb(255 255 255) !important;
    background-color: rgb(17 24 39);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
}

.dark .nav-link[aria-current="page"] {
    color: rgb(17 24 39) !important;
    background-color: rgb(255 255 255);
}

.nav-link[aria-current="page"]::after {
    display: none;
}

/* Dark mode CSS variables */
:root {
    --text-primary: rgb(17 24 39); /* gray-900 */
    --text-secondary: rgb(75 85 99); /* gray-600 */
    --bg-primary: rgb(255 255 255); /* white */
    --bg-secondary: rgb(249 250 251); /* gray-50 */
    --bg-hover: rgb(243 244 246); /* gray-100 */
    --bg-selected: rgb(243 244 246); /* gray-100 */
}

.dark {
    --text-primary: rgb(255 255 255); /* white */
    --text-secondary: rgb(156 163 175); /* gray-400 */
    --bg-primary: rgb(17 24 39); /* gray-900 */
    --bg-secondary: rgb(31 41 55); /* gray-800 */
    --bg-hover: rgb(55 65 81); /* gray-700 */
    --bg-selected: rgb(55 65 81); /* gray-700 */
}

/* Consistent text sizes and colors */
h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero h1 {
    color: white;
}

h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

p {
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--text-secondary);
}

/* Accessibility improvements */
.skip-to-main-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-to-main-content:focus {
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    white-space: normal;
    padding: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    z-index: 100;
}
