/**
 * Google Ads landing-page-only styles (page-landing.php,
 * header-landing.php, footer-landing.php, template-parts/landing/*).
 * Loaded ONLY when is_page_template('page-landing.php') — see
 * es_enqueue_landing_assets() in functions.php — so nothing here can
 * affect single-service.php or any other existing page. Reuses every
 * token from tokens.css and every class already defined in style.css
 * (.es-service-hero*, .es-contact-form*, .btn*, .es-footer*, .es-header,
 * .eyebrow, etc.) — only the layout rules a two-column hero-with-form and
 * a trimmed header/footer need are added below.
 */

/* ---- Minimal header ---- */
.es-lp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.es-lp-header-phone {
  font-weight: 700;
}

/* ---- Hero: two columns on desktop, form stacked below copy on mobile ---- */
.es-lp-hero {
  margin-top: 16px;
  padding: 48px 0 56px;
}
.es-lp-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.es-lp-hero-copy {
  max-width: none;
}
.es-lp-hero-whatsapp {
  margin-top: 28px;
}
.es-lp-hero-form {
  width: 100%;
}
.es-lp-form-card {
  padding: 32px;
}
.es-lp-form-service {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-dim);
}
.es-lp-form-service strong {
  color: var(--ink);
}
.es-lp-form .es-contact-form-row {
  margin-top: 20px;
}
.es-lp-form .es-contact-field {
  margin-top: 18px;
}
.es-lp-form .es-contact-form-row .es-contact-field {
  margin-top: 0;
}
.es-lp-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Honeypot — visually hidden, tabindex="-1" in the markup keeps a sighted
   keyboard user from ever tabbing into it; aria-hidden on the wrapper
   keeps it out of the accessibility tree too. */
.es-lp-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.es-lp-form-status {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.es-lp-form-status-success {
  color: #1b8a4a;
}
.es-lp-form-status-error {
  color: #c23a3a;
}

/* Field-level validation — same red already used for
   .es-lp-form-status-error above, reused rather than a new color. Empty by
   default (display:none) so a valid/untouched field's spacing is
   completely unchanged; only appears once a field actually fails.
   Selector is deliberately ".es-contact-field .es-lp-field-error" (two
   classes) rather than just ".es-lp-field-error" — style.css's own
   ".es-contact-field span" rule (uppercase navy label styling, meant for
   the field's <span> label) has higher specificity than a single class
   and would otherwise win over these properties, since this error text
   is itself a <span> living inside the same .es-contact-field. */
.es-contact-field .es-lp-field-error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #c23a3a;
}
.es-contact-field .es-lp-field-error.es-lp-field-error-visible {
  display: block;
}
.es-contact-field.es-lp-field-invalid input,
.es-contact-field.es-lp-field-invalid textarea {
  border-color: #c23a3a;
}

@media (max-width: 900px) {
  .es-lp-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .es-lp-form-card {
    padding: 26px 22px;
  }
}

/* ---- Before & After (template-parts/landing/before-after.php) ----
   Landing-page-only section, directly below the hero. Each card renders
   ONE composite photo (the client's real before/after pairs already have
   "Before"/"After" printed on them side by side in a single image), so no
   label markup/CSS or two-column split is needed here — just the photo,
   full width, at its own natural aspect ratio. */
.es-lp-before-after {
  padding: 72px 0 88px;
}
.es-lp-before-after-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}
.es-lp-before-after-title {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 42px);
}
.es-lp-before-after-dek {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
}

.es-lp-before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.es-lp-before-after-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.es-lp-before-after-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.es-lp-before-after-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

@media (max-width: 980px) {
  .es-lp-before-after-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}
@media (max-width: 640px) {
  .es-lp-before-after {
    padding: 56px 0 64px;
  }
  .es-lp-before-after-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .es-lp-before-after-card {
    gap: 6px;
    padding: 8px;
  }
}

/* ---- Minimal footer: brand + contact only, no nav columns ---- */
.es-lp-footer-top {
  grid-template-columns: 1.4fr 1fr;
}
@media (max-width: 720px) {
  .es-lp-footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
