/* ===================================================================
   Landing page template ("single-landing-page.php" + template/lp/*)
   Standalone pages: no main nav, no page-builder chrome. Modernized
   pass -- related to the Scorecard page's palette (brand blue) but
   structurally distinct: no navy hero gradient, no chip/stat grids,
   just a clean readable layout since content length varies per page.
   =================================================================== */

:root {
  --lp-blue: #074987;
  --lp-blue-dark: #053563;
  --lp-blue-light: #E7F0F8;
  --lp-ink: #1A2430;
  --lp-muted: #57687C;
  --lp-border: #E3E9F0;
  --lp-bg-soft: #F6F9FC;
}

/* ---- top bar (social / optional widget) ---- */
.lp-topbar-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lp-topbar-social-label {
  color: #fff;
  font-size: 13px;
}

.tw-social-icon {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- header: logo + phone ---- */
.lp-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
}

.lp-logo img {
  max-width: 220px;
  height: auto;
}

.lp-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lp-ink);
}

.lp-phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lp-blue-light);
  color: var(--lp-blue);
  font-size: 18px;
  flex: none;
}

.lp-phone-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--lp-muted);
  line-height: 1.3;
}

.lp-phone-text strong {
  font-size: 17px;
  color: var(--lp-ink);
}

.stuck .lp-phone-text {
  display: none;
}

@media (max-width: 767px) {
  .lp-topbar-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ---- hero / title band ---- */
#page-title.lp-hero {
  background: linear-gradient(135deg, var(--lp-blue) 0%, var(--lp-blue-dark) 100%);
  padding: 64px 24px;
  text-align: center;
}

#page-title.lp-hero h1 {
  float: none;
  text-align: center;
  color: #fff;
  text-transform: none;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  text-align: center;
}

#page-title.lp-hero .lp-hero-subtitle {
  color: #C7D3E0;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.landing-page-template-default {}

/* ---- body layout ---- */
.landing-page-template-default.single #main {
  padding: 0;
  background: #fff;
}

.landing-page-template-default.single #main>.container {
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.single #main p {
  text-align: left;
  font-size: 16px;
}

.lp-layout {
  padding: 56px 0px 0px;
}

.lp-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--lp-ink);
  margin: 0 -24px;
  padding: 0 24px;
}

.lp-body h1,
.lp-body h2,
.lp-body h3,
.lp-body h4 {
  color: var(--lp-ink);
  line-height: 1.3;
  margin: 1.4em 0 0.5em;
}

.lp-body h1:first-child,
.lp-body h2:first-child,
.lp-body h3:first-child {
  margin-top: 0;
}

.lp-body p {
  margin: 0 0 1.1em;
  text-align: left;
}

.lp-body ul,
.lp-body ol {
  margin: 0 0 1.1em 1.2em !important;
  padding: 0;
}

.lp-body li {
  margin-bottom: 6px;
}

.lp-body a {
  color: var(--lp-blue);
}

/* Images dispersed inline through the copy (replaces the old stacked
   sidebar) -- a small contained accent, same treatment as the hero photo
   on /scorecard/, not a full-width dominant photo. Scoped to this class
   (not a bare "img" selector) so any future non-photo inline image
   doesn't get this treatment by accident. */
.lp-body img.lp-inline-photo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  box-shadow: 0 8px 24px rgba(16, 30, 51, 0.08);
  margin-bottom: 1.6em;
}

/* Programmatically assigned float classes for alternating images */
.lp-body img.lp-inline-photo.lp-float-right {
  float: right;
  margin-left: 10px;
  margin-right: 0;
}

.lp-body img.lp-inline-photo.lp-float-left {
  float: left;
  margin-left: 0;
  margin-right: 10px;
}

/* Clear floats after images to prevent layout issues */
.lp-body h2,
.lp-body h3,
.lp-body .lp-photo-band,
.lp-body .lp-contact-wrap {
  clear: both;
}

