/* Shared section hierarchy and controls. */
:root {
    --avt-section-title: clamp(28px, 3vw, 38px);
    --avt-card-title: clamp(20px, 1.8vw, 23px);
}

.sectionhead {
    align-items: end;
    gap: 32px;
    margin-bottom: 32px;
}

.sectionhead h2,
.home-about-section h2,
.coverage-intro h2 {
    font-size: var(--avt-section-title);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.sectionhead > p {
    max-width: 440px;
    padding-bottom: 3px;
    font-size: 16px;
    line-height: 1.8;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: .16em;
    margin-bottom: 12px;
}

.btn {
    min-height: 50px;
    padding: 13px 20px;
    gap: 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--blue) 16%, transparent);
    transition: background .2s, box-shadow .2s, transform .2s;
}

.btn.alt {
    border-color: var(--line);
    background: #fff;
    box-shadow: 0 3px 8px rgba(7, 26, 47, .035);
}

.btn.alt:hover {
    background: var(--soft);
    border-color: var(--blue);
    filter: none;
}

.btn.sm {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 14px;
}

.button-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .17);
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
}

.btn.alt .button-arrow {
    background: color-mix(in srgb, var(--blue) 9%, white);
    color: var(--blue);
}

.sectionhead > .btn {
    flex-shrink: 0;
    align-self: end;
}

.home-services-section .card {
    padding: 18px;
    border-color: var(--line);
    box-shadow: 0 5px 18px rgba(7, 26, 47, .035);
}

.home-services-section .service-image {
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: max(0px, calc(var(--radius) - 8px));
}

.home-services-section .card h3 {
    margin: 22px 8px 10px;
    font-size: var(--avt-card-title);
    line-height: 1.35;
    letter-spacing: -.025em;
}

.home-services-section .card p {
    margin: 0 8px 24px;
    font-size: 15px;
    line-height: 1.8;
}

.card .more,
.blogbody .read-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--blue);
}

.home-services-section .card .more {
    margin-inline: 8px;
    margin-bottom: 6px;
}

.link-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--blue) 8%, white);
    font-size: 18px;
    transition: background .2s;
}

:is(.more, .read-more):hover .link-arrow {
    background: color-mix(in srgb, var(--blue) 17%, white);
}

.home-about-section .split {
    gap: clamp(32px, 5vw, 72px);
}

.home-about-section .split > div > p {
    margin: 20px 0;
    max-width: 55ch;
    font-size: 16px;
    line-height: 1.85;
}

.home-about-section .list {
    margin: 24px 0 30px;
    font-size: 15px;
}

.home-about-section .stats small {
    font-size: 12px;
    margin-bottom: 4px;
}

.home-about-section .stats strong {
    font-size: 15px;
}

.coverage-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
}

.coverage-intro > p {
    margin: 20px 0 26px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 38ch;
}

.coverage-locations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 20px;
    padding: 14px 24px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 35px rgba(7, 26, 47, .035);
}

.coverage-locations > li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.location-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 34px;
    flex: 0 0 30px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--blue) 7%, white);
    color: var(--blue);
}

.home-guides-section .blogcard {
    border-color: var(--line);
    box-shadow: 0 5px 18px rgba(7, 26, 47, .035);
    overflow: hidden;
}

.home-guides-section .blogthumb {
    height: auto;
    aspect-ratio: 16 / 9;
}

.blogbody {
    padding: 24px;
}

.blogbody > small {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--muted);
}

.blogbody h3 {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -.025em;
    margin: 10px 0 12px;
}

.blogbody h3 a {
    font-weight: 700;
}

.blogbody p {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 1180px) {
    .coverage-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .coverage-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .coverage-intro > p {
        max-width: 60ch;
    }

    .sectionhead > .btn {
        margin-top: 20px;
    }
}

@media (max-width: 680px) {
    .sectionhead {
        margin-bottom: 26px;
    }

    .coverage-locations {
        padding: 8px 18px;
        gap: 0 16px;
    }

    .coverage-locations > li {
        font-size: 13px;
        gap: 8px;
        padding: 15px 0;
    }

    .location-icon {
        flex-basis: 24px;
        width: 24px;
        height: 30px;
    }

    .home-services-section .card {
        padding: 14px;
    }

    .blogbody {
        padding: 22px;
    }
}

