/* SOLARBEE — custom styles on top of Tailwind CDN */

:root {
    --ink:    #010f21;
    --ink2:   #04162b;
    --ink3:   #0b2140;
    --cream:  #fbe2aa;
    --cream2: #f5d18a;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    background-color: var(--ink);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--cream);
    color: var(--ink);
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 100;
    font-weight: 500;
    font-size: 14px;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Header scrolled state */
#site-header.is-scrolled {
    background: rgba(1, 15, 33, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 1s cubic-bezier(.2,.7,.2,1),
        transform 1s cubic-bezier(.2,.7,.2,1);
    will-change: transform, opacity;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Range slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    touch-action: none;
}
input[type=range]:focus { outline: none; }

input[type=range]::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
input[type=range]::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--ink);
    cursor: grab;
    box-shadow: 0 0 0 4px rgba(251, 226, 170, 0.18);
    transition: transform .15s;
}
input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.1); }

input[type=range]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--ink);
    cursor: grab;
    box-shadow: 0 0 0 4px rgba(251, 226, 170, 0.18);
}

/* Hide arrows on number inputs */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* FAQ details */
summary::-webkit-details-marker { display: none; }
summary { outline: none; }

/* Selection */
::selection {
    background: var(--cream);
    color: var(--ink);
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--ink);
}
::-webkit-scrollbar-thumb {
    background: rgba(251, 226, 170, 0.25);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 226, 170, 0.45);
}

/* Form status colors */
[data-form-status][data-state="success"] { color: #a7f3d0; }
[data-form-status][data-state="error"]   { color: #fca5a5; }
[data-form-status][data-state="loading"] { color: var(--cream); }

button[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

/* Italic accent — Outfit Italic with cream tone */
.italic {
    font-feature-settings: "ss01", "ss02";
}

/* Marquee containment */
.animate-marquee {
    animation: marquee 38s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero photo over very dark background fallback */
#hero img { background-color: var(--ink); }

/* Print */
@media print {
    #site-header, footer, .reveal { opacity: 1 !important; transform: none !important; }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
