/* ========================================================================== */
/* Giovanni's Tree Service — HOME V34                                         */
/* Safe visual/SEO layer built only on top of verified V32R2.                 */
/* ========================================================================== */

/* Header logo: enlarge the artwork inside the already-approved footprint. */
html[data-build="public-home-v34"] .public-nav {
  padding-left: 8px !important;
}

html[data-build="public-home-v34"] .brand-mark {
  overflow: visible !important;
}

html[data-build="public-home-v34"] .brand-seal .logo-light,
html[data-build="public-home-v34"] .brand-seal .logo-dark {
  width: 108px !important;
  height: 108px !important;
  max-width: 108px !important;
  max-height: 108px !important;
  transform: translateX(-7px);
  transform-origin: center;
  object-fit: contain !important;
}

html[data-build="public-home-v34"][data-theme="light"] .brand-seal .logo-dark,
html[data-build="public-home-v34"][data-theme="dark"] .brand-seal .logo-light {
  display: none !important;
}

html[data-build="public-home-v34"][data-theme="light"] .brand-seal .logo-light,
html[data-build="public-home-v34"][data-theme="dark"] .brand-seal .logo-dark {
  display: block !important;
}

/* Light/dark contrast requested for the hero controls, without moving them. */
html[data-build="public-home-v34"][data-theme="light"] .hero-actions .cta.outline {
  color: #0f3b1d !important;
  border-color: rgba(15, 59, 29, 0.34) !important;
  background: linear-gradient(180deg, #fffdf7 0%, #f4eee1 100%) !important;
  box-shadow: 0 10px 22px rgba(4, 17, 10, 0.14) !important;
}

html[data-build="public-home-v34"][data-theme="light"] .hero-actions .cta.outline img {
  filter: none !important;
}

html[data-build="public-home-v34"][data-theme="light"] .hero-trust > span {
  color: #0f3b1d !important;
  border-color: rgba(15, 59, 29, 0.22) !important;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(244, 238, 225, 0.98)) !important;
  box-shadow: 0 8px 18px rgba(4, 17, 10, 0.12);
}

html[data-build="public-home-v34"][data-theme="light"] .hero-trust img {
  filter: none !important;
}

html[data-build="public-home-v34"][data-theme="dark"] .hero-actions .cta.outline {
  color: #fffaf0 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

html[data-build="public-home-v34"][data-theme="dark"] .hero-actions .cta.outline img,
html[data-build="public-home-v34"][data-theme="dark"] .hero-trust img {
  filter: brightness(0) invert(1) !important;
}

html[data-build="public-home-v34"][data-theme="dark"] .hero-trust > span {
  color: #fffaf0 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none;
}

/* Remove the thin visual seam before the mobile hero image. */
html[data-build="public-home-v34"] .mobile-nav {
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}

html[data-build="public-home-v34"] .mobile-hero {
  display: block !important;
  margin-top: -1px !important;
  border-top: 0 !important;
  background-position: center 42% !important;
}

/* Gallery: a controlled increase from V32 (234 -> 244), never giant. */
html[data-build="public-home-v34"] .gallery-card,
html[data-build="public-home-v34"] .gallery-large,
html[data-build="public-home-v34"] .video-card,
html[data-build="public-home-v34"] .video-frame {
  height: 244px !important;
  min-height: 244px !important;
}

/* Social/directory block. Unique class names prevent collisions with old icons. */
html[data-build="public-home-v34"] .v34-social-block {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

html[data-build="public-home-v34"] .v34-social-heading {
  color: #fffaf0 !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-transform: uppercase;
}

html[data-build="public-home-v34"] .v34-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

html[data-build="public-home-v34"] .v34-social-link {
  width: 100% !important;
  min-width: 0;
  min-height: 38px;
  display: flex !important;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #fffaf0 !important;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

html[data-build="public-home-v34"] .v34-social-link:hover,
html[data-build="public-home-v34"] .v34-social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.10);
}

html[data-build="public-home-v34"] .v34-social-link > img {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  flex: 0 0 22px !important;
  display: block !important;
  object-fit: contain !important;
  filter: none !important;
}

html[data-build="public-home-v34"] .v34-social-link > span {
  min-width: 0;
  overflow: hidden;
  color: #fffaf0 !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-build="public-home-v34"] .v34-facebook { border-color: rgba(24, 119, 242, 0.48); }
html[data-build="public-home-v34"] .v34-instagram { border-color: rgba(221, 42, 123, 0.48); }
html[data-build="public-home-v34"] .v34-nextdoor { border-color: rgba(139, 198, 63, 0.50); }
html[data-build="public-home-v34"] .v34-yelp { border-color: rgba(211, 35, 35, 0.52); }
html[data-build="public-home-v34"] .v34-google { border-color: rgba(66, 133, 244, 0.48); }
html[data-build="public-home-v34"] .v34-mapquest { border-color: rgba(28, 126, 117, 0.52); }
html[data-build="public-home-v34"] .v34-experience { border-color: rgba(242, 140, 27, 0.52); }

@media (max-width: 1180px) and (min-width: 901px) {
  html[data-build="public-home-v34"] .brand-seal .logo-light,
  html[data-build="public-home-v34"] .brand-seal .logo-dark {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    transform: translateX(-6px);
  }
}

@media (max-width: 900px) {
  html[data-build="public-home-v34"] .gallery-card,
  html[data-build="public-home-v34"] .gallery-large,
  html[data-build="public-home-v34"] .video-card,
  html[data-build="public-home-v34"] .video-frame {
    height: 216px !important;
    min-height: 216px !important;
  }

  html[data-build="public-home-v34"][data-theme="light"] .trust-chips span,
  html[data-build="public-home-v34"][data-theme="light"] .mobile-secondary,
  html[data-build="public-home-v34"][data-theme="light"] .mobile-discounts span,
  html[data-build="public-home-v34"][data-theme="light"] .mobile-services span {
    color: #0f3b1d !important;
    border-color: rgba(15, 59, 29, 0.20) !important;
    background: linear-gradient(180deg, #fffdf7, #f4eee1) !important;
    box-shadow: 0 7px 16px rgba(4, 17, 10, 0.08);
  }

  html[data-build="public-home-v34"][data-theme="dark"] .trust-chips span,
  html[data-build="public-home-v34"][data-theme="dark"] .mobile-secondary,
  html[data-build="public-home-v34"][data-theme="dark"] .mobile-discounts span,
  html[data-build="public-home-v34"][data-theme="dark"] .mobile-services span {
    color: #fffaf0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: linear-gradient(180deg, rgba(9, 34, 19, 0.96), rgba(4, 17, 10, 0.99)) !important;
    box-shadow: none;
  }

  html[data-build="public-home-v34"] .v34-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  html[data-build="public-home-v34"] .gallery-card,
  html[data-build="public-home-v34"] .gallery-large,
  html[data-build="public-home-v34"] .video-card,
  html[data-build="public-home-v34"] .video-frame {
    height: 196px !important;
    min-height: 196px !important;
  }

  html[data-build="public-home-v34"] .v34-social-grid {
    grid-template-columns: 1fr;
  }
}

/* Separate the mobile theme control visually from the language selector. */
@media (max-width: 900px) {
  html[data-build="public-home-v34"] .mobile-nav [data-theme-toggle] {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid var(--line) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    line-height: 1 !important;
    background: transparent !important;
  }
}
