/* Tailwind companion overrides to complement utility-first markup */
:root {
    color-scheme: light;
}

.tailwind-nav.tw-open {
    display: flex;
    background-color: white !important;
}

@media (max-width: 640px) {
    .tailwind-nav:not(.tw-open) {
        display: none;
    }
    
    .tailwind-nav.tw-open {
        position: fixed !important;
        top: 100px !important;
        left: 1rem !important;
        right: 1rem !important;
        background-color: white !important;
        border: 1px solid rgba(196, 181, 253, 0.3);
        border-radius: 2rem;
        box-shadow: 0 24px 45px rgba(124, 58, 237, 0.2);
        z-index: 99999 !important;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* Ensure header stays above all content */
.site-header {
    z-index: 9999 !important;
    position: sticky !important;
    isolation: isolate;
}

.site-header nav {
    z-index: 9999;
}

.site-header .nav-menu {
    z-index: 9999 !important;
}

/* Ensure main content doesn't overlap header */
main {
    position: relative;
    z-index: 1;
}

.hero-clip {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-clip.hero-clip--open {
    overflow: visible;
}

.field-error {
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.nav-logo-badge {
    width: 5rem !important;
    height: 5rem !important;
    font-size: 3rem !important;
    line-height: 1;
    background-color: transparent !important;
    box-shadow: none !important;
}

.card-hover {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform, box-shadow;
}

.card-hover:hover,
.card-hover:focus-visible {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
}

.faq-item {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:focus-within {
    transform: translateY(-0.25rem);
    box-shadow: 0 18px 36px -16px rgba(148, 163, 184, 0.45);
}

.faq-toggle-icon {
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-item > summary {
    list-style: none;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.faq-item[open] .faq-answer {
    max-height: 480px;
    opacity: 1;
    margin-top: 0.75rem;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(209, 250, 229, 0.9) 100%);
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background-image: url("../images/clipart-grass.svg");
    background-repeat: repeat-x;
    background-size: 800px 180px;
}

.footer-inner {
    position: relative;
    z-index: 1;
    padding-bottom: 10rem;
}

.footer-copy {
    margin-bottom: 2rem;
}

@media (min-width: 1280px) {
    .site-footer::before {
        background-size: 900px 180px;
    }
}

.scribble-bg {
    position: relative;
    z-index: 0;
}

.scribble-bg > :not(.scribble-decorations):not(.site-header) {
    position: relative;
    z-index: 1;
}

.scribble-bg > .site-header {
    z-index: 9999 !important;
}

.scribble-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.scribble-decorations .scribble-item {
    position: absolute;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 14px 32px rgba(15, 23, 42, 0.12));
    opacity: 0.38;
}

.scribble-item--crayon-1 {
    top: 12vh;
    left: 2vw;
    width: 220px;
    height: 70px;
    transform: rotate(-24deg);
    background-image: url("../images/crayon-orange.svg");
}

.scribble-item--crayon-2 {
    top: 24vh;
    right: 2vw;
    width: 200px;
    height: 70px;
    transform: rotate(18deg);
    background-image: url("../images/crayon-blue.svg");
}

.scribble-item--crayon-3 {
    top: 58vh;
    left: 2vw;
    width: 210px;
    height: 70px;
    transform: rotate(-12deg);
    background-image: url("../images/crayon-purple.svg");
}

.scribble-item--crayon-4 {
    bottom: 6vh;
    right: 2vw;
    width: 230px;
    height: 75px;
    transform: rotate(26deg);
    background-image: url("../images/crayon-green.svg");
}

.scribble-item--scribble-1 {
    top: 20vh;
    left: 6vw;
    width: 220px;
    height: 120px;
    transform: rotate(-10deg);
    background-image: url("../images/scribble-teal.svg");
}

.scribble-item--scribble-2 {
    top: 54vh;
    right: 6vw;
    width: 240px;
    height: 140px;
    transform: rotate(14deg);
    background-image: url("../images/scribble-pink.svg");
}

.scribble-item--scribble-3 {
    bottom: 12vh;
    left: 14vw;
    width: 200px;
    height: 120px;
    transform: rotate(-18deg);
    background-image: url("../images/scribble-gold.svg");
}

@media (max-width: 900px) {
    .scribble-decorations .scribble-item {
        opacity: 0.28;
    }

    .scribble-item--crayon-3 {
        display: none;
    }

    .scribble-item--crayon-1 {
        top: 10vh;
        left: 4vw;
        width: 180px;
        height: 60px;
    }

    .scribble-item--crayon-2 {
        top: 28vh;
        right: 4vw;
        width: 170px;
        height: 60px;
    }

    .scribble-item--scribble-1 {
        top: 40vh;
        left: 8vw;
        width: 180px;
        height: 100px;
    }

    .scribble-item--scribble-2 {
        top: 60vh;
        right: -12vw;
        width: 200px;
        height: 110px;
    }

    .scribble-item--scribble-3 {
        bottom: 14vh;
        left: 6vw;
        width: 170px;
        height: 100px;
    }

    .scribble-item--crayon-4 {
        bottom: 12vh;
        right: 4vw;
        width: 190px;
        height: 65px;
    }
}
