/* ============================================
   Carol Knudtson Counseling — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #d8b4fe;
    color: #3b0764;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #c084fc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* --- Hero --- */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(59, 7, 100, 0.72) 0%,
        rgba(107, 33, 168, 0.65) 40%,
        rgba(147, 51, 234, 0.55) 70%,
        rgba(217, 119, 6, 0.35) 100%
    );
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    color: #fff;
    border-radius: 9999px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45);
    transform: translateY(-2px);
    color: #fff;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #3b0764;
    border: none;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    box-shadow: 0 6px 28px rgba(251, 191, 36, 0.55);
    transform: translateY(-2px);
    color: #3b0764;
}

.btn-hero-secondary {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* --- Nav --- */
.nav-link {
    position: relative;
}

#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#site-header.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 1;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* --- Input Fields --- */
.input-field {
    border: 1.5px solid #e9d5ff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #3b0764;
    background: #faf5ff;
    transition: all 0.25s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #c084fc;
}

.input-field:hover {
    border-color: #c084fc;
    background: #fff;
}

.input-field:focus {
    border-color: #9333ea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.12);
}

/* --- FAQ --- */
.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
    max-height: 300px;
}

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }

    .service-card {
        opacity: 1;
        transform: none;
    }
}

/* --- Back to Top --- */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .hero-badge {
        font-size: 0.7rem !important;
    }

    #site-header.scrolled .logo-text {
        font-size: 0.9rem;
    }
}

/* --- Print --- */
@media print {
    #site-header,
    .back-to-top,
    #back-to-top {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-bg img {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
