:root {
  --lid-gold: #e59a22;
  --lid-gold-dark: #c98216;
  --lid-black: #0b0b0b;
  --lid-cream: #f7f3eb;
  --lid-text: #171717;
  --lid-white: #ffffff;
  --lid-muted: #5f6368;
  --lid-border: rgba(255, 255, 255, 0.14);
  --lid-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --lid-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --lid-radius: 18px;
  --lid-max-width: 1180px;
}

body.page-template-landing .et-l--header,
body.page-template-landing #main-header,
body.page-template-landing #top-header {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

.lid-landing-page,
.lid-landing-page * {
  box-sizing: border-box;
}

.lid-landing-page {
  margin: 0;
  color: var(--lid-text);
  background: var(--lid-cream);
  font-family: Arial, Helvetica, sans-serif;
}

.lid-landing-page a {
  text-decoration: none;
  color: inherit;
}

.lid-landing-page img {
  max-width: 100%;
  display: block;
}

.lid-container {
  width: min(var(--lid-max-width), calc(100% - 24px));
  margin: 0 auto;
}

.lid-topbar {
  background: var(--lid-gold);
  color: #000;
  text-align: center;
  padding: 11px 14px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
}

.lid-topbar a {
  text-decoration: underline;
}

.lid-navbar {
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lid-navbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 10px 0;
}

.lid-navbar__brand img {
  height: 42px;
  width: auto;
}

.lid-navbar__phone {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

.lid-hero {
  position: relative;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.6) 42%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    url('https://heartwoodprotree.com/wp-content/uploads/2025/09/DSC7628-scaled.jpg')
      center/cover;
  color: #fff;
  padding: 36px 0 44px;
}

.lid-hero__inner {
  display: grid;
  gap: 22px;
  align-items: start;
  justify-content: center;
}

.lid-hero__content {
  max-width: 720px;
}

.lid-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.lid-hero__subtitle {
  margin: 18px 0 0;
  color: #f6f6f6;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  max-width: 700px;
}

.lid-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.lid-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.lid-btn:hover {
  transform: translateY(-1px);
}

.lid-btn-primary {
  background: var(--lid-gold);
  color: #000;
  box-shadow: 0 14px 30px rgba(229, 154, 34, 0.28);
}

.lid-btn-primary:hover {
  background: var(--lid-gold-dark);
}

.lid-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(6px);
}

.lid-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.44);
}

.lid-btn-dark {
  background: #000;
  color: #fff !important;
}

.lid-trust-row {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.96;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}

.lid-form-box {
  background: rgba(255, 255, 255, 0.98);
  color: var(--lid-text);
  border-radius: 22px;
  padding: 18px 18px 14px;
  box-shadow: var(--lid-shadow);
  width: 100%;
}

.lid-form-box h3 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 800;
  color: #0f1720;
}

.lid-form-sub {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 14px;
  line-height: 1.45;
}

.lid-form-embed {
  min-height: 0;
}

.lid-form-embed iframe,
.lid-form-embed .jobber-work-request {
  width: 100%;
  max-width: 100%;
}

.lid-form-placeholder {
  min-height: 280px;
  border: 2px dashed #d8d8d8;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  text-align: center;
  padding: 20px;
}

.lid-section {
  padding: 56px 0;
}

.lid-section h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 800;
  color: var(--lid-text);
  letter-spacing: -0.02em;
}

.lid-cards {
  display: grid;
  gap: 16px;
}

.lid-cards-3 {
  grid-template-columns: 1fr;
}

.lid-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--lid-card-shadow);
}

.lid-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lid-card small {
  display: block;
  font-size: 15px;
  line-height: 1.55;
  color: #555;
}

.lid-step-card {
  font-weight: 700;
  font-size: 18px;
}

.lid-reviews {
  background: #111;
  color: #fff;
}

.lid-reviews h2 {
  color: #fff;
}

.lid-review {
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: 16px;
  line-height: 1.65;
  font-size: 16px;
}

.lid-image-strip {
  display: grid;
  gap: 12px;
}

.lid-image-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
}

.lid-cta-banner {
  background: var(--lid-gold);
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  color: #000;
  box-shadow: var(--lid-card-shadow);
}

.lid-cta-banner h2 {
  color: #000;
  margin-bottom: 10px;
}

.lid-cta-banner p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.lid-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 32px 0;
}

/* Desktop conversion-first layout */
@media (min-width: 1024px) {
  .lid-hero {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    padding: 36px 0;
  }

  .lid-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 500px);
    align-items: center;
    gap: 40px;
  }

  .lid-hero__content {
    padding: 18px 0;
  }

  .lid-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .lid-btn {
    min-width: 180px;
  }

  .lid-form-box {
    max-height: calc(100vh - 265px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: center;
  }

  .lid-form-embed {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
  }

  .lid-form-embed::-webkit-scrollbar {
    width: 8px;
  }

  .lid-form-embed::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
  }

  .lid-cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lid-image-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet and mobile */
@media (max-width: 1023px) {
  body.page-template-landing {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }

  .lid-topbar {
    font-size: 14px;
    padding: 10px 12px;
  }

  .lid-navbar__inner {
    min-height: 60px;
  }

  .lid-navbar__brand img {
    height: 34px;
  }

  .lid-navbar__phone {
    font-size: 15px;
  }

  .lid-hero {
    padding: 28px 0 34px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.58) 100%),
      url('https://heartwoodprotree.com/wp-content/uploads/2025/09/DSC7628-scaled.jpg')
        center/cover;
  }

  .lid-hero h1 {
    font-size: clamp(34px, 10vw, 56px);
  }

  .lid-hero__subtitle {
    font-size: 18px;
  }

  .lid-form-box {
    margin-top: 4px;
  }

  .lid-image-strip img {
    height: 220px;
  }

  .lid-section {
    padding: 48px 0;
  }

  .lid-trust-row {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .lid-container {
    width: min(var(--lid-max-width), calc(100% - 20px));
  }

  .lid-navbar__inner {
    gap: 10px;
  }

  .lid-navbar__phone {
    font-size: 14px;
  }

  .lid-hero {
    padding: 22px 0 28px;
  }

  .lid-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .lid-hero__subtitle {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.5;
  }

  .lid-btn {
    width: 100%;
  }

  .lid-trust-row {
    font-size: 14px;
    gap: 8px 14px;
  }

  .lid-form-box {
    border-radius: 18px;
    padding: 16px 16px 12px;
  }

  .lid-form-box h3 {
    font-size: 32px;
  }

  .lid-section {
    padding: 40px 0;
  }

  .lid-section h2 {
    font-size: 32px;
  }

  .lid-card,
  .lid-review {
    padding: 18px;
  }

  .lid-image-strip img {
    height: 210px;
  }

  .lid-cta-banner {
    padding: 28px 18px;
  }

  .lid-trust-row {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 479px) {
  .lid-topbar {
    font-size: 13px;
  }

  .lid-navbar__brand img {
    height: 28px;
  }

  .lid-navbar__phone {
    font-size: 13px;
  }

  .lid-hero h1 {
    font-size: clamp(30px, 11vw, 42px);
  }

  .lid-hero__subtitle {
    font-size: 16px;
  }

  .lid-form-box h3 {
    font-size: 28px;
  }
}
