/* ============================================================
   SLATE home, full redesign. Structure follows the Hustle Smarter /
   Biz Boosters home-service pattern (utility bar, photo hero, tilted
   trust band, about, photo service tiles, recent jobs, why us,
   reviews, call-now band, FAQ, service area, CTA), dressed in
   Slate's own retro badge identity. Loaded after styles.css.
   Brand edge device: badge-tooth scallops.
   ============================================================ */

:root { --h-dark: #1E2A30; --h-navy: #384B57; --h-cream: #D8C3A8; --h-tooth: 11px; }

/* ----- shared bits ----- */
.h-label {
  display: inline-block; background: var(--h-navy); color: #fff;
  font-weight: 700; font-size: 0.84rem; line-height: 1; padding: 0.5rem 0.8rem; border-radius: 4px;
  margin-bottom: 1rem; letter-spacing: 0.01em;
}
.on-dark .h-label { background: var(--h-cream); color: var(--h-dark); }
.h-title { font-size: clamp(1.75rem, 4.2vw, 2.9rem); text-transform: uppercase; line-height: 1.08; }
.h-title em { font-style: normal; color: var(--h-navy); }
.on-dark .h-title { color: #fff; }
.on-dark .h-title em { color: var(--h-cream); }
.h-sec { padding: 5rem 0; position: relative; }
@media (max-width: 639px) { .h-sec { padding: 3.4rem 0; } }
.h-center { text-align: center; }
.h-center .h-title { margin-left: auto; margin-right: auto; max-width: 20ch; }
.h-center p { margin-left: auto; margin-right: auto; }
.btn-cream { background: var(--h-cream); color: var(--h-dark); border-color: var(--h-cream); }
.btn-cream:hover { background: #E8D8C0; border-color: #E8D8C0; }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn-line-light:hover { background: rgba(255,255,255,0.14); }

/* badge-tooth scallop: a dark section pushes teeth up into the section above */
.teeth-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--h-tooth) * -1 + 1px); height: var(--h-tooth);
  background: radial-gradient(circle at 50% 100%, var(--tooth, var(--h-dark)) 0 calc(var(--h-tooth) - 1px), transparent var(--h-tooth)) 0 0 / calc(var(--h-tooth) * 2) var(--h-tooth) repeat-x;
  pointer-events: none;
}

/* ----- utility bar ----- */
.h-util { background: var(--h-dark); color: #E9E2D6; font-size: 0.86rem; }
.h-util-in { max-width: 1280px; margin: 0 auto; padding: 0.5rem 24px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.h-util a { color: inherit; text-decoration: none; font-weight: 700; }
.h-util a:hover { text-decoration: underline; }
.h-util .u-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.h-util .u-right { display: flex; gap: 1.4rem; align-items: center; }
@media (max-width: 639px) {
  /* the sticky Call Now bar already carries the phone number on phones */
  .h-util { display: none; }
}

/* ----- hero: full-bleed photo, left copy, squeegee wipe kept ----- */
.h-hero { position: relative; isolation: isolate; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--h-dark); }
.h-hero .hero-split-photo { position: absolute; inset: 0; min-height: 0; z-index: 0; }
.h-hero .hero-split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.h-hero .hero-split-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,28,32,0.9) 0%, rgba(20,28,32,0.72) 38%, rgba(20,28,32,0.18) 72%, rgba(20,28,32,0.05) 100%);
}
@media (max-width: 959px) {
  .h-hero .hero-split-photo::after { background: linear-gradient(180deg, rgba(20,28,32,0.22) 0%, rgba(20,28,32,0.5) 42%, rgba(20,28,32,0.88) 100%); }
}
.h-hero-copy { position: relative; z-index: 3; width: 100%; max-width: 1280px; margin: 0 auto; padding: 4.5rem 24px 6rem; pointer-events: none; }
.h-hero-copy a { pointer-events: auto; }
.h-hero-copy .h-label { background: var(--h-cream); color: var(--h-dark); }
.h-hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.06; max-width: 17ch; text-shadow: 0 2px 22px rgba(0,0,0,0.35); }
.h-hero-sub { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 46ch; margin: 1.2rem 0 1.9rem; }
.h-hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.h-hero .wipe-cue { left: auto; right: 2rem; bottom: 4.8rem; transform: none; }
@media (max-width: 639px) {
  .h-hero { min-height: 560px; align-items: flex-end; }
  .h-hero-copy { padding: 3rem 22px 6.4rem; }
  .h-hero-sub { font-size: 1rem; }
  .h-hero-cta .btn { flex: 1 1 100%; }
}

