/* ============================================
   ZEHE SCAPES - Homepage only
   Hero (copy + before/after slider) and Google reviews.
   Loaded after style.css / responsive.css on index.html.
   ============================================ */

/* ============================================
   Hero
   ============================================ */
.home-hero {
  --hero-bg: #16301a;
  --hero-ink: #f4f0e6;
  --hero-muted: #b9c8b3;
  --hero-rule: rgba(244, 240, 230, 0.16);
  background-color: var(--hero-bg);
  color: var(--hero-ink);
  padding: 40px 0 48px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.home-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

.home-hero-eyebrow::before {
  content: '';
  flex: 0 0 28px;
  height: 2px;
  background: #ffd700;
}

.home-hero h1 {
  margin: 0 0 20px;
  color: var(--hero-ink);
  font-size: clamp(2.1rem, 7vw, 2.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.home-hero h1 em {
  display: block;
  font-style: normal;
  color: #ffd700;
}

.home-hero-lede {
  max-width: 25em;
  margin: 0 0 30px;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: #dfe6d9;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-bottom: 32px;
}

.home-hero-actions .btn-cta {
  box-shadow: none;
}

.home-hero-call {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
  color: var(--hero-ink);
}

.home-hero-call span {
  font-size: 0.78rem;
  color: var(--hero-muted);
}

.home-hero-call strong {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 215, 0, 0.55);
  transition: border-color var(--transition-fast);
}

.home-hero-call:hover {
  color: #fff;
}

.home-hero-call:hover strong {
  border-color: #ffd700;
}

/* Owner + Google rating */
.home-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  padding-top: 22px;
  border-top: 1px solid var(--hero-rule);
}

.hero-owner,
.hero-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}

.hero-owner img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 240, 230, 0.85);
}

.hero-owner strong,
.hero-rating strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hero-ink);
}

.hero-owner span,
.hero-rating span {
  font-size: 0.78rem;
  color: var(--hero-muted);
  white-space: nowrap;
}

a.hero-rating {
  color: var(--hero-ink);
}

.hero-rating-g {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
}

.hero-rating .stars {
  color: #fbbc04;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-right: 6px;
}

a.hero-rating:hover span:last-child {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Before / after slider ---------- */
.home-hero-work {
  min-width: 0;
}

/* Photo and job picker read as one object. */
.hs-card {
  overflow: hidden;
  border-radius: 12px;
  background: #21402a;
  box-shadow: 0 0 0 1px rgba(244, 240, 230, 0.1);
}

.hs {
  --pos: 50%;
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  overflow: hidden;
  background: #0e2011;
  user-select: none;
  -webkit-user-select: none;
}

.hs-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.hs-slide.is-active {
  display: block;
}

.hs-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* The "before" photo sits on top and is clipped from the left, so dragging
   right uncovers more of the finished job. */
.hs-slide .hs-before {
  clip-path: inset(0 0 0 var(--pos));
}

.hs-label {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(14, 24, 15, 0.72);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.hs-label-after { left: 14px; }
.hs-label-before { right: 14px; }
.hs.hide-before .hs-label-before,
.hs.hide-after .hs-label-after { opacity: 0; }

.hs-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.hs-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #16301a;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Invisible native range on top: free keyboard, touch and screen-reader support. */
.hs-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}

.hs-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 56px;
  height: 640px;
}

.hs-range::-moz-range-thumb {
  width: 56px;
  height: 640px;
  border: 0;
}

.hs:has(.hs-range:focus-visible) .hs-grip {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

/* Job picker under the photo */
.hs-meta {
  padding: 10px;
}

.hs-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.hs-tab {
  padding: 9px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--hero-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.hs-tab:hover {
  color: #fff;
  border-color: rgba(244, 240, 230, 0.45);
}

.hs-tab[aria-selected="true"] {
  background: var(--hero-ink);
  border-color: var(--hero-ink);
  color: #16301a;
}

.hs-tab:focus-visible,
.hs-more:focus-visible,
.home-hero-call:focus-visible,
a.hero-rating:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 3px;
}

.hs-more {
  display: block;
  width: fit-content;
  margin: 14px 0 0 auto;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffd700;
  white-space: nowrap;
}

.hs-more:hover {
  color: #fff;
}

@media (min-width: 900px) {
  .home-hero {
    padding: 88px 0 96px;
  }

  .home-hero-eyebrow { margin-bottom: 24px; }
  .home-hero h1 { margin-bottom: 26px; }
  .home-hero-lede { margin-bottom: 38px; }
  .home-hero-actions { margin-bottom: 42px; }
  .home-hero-proof { padding-top: 30px; }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .home-hero h1 {
    font-size: clamp(2.1rem, 3.15vw, 2.95rem);
  }

  .home-hero h1 em {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .home-hero-grid {
    gap: 80px;
  }
}

@media (max-width: 479px) {
  .home-hero-actions .btn {
    width: 100%;
  }

  .home-hero-call {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    margin: 4px auto 0;
  }
}

/* ============================================
   Google reviews
   ============================================ */
.reviews-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-off-white);
  border-top: 1px solid var(--color-gray-100);
}

