/* Home page v2 sections (H.4): materials, stone guide, why Imperial, steps, questions. Same colors as homepage.css. */
.hm-home .hv-materials,.hm-home .hv-compare,.hm-home .hv-why,.hm-home .hv-steps-section,.hm-home .hv-faq{padding-top:var(--hm-section-space)}
.hm-home .hm-section-head h2{text-wrap:balance}

/* Material cards */
.hm-home .hv-material-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--hm-card-gap)}
.hm-home .hv-material-card{display:flex;flex-direction:column;padding:0;border:1px solid var(--hm-line);border-radius:10px;background:#fff;color:var(--hm-ink);text-align:left;font:inherit;cursor:pointer;overflow:hidden;transition:box-shadow .15s ease,transform .15s ease}
.hm-home .hv-material-card:hover{box-shadow:0 12px 28px rgba(23,33,38,.14);transform:translateY(-2px)}
.hm-home .hv-material-photo{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--hm-soft)}
.hm-home .hv-material-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.hm-home .hv-photo-missing{display:block;width:100%;height:100%;background:repeating-linear-gradient(45deg,#e6ebed 0 10px,#eef2f3 10px 20px)}
.hm-home .hv-photo-count{position:absolute;right:10px;bottom:10px;padding:4px 8px;border-radius:4px;background:rgba(23,33,38,.82);color:#fff;font-size:12px;font-weight:700}
.hm-home .hv-material-body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px;flex:1}
.hm-home .hv-unit{color:#8b6500;font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}
.hm-home .hv-material-body strong{font-size:20px;line-height:1.2}
.hm-home .hv-material-blurb{color:var(--hm-muted);font-size:14px;line-height:1.5;flex:1}
.hm-home .hv-more{margin-top:6px;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:4px}

/* Gallery dialog */
.hv-dialog{width:min(1080px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:12px;background:#fff;color:#172126;font-family:Arial,Helvetica,sans-serif;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.hv-dialog::backdrop{background:rgba(23,33,38,.65)}
.hv-dialog-inner{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:28px;padding:28px}
.hv-close{position:absolute;top:10px;right:10px;z-index:2;width:44px;height:44px;border:0;border-radius:6px;background:#f2f5f6;color:#172126;font-size:28px;line-height:1;cursor:pointer}
.hv-main{position:relative;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#f2f5f6}
.hv-main img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.hv-arrow{position:absolute;top:50%;width:44px;height:44px;margin-top:-22px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#172126;font-size:30px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.hv-arrow.prev{left:10px}.hv-arrow.next{right:10px}
.hv-credit{margin:6px 0 0;color:#5b6b73;font-size:12px}
.hv-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:4px}
.hv-thumbs button{flex:none;width:72px;height:54px;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:#f2f5f6;cursor:pointer}
.hv-thumbs button[aria-current="true"]{border-color:#ffd34e;box-shadow:0 0 0 1px #172126}
.hv-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.hv-info{display:flex;flex-direction:column;gap:10px;padding-right:20px}
.hv-info .hv-unit{color:#8b6500;font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}
.hv-info h3{margin:0;font-size:32px;line-height:1.1;letter-spacing:-.8px}
.hv-info p{margin:0;color:#43545d;font-size:15px;line-height:1.55}
.hv-info h4{margin:8px 0 0;font-size:13px;letter-spacing:1px;text-transform:uppercase}
.hv-best{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.hv-best li{padding:6px 10px;border-radius:999px;background:#f2f5f6;font-size:13px;font-weight:700}
.hv-aka b{color:#172126}
.hv-request{margin-top:8px;min-height:50px;border:0;border-radius:6px;background:#ffd34e;color:#172126;font:700 16px/1.2 Arial,Helvetica,sans-serif;cursor:pointer}
.hv-request:hover{background:#f5c52f}
.hv-note{font-size:13px!important}


/* Why Imperial */
.hm-home .hv-why-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--hm-card-gap)}
.hm-home .hv-why-card{padding:22px;border:1px solid var(--hm-line);border-radius:10px;background:#fff}
.hm-home .hv-why-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--hm-yellow)}
.hm-home .hv-why-icon svg{width:22px;height:22px;fill:none;stroke:var(--hm-ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hm-home .hv-why-card h3{margin:14px 0 6px;font-size:18px;line-height:1.25}
.hm-home .hv-why-card p{margin:0;color:var(--hm-muted);font-size:14px;line-height:1.55}

/* Steps */
.hm-home .hv-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--hm-card-gap);margin:0;padding:0;list-style:none;counter-reset:none}
.hm-home .hv-steps li{position:relative;padding:22px;border-top:4px solid var(--hm-yellow);border-radius:0 0 10px 10px;background:#fff}
.hm-home .hv-step-num{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--hm-ink);color:#fff;font-weight:800}
.hm-home .hv-steps h3{margin:12px 0 6px;font-size:18px}
.hm-home .hv-steps p{margin:0;color:var(--hm-muted);font-size:14px;line-height:1.55}

/* Service buttons, two-column seller row */
.hm-home .customer-service .service-action{margin-top:auto}
.hm-home button.service-action{border:0;font:inherit;cursor:pointer}
.phase10 #publicLanding.hm-home .customer-service-grid.hv-two{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Questions */
.hm-home .hv-faq-list{display:grid;gap:10px;max-width:860px}
.hm-home .hv-faq details{border:1px solid var(--hm-line);border-radius:10px;background:#fff}
.hm-home .hv-faq summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:14px 18px;font-size:16px;font-weight:700;cursor:pointer;list-style:none}
.hm-home .hv-faq summary::-webkit-details-marker{display:none}
.hm-home .hv-faq summary:after{content:"+";font-size:24px;font-weight:400;line-height:1}
.hm-home .hv-faq details[open] summary:after{content:"−"}
.hm-home .hv-faq details p{margin:0;padding:0 18px 16px;color:var(--hm-muted);font-size:15px;line-height:1.6}

@media(max-width:1100px){
 .hm-home .hv-material-grid,.hm-home .hv-why-grid,.hm-home .hv-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
 .hv-dialog-inner{grid-template-columns:1fr;gap:18px;padding:16px}
 .hv-info{padding-right:0}
 .hv-info h3{font-size:26px}
 .hv-close{top:6px;right:6px}
 .phase10 #publicLanding.hm-home .customer-service-grid.hv-two{grid-template-columns:1fr}
}
@media(max-width:600px){
 .hm-home .hv-material-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .hm-home .hv-material-body{padding:12px}
 .hm-home .hv-material-body strong{font-size:16px}
 .hm-home .hv-material-blurb{display:none}
 .hm-home .hv-more{font-size:13px}
 .hm-home .hv-why-grid,.hm-home .hv-steps{grid-template-columns:1fr}
 .hv-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}
}
.hm-home .hv-also{margin:16px 0 0;color:var(--hm-muted);font-size:14px;line-height:1.6}
.hv-dialog{overflow:auto;overscroll-behavior:contain}
.hv-gallery,.hv-info{min-width:0}
/* "Making your day" fits on one line on computers. */
@media(min-width:801px){.phase10 #publicLanding.hm-home .hero h1{font-size:clamp(44px,4.4vw,56px)}}

/* Stone guide cards (replaces the old table, which scrolled sideways on phones) */
.hm-home .hv-stone-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--hm-card-gap)}
.hm-home .hv-stone{display:flex;flex-direction:column;gap:14px;padding:0 0 18px;border:1px solid var(--hm-line);border-radius:10px;background:#fff;overflow:hidden}
.hm-home .hv-stone-top{display:flex;flex-direction:column}
.hm-home .hv-stone-photo{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--hm-soft)}
.hm-home .hv-stone-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hm-home .hv-stone-head{padding:14px 18px 0}
.hm-home .hv-stone-size{display:inline-block;padding:3px 8px;border-radius:4px;background:var(--hm-soft);color:var(--hm-muted);font-size:12px;font-weight:700}
.hm-home .hv-stone-head h3{margin:8px 0 4px;font-size:20px;line-height:1.2}
.hm-home .hv-stone-head p{margin:0;color:var(--hm-muted);font-size:14px;line-height:1.5}
.hm-home .hv-stone-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:0;padding:12px 18px;border-top:1px solid #e3e8ea;border-bottom:1px solid #e3e8ea}
.hm-home .hv-stone-facts dt{color:var(--hm-muted);font-size:11px;font-weight:800;letter-spacing:.8px;text-transform:uppercase}
.hm-home .hv-stone-facts dd{margin:2px 0 0;font-size:14px;font-weight:700;line-height:1.35}
.hm-home .hv-stone-best{flex:1;margin:0;padding:0 18px;font-size:14px;line-height:1.5}
.hm-home .hv-stone-best b{display:block;color:#8b6500;font-size:11px;letter-spacing:1px;text-transform:uppercase}
.hm-home .hv-stone-btn{margin:0 18px;min-height:44px;border:1px solid var(--hm-ink);border-radius:6px;background:#fff;color:var(--hm-ink);font:700 14px/1.2 Arial,Helvetica,sans-serif;cursor:pointer}
.hm-home .hv-stone-btn:hover{background:var(--hm-soft)}

/* Driveway layers */
.hm-home .hv-driveway{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;margin-top:var(--hm-card-gap);padding:32px;border-radius:10px;background:var(--hm-ink);color:#fff}
.hm-home .hv-driveway h3{margin:0 0 12px;font-size:28px;line-height:1.15;letter-spacing:-.5px}
.hm-home .hv-driveway p{margin:0 0 10px;color:#dae1e4;font-size:15px;line-height:1.6}
.hm-home .hv-layers{margin:0;padding:0;list-style:none;border:1px solid rgba(255,255,255,.2);border-radius:8px;overflow:hidden}
.hm-home .hv-layer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;color:#172126}
.hm-home .hv-layer b{font-size:15px;text-shadow:0 0 6px rgba(255,255,255,.7)}
.hm-home .hv-layer span{padding:2px 8px;border-radius:4px;background:rgba(255,255,255,.75);font-size:13px;font-weight:700;text-align:right}
.hm-home .hv-layer.top{min-height:60px;background:radial-gradient(circle at 30% 35%,#8c969b 0 3px,transparent 3.5px) 0 0/14px 12px,#cdd3d6}
.hm-home .hv-layer.base{min-height:84px;background:radial-gradient(circle,#8f989d 0 1px,transparent 1.5px) 0 0/6px 6px,#b9c0c4}
.hm-home .hv-layer.surge{min-height:66px;border-top:2px dashed rgba(23,33,38,.4);background:radial-gradient(circle at 35% 40%,#7d878c 0 7px,transparent 7.5px) 0 0/28px 24px,#a6afb4}
.hm-home .hv-layer.ground{min-height:46px;background:#80603f;color:#fff}
.hm-home .hv-layer.ground b{text-shadow:none}

/* "You handle the job. We handle the trucks." band */
.hm-home .hm-about-promise{max-width:none;margin-top:6px;font-size:inherit;font-weight:800;line-height:inherit;letter-spacing:inherit}
.hm-home .hv-about-text{margin:22px 0 0;max-width:520px;color:#dae1e4;font-size:17px;line-height:1.6}
.hm-home .hv-about-cta{display:inline-flex;align-items:center;justify-content:center;min-height:50px;margin-top:26px;padding:12px 24px;border-radius:6px;background:var(--hm-yellow);color:var(--hm-ink);font-size:16px;font-weight:800;text-decoration:none}
.hm-home .hv-about-cta:hover{background:#f5c52f}

/* Footer */
.phase10 #publicLanding.hm-home .hv-footer{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"brand links" "area area";gap:18px 40px;align-items:center;padding:40px 0}
.hm-home .hv-footer-brand{grid-area:brand;display:flex;align-items:center;gap:16px}
.hm-home .hv-footer-brand p{margin:0;color:var(--hm-ink);font-size:14px;font-weight:700}
.hm-home .hv-footer-links{grid-area:links;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 22px}
.hm-home .hv-footer-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--hm-ink);font-size:14px;font-weight:600;text-decoration:none}
.hm-home .hv-footer-links a:hover{text-decoration:underline}
.hm-home .hv-footer-area{grid-area:area;padding-top:16px;border-top:1px solid var(--hm-line);color:var(--hm-muted);font-size:12px;line-height:1.6}

@media(max-width:1100px){
 .hm-home .hv-stone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
 .hm-home .hv-driveway{grid-template-columns:1fr;gap:20px;padding:22px}
 .hm-home .hv-driveway h3{font-size:24px}
 .phase10 #publicLanding.hm-home .hv-footer{grid-template-columns:1fr;grid-template-areas:"brand" "links" "area";gap:10px;padding:32px 0}
 .hm-home .hv-footer-brand{flex-direction:column;align-items:flex-start;gap:8px}
 .hm-home .hv-footer-links{justify-content:flex-start;gap:0 18px}
 .hm-home .hv-about-text{font-size:16px}
}
@media(max-width:600px){
 .hm-home .hv-stone-grid{grid-template-columns:1fr;gap:12px}
 .hm-home .hv-stone{gap:12px;padding-bottom:14px}
 .hm-home .hv-stone-top{flex-direction:row;align-items:flex-start;gap:12px;padding:14px 14px 0}
 .hm-home .hv-stone-photo{flex:none;width:96px;aspect-ratio:1/1;border-radius:8px}
 .hm-home .hv-stone-head{padding:0}
 .hm-home .hv-stone-head h3{margin:6px 0 2px;font-size:18px}
 .hm-home .hv-stone-facts{padding:10px 14px}
 .hm-home .hv-stone-best{padding:0 14px}
 .hm-home .hv-stone-btn{margin:0 14px}
 .hm-home .hv-layer{padding:12px}
 .hm-home .hv-layer b{font-size:14px}
 .hm-home .hv-layer span{font-size:12px}
}