/* ----- trust band: tilted, overlaps the hero ----- */
.h-trust-wrap { position: relative; z-index: 4; margin-top: -3.2rem; overflow: hidden; padding: 1.6rem 0 1.2rem; }
.h-trust {
  background: var(--h-navy); color: #fff; transform: rotate(-1.2deg); width: 104%; margin-left: -2%;
  border-top: 4px solid var(--h-cream); border-bottom: 4px solid var(--h-cream);
  box-shadow: 0 10px 28px rgba(20,28,32,0.28);
}
.h-trust ul { list-style: none; margin: 0 auto; padding: 1.05rem 24px; max-width: 1180px; display: grid; gap: 0.9rem 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .h-trust ul { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
.h-trust li { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.h-trust li b { font-family: var(--disp); font-weight: 400; font-size: 1.45rem; color: var(--h-cream); }
.h-trust .stars { color: var(--h-cream); letter-spacing: 0.12em; font-size: 0.95rem; }
/* desktop: the second list exists only for the phone marquee */
.h-trust-track ul + ul { display: none; }
@media (max-width: 639px) {
  /* phone: one scrolling row, a diamond between items so each reads as its own proof point */
  .h-trust { overflow: hidden; -webkit-mask-image: none; }
  .h-trust-track { display: flex; width: max-content; animation: h-roll 28s linear infinite; will-change: transform; }
  .h-trust-track ul, .h-trust-track ul + ul { display: flex; align-items: center; flex: 0 0 auto; grid-template-columns: none; gap: 0; margin: 0; padding: 0.95rem 0; max-width: none; }
  .h-trust li { white-space: nowrap; font-size: 0.95rem; padding: 0 0.9rem; }
  .h-trust li::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 1.8rem; background: var(--h-cream); transform: rotate(45deg); flex: 0 0 auto; }
  .h-trust li b { font-size: 1.35rem; }
}
@keyframes h-roll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (max-width: 639px) and (prefers-reduced-motion: reduce) {
  /* no motion: two tidy rows, split by hairlines so rows and items stay distinct */
  .h-trust-track { animation: none; width: auto; display: block; }
  .h-trust-track ul + ul { display: none; }
  .h-trust-track ul { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .h-trust li { white-space: normal; padding: 0.9rem 18px; border-top: 1px solid rgba(216,195,168,0.4); }
  .h-trust li:nth-child(odd) { border-right: 1px solid rgba(216,195,168,0.4); }
  .h-trust li:nth-child(-n+2) { border-top: 0; }
  .h-trust li::after { display: none; }
}

/* ----- about ----- */
.h-about { background: var(--paper); padding-top: 4.2rem; }
.h-about-grid { display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 900px) { .h-about-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.h-about p { color: #4C565B; }
.h-photo-frame { position: relative; margin: 0 14px 14px 0; }
.h-photo-frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--h-navy); border-radius: 18px; transform: rotate(1.4deg); }
.h-photo-frame img { position: relative; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 18px; border: 4px solid var(--paper); }
.h-about .btn { margin-top: 0.6rem; }

/* ----- services: six photo tiles ----- */
.h-services { background: #EEF1F1; }
.h-services .h-lede { color: #5B6A70; max-width: 58ch; margin-top: 0.9rem; font-size: 1.05rem; }
.h-tiles { display: grid; gap: 1.1rem; margin-top: 2.6rem; }
@media (min-width: 640px) { .h-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .h-tiles { grid-template-columns: repeat(3, 1fr); gap: 1.3rem; } }
.h-tile { position: relative; display: block; aspect-ratio: 4 / 3.15; overflow: hidden; border-radius: 12px; background: var(--h-dark); text-decoration: none; color: #fff; box-shadow: 0 10px 26px rgba(30,42,48,0.16); }
.h-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.22,1,.36,1); }
.h-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,28,32,0.94) 0%, rgba(20,28,32,0.2) 52%, transparent 74%); }
.h-tile-cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem 1.2rem; }
.h-tile h3 { color: #fff; text-transform: uppercase; font-size: 1.22rem; }
.h-tile p { margin: 0.35rem 0 0.8rem; font-size: 0.92rem; color: rgba(255,255,255,0.86); }
.h-tile .h-more { display: inline-block; background: var(--h-cream); color: var(--h-dark); font-weight: 800; font-size: 0.85rem; padding: 0.5rem 0.95rem; border-radius: 4px; }
.h-tile:hover img, .h-tile:focus-visible img { transform: scale(1.06); }
.h-tile:focus-visible { outline: 3px solid var(--h-cream); outline-offset: 3px; }
.h-services-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2.4rem; }

