/* High Grade Excavation: inner-page components (build/inner.py). Colors and fonts come from the kit globals. */

/* ---- Text ---- */
.hge-paras p, .hge-lead p, .hge-answer p { margin: 0 0 1em; }
.hge-paras p:last-child, .hge-lead p:last-child, .hge-answer p:last-child { margin-bottom: 0; }
.hge-answer { margin-bottom: 1em; }
.hge-head-row .hge-lead p { margin: 0; }
.hge-paras a, .hge-lead a, .hge-answer a, .hge-faq a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hge-sec--dark .hge-lead a, .hge-sec--ink .hge-lead a { color: #fff; }

/* ---- Page hero ---- */
.hge-phero.e-con { position: relative; overflow: hidden; }
.hge-phero.e-con::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 10, 12, .9) 0%, rgba(9, 10, 12, .62) 50%, rgba(9, 10, 12, .2) 100%), linear-gradient(0deg, rgba(9, 10, 12, .55), transparent 45%);
}
.hge-phero > .hge-phero-wrap { position: relative; z-index: 2; }
.hge-phero-lead p { margin: 0; }
@media (max-width: 767px) {
  .hge-phero-h1 .elementor-heading-title { font-size: 46px !important; }
  .hge-phero-lead p { font-size: 17px !important; }
}

/* Breadcrumbs: a slash between items, the current page plain. */
.hge-crumbs .elementor-icon-list-items { row-gap: 6px; }
.hge-crumbs .elementor-icon-list-item + .elementor-icon-list-item::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, .35); }
.hge-crumbs .elementor-icon-list-item:last-child { color: rgba(255, 255, 255, .6); }
.hge-crumbs .elementor-icon-list-item:last-child .elementor-icon-list-text { color: rgba(255, 255, 255, .6) !important; }

/* ---- Checklist: two columns, a red square per item, hairlines between ---- */
.hge-checks .elementor-icon-list-items { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 36px; margin-top: 28px !important; border-top: 1px solid var(--e-global-color-a1c3e05); }
.hge-checks .elementor-icon-list-item { display: flex !important; align-items: flex-start; gap: 14px; padding: 15px 0 !important; margin: 0 !important; border-bottom: 1px solid var(--e-global-color-a1c3e05); }
.hge-checks .elementor-icon-list-item::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; background: var(--e-global-color-secondary); }
.hge-checks .elementor-icon-list-item::after { display: none; }
.hge-checks .elementor-icon-list-text span { display: block; font-weight: 400; font-size: 15.5px; color: var(--e-global-color-a1c3e03); }
.hge-checks--dark .elementor-icon-list-items, .hge-checks--dark .elementor-icon-list-item { border-color: rgba(255, 255, 255, .14); }
.hge-checks--dark .elementor-icon-list-text span { color: rgba(255, 255, 255, .65); }
@media (max-width: 767px) { .hge-checks .elementor-icon-list-items { grid-template-columns: 1fr; } }

