/* Shared layout and accessibility rules for the static website. */
:root { --site-blue: #0a66c2; }
html { scroll-padding-top: 6rem; }
body { min-width: 0; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }
.grid > *, .flex > * { min-width: 0; }
.flex > i, .inline-flex > i { flex-shrink: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select, input:not([type="range"]):not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
button { min-width: 44px; touch-action: manipulation; }
input:not([type="range"]), select, textarea { font-size: max(1rem, 1em); }
:focus-visible { outline: 3px solid var(--site-blue); outline-offset: 4px; }
body .text-xs { font-size: .875rem; line-height: 1.5; }
.skip-link { position: fixed; top: 1rem; left: 1rem; transform: translateY(-200%); background: white; color: #0f172a; padding: .75rem 1rem; border-radius: .75rem; z-index: 500; }
.skip-link:focus { transform: none; }
.site-header > div { gap: 1.25rem; }
.site-header > div > a { flex-shrink: 0; }
.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-brand .site-logo { display: block; width: 184px; height: auto; max-height: 60px; object-fit: contain; }
.footer-brand { display: inline-flex; margin-bottom: 1.5rem; padding: .75rem 1rem; background: #fff; border-radius: .75rem; }
.footer-brand .site-logo { width: 220px; height: auto; object-fit: contain; }
#mobile-menu .site-logo { width: 170px; }
.site-header nav > a, .site-header nav > div > button { min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav > .group > div { margin-top: 0; padding-top: .75rem; }
.site-header nav > .group[data-open="true"] > div { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); }
.site-header nav > .group[data-open="false"] > div { opacity: 0; visibility: hidden; }
#mobile-menu { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
#mobile-menu > div:first-child { flex-shrink: 0; }
#mobile-menu nav { gap: .5rem; }
#mobile-menu nav a { display: flex; align-items: center; min-height: 44px; padding-block: .5rem; }
#mobile-menu button, [data-menu-open] { min-width: 44px; min-height: 44px; }
.menu-open { overflow: hidden; }
.floating-actions { z-index: 35; }
.floating-actions > a { flex-shrink: 0; }
footer a[href^="mailto:"], .contact-banner a { overflow-wrap: anywhere; }
.contact-banner { gap: clamp(1.5rem, 4vw, 3rem); }
.contact-banner h3 { font-size: clamp(1.75rem, 3.3vw, 3rem); line-height: 1.2; text-wrap: balance; }
.contact-banner > div { flex: 1 1 0; }
.contact-banner i { flex-shrink: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.table-scroll table { min-width: 680px; }
#callback-overlay > div { max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
#estimatorCart { max-height: calc(100dvh - 6rem); padding-bottom: env(safe-area-inset-bottom); }
#cartItems { max-height: 40dvh; }
.page-index .hero-bg h1 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); line-height: 1.12; text-wrap: balance; }
.page-index .hero-bg { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 8vw, 8rem); }
.page-index .media-track { width: max-content; padding-right: 2rem; }
.page-index .media-card { flex: 0 0 200px; min-width: 200px; height: 100px; }
.page-index .media-card h3 { white-space: normal; line-height: 1.2; }
.page-blog #tag-filters { padding: .25rem .25rem .75rem; gap: .75rem; scrollbar-width: none; }
.page-blog #tag-filters::-webkit-scrollbar { display: none; }
.page-blog #tag-filters .tag-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.page-blog #tag-filters .tag-pill i { margin: 0; flex-shrink: 0; }
.page-blog #tag-filters .tag-pill.active { transform: none; }
#hp-slider, #calc-slider { flex: 1 1 0; min-width: 0; }
#hp-qty-badge, #calc-qty-badge { flex-shrink: 0; white-space: nowrap; margin-left: .75rem; }
#hp-number, #calc-number { min-width: 0; flex: 1 1 0; }
.page-index section > div > h2 { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.2; text-wrap: balance; }
.page-index footer { padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-booking main > div > div { min-width: 0; }
.page-admin main > div > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-admin main > div > .grid > div { flex-wrap: wrap; }
.page-executive > div:first-child { height: min(800px, calc(100dvh - 2rem)); min-height: 660px; flex-shrink: 0; }
@media (min-width: 1536px) {
    .page-admin main > div > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Use a drawer until there is room for every desktop navigation link. */
@media (max-width: 1199px) {
    .site-header > div > nav { display: none; }
    .site-header [data-menu-open] { display: inline-flex; align-items: center; justify-content: center; margin: 0 0 0 auto; }
    #mobile-menu { display: flex; }
    .page-admin > aside { width: 210px; }
    .page-admin main > header { padding-inline: 1rem; gap: 1rem; flex-wrap: wrap; height: auto; min-height: 80px; padding-block: .75rem; }
    .page-admin main > header > div:first-child { width: auto; flex: 1 1 220px; }
    .page-admin main > header > div:last-child { gap: .5rem; }
    .page-admin main > div > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-admin main > div > .grid > div { flex-wrap: wrap; }
    .page-dashboard > main { grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); }
    .page-dashboard > main > * { grid-column: auto; }
}
@media (min-width: 1200px) {
    .site-header > div > nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
    .site-header [data-menu-open], #mobile-menu { display: none; }
}
@media (max-width: 1023px) {
    .page-index > section { overflow-x: clip; }
    .contact-banner { flex-direction: column; align-items: stretch; padding: 2rem; border-radius: 2rem; }
    .contact-banner > div { width: 100%; }
    .contact-banner > div:last-child { border-left: 0; border-top: 1px solid #ffffff40; padding: 1.5rem 0 0; }
    .page-enterprise > header { height: auto; min-height: 80px; padding: 1rem; flex-wrap: wrap; gap: 1rem; }
    .page-enterprise > header > div { margin-left: 0; flex-wrap: wrap; gap: 1rem; }
    .page-enterprise main > div:first-child { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .page-enterprise main > .grid.grid-cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    /* Prevent entrance animations from pushing mobile content outside the viewport. */
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
    body.has-floating-actions { padding-bottom: 0; }
    body .floating-actions { display: none; }
    .site-header > div { height: 72px; }
    body:has(> .site-header) { padding-top: 72px; }
    .page-index > section.py-32, .page-index > section.py-28, .page-index > section.py-24, .page-index > section.py-20 { padding-block: 3.5rem; }
    .page-index .hero-bg > .absolute { display: none; }
    .page-index > div.pointer-events-none { display: none; }
    .page-index .hero-bg .glass-widget { width: 100%; }
    .page-index .hero-bg > div > p.flex { flex-wrap: wrap; gap: .5rem; font-size: 1rem; margin-bottom: 2.5rem; }
    .page-index .glass-widget input { padding-inline: .5rem; font-size: 1rem; }
    .page-index .glass-widget button { padding-inline: 1rem; }
    .page-index .glass-widget span { padding-inline: .5rem; }
    .page-index .glass-widget span, .page-index .glass-widget button { flex-shrink: 0; }
    .page-index #hero-mobile-input { width: 0; flex: 1 1 0; font-size: .875rem; }
    .page-index > section { overflow-x: clip; }
    .page-index .hero-bg .absolute.rounded-full { white-space: nowrap; }
    .page-rate-card { padding-bottom: 100px; }
    .page-index .marquee-wrapper::before, .page-index .marquee-wrapper::after { width: 32px; }
    .page-index .marquee-wrapper::before, .page-index .marquee-wrapper::after { display: none; }
    .page-index .media-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; padding: 0 1rem; gap: .75rem; animation: none; }
    .page-index .media-card { min-width: 0; height: 100px; padding: 1rem .75rem; }
    .page-index .media-card h3 { font-size: clamp(1rem, 4.5vw, 1.25rem); overflow-wrap: anywhere; }
    .page-index .media-card:nth-child(5) { grid-column: 1 / -1; }
    .page-index .media-duplicate { display: none; }
    .page-index .recyclables-section { padding-inline: 1rem; }
    .page-index .recyclables-section > div:first-child { margin-bottom: 2rem; }
    .page-index .recyclables-section h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .page-index .recyclables-section > div:first-child > p { font-size: 1rem; line-height: 1.7; }
    .page-index .recyclables-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: .75rem; }
    .page-index .recyclables-image { grid-column: 1 / -1; justify-self: center; width: min(70vw, 260px); height: auto; aspect-ratio: 1; margin-bottom: 1rem; }
    .page-index .recyclables-visual > .absolute { position: static; padding: .5rem .75rem; text-align: center; font-size: 1.5rem; line-height: 1.4; border-radius: .75rem; background: #ecfeff; }
    .page-index .recyclables-visual > .absolute:last-child { grid-column: 1 / -1; }
    .page-index .recyclables-visual > .absolute svg { display: none; }
    .page-index .recyclables-section > div:last-child { margin-top: 2rem; }
    #hp-calc-item, #calc-item-select { min-width: 0; max-width: 100%; font-size: .875rem; padding: .875rem 2rem .875rem .75rem; text-overflow: ellipsis; }
    .page-index .site-header > div, body .site-header > div { gap: .75rem; }
    .site-header > div > a:first-child i { font-size: 1.75rem; }
    .site-header > div > a:first-child h2 { font-size: 1.125rem; line-height: 1.1; }
    .site-header .site-brand .site-logo { width: clamp(130px, 40vw, 168px); max-height: 52px; }
    .site-header .account-mobile-icon { width: 44px; height: 44px; margin: 0; }
    .site-header [data-menu-open] { font-size: 1.5rem; }
    .page-blog .blog-filter-bar { top: 72px; padding-block: .75rem; }
    .page-index footer > div:first-child { margin-bottom: 2.5rem; }
    .contact-banner { padding: 1.5rem; border-radius: 1.5rem; }
    .contact-banner button { width: 100%; }
    .page-blog h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .page-booking main { align-items: flex-start; }
    .page-booking main > div > div { padding: 1.25rem; }
    .page-booking main > div > div:first-child > h3 { font-size: 1.25rem; margin-bottom: 1rem; }
    .page-booking main > div > div:first-child > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .page-booking main > div > div:first-child > div > .absolute { display: none; }
    .page-booking main [id^="nav-step-"] { margin: 0; gap: .5rem; font-size: .875rem; }
    .page-booking main [id^="nav-step-"] > div { flex-shrink: 0; }
    .page-booking .step-content .flex > button { flex: 1 1 0; width: auto; padding-inline: .5rem; }
    .page-dashboard > main { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.5rem; }
    .page-dashboard > main > * { grid-column: auto; }
    .page-dashboard aside .sticky { position: static; }
    .page-admin { height: auto; min-height: 100dvh; overflow: auto; flex-direction: column; }
    .page-admin > aside { width: 100%; }
    .page-admin > aside > nav { display: flex; flex: none; overflow-x: auto; gap: .5rem; padding: .75rem; }
    .page-admin > aside > nav > p, .page-admin > aside > div:last-child { display: none; }
    .page-admin > aside > nav > a { flex-shrink: 0; white-space: nowrap; margin: 0; min-height: 44px; }
    .page-admin main > div { overflow: visible; padding: 1rem; }
    .page-admin main > div > .grid { gap: .75rem; }
    .page-admin main > div > .grid > div { padding: 1rem; gap: .75rem; }
    .page-admin main > div > .grid .text-3xl { font-size: 1.5rem; }
    .page-enterprise main { padding: 1.25rem; }
    .page-enterprise main > .grid { grid-template-columns: 1fr; gap: 1rem; }
    .page-executive { padding: 0; }
    .page-executive > div:first-child { max-width: none; height: 100dvh; min-height: 700px; border: 0; border-radius: 0; box-shadow: none; }
    .page-executive > div:first-child > div:first-child { display: none; }
    .page-executive > div:first-child > header { padding-top: 1.5rem; }
}
@media (max-width: 379px) {
    .page-index .grid.grid-cols-2 > div { padding: .75rem; }
    .page-admin main > div > .grid { grid-template-columns: 1fr; }
    .page-booking > header { gap: .5rem; }
    .page-booking > header > div { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
