/*
 * Ranch Creek Recovery - PPC landing template (page-landing.php).
 * Loaded after redesign.css on the landing template only. The sections themselves
 * are the landingpage* blocks; this file is the header, footer and call bar around them.
 */

/* ---------- Header: logo, Verify Insurance, phone. No nav. ---------- */

.lp-header-wrap {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 1000;
  background: rgba(245, 240, 232, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 204, 184, .6);
}

.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-header .rc-btn.lp-header__verify {
  min-height: 46px;
  padding: 0 22px;
}

/* redesign.css hides .rc-phone under 1199px, where the main header shows the menu burger instead.
   This header has no burger, so the phone stays at every width. */
.lp-header .rc-phone {
  display: inline-flex;
  min-height: 46px;
}

@media (max-width: 767px) {
  .lp-header { padding: 12px 16px; gap: 12px; }
  .lp-header .rc-logo img { height: 40px; }
  .lp-header .rc-btn.lp-header__verify { display: none; }
  .lp-header .rc-phone { padding: 10px 14px; font-size: 13px; letter-spacing: .03em; }
}

/* ---------- Footer: accreditation strip (shared .rc-trust) + license line ---------- */

.lp-footer {
  padding: 32px 0;
  background: var(--rc-teal);
  text-align: center;
}

.rc-2026 .lp-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245, 240, 232, .72);
}

.rc-2026 .lp-footer p + p { margin-top: 6px; }

.rc-2026 .lp-footer a { color: rgba(245, 240, 232, .85); }
.rc-2026 .lp-footer a:hover { color: var(--rc-gold); }

/* ---------- Mobile call bar (redesign.js slides it in after the first screen) ---------- */

@media (max-width: 991px) {
  .lp-callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    background: var(--rc-gold);
    color: var(--rc-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateY(100%);
    transition: transform .4s var(--rc-ease);
  }

  .lp-callbar.is-visible { transform: translateY(0); }
  .rc-2026 .lp-callbar:hover { color: var(--rc-ink); }

  /* room for the bar under the footer */
  .lp-footer { padding-bottom: 96px; }
}

/* ---------- Shared by the landingpage* blocks ---------- */

.lp-section {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
}

.lp-section > .container { position: relative; z-index: 1; }

.lp-wrap {
  max-width: 1152px;
  margin: 0 auto;
}

.lp-bg-asset {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
  pointer-events: none;
}

.lp-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.lp-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lp-head.is-center .rc-eyebrow { justify-content: center; }
.lp-head .rc-display { margin-bottom: 0; }

.rc-2026 .is-inverse h2,
.rc-2026 .is-inverse h3 { color: var(--rc-cream); }
.rc-2026 .is-inverse h2 em { color: var(--rc-gold); }
.rc-2026 .is-inverse p,
.rc-2026 .is-inverse li { color: rgba(245, 240, 232, .72); }

.lp-section .rc-btn i { font-size: 13px; }

@media (max-width: 1199px) {
  .lp-section { padding: 88px 0; }
}

@media (max-width: 767px) {
  .lp-section { padding: 72px 0; }
  .lp-head { margin-bottom: 40px; }
  .lp-section .rc-btn-row .rc-btn { width: 100%; }
}