/* Review wheel: the centre card is in focus, neighbours fall away to each side */
.gw-head {
  margin-bottom: 30px;
  text-align: center;
}

.gw-head h2 {
  margin: 0 0 12px;
}

a.gw-score {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  color: var(--color-gray-900);
  line-height: 1.2;
}

.gw-score strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.gw-score-stars {
  color: #fbbc04;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.gw-score-link {
  margin-left: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary);
}

a.gw-score:hover .gw-score-link {
  text-decoration: underline;
}

.gw {
  --gw-w: min(84vw, 360px);
  --gw-step: calc(var(--gw-w) * 0.94);
  overflow: hidden;
}

.gw-stage {
  position: relative;
  height: var(--gw-h, 300px);
  margin: 0;
  padding: 0;
  perspective: 1500px;
  transition: height 300ms ease;
  touch-action: pan-y;
}

.gw-card {
  --o: 0;
  --a: 0;
  position: absolute;
  top: 12px;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: var(--gw-w);
  margin-left: calc(var(--gw-w) / -2);
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid #e3e3de;
  border-radius: 12px;
  box-shadow: 0 10px 30px -14px rgba(26, 40, 26, 0.35);
  transform: translateX(calc(var(--o) * var(--gw-step))) scale(calc(1 - var(--a) * 0.1)) rotateY(calc(var(--o) * -6deg));
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: transform 550ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 450ms ease, box-shadow 450ms ease;
  will-change: transform, opacity;
}

.gw-card.no-anim {
  transition: none;
}

.gw-card[data-a="0"] {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

.gw-card[data-a="1"] {
  z-index: 2;
  opacity: 0.5;
  pointer-events: auto;
  box-shadow: none;
}

.gw-card[data-a="2"] {
  z-index: 1;
  opacity: 0.2;
  box-shadow: none;
}

.gw-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gw-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.gw-id {
  min-width: 0;
}

.gw-name {
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.3;
}

.gw-where {
  font-size: 0.8rem;
  color: #6b6b68;
}

.gw-g {
  flex-shrink: 0;
  margin-left: auto;
}

.gw-stars {
  margin-bottom: 10px;
  color: #fbbc04;
  font-size: 1.1rem;
  letter-spacing: 3px;
  line-height: 1;
}

.gw-body {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.62;
  color: #3f3f3c;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.gw-card.is-open .gw-body {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.gw-more {
  align-self: flex-start;
  margin-top: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
}

.gw-more:hover {
  text-decoration: underline;
}

.gw-more[hidden],
.gw-card:not([data-a="0"]) .gw-more {
  visibility: hidden;
}

.gw-more[hidden] {
  display: none;
}

.gw-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.gw-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d5d5cd;
  border-radius: 50%;
  background: #fff;
  color: var(--color-gray-800);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.gw-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.gw-dots {
  display: flex;
  gap: 2px;
}

.gw-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.gw-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9c9c0;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.gw-dot[aria-current="true"]::before {
  background: var(--color-primary);
  transform: scale(1.35);
}

.gw-arrow:focus-visible,
.gw-dot:focus-visible,
.gw-more:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .gw {
    --gw-w: 440px;
    --gw-step: 430px;
  }

  .gw-card {
    padding: 28px 30px 24px;
  }

  .gw-body {
    font-size: 1rem;
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gw-card,
  .gw-stage {
    transition: none;
  }
}

/* ============================================
   Service area (copy + map)
   ============================================ */
.area-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-cream);
}

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.area-copy h2 {
  margin: 0 0 14px;
}

.area-lede {
  max-width: 32em;
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--color-gray-600);
}

.area-towns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  max-width: 33em;
  margin: 0 0 26px;
  padding: 22px 0;
  border-top: 1px solid #dcdcd4;
  border-bottom: 1px solid #dcdcd4;
}

.area-towns li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-gray-800);
}

.area-towns svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

