/*
 * Landing Page template (templates/landing.php)
 * Loaded only on pages using that template. Everything is scoped to .lp.
 */

.lp {
    --lp-accent: #1E8364;
    --lp-accent-dark: #156A50;
    --lp-link: #1A7457;
    --lp-text: #222626;
    --lp-muted: #5C5F5C;
    --lp-body: #444948;
    --lp-alt: #EFEDE8;
    --lp-line: #E2DFD7;
    --lp-line-soft: #E8E5DE;
    --lp-dark: #22292D;
    --lp-card-dark: #2A3237;
    --lp-on-dark-muted: #D5DADC;
    --lp-mint: #9FE3C9;
    --lp-font-head: "DINPro", Barlow, Arial, sans-serif;
    --lp-font-body: inherit;
    --lp-radius: 6px;

    color: var(--lp-text);
    font-family: var(--lp-font-body);
    font-size: 16px;
    line-height: 1.75;
    /* Clear the theme's absolutely positioned header (same offsets as #hero). */
    margin-top: 180px;
}
@media (max-width: 991.98px) {
    .lp { margin-top: 80px; }
}

.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp img { max-width: 100%; }
.lp p { margin: 0; }
.lp a { color: var(--lp-link); }
.lp a:hover { color: #124F3B; }
.lp a:focus-visible,
.lp summary:focus-visible,
.lp input:focus-visible,
.lp textarea:focus-visible,
.lp button:focus-visible { outline: 3px solid #F2B84B; outline-offset: 2px; }

/* ---------- Layout ---------- */

.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lp-container--narrow { max-width: 860px; }

.lp-section { padding: 72px 0; background: #fff; }
.lp-section--alt { background: var(--lp-alt); }
.lp-section--tight { padding: 56px 0; }

.lp-stack { display: flex; flex-direction: column; gap: 16px; }
.lp-stack--sm { gap: 10px; }
.lp-stack--lg { gap: 32px; }

.lp-split { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.lp-split--center { align-items: center; }
.lp-split__main { flex: 1 1 460px; min-width: 0; }
.lp-split__aside { flex: 1 1 380px; min-width: 0; }
.lp-split--map .lp-split__main { flex: 2 1 560px; }
.lp-split--map .lp-split__aside { flex: 1 1 320px; }

.lp-center { align-self: center; }
.lp-center-text { text-align: center; }

/* ---------- Type ---------- */

.lp-eyebrow {
    font-family: var(--lp-font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-link);
}

.lp h1, .lp h2, .lp h3 { color: inherit; }

.lp-h2 {
    margin: 0;
    font-family: var(--lp-font-head);
    font-weight: 900;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.1;
    text-transform: uppercase;
}
.lp-h2--sm { font-size: clamp(28px, 3.4vw, 34px); }
.lp-h2--xs { font-size: clamp(24px, 3vw, 32px); }
.lp-h2--lg { font-size: clamp(32px, 4.4vw, 44px); line-height: 1; }

.lp-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.lp-head__intro { color: var(--lp-muted); max-width: 620px; }

.lp .lp-prose > * + * { margin-top: 16px; }
.lp-prose ul, .lp-prose ol { margin: 0; padding-left: 20px; }
.lp-prose li + li { margin-top: 6px; }
.lp-prose--lg { font-size: 18px; line-height: 1.8; }

.lp-textlink { align-self: flex-start; font-weight: 700; text-decoration: underline; }

/* ---------- Buttons ---------- */

.lp-btn {
    display: inline-block;
    align-self: flex-start;
    background: var(--lp-accent);
    color: #fff !important;
    border: 2px solid var(--lp-accent);
    border-radius: 3px;
    padding: 13px 24px;
    font-family: var(--lp-font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    text-decoration: none !important;
    text-align: center;
    transition: background-color .15s, border-color .15s, color .15s;
}
.lp-btn:hover { background: var(--lp-accent-dark); border-color: var(--lp-accent-dark); }
.lp-btn--lg { padding: 15px 26px; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.lp-btn--block { display: block; align-self: stretch; font-size: 14px; }
.lp-btn--ghost { background: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.lp-btn--outline { background: transparent; color: var(--lp-text) !important; border-color: var(--lp-text); }
.lp-btn--outline:hover { background: var(--lp-text); border-color: var(--lp-text); color: #fff !important; }
.lp-btn.lp-center { align-self: center; }

.lp-icon { flex: 0 0 auto; stroke-width: 3; }
.lp-icon--pin, .lp-icon--arrow { stroke-width: 2.25; }

/* ---------- Breadcrumb ---------- */

.lp-breadcrumb { background: var(--lp-alt); font-size: 13px; color: var(--lp-muted); }
.lp-breadcrumb ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-breadcrumb li { margin: 0; }
.lp-breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.lp-breadcrumb a { color: var(--lp-muted); }
.lp-breadcrumb [aria-current] { color: var(--lp-text); font-weight: 600; }

/* ---------- Hero ---------- */

.lp-hero { position: relative; overflow: hidden; background: #4A4438; color: #fff; }
.lp-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.lp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 20, 20, .78) 0%, rgba(17, 20, 20, .55) 45%, rgba(17, 20, 20, .2) 100%);
}
.lp-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; padding-top: 96px; padding-bottom: 88px; }
.lp-hero__eyebrow {
    font-family: var(--lp-font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lp-mint);
}
.lp-hero__title {
    margin: 0;
    max-width: 820px;
    font-family: var(--lp-font-head);
    font-weight: 900;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.02;
    text-transform: uppercase;
    color: #fff;
}
.lp-hero__intro { max-width: 640px; font-size: 19px; line-height: 1.6; color: #F2F2EE; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.lp-hero__checks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 600; }
.lp-hero__checks li { display: flex; align-items: center; gap: 8px; margin: 0; }
.lp-hero__checks .lp-icon { color: var(--lp-mint); }

/* ---------- Quick facts ---------- */

.lp-facts { background: #fff; border-radius: var(--lp-radius); box-shadow: 0 2px 12px rgba(34, 38, 38, .08); padding: 8px 24px; align-self: flex-start; }
.lp-facts dl { margin: 0; font-size: 15px; line-height: 1.5; }
.lp-facts dl > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--lp-line-soft); }
.lp-facts dl > div:last-child { border-bottom: 0; }
.lp-facts dt { flex: 0 0 130px; font-weight: 700; }
.lp-facts dd { flex: 1 1 200px; margin: 0; }

/* ---------- Stats ---------- */

.lp-stats { background: #fff; border-bottom: 1px solid var(--lp-line-soft); padding: 40px 0; }
.lp-stats__grid { display: flex; flex-wrap: wrap; gap: 24px; }
.lp-stats__item { flex: 1 1 200px; text-align: center; }
.lp-stats__value { font-family: var(--lp-font-head); font-weight: 900; font-size: 44px; line-height: 1; }
.lp-stats__label { margin-top: 8px; font-size: 14px; color: var(--lp-muted); }

/* ---------- Tracts ---------- */

.lp-tracts { display: flex; flex-wrap: wrap; gap: 24px; }
.lp-tract { flex: 1 1 300px; min-width: 0; max-width: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); }
@media (min-width: 1000px) { .lp-tract { max-width: calc((100% - 48px) / 3); } }
.lp-tract__media { position: relative; display: block; height: 200px; background: var(--lp-alt); }
.lp-tract__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-tract__status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 20, 20, .45);
    color: #fff;
    font-family: var(--lp-font-head);
    font-weight: 900;
    font-size: 30px;
    text-transform: uppercase;
}
.lp-tract__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.lp-tract__badge {
    --badge: var(--lp-accent);
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--badge);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.lp-tract__title { margin: 0; font-family: var(--lp-font-head); font-weight: 800; font-size: 22px; line-height: 1.2; text-transform: uppercase; }
.lp-tract__title a { color: inherit; text-decoration: none; }
.lp-tract__title a:hover { color: var(--lp-link); }
.lp-tract__summary { font-size: 15px; line-height: 1.6; color: var(--lp-body); }
.lp-tract__terms { display: flex; gap: 8px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--lp-line-soft); font-size: 13px; line-height: 1.4; }
.lp-tract__terms > div { flex: 1 1 0; }
.lp-tract__terms dt { color: var(--lp-muted); font-weight: 400; }
.lp-tract__terms dd { margin: 0; font-weight: 700; font-size: 17px; }

/* ---------- Offer ---------- */

.lp-offer { position: relative; overflow: hidden; background: #8C8473; }
.lp-offer__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-offer__inner { position: relative; display: flex; justify-content: center; padding-top: 88px; padding-bottom: 88px; }
.lp-offer__card {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, .94);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.lp-offer__card .lp-btn { align-self: center; margin-top: 8px; }
.lp-checklist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; line-height: 1.5; }
.lp-checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.lp-checklist .lp-icon { color: var(--lp-link); margin-top: 2px; }

/* ---------- Area / photos ---------- */

.lp-photo { display: block; width: 100%; object-fit: cover; border-radius: var(--lp-radius); }
.lp-photo--tall { height: 400px; }

/* ---------- Location ---------- */

.lp-map { overflow: hidden; background: #F7F6F2; border: 1px solid #DCD8CE; border-radius: var(--lp-radius); }
.lp-map iframe { display: block; width: 100%; height: 380px; border: 0; }
.lp-map img { display: block; width: 100%; height: auto; }
.lp-map__canvas { width: 100%; height: 400px; background: #F7F6F2; }
.lp-map--leaflet img { max-width: none; } /* Leaflet tiles must not be constrained */
.lp-map .leaflet-tooltip { box-shadow: none; }
.lp-map .leaflet-tooltip::before { display: none; }
.lp-map .leaflet-tooltip.lp-map__area-label {
    padding: 4px 10px;
    background: rgba(255, 255, 255, .9);
    border: 0;
    border-radius: 3px;
    color: #124F3B;
    font-family: var(--lp-font-head);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.lp-map .leaflet-tooltip.lp-map__pin-label {
    padding: 0 4px;
    background: transparent;
    border: 0;
    color: var(--lp-text);
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.lp-pins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-pins li { display: flex; gap: 12px; margin: 0; }
.lp-pins .lp-icon { color: var(--lp-link); margin-top: 3px; }

/* ---------- Uses ---------- */

.lp-uses { display: flex; flex-wrap: wrap; gap: 20px; }
.lp-uses__card { flex: 1 1 240px; min-width: 0; overflow: hidden; background: var(--lp-card-dark); color: #fff; border-radius: 4px; }
.lp-uses__card img { display: block; width: 100%; height: 170px; object-fit: cover; }
.lp-uses__body { padding: 22px; text-align: center; }
.lp-uses__body h3 { margin: 0 0 8px; font-family: var(--lp-font-head); font-weight: 800; font-size: 21px; text-transform: uppercase; color: #fff; }
.lp-uses__body p { font-size: 15px; line-height: 1.7; color: #E3E6E7; }

/* ---------- Steps ---------- */

.lp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.lp-steps__item { flex: 1 1 240px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border-radius: var(--lp-radius); }
.lp-steps__num {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lp-accent);
    color: #fff;
    font-family: var(--lp-font-head);
    font-weight: 800;
    font-size: 20px;
}
.lp-steps__item h3 { margin: 0; font-family: var(--lp-font-head); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.lp-steps__item p { font-size: 15px; line-height: 1.7; }

/* ---------- Gallery ---------- */

/* Row heights are fixed; every photo fills its spot exactly and is cropped
   to fit, whatever its uploaded size or shape. */
.lp-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 163px 163px; gap: 14px; }
.lp-gallery__img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}
.lp-gallery__img--lead { grid-row: span 2; }
@media (max-width: 900px) {
    .lp-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 150px 150px; }
    .lp-gallery__img--lead { grid-column: span 2; grid-row: auto; }
}

/* ---------- Trust ---------- */

.lp-trust { padding: 56px 0; background: var(--lp-dark); color: #fff; }
.lp-trust__text { color: var(--lp-on-dark-muted); }
.lp-trust .lp-split__aside { flex-basis: 480px; }
.lp-trust__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.lp-trust__badge { flex: 1 1 200px; margin: 0; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #4A555B; border-radius: var(--lp-radius); font-size: 14px; line-height: 1.4; color: var(--lp-on-dark-muted); }
.lp-trust__badge span { display: flex; flex-direction: column; gap: 4px; }
.lp-trust__badge strong { font-family: var(--lp-font-head); font-weight: 800; font-size: 22px; line-height: 1.15; color: #fff; }
.lp-trust__badge img { height: 44px; width: auto; display: block; }

/* ---------- FAQ ---------- */

.lp-faq { border-top: 1px solid var(--lp-line); }
.lp-faq__item { border-bottom: 1px solid var(--lp-line); }
.lp-faq__item summary {
    min-height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::marker { content: ""; }
.lp-faq__item summary h3 { margin: 0; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.4; text-transform: none; }
.lp-faq__item summary:hover h3 { color: var(--lp-link); }
.lp-faq__answer { padding-bottom: 20px; line-height: 1.8; color: #3A3F3E; }

/* Plus icon whose vertical bar rotates flat to make a minus. */
.lp-faq__icon { position: relative; flex: 0 0 auto; width: 16px; height: 16px; color: var(--lp-link); }
.lp-faq__icon::before,
.lp-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 2px;
    margin-top: -1px;
    background: currentColor;
    border-radius: 1px;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.lp-faq__icon::after { transform: rotate(90deg); }
/* No JS: follow the native open state. With JS: follow the animated state. */
.lp-faq:not(.is-enhanced) .lp-faq__item[open] .lp-faq__icon::after,
.lp-faq.is-enhanced .lp-faq__item.is-open .lp-faq__icon::after { transform: rotate(0deg); }

@media (prefers-reduced-motion: reduce) {
    .lp-faq__icon::before, .lp-faq__icon::after { transition: none; }
}

/* ---------- Keep exploring ---------- */

.lp-explore { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.lp-explore li { flex: 1 1 210px; margin: 0; }
.lp-explore a {
    height: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    background: #fff;
    border-radius: var(--lp-radius);
    color: var(--lp-text);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
}
.lp-explore a:hover { color: var(--lp-link); box-shadow: 0 2px 10px rgba(34, 38, 38, .08); }
.lp-explore .lp-icon { color: var(--lp-link); }

/* ---------- Contact ---------- */

.lp-contact { background: var(--lp-alt); padding: 0 0 80px; }
.lp-contact__card {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 48px;
    background: var(--lp-card-dark);
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.lp-contact__info { flex: 1 1 340px; min-width: 0; }
.lp-contact__form { flex: 1 1 420px; min-width: 0; }
.lp-contact__muted { color: var(--lp-on-dark-muted); }
.lp-contact__small { font-size: 14px; }
.lp-contact__small a { color: #fff; }
.lp-contact__phone { font-family: var(--lp-font-head); font-weight: 800; font-size: 30px; color: #fff !important; text-decoration: none; }

/* Gravity Forms inside the dark card */
.lp-contact .gform_wrapper { margin: 0; }
.lp-contact .gform_wrapper .gfield_label,
.lp-contact .gform_wrapper legend { color: #fff; font-size: 14px; font-weight: 600; }
.lp-contact .gform_wrapper .gfield_required,
.lp-contact .gform_wrapper.gravity-theme .gfield_required { color: var(--lp-mint); font-size: 12px; }
.lp-contact .gform_wrapper.gravity-theme .gfield_validation_message,
.lp-contact .gform_wrapper.gravity-theme .validation_message { background: #fff; }
.lp-contact .gform_wrapper input[type="text"],
.lp-contact .gform_wrapper input[type="email"],
.lp-contact .gform_wrapper input[type="tel"],
.lp-contact .gform_wrapper textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: var(--lp-text);
    font-size: 16px;
}
.lp-contact .gform_wrapper textarea { min-height: 120px; }
.lp-contact .gform_wrapper .gform_footer { padding: 0; margin-top: 14px; }
.lp-contact .gform_wrapper .gform_button {
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 3px;
    background: var(--lp-accent);
    color: #fff;
    font-family: var(--lp-font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.lp-contact .gform_wrapper .gform_button:hover { background: var(--lp-accent-dark); }
.lp-contact .gform_wrapper .gfield_description,
.lp-contact .gform_wrapper small { color: var(--lp-on-dark-muted); }
.lp-contact .gform_wrapper small a { color: #fff; }
.lp-contact .gform_confirmation_message { color: #fff; font-size: 18px; }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
    .lp-section { padding: 56px 0; }
    .lp-hero__inner { padding-top: 64px; padding-bottom: 56px; }
    .lp-hero__actions .lp-btn { flex: 1 1 100%; }
    .lp-offer__card, .lp-contact__card { padding: 28px 20px; }
    .lp-contact .lp-container { padding: 0 16px; }
    .lp-photo--tall { height: 280px; }
    .lp-map iframe, .lp-map__canvas { height: 320px; }
    .lp-stats__value { font-size: 36px; }
}