/* Phone screens: no floats, center all images */
@media (max-width: 767px) {

  .lp-body img.lp-inline-photo.lp-float-right,
  .lp-body img.lp-inline-photo.lp-float-left {
    float: none;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 50/50 split layout for bottom section: image left, text right */
.lp-bottom-split {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 40px;
  margin-bottom: 40px;
  clear: both;
}

.lp-bottom-split-image {
  flex: 0 0 50%;
  max-width: 50%;
}

.lp-bottom-split-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  box-shadow: 0 8px 24px rgba(16, 30, 51, 0.08);
}

.lp-bottom-split-text {
  flex: 0 0 50%;
  max-width: 50%;
}

.lp-bottom-split-text p {
  margin-bottom: 1.2em;
}

.lp-bottom-split-text p:last-child {
  margin-bottom: 0;
}

/* Mobile: stack vertically, image on top */
@media (max-width: 767px) {
  .lp-bottom-split {
    flex-direction: column;
    gap: 24px;
  }

  .lp-bottom-split-image,
  .lp-bottom-split-text {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Shared helper class for elements that need to stretch flush to container edges
   Used by: .lp-photo-band, .lp-contact-wrap */
.lp-flush-edges {
  margin-left: -77px;
  margin-right: -77px;
}

/* Closing photo band, one per page (template/single-landing-page.php),
   same overlay-caption treatment as the /scorecard/ photo band.
   Respects the boxed layout width and extends to edges. */
.lp-photo-band {
  position: relative;
  min-height: 220px;
  clear: both;
  background-color: var(--lp-blue-dark);
  overflow: hidden;
  margin-top: 48px;
}

/* The photo band flows into the contact section with minimal gap.
   .lp-contact-wrap now also respects the boxed layout. */

.lp-photo-band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-photo-band-overlay {
  position: relative;
  min-height: 220px;
  background: rgba(14, 58, 97, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lp-photo-band-overlay p {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  max-width: 640px;
}

/* Closing "Get in Touch" section: contained within the boxed layout
   and extends to edges like the photo band. */
.lp-contact-wrap {
  margin-top: 0px;
  background: var(--lp-blue-dark);
  padding: 24px 74px;
  color: #fff;
}

.lp-contact-inner {
  margin: 0 auto;
}

.lp-contact-wrap h2 {
  margin: 0 0 0.5em;
  color: #fff;
}

.lp-contact-split {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: 48px;
  align-items: start;
  margin-top: 0.5em;
}

.lp-contact-form p {
  color: #C7D3E0;
}

.lp-contact-links h3 {
  font-size: 15px;
  margin: 0 0 12px;
  color: #fff;
}

.lp-contact-links ul {
  list-style: none;
  margin: 0 !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-contact-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: #8FC1EA;
}

.lp-contact-wrap a:focus,
.lp-contact-wrap button:focus {
  outline-color: #8FC1EA;
}

@media (max-width: 700px) {
  .lp-contact-split {
    grid-template-columns: 1fr;
  }
}

/* Chip-style list for enumerated technical/service items -- same
   treatment as the "What We Evaluate" checklist on /scorecard/. */
.lp-body ul.lp-chip-list {
  list-style: none;
  margin: 0 0 1.1em 0 !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.lp-body ul.lp-chip-list li {
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}

@media (max-width: 560px) {
  .lp-body ul.lp-chip-list {
    grid-template-columns: 1fr;
  }
}

/* ---- CTA band ----
   Lives inside the theme's own #footer (template/lp/lp-footer.php),
   which already renders on the brand's dark secondary color (#2A303C,
   set via the theme customizer) -- no background/card treatment needed
   here, just layout. */
.lp-cta {
  padding: 4px 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.lp-footer-widgets {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lp-cta .btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* #footer a.btn (style.css) is `#footer a.btn { ... !important }` --
   specificity (1 id, 1 class, 1 element). Matching just id+class (1,1,0)
   loses on the element-count tiebreak even with !important on both
   sides, so these need id + 2 classes + element to definitively win. */
#footer .lp-cta a.lp-btn-primary {
  background: var(--lp-blue) !important;
  color: #fff !important;
}

#footer .lp-cta a.lp-btn-primary:hover {
  background: var(--lp-blue-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

#footer .lp-cta a.lp-btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

#footer .lp-cta a.lp-btn-outline:hover {
  border-color: #fff;
  color: #fff !important;
  transform: translateY(-1px);
}

.lp-cta-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #C7D3E0;
}

.lp-cta-response {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.lp-cta-phone {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.lp-cta-phone:hover {
  text-decoration: underline;
}

.lp-cta a:focus,
.lp-cta button:focus {
  outline-color: #8FC1EA;
}

@media (prefers-reduced-motion: reduce) {
  .lp-cta .btn {
    transition: none;
  }
}

/* ---- footer ---- */
#footer h3.widget-title {
  text-shadow: none;
}

div.widget ul {
  position: relative;
  margin: 0;
  list-style: none;
}

div.widget ul li {
  margin-bottom: 10px;
}

div.widget .textwidget ul {
  list-style: square inside;
}

/* ---- contact form (Contact Form 7), if used in a widget area ---- */
#cf7_form_box .wpcf7-form label {
  color: #fff;
  display: block;
  margin-bottom: 0;
  clear: both;
}

.wpcf7-form-control-wrap {
  margin-bottom: 15px;
}

.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea {
  width: 100%;
  box-sizing: border-box;
}

.wpcf7-form-control-wrap input {
  height: 34px;
}

input[type="submit"] {
  display: block;
  margin: 5px auto 0;
  min-width: 130px;
}

form {
  margin: 0;
}

span.wpcf7-not-valid-tip {
  background-color: #f2dede;
  border-color: #ebccd1;
  color: #a94442;
  float: left;
  font-weight: normal;
  padding: 5px;
  margin-bottom: 10px;
  font-size: 12px;
}

div.wpcf7-mail-sent-ok {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #3c763d;
}

.wpcf7 p {
  margin: 0;
}

div.wpcf7-validation-errors {
  background-color: #f2dede;
  border-color: #ebccd1;
  color: #a94442;
}

.wpcf7-form-control-wrap {
  display: block;
  margin-top: 5px;
}

div.wpcf7-response-output {
  padding: 5px;
  line-height: 13px;
  margin: 0;
  text-align: center;
}

div.wpcf7 img.ajax-loader {
  border: none;
  vertical-align: middle;
  margin: 7px auto;
  display: block;
}

/* ---- layout helpers already relied on by shared theme chrome ---- */
@media only screen and (min-width: 940px) {
  .theme-boxed {
    width: 940px;
  }
}

.container {
  max-width: 90%;
}

#header {
  padding-left: 10px;
  padding-right: 10px;
}

#footer .container .row {
  margin: 0 !important;
}

.tw-social-icon a,
#bottom .tw-social-icon a {
  color: #fff;
}

@media (max-width: 767px) {

  /* Adjust container padding on smaller screens */
  .landing-page-template-default.single #main>.container {
    padding: 0 16px;
  }

  .lp-layout {
    padding: 40px 0 0px;
  }

  .lp-body {
    margin: 0 -16px;
    padding: 0 16px;
  }

  /* Adjust flush edges for smaller screens */
  .lp-flush-edges {
    margin-left: -16px;
    margin-right: -16px;
  }

  .lp-photo-band {
    margin-top: 32px;
  }

  .lp-contact-wrap {
    margin-top: 16px;
    padding-left: 24px;
    padding-right: 24px;
  }

  #footer .col-4 {
    clear: both;
    margin-bottom: 10px;
  }

  #footer h3.widget-title {
    margin: 0;
  }

  #footer .tw-title-container,
  .tw-widget-title-container {
    padding-bottom: 5px;
  }

  #footer .tw-title-border {
    display: none;
  }
}