/* ---- Steps: numbered with a red rule across the top ---- */
.hge-steps.e-con { counter-reset: hge-step; }
.hge-step.e-con { counter-increment: hge-step; padding: 30px 28px 6px 0; }
.hge-step.e-con + .hge-step.e-con { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
/* The number sits in the flow above the title (Elementor positions a container's ::before for background overlays). */
.hge-step.e-con::before {
  content: counter(hge-step, decimal-leading-zero) !important; position: static !important; inset: auto; width: auto; height: auto; opacity: 1;
  display: block; margin-bottom: 16px; background: none; font: 400 44px/1 var(--e-global-typography-primary-font-family), sans-serif; color: var(--e-global-color-a1c3e13);
}
.hge-step-title .elementor-heading-title { font-size: 24px !important; margin-bottom: 10px; }
.hge-step p { margin: 0; }
@media (max-width: 1024px) { .hge-step.e-con, .hge-step.e-con + .hge-step.e-con { padding: 26px 22px 18px 0; border-left: 0; } }

/* ---- Gallery: a photo grid with wide and tall tiles; a swipe row on phones ---- */
.hge-gal.e-con { grid-auto-rows: 260px; }
.hge-gal-item.e-con { position: relative; overflow: hidden; background: var(--e-global-color-a1c3e01); }
.hge-gal-item.e-con::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(9, 10, 12, .8)); }
.hge-gal-item > :not(.hge-cover) { position: relative; z-index: 2; }
.hge-gal-item .hge-cover img { transition: transform 1s cubic-bezier(.2, .7, .1, 1); }
.hge-gal-item:hover .hge-cover img { transform: scale(1.04); }
.hge-gal-cap .elementor-heading-title { font-size: 14px !important; }
.hge-gal-tag .elementor-heading-title { font-size: 12px !important; }
.hge-gal-w.e-con { grid-column: span 2; }
.hge-gal-t.e-con { grid-row: span 2; }
@media (max-width: 1024px) { .hge-gal.e-con { grid-auto-rows: 220px; } }
@media (max-width: 767px) {
  .hge-gal.e-con { grid-auto-flow: column !important; grid-template-columns: none !important; grid-auto-columns: 82%; grid-auto-rows: 260px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -20px !important; }
  .hge-gal.e-con::-webkit-scrollbar { display: none; }
  .hge-gal-item.e-con { grid-column: auto !important; grid-row: auto !important; scroll-snap-align: start; }
}