@media (min-width: 480px) {
  .area-towns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.area-ask {
  max-width: 32em;
  margin: 0 0 26px;
  color: var(--color-gray-600);
}

.area-ask a {
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Map */
.area-map-wrap {
  overflow: hidden;
  border-radius: 10px;
  background: #e6e6de;
}

.area-map {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

@media (min-width: 900px) {
  .area-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }
}

@media (min-width: 900px) {
  .area-map {
    height: 460px;
  }
}

@media (max-width: 479px) {
  .hs-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================
   Closing call to action
   ============================================ */
.home-cta {
  padding: 72px 0;
  background-color: #16301a;
  color: #f4f0e6;
  text-align: center;
}

.home-cta h2 {
  margin: 0 0 12px;
  color: #f4f0e6;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.home-cta-lede {
  margin: 0 0 30px;
  font-size: 1.12rem;
  color: #dfe6d9;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
}

.home-cta-actions .btn-cta {
  box-shadow: none;
}

.home-cta .home-hero-call {
  margin: 0;
  text-align: left;
  color: #f4f0e6;
}

.home-cta .home-hero-call span {
  color: #b9c8b3;
}

@media (min-width: 768px) {
  .home-cta {
    padding: 88px 0;
  }
}

/* Footer logo (cream version for the dark footer) */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 14px;
}

.footer .footer-logo {
  height: 112px;
  width: auto;
  margin: 0;
}

/* ============================================
   Hero on phones / small tablets: one calm, centred first screen
   (headline, subtitle, two buttons, proof), slider just below it.
   ============================================ */
.home-hero-work-btn {
  display: none;
}

@media (max-width: 899px) {
  .home-hero {
    padding: 0 0 52px;
    text-align: center;
  }

  .home-hero-grid {
    gap: 0;
  }

  .home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(calc(100svh - 62px), 780px);
    padding: 44px 0 48px;
  }

  .home-hero-eyebrow,
  .home-hero-call {
    display: none;
  }

  .home-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(1.8rem, 7.9vw, 3.2rem);
    line-height: 1.12;
  }

  .home-hero h1 em {
    white-space: nowrap;
  }

  .home-hero-lede {
    max-width: 22em;
    margin: 0 auto 36px;
    font-size: 1.15rem;
    line-height: 1.6;
  }

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 38px;
  }

  .home-hero-actions .btn {
    width: 100%;
  }

  .home-hero-work-btn {
    display: inline-flex;
    border-width: 2px;
    color: #f4f0e6;
    border-color: rgba(244, 240, 230, 0.85);
  }

  .home-hero-proof {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 0;
    border-top: 0;
    text-align: left;
  }

  .hs-more {
    margin: 18px auto 0;
  }
}

/* Service area on phones: heading, then the map, then a compact town grid
   and the button. The two paragraphs are dropped to keep it short. */
@media (max-width: 899px) {
  .area-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .area-copy {
    display: contents;
  }

  .area-copy h2 {
    order: 1;
    margin-bottom: 20px;
    text-align: center;
  }

  .area-map-wrap {
    order: 2;
    width: 100%;
  }

  .area-map {
    height: 250px;
  }

  .area-towns {
    order: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    padding: 20px 0;
    border-top: 0;
  }

  .area-towns li {
    gap: 5px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .area-towns svg {
    width: 14px;
    height: 14px;
  }

  .area-ask {
    order: 4;
    max-width: none;
    margin: 0 0 22px;
    font-size: 0.95rem;
    text-align: center;
  }

  .area-copy .btn {
    order: 5;
    width: 100%;
  }

  .area-lede {
    display: none;
  }
}

/* Phone hero: real job photo behind the copy, and the owner / Google
   proof as one prominent panel. */
@media (max-width: 899px) {
  .home-hero-copy {
    position: relative;
    isolation: isolate;
  }

  .home-hero-copy::before {
    content: '';
    position: absolute;
    inset: 0 -20px;
    z-index: -1;
    background-image:
      linear-gradient(rgba(16, 36, 20, 0.66), rgba(16, 36, 20, 0.88)),
      url('/images/home/front-yard-bed-renovation-after-grants-pass.jpg');
    background-image:
      linear-gradient(rgba(16, 36, 20, 0.66), rgba(16, 36, 20, 0.88)),
      image-set(url('/images/home/front-yard-bed-renovation-after-grants-pass.webp') type('image/webp'),
                url('/images/home/front-yard-bed-renovation-after-grants-pass.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
  }

  .home-hero-proof {
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    border: 1px solid rgba(244, 240, 230, 0.24);
    border-radius: 12px;
    background: rgba(10, 24, 13, 0.62);
  }

  .hero-owner,
  .hero-rating {
    gap: 14px;
    padding: 14px 16px;
  }

  .hero-rating {
    border-top: 1px solid rgba(244, 240, 230, 0.16);
  }

  .hero-owner img,
  .hero-rating-g {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
  }

  .hero-owner strong,
  .hero-rating strong {
    font-size: 1.08rem;
  }

  .hero-owner span,
  .hero-rating span {
    font-size: 0.86rem;
  }

  .hero-rating .stars {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }

  a.hero-rating::after {
    content: '';
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-top: 2px solid #b9c8b3;
    border-right: 2px solid #b9c8b3;
    transform: rotate(45deg);
  }

  .home-hero-work {
    padding-top: 40px;
  }
}

/* Desktop hero: a real job photo, heavily tinted, behind the copy side only.
   It fades into the solid green before it reaches the slider. */
@media (min-width: 900px) {
  .home-hero {
    position: relative;
    isolation: isolate;
  }

  .home-hero::before {
    content: '';
    position: absolute;
    inset: 0 42% 0 0;
    z-index: -1;
    background-image:
      linear-gradient(to right, rgba(22, 48, 26, 0.8) 0%, rgba(22, 48, 26, 0.86) 55%, #16301a 94%),
      url('/images/home/hero-backdrop-backyard-fence-lawn-grants-pass.jpg');
    background-image:
      linear-gradient(to right, rgba(22, 48, 26, 0.8) 0%, rgba(22, 48, 26, 0.86) 55%, #16301a 94%),
      image-set(url('/images/home/hero-backdrop-backyard-fence-lawn-grants-pass.webp') type('image/webp'),
                url('/images/home/hero-backdrop-backyard-fence-lawn-grants-pass.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
  }
}
