/* ========================================
   LB Counseling Group — Custom Styles
   Clean Minimalist | Midnight Blue + Mint
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(110, 231, 183, 0.2);
    color: #0a1628;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f4fa;
}
::-webkit-scrollbar-thumb {
    background: #a9b8db;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7e94c9;
}

/* ---- Navigation ---- */
.nav-link-text {
    letter-spacing: 0.02em;
}

#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

#navbar.scrolled .nav-link-text {
    color: #0a1628;
}

#navbar.scrolled .nav-link {
    color: #152a54;
}

#navbar.scrolled .mobile-link {
    color: #0a1628;
}

/* ---- Hero Scroll Indicator ---- */
@keyframes scroll-indicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* ---- Service Cards ---- */
.service-card {
    position: relative;
    transition: background-color 0.5s ease, transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ---- Mobile Menu ---- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* ---- Hamburger Animation ---- */
#mobile-menu-btn.active #hamburger span:first-child {
    transform: rotate(45deg) translate(0.2rem, 0.2rem);
}
#mobile-menu-btn.active #hamburger span:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active #hamburger span:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(0.2rem, -0.2rem);
}

/* ---- Form Select Arrow ---- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23a9b8db' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* JS-added initial state for reduced-motion users */
    .reveal-hidden {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #6ee7b7;
    outline-offset: 2px;
    border-radius: 2px;
}

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

/* ---- Responsive Adjustments ---- */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .service-card {
        border-left: none !important;
        border-top: 1px solid #d4dced !important;
    }

    .service-card:last-child {
        border-bottom: 1px solid #d4dced !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-card {
        border-left: 1px solid #d4dced !important;
    }
    .service-card:nth-child(2) {
        border-left: none !important;
    }
}
