/* ============================================
   BITUMEN CALCULATOR - STYLESHEET (v3.0)
   ============================================ */

/* ---- Accordion ---- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.accordion-open .accordion-content {
    max-height: 500px;
    opacity: 1;
}

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

.sr-only:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    z-index: 50;
}

/* ---- Form Validation ---- */
input.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

input.error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* ---- Toast ---- */
#toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Print Styles ---- */
@media print {
    nav, footer, .space-y-12, #calcForm, #resultsPlaceholder, 
    .flex.gap-2.pt-4, #calcBreakdown, #liveConversions,
    .mb-16, .max-w-4xl.mb-16 {
        display: none !important;
    }

    #resultsContent {
        display: block !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .bg-slate-900 {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }

    .text-amber-400, .text-amber-500 {
        color: #000 !important;
    }

    .text-slate-400, .text-slate-500 {
        color: #666 !important;
    }

    .border-slate-800 {
        border-color: #ccc !important;
    }

    #resCostWrapper {
        border: 2px solid #000 !important;
        background: #f9f9f9 !important;
    }

    .text-emerald-400 {
        color: #000 !important;
    }
}

/* ---- Smooth Scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Focus Visible ---- */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .accordion-content {
        transition: none;
    }

    #toast {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}
