/* Home page: full-screen photo sections (same look as rims.html: catalogue photo, dark tint, glass cards, light text) */
#services.hp-photo,#wheels.hp-photo,#why.hp-photo,#process.hp-photo,#faq.hp-photo,#ready.hp-photo{
  position:relative;background:#101216;color:#fff;
  --white:#ffffff;--white-dim:rgba(255,255,255,.86);--white-faint:rgba(255,255,255,.68);
  --border:rgba(255,255,255,.3);--border-soft:rgba(255,255,255,.18);
}
.hp-art{position:absolute;inset:0;z-index:0;pointer-events:none;}
.hp-art img{width:100%;height:100%;object-fit:cover;object-position:right center;display:block;}
.hp-photo::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(10,11,14,.86) 0%,rgba(10,11,14,.6) 45%,rgba(10,11,14,.26) 100%);}
.hp-photo > .wrap:not(.services-label){position:relative;z-index:2;}
#services.hp-photo .services-label{z-index:2;}
.hp-photo .eyebrow{color:#ff6b78;}
.hp-photo .btn-ghost{color:#fff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.32);}
.hp-photo .btn-ghost:hover{background:rgba(255,255,255,.22);}
/* services: drop the boxed showcase so the photo is the background */
#services.hp-photo .services-showcase{background:transparent;border:0;box-shadow:none;padding:0;}
#services.hp-photo .services-showcase::before{display:none;}
/* process: glass step cards with a tidy number badge */
.hp-photo .process{gap:16px;}
.hp-photo .process::before{display:none;}
.hp-photo .process-step{padding:22px 22px 24px;border-radius:18px;background:rgba(14,14,18,.6);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
.hp-photo .process-step .idx{display:flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 0 14px;border-radius:50%;background:rgba(255,107,120,.14);border:1px solid rgba(255,107,120,.55);color:#ff8a95;font-family:var(--ff-mono);font-size:13px;}
.hp-photo .process-step h4{color:#fff;}
.hp-photo .process-step p{color:rgba(255,255,255,.82);}
/* faq: questions on the right over the red wheel photo, a touch of blur behind the text */
#faq.hp-photo > .wrap{display:flex;flex-direction:column;align-items:flex-end;}
#faq.hp-photo > .wrap > *{width:min(600px,100%);}
#faq.hp-photo .section-head,#faq.hp-photo .faq-list{backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);background:rgba(18,6,9,.1);border-radius:18px;}
#faq.hp-photo .section-head{padding:14px 22px 10px;margin-bottom:12px;}
#faq.hp-photo .faq-list{padding:2px 22px;border-top:0;}
#faq.hp-photo .hp-art img{object-position:left center;}
/* closing call-to-action: photo whole on the left, copy on the open red */
#ready.hp-cta{background:linear-gradient(180deg,#d9191f 0%,#d4191f 45%,#b3171c 100%);}
#ready.hp-cta::before{background:linear-gradient(270deg,rgba(30,0,5,.5) 0%,rgba(30,0,5,.18) 55%,rgba(30,0,5,0) 100%);}
#ready.hp-cta .hp-art{display:flex;align-items:flex-end;}
#ready.hp-cta .hp-art img{width:100%;height:auto;max-height:100%;object-fit:contain;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 26%);mask-image:linear-gradient(to bottom,transparent 0,#000 26%);}
#ready.hp-cta > .wrap{display:flex;flex-direction:column;align-items:flex-end;}
#ready.hp-cta > .wrap > *{width:min(620px,100%);}
#ready.hp-cta .cta-band{flex-direction:column;align-items:flex-start;gap:18px;background:rgba(14,4,7,.5);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
#ready.hp-cta .cta-band h2{color:#fff;}
#ready.hp-cta .cta-band p{color:rgba(255,255,255,.86);}
@media (max-width:900px){
  .hp-photo::before{background:rgba(10,11,14,.74);}
  #ready.hp-cta::before{background:rgba(25,0,4,.6);}
  #ready.hp-cta .hp-art{display:block;}
  #ready.hp-cta .hp-art img{height:100%;object-fit:cover;object-position:left center;-webkit-mask-image:none;mask-image:none;}
  #faq.hp-photo > .wrap,#ready.hp-cta > .wrap{align-items:stretch;}
}

/* faq: show the red photo exactly as it is (no extra tint) */
#faq.hp-photo::before{display:none;}
/* wheels: the two buttons in each card sit side by side */
#wheels .pillar-card .cta-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;}
#wheels .pillar-card .cta-actions .btn{flex:1 1 140px;justify-content:center;white-space:nowrap;}
/* process: steps in the left column so the truck and its wheels stay clear, photo nudged up and right */
#process.hp-photo .hp-art img{object-position:right center;transform:translate(6%,-7%) scale(1.14);}
#process.hp-photo > .wrap > *{max-width:min(640px,46vw);}
#process.hp-photo .process{grid-template-columns:1fr 1fr;gap:12px;}
#process.hp-photo .process-step{padding:16px 18px 18px;border-radius:16px;}
#process.hp-photo .process-step .idx{width:34px;height:34px;margin-bottom:10px;font-size:12px;}
@media (max-width:900px){
  #process.hp-photo .hp-art img{transform:translate(0,-4%) scale(1.08);object-position:70% center;}
  #process.hp-photo > .wrap > *{max-width:none;}
}

/* ---- phones: keep each photo section on one screen ---- */
@media (max-width:760px){
  html.home-page #services.hp-photo,html.home-page #wheels.hp-photo,html.home-page #why.hp-photo,
  html.home-page #process.hp-photo,html.home-page #faq.hp-photo,html.home-page #ready.hp-photo{padding-top:84px;padding-bottom:18px;}
  .hp-photo::before{background:rgba(10,11,14,.62);}
  #why.hp-photo .section-head h2,#process.hp-photo .section-head h2,#faq.hp-photo .section-head h2{font-size:clamp(24px,7vw,30px);line-height:1.12;white-space:normal;}
  #why.hp-photo .section-head,#process.hp-photo .section-head{margin-bottom:14px;}
  #why.hp-photo .why-grid{grid-template-columns:1fr 1fr;gap:10px;}
  #why.hp-photo .why-item{padding:14px;}
  #why.hp-photo .why-item .ic{margin-bottom:8px;}
  #why.hp-photo .why-item h4{font-size:14px;line-height:1.25;margin-bottom:6px;}
  #why.hp-photo .why-item p{font-size:12.5px;line-height:1.45;}
  #process.hp-photo .process{grid-template-columns:1fr 1fr;gap:10px;}
  #process.hp-photo .process-step{padding:14px;}
  #process.hp-photo .process-step .idx{width:30px;height:30px;margin-bottom:8px;font-size:11px;}
  #process.hp-photo .process-step h4{font-size:14px;margin-bottom:4px;}
  #process.hp-photo .process-step p{font-size:12.5px;line-height:1.45;}
  #faq.hp-photo .section-head{padding:10px 16px 6px;}
  #faq.hp-photo .faq-list{padding:2px 16px;}
  #wheels .pillars{gap:12px;}
  #wheels.hp-photo .section-head h2{font-size:clamp(24px,7vw,30px);}
}

/* phones: reviews become a swipeable row so the section fits one screen, with clearance under the nav */
@media (max-width:760px){
  html.home-page #reviews{padding-top:84px;padding-bottom:18px;}
  #reviews .review-grid{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:6px;margin-right:-20px;padding-right:20px;}
  #reviews .review-grid::-webkit-scrollbar{display:none;}
  #reviews .review-card{flex:0 0 84%;scroll-snap-align:start;}
  #reviews .reviews-head{margin-bottom:14px;}
}

/* services: the garage photo sits well back - darker tint plus a soft blur - so the cards and text carry the section */
#services.hp-photo::before{background:linear-gradient(90deg,rgba(8,9,12,.78) 0%,rgba(8,9,12,.7) 50%,rgba(8,9,12,.62) 100%);}
#services.hp-photo .hp-art img{object-position:center center;filter:blur(3px);transform:scale(1.04);}
@media (min-width:901px){ html.home-page #services.hp-photo{padding-top:150px;padding-bottom:14px;} }
@media (min-width:901px) and (max-height:760px){ html.home-page #services.hp-photo{padding-top:128px;} }
.hp-art{overflow:hidden;}

/* vehicle sales: the showroom photo, set back so the heading and vehicle cards lead */
#inventory.hp-photo{
  position:relative;background:#101216;color:#fff;
  --white:#ffffff;--white-dim:rgba(255,255,255,.86);--white-faint:rgba(255,255,255,.68);
  --border:rgba(255,255,255,.3);--border-soft:rgba(255,255,255,.18);
}
#inventory.hp-photo::before{background:linear-gradient(180deg,rgba(8,9,12,.72) 0%,rgba(8,9,12,.62) 45%,rgba(8,9,12,.74) 100%);}
#inventory.hp-photo .hp-art img{object-position:center 70%;}
#inventory.hp-photo .veh-card{background:rgba(20,20,26,.62);}
#inventory.hp-photo .veh-empty{background:rgba(14,14,18,.45);}

/* reviews: Calgary skyline at night behind the cards, Google rating + review buttons */
#reviews.hp-photo{
  position:relative;background:#0b0b14;color:#fff;
  --white:#ffffff;--white-dim:rgba(255,255,255,.86);--white-faint:rgba(255,255,255,.68);
  --border:rgba(255,255,255,.3);--border-soft:rgba(255,255,255,.18);
}
#reviews.hp-photo::before{background:linear-gradient(180deg,rgba(6,6,12,.62) 0%,rgba(6,6,12,.4) 40%,rgba(6,6,12,.62) 100%);}
#reviews.hp-photo .hp-art img{object-position:center 60%;}
#reviews.hp-photo .review-card{background:rgba(16,16,24,.6);}
#reviews.hp-photo .review-card p{color:rgba(245,245,247,.84);}
#reviews .reviews-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:18px;}
.g-review-actions{display:flex;flex-wrap:wrap;gap:10px;}
.g-rating{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:14px;color:rgba(255,255,255,.86);}
.g-rating-num{font-family:var(--ff-display);font-size:26px;font-weight:600;color:#fff;}
.g-rating-stars{color:#ffb400;letter-spacing:2px;}
.review-card img.review-avatar{object-fit:cover;}
.review-who a.name{color:#f5f5f7;}
.review-who a.name:hover{text-decoration:underline;}
.g-more{display:inline-block;margin:-10px 0 16px;font-size:13px;font-weight:600;color:var(--red-2);}
.g-attrib{margin-top:16px;font-size:12px;color:rgba(255,255,255,.62);}
@media (max-width:760px){
  #reviews .reviews-head{align-items:flex-start;gap:12px;}
  .g-review-actions .btn{flex:1 1 auto;padding:10px 14px;font-size:13px;}
}

/* booking section: nebula photo behind it, the form stays a clean white card; headline on one line */
#book.book-photo{background:#14060a;}
#book.book-photo::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(8,4,8,.55) 0%,rgba(8,4,8,.35) 40%,rgba(8,4,8,.55) 100%);}
#book.book-photo .hp-art img{object-position:center center;}
#book.book-photo .book-scroll{z-index:2;}
#book.book-photo .section-head .eyebrow{color:#ff8a95;}
#book.book-photo .section-head h2{color:#fff;white-space:nowrap;font-size:clamp(24px,6.4vw,64px);}
#book.book-photo .section-head p{color:rgba(255,255,255,.88);}
#book.book-photo .book-scroll{padding-top:96px;padding-bottom:28px;box-sizing:border-box;}
#book.book-photo .section-head h2{font-size:clamp(24px,6.4vw,56px);}
@media (max-width:760px){ #book.book-photo .book-scroll{padding-top:84px;} }

/* reviews: our real Google reviews in a swipeable row (3 across on desktop, 2 on tablets, 1 on phones) */
#reviews .review-grid{display:flex;gap:20px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px;}
#reviews .review-grid::-webkit-scrollbar{display:none;}
#reviews .review-card{flex:0 0 calc((100% - 40px) / 3);scroll-snap-align:start;display:flex;flex-direction:column;padding:26px;}
#reviews .review-card p{margin-bottom:14px;}
#reviews .review-text.is-long{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;}
#reviews .review-card.expanded .review-text{display:block;-webkit-line-clamp:unset;overflow:visible;}
.review-more{align-self:flex-start;background:none;border:0;padding:0;margin:-6px 0 14px;color:var(--red-2);font:inherit;font-size:13px;font-weight:600;cursor:pointer;}
.review-tags{display:flex;flex-wrap:wrap;gap:6px;margin:auto 0 14px;}
.review-tags span{font-size:11.5px;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:rgba(245,245,247,.8);}
.review-nav{display:flex;justify-content:flex-end;gap:10px;margin-top:14px;}
.review-nav[hidden]{display:none;}
.review-arrow{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.08);color:#fff;font-size:18px;line-height:1;cursor:pointer;transition:background .15s ease,border-color .15s ease;}
.review-arrow:hover:not(:disabled){background:var(--red);border-color:var(--red);}
.review-arrow:disabled{opacity:.35;cursor:default;}
.g-attrib a{color:#fff;text-decoration:underline;}
@media (max-width:1000px){#reviews .review-card{flex-basis:calc((100% - 20px) / 2);}}
@media (max-width:760px){
  #reviews .review-card{flex-basis:84%;padding:20px;}
  .review-nav{margin-top:10px;}
  .g-attrib{margin-top:8px;}
}

/* booking card: liquid glass, same material as the other cards on the site. The whole wizard reads its colours from
   the shared theme variables, so flipping them inside the card turns every step (options, packages, calendar, times,
   form fields) into the dark-glass look without restyling each control. Home page only - qrbooking stays as is. */
#book.book-photo .book-panel{
  --black:rgba(255,255,255,.04);--black-2:rgba(255,255,255,.07);--black-3:rgba(255,255,255,.06);--black-4:rgba(255,255,255,.1);
  --border:rgba(255,255,255,.2);--border-soft:rgba(255,255,255,.1);
  --white:#f5f5f7;--white-dim:rgba(245,245,247,.8);--white-faint:rgba(245,245,247,.62);
  --red-soft:rgba(227,28,44,.24);
  color:var(--white-dim);color-scheme:dark;
  background:rgba(30,30,38,.5);
  backdrop-filter:blur(28px) saturate(200%);-webkit-backdrop-filter:blur(28px) saturate(200%);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 30px 70px -24px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.14);
}
#book.book-photo .book-panel .btn-ghost{background:rgba(255,255,255,.08);color:#f5f5f7;border-color:rgba(255,255,255,.28);}
#book.book-photo .book-panel select option{color:#17171c;background:#fff;}
#book.book-photo .book-panel input::placeholder,#book.book-photo .book-panel textarea::placeholder{color:rgba(245,245,247,.45);}

/* service area: Calgary skyline at night (teal sky), skyline kept along the bottom, map card on the right */
#area.hp-photo{
  position:relative;background:#0c1a1f;color:#fff;
  --white:#ffffff;--white-dim:rgba(255,255,255,.86);--white-faint:rgba(255,255,255,.68);
  --border:rgba(255,255,255,.3);--border-soft:rgba(255,255,255,.18);
}
#area.hp-photo::before{background:linear-gradient(90deg,rgba(6,12,16,.62) 0%,rgba(6,12,16,.35) 50%,rgba(6,12,16,.2) 100%);}
#area.hp-photo .hp-art img{object-position:center 78%;}
#area.hp-photo .area-address{color:#fff;}
#area.hp-photo .map-frame{box-shadow:0 24px 60px -20px rgba(0,0,0,.6);}

/* short screens (small phones, phones held sideways, short laptop windows): sections grow to fit their content
   instead of clipping it behind an inner scrollbar; snapping eases off so tall sections scroll naturally */
@media (max-height:700px){
  html.home-page{scroll-snap-type:y proximity;}
  html.home-page #services,html.home-page #wheels,html.home-page #inventory,html.home-page #why,html.home-page #process,
  html.home-page #reviews,html.home-page #area,html.home-page #faq,html.home-page #ready{height:auto;min-height:100vh;min-height:100svh;overflow:visible;padding-top:84px;padding-bottom:40px;}
  #services.hp-photo .services-label{position:static;margin-bottom:14px;}
}
/* in-between widths (small laptops, resized windows, tablets in landscape): same grow-to-fit rule, so a section whose
   cards wrap to an extra row never clips; sections that fit stay exactly one screen tall */
@media (min-width:761px) and (max-width:1100px){
  html.home-page #services,html.home-page #wheels,html.home-page #inventory,html.home-page #why,html.home-page #process,
  html.home-page #reviews,html.home-page #area,html.home-page #faq,html.home-page #ready{height:auto;min-height:100vh;min-height:100svh;overflow:visible;}
}