@media (max-width: 360px) {
    .coverage-locations {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Shared presentation for HTML, Classic Editor and block editor content.
   Standard HTML inherits these styles; no per-page classes are needed. */
.wp-content-flow {
    --content-ink: var(--ink, #071a2f);
    --content-text: var(--text, #13263f);
    --content-accent: var(--blue, #176bff);
    --content-line: var(--line, #dce7f1);
    --content-soft: var(--soft, #f5f9fd);
    --content-radius: var(--radius, 24px);
    color: var(--content-text);
    font-family: var(--avt-font, Inter, Arial, sans-serif);
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    display: flow-root;
    min-width: 0;
}

.wp-content-flow :is(h1, h2, h3, h4, h5, h6) {
    color: var(--content-ink);
    font-family: var(--avt-heading, Manrope, Inter, Arial, sans-serif);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.035em;
    text-wrap: pretty;
    scroll-margin-top: calc(var(--avt-admin-offset, 0px) + 120px);
}

.wp-content-flow h1,
.wp-content-flow .editor-content-title {
    font-size: clamp(28px, 2.8vw, 36px);
    font-weight: 800;
    margin: 0 0 24px;
}

.wp-content-flow h2 {
    font-size: clamp(23px, 2.1vw, 28px);
    margin: 48px 0 18px;
}

/* Separate major topics without altering or regrouping the saved HTML. */
.wp-content-flow > h2:not(:where(:first-child)) {
    border-top: 1px solid var(--content-line);
    padding-top: 36px;
}

.wp-content-flow > :is(h1, .editor-content-title, hr) + h2 {
    border-top: 0;
    padding-top: 0;
    margin-top: 24px;
}

.wp-content-flow h3 {
    font-size: clamp(19px, 1.6vw, 22px);
    margin: 30px 0 12px;
    letter-spacing: -.02em;
}

.wp-content-flow :is(h4, h5, h6) {
    font-size: 18px;
    margin: 26px 0 10px;
    letter-spacing: -.01em;
}

.wp-content-flow :is(h1, h2, h3, h4, h5, h6) strong {
    font-weight: inherit;
}

.wp-content-flow :is(p, li) {
    color: inherit;
}

.wp-content-flow p {
    margin: 0 0 20px;
}

.wp-content-flow > p:first-child,
.wp-content-flow > h1 + p {
    font-size: 1.12em;
    line-height: 1.75;
}

.wp-content-flow a:not(:where(.btn, .wp-block-button__link)) {
    color: var(--content-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.wp-content-flow a:hover {
    text-decoration-thickness: 2px;
}

.wp-content-flow :is(a, summary):focus-visible {
    outline: 3px solid var(--content-accent);
    outline-offset: 4px;
    border-radius: 3px;
}

.wp-content-flow :is(ul, ol) {
    padding-inline-start: 1.5em;
    margin: 22px 0 28px;
}

.wp-content-flow li {
    padding-inline-start: .4em;
    margin-block: 12px;
}

.wp-content-flow li::marker {
    color: var(--content-accent);
    font-weight: 800;
}

.wp-content-flow li :is(ul, ol) {
    margin-block: 10px;
}

.wp-content-flow li > p {
    margin-bottom: 10px;
}

.wp-content-flow :is(blockquote, .wp-block-pullquote) {
    margin: 30px 0;
    padding: clamp(20px, 3vw, 30px);
    border: 0;
    border-inline-start: 4px solid var(--content-accent);
    border-radius: 0 16px 16px 0;
    background: var(--content-soft);
    color: var(--content-ink);
    text-align: start;
}

.wp-content-flow .wp-block-pullquote blockquote {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

.wp-content-flow :is(cite, figcaption, .wp-caption-text) {
    display: block;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted, #53677c);
    margin-top: 12px;
}

.wp-content-flow :is(figure, .wp-caption) {
    max-width: 100%;
    margin: 30px 0;
}

.wp-content-flow :is(img, video, iframe) {
    max-width: 100%;
    border-radius: min(var(--content-radius), 18px);
}

.wp-content-flow :is(img, video) {
    height: auto;
}

/* Large editor images fill the reading column; small images keep their size. */
.wp-content-flow img:where(.size-large, .size-full):not(:where(.alignleft, .alignright)) {
    width: 100%;
}

.wp-content-flow :is(.alignwide, .alignfull) {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    transform: none;
}

.wp-content-flow .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wp-content-flow .wp-block-gallery :is(figure, img) {
    width: 100% !important;
    margin: 0;
    min-width: 0;
}

.wp-content-flow table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.65;
}

.wp-content-flow :is(th, td) {
    border: 1px solid var(--content-line);
    padding: 14px 18px;
    text-align: start;
    vertical-align: top;
    min-width: 140px;
}

.wp-content-flow th {
    background: var(--content-ink);
    color: #fff;
    font-weight: 700;
}

.wp-content-flow tbody tr:nth-child(even) {
    background: var(--content-soft);
}

.wp-content-flow caption {
    text-align: start;
    font-weight: 700;
    padding-bottom: 12px;
}

.wp-content-flow hr {
    clear: both;
    border: 0;
    border-top: 1px solid var(--content-line);
    margin: 36px 0;
}

.wp-content-flow pre {
    max-width: 100%;
    overflow-x: auto;
    background: var(--content-soft);
    border: 1px solid var(--content-line);
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    white-space: pre;
}

.wp-content-flow details {
    margin: 14px 0;
    padding: 20px 24px;
    border: 1px solid var(--content-line);
    border-radius: 14px;
    background: #fff;
}

.wp-content-flow summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--content-ink);
}

.wp-content-flow details[open] summary {
    margin-bottom: 16px;
}

.wp-content-flow .wp-block-button__link {
    padding: 14px 22px;
    border-radius: 12px;
    background: var(--content-accent);
    color: var(--on-primary, #fff) !important;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.5;
}

.wp-content-flow > :first-child {
    margin-top: 0;
}

.wp-content-flow > :last-child,
.wp-content-flow :is(blockquote, details) > :last-child {
    margin-bottom: 0;
}

/* Homepage reading column and contact panel. */
.retained-home-content .home-content-layout {
    display: grid;
    grid-template-columns: minmax(0, .65fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(28px, 4vw, 60px);
}

.home-content-heading {
    position: sticky;
    top: calc(var(--avt-admin-offset, 0px) + 120px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(155deg, #fff, var(--soft));
}

.home-content-heading::before {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 22px;
    background: var(--blue);
}

.retained-home-content .home-content-heading h2 {
    font-size: clamp(23px, 2vw, 28px);
    line-height: 1.25;
    letter-spacing: -.035em;
}

.retained-home-content .home-full-content {
    width: 100%;
    max-width: 860px;
    margin: 0;
    padding: clamp(24px, 3.2vw, 48px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(7, 26, 47, .035);
}

.retained-home-content .home-full-content:only-child {
    grid-column: 1 / -1;
    margin-inline: auto;
}


.home-content-heading > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 18px 0 22px;
}

.home-content-heading .btn {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    font-size: 13px;
}

.content-contact-link {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 980px) {
    .retained-home-content .home-content-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .home-content-heading {
        position: static;
        padding: 26px;
    }

    .retained-home-content .home-full-content {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .wp-content-flow {
        font-size: 16px;
        line-height: 1.8;
    }

    .wp-content-flow > h2:not(:where(:first-child)) {
        margin-top: 34px;
        padding-top: 26px;
    }

    .wp-content-flow > :is(h1, .editor-content-title, hr) + h2 {
        padding-top: 0;
        margin-top: 20px;
    }

    .wp-content-flow .wp-block-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .retained-home-content .home-full-content {
        padding: 24px 20px;
        border-radius: min(var(--radius), 18px);
    }
}

/* Embedded forms keep the same spacing as the dedicated contact page. */
.quote-panel .quote-panel-copy h2 {
    margin: 8px 0 14px;
    padding: 0;
    border: 0;
    font-size: clamp(25px, 2.4vw, 30px);
    line-height: 1.3;
    letter-spacing: -.035em;
}

.quote-panel .quote-panel-copy > p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.75;
}

.quote-panel .wp-quote-form :is(input, textarea, select) {
    font-size: 16px;
    line-height: 1.5;
    min-height: 48px;
}

.quote-panel .form-required-note {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--muted);
}

.field-required {
    color: var(--blue);
}

.quote-panel .form-privacy {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

@media (max-width: 680px) {
    body:has(.wp-quote-form :focus) .mobilecall {
        display: none;
    }
}
