/* Homepage reference design. All rules are scoped to this layout. */
body.home .ams-reference-home{--ref-navy:#17365d;--ref-blue:#005c99;--ref-green:var(--ams-green, #087a4c);color:var(--ref-navy);font-family:inherit;font-size:18px;line-height:1.45;}
.ams-reference-home *{box-sizing:border-box;}.ams-reference-home img{max-width:100%;}
.ams-reference-home .ams-ref-inner{width:83%;max-width:1580px;margin:0 auto;}
.ams-reference-home h1,.ams-reference-home h2,.ams-reference-home h3,.ams-reference-home p,.ams-reference-home figure{margin:0;}
.ams-reference-home h2{font-size:clamp(30px,3.1vw,60px);line-height:1.15;font-weight:800;letter-spacing:-.025em;color:var(--ref-navy);}
.ams-reference-home .ams-ref-button{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border:0;border-radius:5px;background:var(--ref-blue);color:#fff!important;text-decoration:none!important;font-size:18px;font-weight:700;line-height:1.2;text-align:center;transition:background .18s;}
.ams-reference-home .ams-ref-button:hover{background:#004675;}.ams-reference-home .ams-ref-button--green{background:var(--ref-green);}.ams-reference-home .ams-ref-button--green:hover{background:var(--ams-green-hover, #05633d);}.ams-reference-home .ams-ref-button--white{background:#fff;color:#005c99!important;}.ams-reference-home .ams-ref-button--white:hover{background:#edf3f7;}.ams-reference-home .ams-ref-button--navy{background:var(--ref-navy);}
.ams-reference-home :is(a,button):focus-visible{outline:3px solid #e0b43d;outline-offset:4px;}
.ams-ref-hero{display:grid;grid-template-columns:1fr 1fr;min-height:clamp(390px,30vw,580px);}
.ams-ref-hero-copy{display:flex;align-items:center;padding:60px 6% 60px 17%;background:linear-gradient(#15385dc9,#15385dd9),url('../images/hero/AMS_3Vans_Hero.png') center/cover;}
.ams-reference-home .ams-ref-hero-copy h1{color:#fff;font-size:clamp(36px,3.35vw,66px);line-height:1.12;font-weight:800;letter-spacing:-.025em;}
.ams-ref-hero-copy p{color:#fff;font-size:clamp(17px,1.45vw,27px);line-height:1.28;max-width:620px;margin:16px 0 28px!important;}
.ams-ref-hero-actions{display:flex;gap:24px;}.ams-ref-hero-actions a{min-width:180px;min-height:64px;font-size:clamp(16px,1.35vw,25px)!important;padding:16px 28px!important;}
.ams-ref-slider{position:relative;min-width:0;background:linear-gradient(165deg,#f6f8fa 65%,#e2e5e8);overflow:hidden;}
.ams-ref-slide{position:relative;width:100%;height:100%;min-height:clamp(390px,30vw,580px);padding:32px 8% 42px;}
.ams-ref-slide[hidden]{display:none;}
.ams-ref-slide-copy{position:relative;z-index:2;}.ams-ref-slide-copy p{color:#1685cf;font-size:clamp(18px,1.8vw,34px);font-weight:500;line-height:1.2;}
.ams-reference-home .ams-ref-slide-copy h2{color:#002c5f;font-size:clamp(36px,3.5vw,66px);font-weight:800;letter-spacing:-.025em;line-height:1.1;}
.ams-ref-slide-copy sup{font-size:.4em;vertical-align:super;}.ams-ref-slide-copy>span{font-size:clamp(12px,.95vw,18px);font-weight:600;color:#17365d;}
.ams-ref-slide>img{display:block;position:absolute;width:82%;height:66%;object-fit:contain;bottom:30px;left:3%;mix-blend-mode:multiply;}
.ams-reference-home .ams-ref-slide>.ams-ref-button{position:absolute;right:5%;bottom:8%;z-index:3;width:22%;min-height:clamp(36px,2.5vw,48px);padding:8px 12px;border-radius:5px;background:#1c4f82;font-size:clamp(12px,.95vw,18px);line-height:1.2;}
.ams-reference-home .ams-ref-slide>.ams-ref-button:hover{background:#15365d;}
.ams-ref-awd{position:absolute;right:5%;top:18%;border:6px solid #dbb12b;border-radius:22px;background:#fff;padding:10px 13px;text-align:center;color:#103763;line-height:1;z-index:2;}
.ams-ref-awd>span{display:block;font-size:clamp(16px,1.7vw,30px);font-weight:700;}.ams-ref-awd strong{display:block;font-size:clamp(32px,3vw,58px);font-weight:900;font-style:italic;}.ams-ref-awd small{font-size:clamp(9px,.8vw,15px);font-weight:800;}
.ams-ref-slider-controls{display:flex;align-items:center;gap:16px;position:absolute;bottom:18px;left:50%;transform:translateX(-50%);z-index:4;}.ams-ref-slider-dots{display:flex;gap:16px;}
.ams-ref-slider-dots button{width:10px;height:10px;min-height:0;min-width:0;border:0;border-radius:50%;padding:0;background:#91979a;cursor:pointer;}.ams-ref-slider-dots button[aria-pressed=true]{background:#005c99;}.ams-ref-slider-pause{border:0;padding:2px 5px;background:transparent;color:#17365d;cursor:pointer;font-size:12px;}
.ams-ref-stats{padding:60px 0 68px;background:#fff;}.ams-ref-stats>.ams-ref-inner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px;text-align:center;}.ams-ref-stats img{display:block;width:200px;height:114px;object-fit:contain;margin:0 auto 12px;}.ams-reference-home .ams-ref-stats h2{font-size:clamp(20px,1.8vw,34px);line-height:1.2;font-weight:800;letter-spacing:0;}
.ams-reference-home .ams-ref-stats .ams-ref-stat-description{max-width:300px;margin:12px auto 0;color:#52657c;font-size:15px;line-height:1.5;}
.ams-ref-inventory{padding:60px 0 80px;background:linear-gradient(155deg,#006298,#17365d);}.ams-reference-home .ams-ref-inventory h2,.ams-reference-home .ams-ref-options h2{color:#fff;margin-bottom:clamp(28px,3.2vw,60px);}
.ams-ref-inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,2.2vw,42px) clamp(24px,4vw,76px);}.ams-ref-make{position:relative;display:flex;flex-direction:column;border-radius:24px;background:linear-gradient(#ededed,#aaa);aspect-ratio:1.64;overflow:hidden;text-decoration:none!important;transition:box-shadow .18s;}.ams-ref-make:hover{box-shadow:0 8px 24px #001f3e40;}.ams-reference-home .ams-ref-make h3{position:relative;z-index:1;padding:16px 28px 0;font-size:clamp(20px,2vw,38px);line-height:1.2;font-weight:600;color:#17365d;}.ams-ref-make h3 span{color:var(--ams-green, #087a4c);}.ams-ref-make img{position:absolute;left:4%;bottom:1%;width:92%;height:79%;object-fit:contain;mix-blend-mode:multiply;transition:transform .18s;}.ams-ref-make:hover img{transform:scale(1.025);}
.ams-ref-why{background:#e9e9e9;padding:70px 0 75px;}.ams-ref-why h2{margin-bottom:56px;}.ams-ref-why-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:9%;align-items:center;}.ams-ref-why-grid>img{width:100%;aspect-ratio:1.66;object-fit:cover;border-radius:20px;}.ams-ref-why ul{margin:0;padding-left:28px;font-size:clamp(18px,1.9vw,34px);line-height:1.55;font-weight:500;}.ams-ref-why li::marker{color:var(--ams-green, #087a4c);}
.ams-ref-testimonial{background:#fff;padding:52px 0 62px;}.ams-reference-home .ams-ref-testimonial h2{font-size:clamp(18px,1.6vw,28px);letter-spacing:0;margin-bottom:16px;}.ams-ref-testimonial h2 span{color:var(--ams-green, #087a4c);font-size:44px;line-height:0;margin-left:12px;vertical-align:middle;}.ams-ref-testimonial blockquote{padding:0;border:0;margin:0 0 32px;font-size:clamp(22px,2.3vw,42px);font-weight:400;line-height:1.25;}.ams-ref-testimonial figcaption{font-size:clamp(16px,1.5vw,26px);}
.ams-ref-options{background:#17365d;padding:60px 0 78px;}.ams-ref-options-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:34px;}.ams-ref-options-grid article{display:flex;flex-direction:column;align-items:stretch;border-radius:24px;background:#fff;padding:24px 30px 16px;text-align:center;}.ams-reference-home .ams-ref-options-grid h3{font-size:clamp(20px,1.65vw,30px);line-height:1.15;font-weight:700;border-bottom:5px solid var(--ams-green, #087a4c);padding-bottom:20px;margin-bottom:18px;color:#17365d;}.ams-ref-options-grid p{font-size:clamp(14px,1.1vw,20px);line-height:1.2;margin:0 0 24px;}.ams-ref-options-grid .ams-ref-button{margin-top:auto;font-size:clamp(13px,1vw,19px);padding:12px 8px;}
.ams-ref-locations{background:#fff;padding:60px 0 105px;}.ams-ref-locations h2{margin-bottom:50px;}.ams-ref-location-grid{display:grid;grid-template-columns:2.3fr 1fr;gap:70px;align-items:stretch;}.ams-ref-location-grid>nav{display:flex;flex-direction:column;gap:12px;}.ams-ref-location-grid>nav>a{flex:1;font-size:clamp(17px,1.6vw,28px);min-height:64px;}
.ams-ref-map{min-width:0;min-height:500px;overflow:hidden;border-radius:20px;background:#e7f1f1;}.ams-ref-map .mi-dealer-map__list-wrap{display:none!important;}.ams-ref-map .mi-dealer-map-shell{display:block!important;margin:0!important;padding:0!important;border:0!important;}.ams-ref-map .mi-dealer-map__panel{border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;}.ams-ref-map .mi-dealer-map{height:500px!important;min-height:500px!important;border-radius:0!important;}.ams-ref-map .leaflet-control-attribution{font-size:9px;}
@media(min-width:1921px){.ams-ref-hero-copy{padding-left:max(60px,calc((100vw - 1600px)/2));}}
@media(max-width:1100px){.ams-ref-hero-copy{padding:40px 8%;}.ams-ref-hero-actions{gap:12px;}.ams-ref-hero-actions a{min-width:0;flex:1;padding:14px 18px!important;}.ams-ref-inventory-grid{gap:24px;}.ams-ref-make h3{padding:16px 20px 0!important;}.ams-ref-options-grid{gap:20px;}.ams-ref-options-grid article{padding:22px 18px 16px;}.ams-ref-location-grid{gap:32px;}.ams-ref-map,.ams-ref-map .mi-dealer-map{min-height:420px!important;height:420px!important;}.ams-ref-location-grid>nav>a{min-height:54px;}}
@media(max-width:767px){.ams-reference-home .ams-ref-inner{width:calc(100% - 40px);}.ams-ref-hero{grid-template-columns:1fr;}.ams-ref-hero-copy{padding:44px 28px;}.ams-reference-home .ams-ref-hero-copy h1{font-size:40px;}.ams-ref-hero-copy p{font-size:18px;max-width:480px;}.ams-ref-hero-actions{max-width:460px;}.ams-ref-hero-actions a{min-height:52px;}.ams-ref-slide{min-height:380px;padding:26px 28px 46px;}.ams-ref-slide-copy p{font-size:21px;}.ams-reference-home .ams-ref-slide-copy h2{font-size:42px;}.ams-ref-awd{top:28%;border-width:4px;border-radius:12px;padding:8px;}.ams-ref-slide>img{height:65%;width:92%;left:0;}.ams-reference-home .ams-ref-slide>.ams-ref-button{bottom:30px;right:20px;width:auto;min-width:120px;min-height:36px;padding:8px 16px;}.ams-ref-stats{padding:32px 0 40px;}.ams-ref-stats>.ams-ref-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;}.ams-ref-stats img{width:155px;height:88px;}.ams-reference-home .ams-ref-stats h2{font-size:22px;}.ams-ref-inventory,.ams-ref-why,.ams-ref-options,.ams-ref-locations{padding:40px 0;}.ams-reference-home h2{font-size:32px;}.ams-reference-home :is(.ams-ref-inventory,.ams-ref-why,.ams-ref-options,.ams-ref-locations) h2{margin-bottom:28px;}.ams-ref-inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}.ams-ref-make{border-radius:14px;aspect-ratio:1.35;}.ams-reference-home .ams-ref-make h3{font-size:20px;padding:12px 14px 0!important;}.ams-ref-make img{height:73%;}.ams-ref-why-grid{grid-template-columns:1fr;gap:24px;}.ams-ref-why ul{font-size:19px;}.ams-ref-testimonial{padding:36px 0;}.ams-ref-testimonial blockquote{font-size:24px;margin-bottom:24px;}.ams-ref-options-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}.ams-ref-options-grid article{border-radius:16px;padding:20px 14px 14px;}.ams-reference-home .ams-ref-options-grid h3{font-size:20px;}.ams-ref-location-grid{grid-template-columns:1fr;gap:24px;}.ams-ref-map,.ams-ref-map .mi-dealer-map{min-height:300px!important;height:300px!important;}.ams-ref-location-grid>nav{display:grid;grid-template-columns:1fr 1fr;gap:10px;}.ams-ref-location-grid>nav>a{font-size:16px;min-height:54px;padding:10px;}}
@media(prefers-reduced-motion:reduce){.ams-reference-home *{transition:none!important;}}

@media(min-width:768px){.ams-reference-home .ams-ref-options-grid h3{font-size:clamp(18px,1.45vw,28px);min-height:calc(2.3em + 25px);}}

/* Complete slide artwork; only the inventory link is an HTML overlay. */
.ams-ref-slider .ams-ref-slide--image-only{padding:0;min-height:0;aspect-ratio:8/5;}
.ams-ref-slider .ams-ref-slide--image-only>img{inset:0;width:100%;height:100%;object-fit:contain;object-position:center;mix-blend-mode:normal;}
.ams-reference-home .ams-ref-slide--image-only>.ams-ref-button{width:auto;min-width:120px;right:5%;bottom:10%;box-shadow:0 2px 10px #0003;}

/* Uploaded homepage photography and static location map retain their full framing. */
.ams-ref-why-grid>img{height:auto;aspect-ratio:auto;}
.ams-reference-home .ams-ref-map--static{min-height:0!important;height:auto!important;align-self:center;}
.ams-ref-map--static>img{display:block;width:100%;height:auto;}

/* Separate mobile artwork; live promotional slides retain their complete images. */
.ams-ref-slide--image-only>picture{display:block;position:absolute;inset:0;}
.ams-ref-slide--image-only>picture>img{display:block;width:100%;height:100%;object-fit:contain;}
.ams-ref-slider .ams-ref-slide--live{height:auto;aspect-ratio:auto;}
.ams-ref-slide-artwork-link,.ams-ref-slide-artwork-link>picture{display:block;width:100%;}
.ams-ref-slide-artwork-link img{display:block;width:100%;height:auto;}
/* Reserve hero artwork space while remote images load and slides rotate. */
.ams-ref-slider{aspect-ratio:2500/1264;}
.ams-ref-slider .ams-ref-slide--image-only{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;}
.ams-ref-slide-artwork-link,.ams-ref-slide-artwork-link>picture{height:100%;}
.ams-ref-slide-artwork-link img{width:100%;height:100%;object-fit:contain;}
@media(max-width:767px){.ams-ref-slider{aspect-ratio:var(--ams-home-mobile-ratio,450/580);}}


/* Keep complete artwork visible; stack before the desktop copy becomes too tall. */
@media(min-width:1200px){
 .ams-ref-hero{min-height:0;align-items:stretch;}
 .ams-ref-slider{aspect-ratio:2500/1264;}
 .ams-ref-hero-copy{padding:clamp(20px,2vw,40px) 6% clamp(20px,2vw,40px) max(24px,calc((100vw - 1580px)/2));}
 .ams-reference-home .ams-ref-hero-copy h1{font-size:clamp(30px,3vw,58px);line-height:1.1;}
 .ams-ref-hero-copy p{font-size:clamp(16px,1.3vw,25px);margin:12px 0 20px!important;}
 .ams-ref-hero-actions{gap:16px;}
 .ams-ref-hero-actions a{min-width:0;min-height:48px;font-size:clamp(16px,1.2vw,23px)!important;padding:12px 20px!important;}
}
@media(min-width:768px) and (max-width:1199px){
 .ams-ref-hero{grid-template-columns:1fr;min-height:0;}
 .ams-ref-hero-copy{padding:36px max(24px,8vw);}
 .ams-ref-hero-copy>div{max-width:760px;width:100%;margin:auto;}
 .ams-ref-hero-copy p{max-width:620px;}
 .ams-ref-hero-actions{max-width:520px;}
 .ams-ref-slider{aspect-ratio:2500/1264;}
}

@media(min-width:768px) and (max-width:1199px){
 .ams-ref-hero-copy{padding-left:24px;padding-right:24px;}
 .ams-ref-hero-copy>div{max-width:none;margin:0;}
}
@media(max-width:767px){.ams-ref-hero-copy{padding-left:24px;padding-right:24px;}}

.ams-ref-inventory-grid .ams-ref-make{margin-bottom:12px;}

/* Give vehicle artwork breathing room above the bottom of each inventory tile. */
.ams-ref-inventory-grid .ams-ref-make img{bottom:12px;height:calc(79% - 12px);}
@media(max-width:767px){.ams-ref-inventory-grid .ams-ref-make img{height:calc(73% - 12px);}}

/* Active hero slide indicator uses the AMS brand green. */
.ams-ref-slider-dots button[aria-pressed="true"]{background:#087a4c;border-color:#087a4c;}

/* Full customer testimonials with accessible manual navigation. */
.ams-testimonial-slider{width:90%;max-width:none;outline-offset:8px;}
.ams-testimonial-track{display:block;}
.ams-testimonial-slide{margin:0;min-width:0;}
.ams-testimonial-slide[hidden]{display:none!important;}
.ams-ref-testimonial .ams-testimonial-slide blockquote{font-size:clamp(25px,2.6vw,40px);line-height:1.35;color:var(--ams-blue,#153359);margin:0 0 24px;max-width:none;}
.ams-ref-testimonial .ams-testimonial-slide figcaption{display:flex;flex-direction:column;gap:6px;font-size:20px;line-height:1.5;}
.ams-testimonial-slide figcaption a{font-size:13px;color:#0a7ad6;text-decoration:underline;text-underline-offset:3px;}
.ams-testimonial-controls{display:flex;align-items:center;gap:20px;margin-top:26px;}
.ams-testimonial-controls[hidden]{display:none;}
.ams-testimonial-controls>button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:1px solid #dce4ed;border-radius:50%;background:#fff;color:var(--ams-blue,#153359);font-size:24px;cursor:pointer;}
.ams-testimonial-controls>button:hover{background:var(--ams-blue,#153359);color:#fff;border-color:var(--ams-blue,#153359);}
.ams-testimonial-dots{display:flex;gap:2px;flex-wrap:wrap;}
.ams-testimonial-dots button{display:grid;place-items:center;width:28px;height:32px;padding:0;border:0;background:transparent;cursor:pointer;}
.ams-testimonial-dots button::after{content:'';width:8px;height:8px;border-radius:50%;background:#bdcddd;}
.ams-testimonial-dots button[aria-pressed=true]::after{background:var(--ams-green,#087a4c);width:10px;height:10px;}
.ams-testimonial-controls button:focus-visible{outline:2px solid var(--ams-green,#087a4c);outline-offset:3px;}
@media(max-width:767px){.ams-testimonial-controls{gap:12px;}.ams-testimonial-dots button{width:26px;}}

/* Mobile inventory cards stack; keep each label and arrow together. */
@media(max-width:767px){
 .ams-ref-inventory-grid{grid-template-columns:minmax(0,1fr);}
 .ams-ref-inventory-grid .ams-ref-make{aspect-ratio:1.8;margin-bottom:0;}
 .ams-ref-inventory-grid .ams-ref-make img{height:calc(88% - 12px);}
 .ams-reference-home .ams-ref-make h3{display:flex;align-items:center;gap:8px;white-space:nowrap;}
 .ams-ref-make h3 span{flex-shrink:0;}
}
