/* Shared by the three saved old sites. Kept small: the old themes' own CSS does the design. */

/* Divi hides animated modules until its script reveals them; show them at once instead, so a
   slow script or reduced motion never leaves a blank section. */
.et_animated,
.et-waypoint:not(.et_pb_counters) {
  opacity: 1 !important;
  animation: none !important;
}

/* Forms that replaced the GoHighLevel embeds. Each site's form takes that site's own button
   (DK teal, HBB and AMM black) so it reads as part of the page; forms.js adds lf-on-dark when the
   form sits on a dark section, which flips labels and fields to light ink. */
.legacy-form {
  --lf-ink: #1a1a1a;
  --lf-muted: #555;
  --lf-field-bg: #fff;
  --lf-field-border: rgba(0, 0, 0, 0.32);
  --lf-field-ink: #1a1a1a;
  --lf-accent: #111;
  --lf-on-accent: #fff;
  --lf-radius: 4px;
  --lf-error: #b3261e;
  --lf-font: inherit;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  color: var(--lf-ink);
  font-family: var(--lf-font);
  text-align: left;
}
.legacy-form.lf-on-dark {
  --lf-ink: #f5f2ec;
  --lf-muted: rgba(245, 242, 236, 0.72);
  --lf-field-bg: rgba(255, 255, 255, 0.07);
  --lf-field-border: rgba(255, 255, 255, 0.42);
  --lf-field-ink: #fff;
  --lf-error: #ffb4a8;
}
.lf-site-dk {
  --lf-accent: #81d8d0;
  --lf-on-accent: #0f0f0f;
  --lf-radius: 5px;
  --lf-font: "Sans serif light", "Poppins light", Helvetica, Arial, sans-serif;
}
.lf-site-hbb {
  --lf-accent: #000;
  --lf-on-accent: #fff;
  --lf-radius: 10px;
}
.lf-site-amm {
  --lf-accent: #000;
  --lf-on-accent: #f9f6ed;
  --lf-radius: 3px;
}
.legacy-form.lf-on-dark.lf-site-hbb,
.legacy-form.lf-on-dark.lf-site-amm {
  --lf-accent: #fff;
  --lf-on-accent: #000;
}

/* A Divi full-width code module has no padding of its own; the GHL iframe used to bring its
   own, so without this the contact form touched the screen edges and the footer. */
.et_pb_fullwidth_code .legacy-form {
  box-sizing: border-box;
  max-width: calc(40rem + 2.5rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
}

.legacy-form .lf-title {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  padding: 0;
  color: var(--lf-ink);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}
.legacy-form .lf-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  color: var(--lf-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.legacy-form .lf-wide,
.legacy-form .lf-status {
  grid-column: 1 / -1;
}
.legacy-form input,
.legacy-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--lf-field-border);
  border-radius: var(--lf-radius);
  background: var(--lf-field-bg);
  color: var(--lf-field-ink);
  font: inherit;
  font-size: 1rem; /* 16px or more stops iOS zooming into the field */
  font-weight: 400;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.legacy-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}
.legacy-form input:hover,
.legacy-form textarea:hover {
  border-color: var(--lf-ink);
}
.legacy-form input:focus,
.legacy-form textarea:focus {
  outline: none;
  border-color: var(--lf-ink);
  box-shadow: 0 0 0 1px var(--lf-ink);
}
.legacy-form [aria-invalid="true"] {
  border-color: var(--lf-error);
  box-shadow: 0 0 0 1px var(--lf-error);
}
.legacy-form .lf-submit {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 3rem;
  margin: 0.25rem 0 0;
  padding: 0.8rem 2rem;
  border: 0;
  border-radius: var(--lf-radius);
  background: var(--lf-accent);
  color: var(--lf-on-accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: filter 0.15s ease, transform 0.15s ease;
}
/* A sign-up has one button; across the whole form it reads as the one thing to do. */
.legacy-form.lf-signup .lf-submit {
  justify-self: stretch;
}
.legacy-form .lf-submit:hover {
  filter: brightness(1.08);
}
.legacy-form .lf-submit:active {
  transform: translateY(1px);
}
.legacy-form .lf-submit:focus-visible {
  outline: 2px solid var(--lf-ink);
  outline-offset: 3px;
}
.legacy-form .lf-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.legacy-form .lf-status {
  min-height: 1.25em;
  margin: 0;
  padding: 0;
  color: var(--lf-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.legacy-form .lf-status:empty {
  display: none;
}
.legacy-form .lf-status.lf-ok {
  color: var(--lf-ink);
  font-weight: 600;
}
.legacy-form .lf-status.lf-error {
  color: var(--lf-error);
  font-weight: 600;
}
.legacy-form .lf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .legacy-form input,
  .legacy-form textarea,
  .legacy-form .lf-submit {
    transition: none;
  }
}

/* On tablets and phones a Divi section is the full screen width, so anything spilling past it (the
   grey "dual text" behind DK's About heading ran 118px off a phone) only adds a sideways scroll.
   clip, unlike hidden, leaves sticky headers and vertical overflow alone. */
@media (max-width: 980px) {
  .et_pb_section {
    overflow-x: clip;
  }
}

/* Embedded video never pushes the page sideways on a phone. */
video,
iframe {
  max-width: 100%;
}
