/*
 * Long-Form Landing template (YOOtheme template "Long-Form Landing").
 * Loaded only on Resources tagged "Long-Form Landing" (see shortcodes/long-form.php).
 * Brand colors: navy #002f5a, green #90ad4d. Font: Manrope (from the theme).
 */

.lf-landing {
    --lf-navy: #002f5a;
    --lf-green: #90ad4d;
    --lf-soft: #f4f6f1;
    --lf-soft-border: #e2e7dc;
    --lf-text: #333;
    --lf-radius: 8px;
}

html:has(body.lf-landing) {
    scroll-behavior: smooth;
}

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

.lf-landing .lf-hero-label {
    display: inline-block;
    width: fit-content;
    background: var(--lf-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 20px;
}

.lf-landing .lf-hero-button .uk-button {
    border-radius: 30px;
    text-transform: none;
    font-weight: 600;
    color: #fff;
}

/* Stats cards overlapping the bottom of the hero */
.lf-landing .lf-stats {
    position: relative;
    z-index: 1;
    margin-top: -100px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
}

.lf-landing .lf-stats-label {
    display: block;
    width: fit-content;
    margin: 0 auto 12px !important;
    background: var(--lf-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.lf-landing .lf-stats .el-item {
    background: #fff;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    padding: 18px 10px;
    text-align: center;
}

.lf-landing .lf-stats .el-title {
    color: var(--lf-navy);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.lf-landing .lf-stats .el-meta {
    color: #444;
    font-size: 15px;
    margin-top: 4px;
}

@media (max-width: 959px) {
    .lf-landing .lf-hero-label {
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .lf-landing .lf-stats {
        margin-top: -60px;
    }
    .lf-landing .lf-stats .el-title {
        font-size: 32px;
    }
}

/* ---------- Table of contents (built from section headings) ---------- */

.lf-landing .lf-toc {
    border-left: 4px solid rgba(0, 0, 0, 0.05);
    padding-left: 18px;
}

.lf-landing .lf-toc-title {
    border-left: 4px solid var(--lf-green);
    margin-left: -22px;
    padding-left: 18px;
    font-size: 14px;
    color: #555;
    margin-bottom: 14px !important;
}

.lf-landing .lf-toc .el-item {
    margin-top: 0 !important;
    padding-bottom: 10px;
    font-size: 13px;
    line-height: 1.35;
}

.lf-landing .lf-toc a {
    color: #555;
    text-decoration: none;
}

.lf-landing .lf-toc a:hover {
    color: var(--lf-navy);
}

/* Mobile TOC sits in the content column */
.lf-landing .lf-toc-mobile {
    background: var(--lf-soft);
    border-left: 0;
    border-radius: var(--lf-radius);
    padding: 16px 20px 6px;
}

.lf-landing .lf-toc-mobile .lf-toc-title {
    margin-left: 0;
    padding-left: 12px;
}

/* ---------- Sections ---------- */

.lf-landing .lf-section {
    margin-top: 30px !important;
}

.lf-landing .lf-section-heading {
    scroll-margin-top: 150px;
    margin-bottom: 16px !important;
}

.lf-landing .lf-sections ul:not(.lf-pills):not(.uk-accordion):not(.uk-slider-items),
.lf-landing #page-content ul:not(.lf-pills) {
    list-style: none;
    padding-left: 18px;
}

.lf-landing .lf-sections ul:not(.lf-pills):not(.uk-accordion) > li,
.lf-landing #page-content ul:not(.lf-pills) > li {
    position: relative;
    margin-top: 4px;
}

.lf-landing .lf-sections ul:not(.lf-pills):not(.uk-accordion) > li::before,
.lf-landing #page-content ul:not(.lf-pills) > li::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lf-green);
}

/* Callout box and note */
.lf-landing .lf-callout,
.lf-landing .lf-note {
    background: var(--lf-soft);
    border: 1px solid var(--lf-soft-border);
    border-radius: var(--lf-radius);
    padding: 20px 26px;
    font-size: 15px;
}

.lf-landing .lf-note {
    border-left: 5px solid var(--lf-green);
    padding: 26px 36px;
}

.lf-landing .lf-callout > :last-child,
.lf-landing .lf-note > :last-child {
    margin-bottom: 0;
}

/* Feature box: dark blue, green top bar, title left + list right */
.lf-landing .lf-feature [class*="uk-tile-"] {
    border-top: 6px solid var(--lf-green);
    border-radius: 6px;
    overflow: hidden;
}

.lf-landing .lf-feature .el-title {
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
}

.lf-landing .lf-feature .el-content,
.lf-landing .lf-feature .el-content li {
    color: #fff;
}

.lf-landing .lf-feature .el-content strong,
.lf-landing .lf-feature .el-content b {
    color: #fff;
}

/* Text + image */
.lf-landing .lf-split-image img {
    border-radius: var(--lf-radius);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.lf-landing .lf-split h3 {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
}

.lf-landing .lf-office-hours p {
    display: inline;
}

.lf-landing .lf-caption {
    font-size: 13px;
    color: #555;
    margin-top: 12px !important;
}

.lf-landing .lf-caption a,
.lf-landing .lf-quote .el-meta a {
    color: var(--lf-green);
    text-decoration: none;
}

/* Accordion / FAQ */
.lf-landing .lf-accordion {
    border-top: 1px solid #d6d6d6;
}

.lf-landing .lf-accordion > * {
    margin-top: 0 !important;
    border-bottom: 1px solid #d6d6d6;
}

.lf-landing .lf-accordion .uk-accordion-title {
    position: relative;
    padding: 20px 60px 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--lf-text);
    background: none;
}

/* Circle with a +/− drawn as two bars, so it stays centered whatever the font */
.lf-landing .lf-accordion .uk-accordion-title::before {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 2px solid #555;
    border-radius: 50%;
    background:
        linear-gradient(#555, #555) center / 12px 2px no-repeat,
        linear-gradient(#555, #555) center / 2px 12px no-repeat;
}

.lf-landing .lf-accordion .uk-open > .uk-accordion-title::before {
    background: linear-gradient(#555, #555) center / 12px 2px no-repeat;
}

.lf-landing .lf-accordion .uk-accordion-content {
    margin-top: 0;
    padding-bottom: 24px;
}

/* Quote with photo */
.lf-landing .lf-quote.uk-card,
.lf-landing .lf-quote .uk-card {
    border-radius: var(--lf-radius);
    overflow: hidden;
    box-shadow: none;
}

.lf-landing .lf-quote .el-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lf-landing .lf-quote .el-content {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.lf-landing .lf-quote .el-meta {
    color: #fff;
    font-size: 13px;
    margin-top: 18px;
}

/* Office card */
.lf-landing .lf-office {
    max-width: 460px;
}

.lf-landing .lf-office-card {
    background: var(--lf-navy);
    color: #fff;
    border-radius: var(--lf-radius) var(--lf-radius) 0 0;
    padding: 24px 30px;
    margin: 0 !important;
}

.lf-landing .lf-office-card .uk-grid > * {
    padding-left: 20px;
}

.lf-landing .lf-office-card .lf-office-title {
    color: var(--lf-green);
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 6px;
}

.lf-landing .lf-office-card .uk-text-small,
.lf-landing .lf-office-card p {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.lf-landing .lf-office-map,
.lf-landing .lf-office-map iframe {
    width: 100%;
    min-height: 130px;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
}

.lf-landing .lf-office > .uk-grid + .uk-grid {
    margin-top: 0 !important;
}

.lf-landing .lf-office-note {
    background: var(--lf-soft);
    border: 1px solid var(--lf-soft-border);
    border-top: 0;
    border-radius: 0 0 var(--lf-radius) var(--lf-radius);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-top: 0 !important;
}

/* ---------- Pills ([pills] shortcode) ---------- */

.lf-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 16px 0 20px;
    padding: 0;
}

.lf-pills li {
    margin: 0 !important;
    padding: 13px 16px;
    background: #f4f6f1;
    border: 1px solid #e2e7dc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.lf-pills li::before {
    display: none !important;
}

/* ---------- Tables (TablePress or plain HTML) ---------- */

.lf-landing .lf-sections table,
.lf-landing #page-content table {
    width: 100%;
    background: var(--lf-soft);
    border-top: 5px solid var(--lf-green);
    border-radius: var(--lf-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-size: 14px;
    margin: 20px 0;
}

.lf-landing .lf-sections table th,
.lf-landing .lf-sections table td,
.lf-landing #page-content table th,
.lf-landing #page-content table td {
    background: transparent !important;
    border: 0 !important;
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
}

.lf-landing .lf-sections table th,
.lf-landing .lf-sections table td:first-child,
.lf-landing #page-content table th,
.lf-landing #page-content table td:first-child {
    font-weight: 700;
    color: var(--lf-text);
}

@media (max-width: 639px) {
    .lf-landing .lf-split-image img {
        max-height: 320px;
    }
    .lf-landing .lf-sections .tablepress,
    .lf-landing .lf-sections table {
        display: block;
        overflow-x: auto;
    }
    .lf-landing .lf-accordion .uk-accordion-title {
        font-size: 17px;
    }
    .lf-landing .lf-quote .el-content {
        font-size: 19px;
    }
}