/* ----- holiday band ----- */
.h-holiday { background: var(--h-dark); color: #F6F0E6; padding: 0; overflow: visible; --tooth: var(--h-dark); }
.h-holiday-in { display: grid; }
@media (min-width: 900px) { .h-holiday-in { grid-template-columns: 1fr 1fr; min-height: 460px; } }
.h-holiday-photo { position: relative; min-height: 280px; }
.h-holiday-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-holiday-copy { padding: clamp(2.4rem, 6vw, 4.4rem) clamp(24px, 5vw, 70px); align-self: center; }
.h-holiday-copy p { color: rgba(246,240,230,0.84); margin-top: 1rem; }
.h-holiday-copy .note { color: var(--h-cream); font-weight: 700; border-left: 3px solid var(--h-cream); padding-left: 1rem; }
.h-holiday-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* ----- recent jobs ----- */
.h-jobs { background: var(--paper); }
.h-jobs-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; margin-top: 2.4rem; }
@media (min-width: 640px) { .h-jobs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .h-jobs-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; } .h-jobs-grid .big { grid-column: span 2; grid-row: span 2; } .h-jobs-grid .tall { grid-row: span 2; } }
@media (max-width: 639px) {
  .h-jobs-grid { display: flex; gap: 0.7rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -24px; margin-right: -24px; padding: 0 24px 0.3rem; scrollbar-width: none; scroll-padding-left: 24px; }
  .h-jobs-grid::-webkit-scrollbar { display: none; }
  .h-jobs-grid .job { flex: 0 0 82%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
}
.job { position: relative; overflow: hidden; border-radius: 12px; background: var(--h-dark); border: 4px solid var(--h-navy); }
.job img { width: 100%; height: 100%; object-fit: cover; }
/* squeegee-wipe reveal (JS adds .js to <html>) */
.js .job::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 20% 30%, rgba(200,205,198,0.55), transparent 60%), linear-gradient(180deg, rgba(222,226,220,0.72), rgba(196,201,194,0.8));
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  clip-path: inset(0 0 0 0); transition: clip-path 1.05s cubic-bezier(.65,.05,.25,1) var(--wipe-delay, 0s);
}
.js .job::after {
  content: ""; position: absolute; top: -4%; bottom: -4%; left: 0; width: 7px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), #F6F0E6 40%, rgba(216,195,168,0.9)); border-radius: 3px;
  box-shadow: 0 0 16px 4px rgba(246,240,230,0.55); opacity: 0;
}
.js .job.is-wiped::before { clip-path: inset(0 0 0 100%); }
.js .job.is-wiped::after { animation: blade 1.05s cubic-bezier(.65,.05,.25,1) var(--wipe-delay, 0s) both; }
@keyframes blade { 0% { opacity: 1; left: 0; } 92% { opacity: 1; } 100% { opacity: 0; left: calc(100% - 7px); } }
@media (prefers-reduced-motion: reduce) { .js .job::before, .js .job::after { display: none; } }

/* ----- why choose us ----- */
.h-why { background: var(--h-dark); color: #F6F0E6; --tooth: var(--h-dark); }
.h-why-grid { display: grid; gap: 2.8rem; align-items: center; }
@media (min-width: 900px) { .h-why-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.h-checks { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.h-checks li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; background: rgba(216,195,168,0.08); border: 1px solid rgba(216,195,168,0.22); border-radius: 12px; padding: 1rem 1.1rem; }
.h-checks .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--h-cream); display: grid; place-items: center; }
.h-checks .tick svg { width: 24px; height: 24px; stroke: var(--h-dark); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.h-checks h3 { color: #fff; text-transform: uppercase; font-size: 1.02rem; margin-bottom: 0.2rem; }
.h-checks p { margin: 0; color: rgba(246,240,230,0.78); font-size: 0.95rem; }
.h-why-photo { position: relative; margin: 0 14px 14px 0; }
.h-why-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--h-cream); border-radius: 18px; transform: rotate(-1.4deg); opacity: 0.9; }
.h-why-photo img { position: relative; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 18px; border: 4px solid var(--h-dark); }

/* reviews reuse the existing carousel; add the tooth edge */
.h-reviews { --tooth: #384B57; }

/* ----- call-now band ----- */
.h-call { background: var(--h-cream); text-align: center; padding: 3.6rem 0; }
.h-call .h-title { color: var(--h-dark); }
.h-call-num { display: inline-block; margin-top: 1.3rem; background: var(--h-dark); color: #fff; text-decoration: none; font-family: var(--disp); font-size: clamp(1.6rem, 5vw, 2.6rem); padding: 0.7rem 1.8rem; border-radius: 10px; }
.h-call-num:hover { background: var(--h-navy); }

/* ----- FAQ ----- */
.h-faq { background: #EEF1F1; }
.h-faq .faq { margin-top: 2.4rem; }

/* ----- service area ----- */
.h-area { background: var(--h-dark); --tooth: var(--h-dark); }
.area-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.3rem 0 1.4rem; }
.area-pill { display: inline-flex; align-items: center; padding: 0.7rem 1.2rem; border-radius: 6px; background: var(--h-cream); color: var(--h-dark); font-weight: 800; font-size: 0.97rem; text-decoration: none; border: 2px solid var(--h-cream); transition: background 0.18s, color 0.18s; }
.area-pill:hover, .area-pill:focus-visible { background: transparent; color: var(--h-cream); }

/* ----- closing CTA over the hero photo ----- */
.h-cta { position: relative; isolation: isolate; text-align: center; padding: 5rem 0; color: #fff; background: var(--h-dark); overflow: hidden; }
.h-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.h-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,28,32,0.78), rgba(20,28,32,0.86)); }
.h-cta .h-title { color: #fff; max-width: 16ch; margin: 0 auto; }
.h-cta .h-title em { color: var(--h-cream); }
.h-cta p { color: rgba(255,255,255,0.88); margin: 1rem auto 1.8rem; }
.h-cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
