/* AJAX KITCHEN CABINETS · v5 GLOBAL OVERRIDES
   Both pages use one typography scale and shared navigation behavior.
   Extend this file rather than making page-specific contradictory typography. */
:root{
 --aj-h1-desktop:clamp(56px,5vw,85px);
 --aj-h2-desktop:clamp(37px,3.45vw,59px);
 --aj-body-size:clamp(16px,1.13vw,18px);
 --aj-ink:#0a1630;--aj-gold:#d7b369;--aj-cream:#f5f1e9;
}
@media(min-width:1041px){
 .aj-design-system .hero-title,.aj-design-system .service-hero h1{font-size:var(--aj-h1-desktop)!important;line-height:1.015!important;letter-spacing:-.028em!important}
 .aj-design-system .section-title,.aj-design-system .block h2{font-size:var(--aj-h2-desktop)!important;line-height:1.09!important;letter-spacing:-.024em!important}
 .aj-design-system .about-copy .section-title{font-size:var(--aj-h2-desktop)!important}
 .aj-design-system .service-hero .hero-inner{padding-top:clamp(165px,13.5vw,220px)!important}
}
@media(min-width:681px) and (max-width:1040px){
 .aj-design-system .hero-title,.aj-design-system .service-hero h1{font-size:clamp(52px,6.8vw,74px)!important;line-height:1.05!important}
 .aj-design-system .section-title,.aj-design-system .block h2{font-size:clamp(38px,4.7vw,54px)!important;line-height:1.09!important}
}
@media(max-width:680px){
 .aj-design-system .hero-title,.aj-design-system .service-hero h1{font-size:clamp(43px,10vw,59px)!important;line-height:1.04!important;letter-spacing:-.022em!important}
 .aj-design-system .section-title,.aj-design-system .block h2{font-size:clamp(36px,8.2vw,49px)!important;line-height:1.1!important}
 .aj-design-system :is(.hero-intro p,.hero-main>p,.section-lead,.sec-head>p){font-size:16px!important;line-height:1.65!important}
}
/* Make header/nav behavior consistent: the primary header hides on downscroll
   and returns on upscroll, while section rail remains in reach. */
.aj-design-system .site-header{z-index:300!important;transition:transform .33s cubic-bezier(.22,1,.36,1),top .33s ease,padding .33s ease!important}
.aj-design-system .site-header.is-hidden{transform:translate3d(0,calc(-100% - 48px),0)!important;pointer-events:none!important}
.aj-design-system .site-header:not(.is-hidden) .nav-shell{pointer-events:auto!important}
.aj-design-system .nav-shell{position:relative;overflow:visible!important;isolation:isolate}
.aj-design-system .nav-dropdown{position:relative;z-index:305}
.aj-design-system .nav-dropdown.open{z-index:311}
.aj-design-system .dropdown-panel{z-index:312!important;top:calc(100% - 5px)!important;background:#071327!important;border:1px solid rgba(228,189,118,.4)!important;box-shadow:0 29px 70px rgba(2,7,19,.5)!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important}
.aj-design-system .service-menu{left:auto!important;right:-150px!important;width:min(640px,calc(100vw - 34px))!important;max-width:calc(100vw - 34px)!important}
.aj-design-system .nav-dropdown.open .dropdown-panel,.aj-design-system .nav-dropdown:focus-within .dropdown-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.aj-design-system .dropdown-panel a{color:#f1eee8!important;font-size:14px!important;line-height:1.4!important}
.aj-design-system .dropdown-panel a:hover{color:#eccb85!important;background:rgba(231,196,122,.055)}
.aj-design-system .menu-feature p{font-size:14px!important;line-height:1.6!important}
.aj-design-system .section-rail{z-index:220!important;top:12px!important}
.aj-design-system.header-visible .section-rail,.aj-design-system body.header-visible .section-rail{top:111px!important}
body.aj-design-system.header-visible .section-rail{top:111px!important}
@media(max-width:1040px){.aj-design-system .service-menu{display:none!important}}
@media(max-width:680px){
 .aj-design-system .section-rail{top:8px!important}
 body.aj-design-system.header-visible .section-rail{top:87px!important}
}
@media(prefers-reduced-motion:reduce){.aj-design-system .site-header{transition:none!important}}
