/**
 * Critical CSS - Above the Fold Performance
 * Load before anything else for optimal CLS score
 */

/* === CORE RESPONSIVE FOUNDATION === */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;height:100%;height:100dvh}
body{margin:0;line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100%;min-height:100dvh}
img,picture,video,canvas,svg{display:block;max-width:100%;height:auto}
input,button,textarea,select{font:inherit}
p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word;margin:0}
a{color:inherit;text-decoration:none}

/* === RESPONSIVE UTILITIES === */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1rem}
@media(min-width:768px){.container{padding:0 2rem}}

/* === RESPONSIVE TEXT === */
h1{font-size:clamp(1.75rem,5vw,3rem);line-height:1.2}
h2{font-size:clamp(1.5rem,4vw,2.5rem);line-height:1.25}
h3{font-size:clamp(1.25rem,3vw,2rem);line-height:1.3}
p{font-size:clamp(0.875rem,2vw,1rem)}

/* === LAZY LOADING STATES === */
.lazy{opacity:0;transition:opacity .3s}
.lazy.loaded,.lazy[src]{opacity:1}
img[data-src]{background:#f0f0f0}

/* === FORM VALIDATION STYLES === */
.is-invalid{border-color:#e85f54!important;box-shadow:0 0 0 2px rgba(232,95,84,.2)}
.is-valid{border-color:#22c55e!important}
.error-msg{display:block;color:#e85f54;font-size:.75rem;margin-top:.25rem}

/* === MOBILE-FIRST BREAKPOINTS === */
.hidden-mobile{display:none}
@media(min-width:768px){
  .hidden-mobile{display:block}
  .hidden-desktop{display:none}
}

/* === PERFORMANCE: No Layout Shift === */
img,video{aspect-ratio:attr(width)/attr(height)}
[data-src]{min-height:200px}

/* === VIEWPORT HEIGHT FIX (iOS) === */
:root{--vh:1vh}
.full-height{height:100vh;height:calc(var(--vh,1vh)*100)}

/* === SKIP LINK FOR A11Y + SEO === */
.skip-link{position:absolute;top:-40px;left:0;background:#000;color:#fff;padding:8px;z-index:100000}
.skip-link:focus{top:0}

/* === CLS PREVENTION === */
.btn,.form-input{min-height:44px}
header,nav{min-height:60px}

/* === FOOTER STYLES === */
.site-footer{background:#231F20;color:#fff;padding:2rem 0}
.footer-inner{display:flex;flex-direction:column;align-items:center;gap:1.5rem}
@media(min-width:768px){.footer-inner{flex-direction:row;justify-content:space-between}}
.footer-menu{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;list-style:none;margin:0;padding:0}
.footer-menu a{color:#fff;font-size:.875rem;transition:opacity .2s}
.footer-menu a:hover{opacity:.7;text-decoration:none}
.footer-bottom{text-align:center}
.footer-bottom p{color:#a0a0a0;font-size:.75rem;margin:.25rem 0}
.legal-links a{color:#a0a0a0}

/* === BACK TO TOP === */
.back-to-top{position:fixed;bottom:5rem;right:1rem;width:44px;height:44px;background:var(--brand-cta,#D62628);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:all .3s;z-index:9999;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.back-to-top.visible{opacity:1;visibility:visible}
.back-to-top:hover{transform:translateY(-3px);text-decoration:none}
@media(max-width:767px){.back-to-top{bottom:4.5rem}}

/* === BREADCRUMBS === */
.breadcrumbs{padding:.75rem 0;font-size:.875rem}
.breadcrumbs a{color:var(--brand-cta,#D62628)}
.breadcrumb-sep{margin:0 .5rem;color:#666}