/* ---- Service tiles and the residential carousel ---- */
.hge-tile.e-con::after { background: linear-gradient(180deg, rgba(9, 10, 12, .05) 25%, rgba(9, 10, 12, .9)); }
.hge-tile p { margin: 0; }
@media (max-width: 767px) {
  .hge-tiles.e-con { grid-auto-flow: column !important; grid-template-columns: none !important; grid-auto-columns: 82%;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hge-tiles.e-con::-webkit-scrollbar { display: none; }
  .hge-tiles .hge-tile.e-con { scroll-snap-align: start; min-height: 320px; }
}
.hge-car-track.e-con { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hge-car-track.e-con::-webkit-scrollbar { display: none; }
.hge-car-track > .hge-tile.e-con { flex: 0 0 calc((100% - 6px) / 3.4); min-height: 400px; scroll-snap-align: start; }
@media (max-width: 1024px) { .hge-car-track > .hge-tile.e-con { flex-basis: 46%; } }
@media (max-width: 767px) { .hge-car-track > .hge-tile.e-con { flex-basis: 84%; } }
.hge-car-btn .elementor-button, .hge-thumb-btn .elementor-button { display: grid; place-items: center; padding: 0; cursor: pointer; }
.hge-car-btn .elementor-button { width: 54px; height: 54px; border: 1.5px solid var(--e-global-color-primary); background: #fff; color: var(--e-global-color-primary); transition: background .2s, color .2s; }
.hge-car-btn .elementor-button:hover { background: var(--e-global-color-primary); color: #fff; }
.hge-car-btn .elementor-button-text { display: none; }
.hge-car-prev .elementor-button-icon svg, .hge-thumb-prev .elementor-button-icon svg { transform: rotate(180deg); }
.hge-car-prev .elementor-button:hover .elementor-button-icon svg, .hge-thumb-prev .elementor-button:hover .elementor-button-icon svg { transform: rotate(180deg) translateX(4px); }

/* ---- FAQ (Elementor accordion): a heavy rule on top, hairlines between, a red plus that turns ---- */
.hge-faq .e-n-accordion { border-top: 2px solid var(--e-global-color-primary); }
.hge-faq .e-n-accordion-item { border-bottom: 1px solid var(--e-global-color-a1c3e05); }
.hge-faq .e-n-accordion-item-title { padding: 24px 0 !important; border: 0 !important; background: none !important; gap: 24px; justify-content: space-between; }
.hge-faq .e-n-accordion-item-title::after { content: "+"; flex: none; font: 400 30px/1 var(--e-global-typography-primary-font-family), sans-serif; color: var(--e-global-color-secondary); transition: transform .3s; }
.hge-faq .e-n-accordion-item[open] > .e-n-accordion-item-title::after { transform: rotate(45deg); }
.hge-faq .e-n-accordion-item-title-icon { display: none !important; }
.hge-faq .e-n-accordion-item > .e-con { padding: 0 0 24px !important; border: 0 !important; }
.hge-faq .e-n-accordion-item > .e-con p { margin: -6px 0 0; max-width: 860px; }

/* ---- Topographic maps ---- */
.hge-mapsec.e-con { overflow: hidden; }
.hge-mapbox.e-con { position: relative; }
.hge-mapbox.e-con::before { content: ""; position: absolute; inset: -40px; background: url(../img/topo-dark.svg) center / cover; opacity: .5; pointer-events: none; }
.hge-mapbox--panel.e-con::before { inset: 0; }
.hge-mapbox > * { position: relative; }
.nomi-map { position: relative; display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 86%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 86%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 86%, transparent); mask-composite: intersect; }
.nomi-map .land path, .nomi-map path.land { fill: #22262b; }
.nomi-map .water { font: 500 11px "JetBrains Mono", monospace; letter-spacing: .3em; fill: rgba(255, 255, 255, .28); }
.nomi-map .t1 circle { fill: #fff; }
.nomi-map .t2 circle { fill: #8d939a; }
.nomi-map text { font: 500 12.5px "Barlow", sans-serif; }
.nomi-map .t1 text { fill: #fff; font-weight: 600; }
.nomi-map .t2 text { fill: rgba(255, 255, 255, .62); }
.nomi-map .t1 text, .nomi-map .t2 text { paint-order: stroke; stroke: #22262b; stroke-width: 3px; }
.nomi-map .shop circle:not(.ping) { fill: var(--e-global-color-secondary); }
.nomi-map .ping { fill: none; stroke: var(--e-global-color-secondary); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hge-map-ping 2.4s ease-out infinite; }
@keyframes hge-map-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nomi-map .ping { animation: none; opacity: 0; } }
.nomi-map .topo path { fill: none; stroke: #fff; stroke-linejoin: round; }
.nomi-map .topo .mi { stroke-opacity: .07; stroke-width: .7; }
.nomi-map .topo .ix { stroke-opacity: .16; stroke-width: 1.1; }
.nomi-map path.coast { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: .9; }
.nomi-map .focus circle { fill: var(--e-global-color-secondary); }
.nomi-map .focus text { fill: #fff; font-size: 15px; }
.nomi-map.close text { font-size: 17px; }
.nomi-map.close .focus text { font-size: 21px; }
.hge-map-dir { position: absolute !important; right: 0; bottom: -8px; width: auto !important; }
.hge-mapbox--panel .hge-map-dir { right: 34px; bottom: 24px; }
@media (max-width: 767px) { .hge-mapbox--panel .hge-map-dir { right: 18px; } }
/* Map legend: a dot per item (shop in red with a halo, primary towns white, extended gray). */
.hge-legend .elementor-icon-list-item { display: flex !important; align-items: center; gap: 14px; }
.hge-legend .elementor-icon-list-item::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.hge-legend .elementor-icon-list-item:nth-child(1)::before { background: var(--e-global-color-secondary); box-shadow: 0 0 0 4px rgba(200, 20, 30, .3); }
.hge-legend .elementor-icon-list-item:nth-child(3)::before { background: #8d939a; }

/* ---- Towns (Service Areas): a grid of cells; towns with their own page are links with an arrow ---- */
.hge-towns.e-con { gap: 0 !important; }
.hge-town .elementor-heading-title { display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 20px 22px; background: #fff; box-shadow: 0 0 0 1.5px var(--e-global-color-a1c3e05); margin: .75px; transition: background .2s, color .2s; }
/* Towns with their own page: the whole cell is the link, with an arrow; it turns dark with white text on hover. */
.hge-town--link .elementor-heading-title { padding: 0; font-weight: 600 !important; }
.hge-town--link .elementor-heading-title a { display: flex; flex: 1; justify-content: space-between; align-items: center; align-self: stretch; padding: 20px 22px; color: inherit; }
.hge-town--link .elementor-heading-title a::after { content: "\2192"; color: var(--e-global-color-secondary); transition: transform .25s; }
.hge-town--link:hover .elementor-heading-title { background: var(--e-global-color-a1c3e0d); }
.hge-town--link:hover .elementor-heading-title a, .hge-town--link .elementor-heading-title a:focus-visible { color: #fff !important; }
.hge-town--link:hover .elementor-heading-title a::after { transform: translateX(4px); color: var(--e-global-color-a1c3e13); }

/* ---- Forms on Contact and Careers ---- */
.hge-formcard .hge-form .elementor-field-group input:not([type=file]), .hge-formcard .hge-form .elementor-field-group select { height: 52px; }
.hge-form textarea { padding: 12px 14px; resize: vertical; }
@media (max-width: 767px) { .hge-form input, .hge-form select, .hge-form textarea { font-size: 16px !important; } }   /* no zoom on focus */
/* Request types: three equal buttons in a light frame; the open one is dark. */
.hge-modes .e-n-tabs-heading { gap: 3px; padding: 3px; background: var(--e-global-color-a1c3e05); margin-bottom: 6px; }
.hge-modes .e-n-tab-title { height: 48px; border: 0 !important; }
@media (max-width: 767px) { .hge-modes .e-n-tabs-heading { flex-direction: column; } }
.hge-shop-photo img { width: 100%; aspect-ratio: 4 / 2.6; object-fit: cover; margin-bottom: 6px; }

/* ---- Intro photo ---- */
.hge-intro-media img, .hge-intro-media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hge-couple img { aspect-ratio: 4 / 4.2; object-position: center 35%; }

/* ---- Commercial ---- */
.hge-caps.e-con { border-top: 1px solid var(--e-global-color-a1c3e05); }
.hge-cap.e-con { padding: 38px 36px 40px 0; border-bottom: 1px solid var(--e-global-color-a1c3e05); }
.hge-cap.e-con:nth-child(3n+2), .hge-cap.e-con:nth-child(3n) { padding-left: 36px; border-left: 1px solid var(--e-global-color-a1c3e05); }
.hge-cap-title .elementor-heading-title { font-size: 25px !important; margin-bottom: 10px; }
.hge-cap p { margin: 0; }
@media (max-width: 1100px) {
  .hge-cap.e-con, .hge-cap.e-con:nth-child(3n+2), .hge-cap.e-con:nth-child(3n) { padding: 32px 28px 32px 0; border-left: 0; }
  .hge-cap.e-con:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--e-global-color-a1c3e05); }
}
@media (max-width: 767px) {
  .hge-caps.e-con { column-gap: 18px; }
  .hge-cap.e-con, .hge-cap.e-con:nth-child(even) { padding: 16px 0 !important; border-left: 0 !important; }
  .hge-cap-title .elementor-heading-title { font-size: 22px !important; margin: 0; }
}
.hge-case-media.e-con { position: relative; min-height: 640px; }
.hge-case-main.e-con { position: relative; flex: 1 1 auto; min-height: 300px; overflow: hidden; }
.hge-case-thumbs.e-con { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hge-case-thumbs.e-con::-webkit-scrollbar { display: none; }
.hge-case-thumbs > .hge-thumb { flex: 0 0 calc((100% - 12px) / 3); scroll-snap-align: start; }
.hge-thumb img { width: 100%; height: 150px; object-fit: cover; display: block; }
.hge-thumb-nav.e-con { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.hge-thumb-btn .elementor-button { width: 40px; height: 40px; border: 0; background: rgba(12, 13, 15, .82); color: #fff; }
.hge-thumb-btn .elementor-button:hover { background: var(--e-global-color-secondary); }
.hge-thumb-btn .elementor-button-text { display: none; }
@media (max-width: 1100px) { .hge-case-media.e-con { min-height: 520px; } }
@media (max-width: 767px) { .hge-case-media.e-con { min-height: 300px; } .hge-case-thumbs > .hge-thumb { flex-basis: 42%; } .hge-thumb img { height: 100px; } }
.hge-case-cap p { margin: 0; padding-left: 14px; border-left: 3px solid var(--e-global-color-secondary); font-size: 15px; }
.hge-pillars.e-con { border-top: 1px solid rgba(255, 255, 255, .14); }
.hge-pillar.e-con { padding: 36px 32px 36px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.hge-pillar.e-con:nth-child(even) { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .14); }
.hge-pillar-title .elementor-heading-title { font-size: 23px !important; margin-bottom: 10px; }
.hge-pillar p, .hge-quote-text p { margin: 0; }
@media (max-width: 767px) { .hge-pillar.e-con, .hge-pillar.e-con:nth-child(even) { padding: 16px 0 !important; border-left: 0 !important; } .hge-pillar-title .elementor-heading-title { font-size: 20px !important; margin: 0; } }
.hge-unit-img { overflow: hidden; }
.hge-unit-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--e-global-color-a1c3e02); transition: transform 1s cubic-bezier(.2, .7, .1, 1); }
.hge-unit:hover .hge-unit-img img { transform: scale(1.05); }
@media (max-width: 767px) {
  .hge-fleet.e-con { grid-auto-flow: column !important; grid-template-columns: none !important; grid-auto-columns: 62%;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hge-fleet.e-con::-webkit-scrollbar { display: none; }
  .hge-unit.e-con { scroll-snap-align: start; }
}

/* ---- Custom Homes ---- */
.hge-fam-hero.e-con { position: relative; }
.hge-fam-half.e-con { flex: 1 1 0; }
.hge-fam-half--dirt.e-con::after { background: linear-gradient(180deg, rgba(9, 10, 12, .75) 0%, rgba(9, 10, 12, .15) 40%, rgba(9, 10, 12, .9) 100%); }
.hge-fam-half--home.e-con::after { background: linear-gradient(180deg, rgba(9, 10, 12, .75) 0%, rgba(9, 10, 12, .1) 40%, rgba(13, 13, 13, .85) 100%); }
.hge-fam-logo img { height: 64px; width: auto; margin-bottom: 18px; }
.hge-fam-logo--home img { height: 92px; }
.hge-fam-title.e-con { position: absolute; z-index: 3; left: 0; right: 0; top: 0; pointer-events: none; }
.hge-fam-title.e-con a { pointer-events: auto; }
.hge-fam-title .hge-crumbs .elementor-icon-list-items { justify-content: center; }
@media (max-width: 1024px) {
  .hge-fam-title.e-con { position: relative; background: var(--e-global-color-a1c3e0d); pointer-events: auto; }
  .hge-fam-title .hge-crumbs .elementor-icon-list-items { justify-content: flex-start; }
}
.hge-p4.e-con { padding: 30px 26px 10px 0; }
.hge-p4.e-con + .hge-p4.e-con { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hge-p4-title .elementor-heading-title { font-size: 26px !important; }
.hge-p4 p { margin: 0; }
@media (max-width: 1024px) { .hge-p4.e-con, .hge-p4.e-con + .hge-p4.e-con { padding: 26px 22px 10px 0; border-left: 0; } }
.hge-famcta.e-con { transition: filter .3s; }
.hge-famcta.e-con:hover { filter: brightness(1.06); }
.hge-famcta p { margin: 0; }
.hge-famcta-title .elementor-heading-title { font-size: clamp(32px, 3vw, 44px) !important; }
.hge-famcta--ds .hge-famcta-title .elementor-heading-title { font-size: clamp(30px, 2.8vw, 40px) !important; letter-spacing: .03em; }
.hge-fam-mono img { height: 52px; width: auto; margin-bottom: 22px; }
@media (max-width: 1024px) { .hge-fam-mono img { height: 44px; } }
@media (min-width: 1025px) {
  .hge-famcta--gutter-left.e-con { padding-left: max(48px, calc((100vw - 1320px) / 2 + 48px)) !important; }
  .hge-famcta--gutter-right.e-con { padding-right: max(48px, calc((100vw - 1320px) / 2 + 48px)) !important; }
}
