/* Shared components. UX Builder owns structure/content; these classes own presentation. */
.xf-site { background: var(--xf-white); color: var(--xf-navy); font-family: var(--xf-body); }
/* C11: only the Top Bar follow icons, matching the measured native contacts. */
.xf-site #top-bar .header-social-icons .social-icons { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.xf-site #top-bar .header-social-icons a.icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; color: rgba(74, 74, 74, .85); font-size: 20px; line-height: 1.2; }
.xf-site #top-bar .header-social-icons a.icon i { color: currentColor; font-size: inherit; line-height: inherit; }
.xf-site #top-bar .header-social-icons a.icon:hover { color: rgba(18, 18, 18, .85); }
.xf-site #top-bar .header-social-icons a.icon:focus-visible { outline-color: var(--xf-navy); outline-offset: 2px; }
.xf-site :is(p, ul, ol, input, textarea, select) { font-family: var(--xf-body); text-align: start; }
.xf-site :is(h1, h2, h3, h4, .button, .nav) { font-family: var(--xf-heading); }
.xf-site :is(h1, h2, h3, h4) { color: var(--xf-navy); font-style: normal; }
.xf-site a { color: var(--xf-navy); }
.xf-site a:hover { color: var(--xf-petrol); }
.xf-site :is(a, button, input, textarea, select):focus-visible { outline: 3px solid var(--xf-navy); outline-offset: 5px; }
.xf-site :is(#header, .xf-section--dark, .xf-footer, .mfp-content) :is(a, button, input, textarea, select):focus-visible { outline-color: var(--xf-gold); }
.xf-site .screen-reader-text:focus-visible { outline-color: var(--xf-gold); }
.xf-site .screen-reader-text:focus { color: var(--xf-white); background: var(--xf-navy); z-index: 10000; }

/* Native Flatsome header and off-canvas menu. */
.xf-site #header { position: relative; }
.xf-site #header .header-wrapper { background: var(--xf-navy); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; max-width: none; position: relative; inset: auto; transform: none; }
.xf-site #header .header-main { background: var(--xf-navy); height: 112px; }
.xf-site #header .header-inner { max-width: 1328px; padding-inline: var(--xf-gutter); }
.xf-site #logo { width: 300px; margin-right: 28px; }
.xf-site #logo a { display: block; padding: 10px 12px; }
.xf-site #logo img { width: 276px; height: auto; max-height: 96px; object-fit: contain; }
.xf-site #header #logo img { height: auto; max-height: 96px; }
.xf-site #header .stuck #logo img { width: 100%; max-height: 56px !important; }
.xf-site #header .header-nav-main { gap: 22px; }
.xf-site #header .header-nav-main > li > a { color: var(--xf-white); font-size: 12px; font-weight: 500; letter-spacing: .01em; text-transform: none; padding-block: 14px; }
.xf-site #header .header-nav-main > li > a:hover { color: var(--xf-gold); }
.xf-site #header .header-nav-main > li.xf-menu-contact > a { color: var(--xf-navy); background: var(--xf-gold); border: 1px solid var(--xf-gold); padding: 13px 21px; min-height: 42px; line-height: 1.2; }
.xf-site #header .header-nav-main > li.xf-menu-contact > a:hover { background: var(--xf-white); border-color: var(--xf-white); }
.xf-site #header .header-button .button { color: var(--xf-navy); background: var(--xf-gold); border: 1px solid var(--xf-gold); border-radius: 0; box-shadow: none; font-size: 12px; font-weight: 600; line-height: 1.2; min-height: 42px; padding: 13px 21px; text-transform: none; letter-spacing: 0; }
.xf-site #header .header-button .button:hover { background: var(--xf-white); border-color: var(--xf-white); }
.xf-site #header .nav-icon a { color: var(--xf-white); }
.xf-site .off-canvas .mfp-content { background: var(--xf-navy); }
.xf-site .mfp-bg { background: var(--xf-navy-deep); }
.xf-site .mobile-sidebar .nav > li > a { color: var(--xf-white); font-family: var(--xf-heading); font-weight: 500; padding-block: 17px; font-size: 16px; }
.xf-site .mobile-sidebar .nav > li > a:hover { color: var(--xf-gold); }
.xf-site .mobile-sidebar .nav > li { border-color: rgb(255 255 255 / 18%); }
.xf-site .off-canvas .mfp-close { color: var(--xf-white); opacity: 1; }

/* C8: native Flatsome block dropdown; behavior/positioning remain theme-owned. */
.xf-site #header .xf-menu-services > .nav-dropdown {
    background: var(--xf-ivory);
    border: 1px solid rgb(12 36 59 / 12%);
    border-top: 2px solid var(--xf-gold);
    box-shadow: none;
    margin-top: 0;
    padding: 0;
    max-width: calc(100vw - 2 * var(--xf-gutter));
}
.xf-site #header .xf-megamenu.row { width: 100%; max-width: none; margin: 0; padding: 28px 16px; align-items: stretch; }
.xf-site #header .xf-megamenu > .col { padding: 0 22px; }
.xf-site #header .xf-megamenu > .col + .col { border-left: 1px solid rgb(12 36 59 / 12%); }
.xf-site #header .xf-megamenu .col-inner > :last-child { margin-bottom: 0; }
.xf-site #header .xf-megamenu__heading h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.3; font-weight: 500; text-transform: none; letter-spacing: -.02em; }
.xf-site #header .xf-megamenu__heading a { color: var(--xf-navy); padding: 0; }
.xf-site #header .xf-megamenu__links { list-style: none; margin: 0; }
.xf-site #header .xf-megamenu__links li { margin: 0; padding: 0; border: 0; }
.xf-site #header .xf-megamenu__links a { display: block; padding: 8px 0; color: var(--xf-navy); font-family: var(--xf-body); font-size: 16px; font-weight: 400; line-height: 1.4; text-transform: none; white-space: normal; border: 0; }
.xf-site #header .xf-megamenu :is(a:hover, a:focus-visible) { color: var(--xf-petrol); text-decoration: underline; text-decoration-color: var(--xf-gold); text-underline-offset: 4px; }
.xf-site #header .xf-megamenu a:focus-visible { outline-color: var(--xf-navy); outline-offset: 3px; }
.xf-site .mobile-sidebar .xf-menu-services .children a { color: var(--xf-white); font-family: var(--xf-body); font-size: 15px; line-height: 1.45; white-space: normal; padding-block: 11px; }
.xf-site .mobile-sidebar .xf-menu-services .children a:hover { color: var(--xf-gold); }
.xf-site .mobile-sidebar .xf-menu-services .toggle { color: var(--xf-white); opacity: 1; }
@media (min-width: 850px) and (max-width: 1099px) {
    .xf-site #header .xf-megamenu.row { padding: 22px 8px; }
    .xf-site #header .xf-megamenu > .col { padding-inline: 16px; }
    .xf-site #header .xf-megamenu__heading h2 { font-size: 17px; }
    .xf-site #header .xf-megamenu__links a { font-size: 15px; }
}

/* Sections, type and actions. */
.xf-section { padding: var(--xf-section-space) 0; }
/* Native element IDs set default spacing; XF component CSS remains the authority. */
.xf-site .xf-section { padding-block: var(--xf-section-space) !important; }
.xf-site .xf-hero--home, .xf-site .xf-profile { padding-block: 0 !important; }
.xf-section .section-content { isolation: isolate; }
.xf-section .xf-container.row { width: calc(100% - 2 * var(--xf-gutter)); max-width: var(--xf-content-width); margin-inline: auto; }
.xf-section .xf-container > .col { padding: 0 18px; }
.xf-section .xf-container > .col > .col-inner { height: 100%; }
.xf-section .xf-full { padding: 0 !important; }
.xf-section :is(p, ul, ol) { font-size: 18px; line-height: 1.65; margin-bottom: 1.15em; }
.xf-section :is(h2, h3) { letter-spacing: -.035em; line-height: 1.2; font-weight: 500; }
.xf-section h2 { font-size: clamp(1.8rem, 3.1vw, 2.65rem); margin-bottom: 24px; }
.xf-section h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.xf-section .xf-eyebrow p, .xf-eyebrow { color: var(--xf-petrol); font-family: var(--xf-heading); font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; margin-bottom: 20px; }
.xf-section .xf-intro { max-width: 670px; margin-bottom: 42px; }
.xf-section .xf-intro p { color: var(--xf-petrol); }
.xf-section--ivory { background: var(--xf-ivory); }
.xf-section--dark { background: var(--xf-navy); }
.xf-section--dark :is(h2, h3, p, a) { color: var(--xf-white); }
.xf-section--dark .xf-eyebrow p { color: var(--xf-white); }
.xf-section .xf-actions { flex-wrap: wrap; gap: 14px 24px; margin-top: 29px; }
.xf-site .xf-button.button { min-height: 49px; line-height: 1.3; display: inline-flex; justify-content: center; align-items: center; padding: 15px 24px; margin: 0; border-radius: 0 !important; box-shadow: none; font-size: 12px; font-weight: 600; letter-spacing: .01em; text-transform: none; border: 1px solid transparent; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.xf-site .xf-button--primary.button { background: var(--xf-navy); color: var(--xf-white); }
.xf-site .xf-button--primary.button:hover { background: var(--xf-petrol); color: var(--xf-white); }
.xf-site .xf-button--gold.button { background: var(--xf-gold); color: var(--xf-navy); }
.xf-site .xf-button--gold.button:hover { background: var(--xf-white); color: var(--xf-navy); }
.xf-site .xf-button--secondary.button { background: transparent; border-color: var(--xf-navy); color: var(--xf-navy); }
.xf-site .xf-button--secondary.button:hover { background: var(--xf-navy); color: var(--xf-white); }
.xf-site .xf-button--text.button { background: transparent; color: var(--xf-navy); border: 0; padding: 10px 0; min-height: 44px; text-align: start; justify-content: start; }
.xf-site .xf-button--text.button:hover { color: var(--xf-petrol); text-decoration: underline; text-underline-offset: 5px; }
.xf-site .xf-text-link { font-family: var(--xf-heading); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; display: inline-block; padding-block: 10px; }
.xf-section [id] { scroll-margin-top: 30px; }

/* Editorial hero: image is native Media/UX Image, not a CSS background. */
.xf-hero--home { background: var(--xf-ivory); padding: 0; }
.xf-hero--home .xf-hero__row.row { max-width: 1600px; width: 100%; align-items: stretch; }
.xf-hero--home .xf-hero__copy.col { padding: clamp(45px, 5.5vw, 88px) clamp(28px, 5.2vw, 82px); }
.xf-hero__copy > .col-inner { display: flex; flex-direction: column; justify-content: center; }
.xf-hero__title h1 { font-size: clamp(2.25rem, 3.65vw, 3.5rem); font-weight: 500; letter-spacing: -.047em; line-height: 1.12; max-width: 620px; margin-bottom: 26px; }
.xf-hero__copy .xf-lead p { color: var(--xf-petrol); max-width: 480px; font-size: 19px; line-height: 1.6; }
.xf-hero__copy .xf-location p { color: var(--xf-petrol); font-size: 13px; margin: 29px 0 0; }
.xf-hero--home .xf-hero__media.col { padding: 0; }
.xf-hero__media .col-inner, .xf-hero__image, .xf-hero__image .img-inner { height: 100%; }
.xf-hero__image { margin: 0; }
.xf-hero__image img { width: 100%; height: 100%; min-height: 590px; object-fit: cover; object-position: 58% 50%; }

/* Three equally weighted areas and reusable service cards. */
.xf-section .xf-card-row > .col { display: flex; }
.xf-section .xf-card-row > .col > .col-inner { display: flex; flex-direction: column; width: 100%; }
.xf-service-card > .col-inner { background: var(--xf-ivory); border-top: 2px solid var(--xf-gold); padding: 32px 30px 25px; }
.xf-section .xf-service-card .xf-card-number p { color: var(--xf-petrol); font-family: var(--xf-heading); font-size: 12px; margin-bottom: 42px; }
.xf-service-card h3 { margin-bottom: 18px; }
.xf-service-card p { color: var(--xf-petrol); font-size: 17px; }
.xf-service-card .button { margin-top: auto !important; }
.xf-service-card--compact > .col-inner { background: var(--xf-white); border-top: 0; padding: 32px 30px; }
.xf-service-card--compact .xf-eyebrow p { font-size: 10px; margin-bottom: 22px; }
.xf-service-card--compact h3 { font-size: 21px; }
.xf-section .xf-card-row { row-gap: 26px; }

/* Professional presentation and approach. */
.xf-profile { padding-block: 0; }
.xf-profile .xf-profile__row { align-items: stretch; }
.xf-profile .xf-profile__photo.col { padding: 0; }
.xf-profile__photo .img, .xf-profile__photo .img-inner { margin: 0; height: 100%; }
.xf-profile__photo img { display: block; width: 100%; height: 100%; min-height: 640px; max-height: 760px; object-fit: cover; object-position: 50% 30%; }
.xf-profile .xf-profile__copy.col { padding: 74px 18px 74px clamp(40px, 6vw, 90px); }
.xf-profile__copy > .col-inner { display: flex; flex-direction: column; justify-content: center; }
.xf-profile__copy h2 { max-width: 500px; }
.xf-profile__copy p { max-width: 540px; color: #e1e7eb; }
.xf-profile__copy .xf-credentials p { font-size: 13px; line-height: 1.9; margin-top: 13px; }
.xf-profile__copy .xf-actions { margin-top: 18px; }
.xf-approach .xf-step > .col-inner { border-top: 1px solid var(--xf-line); padding-top: 25px; }
.xf-approach .xf-step-number p { font-family: var(--xf-heading); font-size: 12px; color: var(--xf-petrol); margin-bottom: 18px; }
.xf-approach .xf-step h3 { font-size: 20px; margin-bottom: 13px; }
.xf-approach .xf-step p { font-size: 17px; color: var(--xf-petrol); }

/* Offices use verified addresses instead of unverified location photographs. */
.xf-offices .xf-office > .col-inner { border-top: 2px solid var(--xf-gold); padding: 29px 0 10px; }
.xf-offices .xf-office h3 { font-size: 26px; margin-bottom: 20px; }
.xf-office address { font-style: normal; color: var(--xf-petrol); font-size: 19px; line-height: 1.75; min-height: 78px; margin-bottom: 14px; }
.xf-section .xf-office-note p { color: var(--xf-petrol); font-size: 14px; margin: 22px 0 0; }
.xf-office-note a { text-decoration: underline; text-underline-offset: .18em; }

/* Blog cards remain ready without exposing imported articles. */
.xf-editorial-note { border-top: 1px solid var(--xf-line); padding-top: 26px; display: flex; gap: 40px; justify-content: space-between; align-items: start; }
.xf-editorial-note p { max-width: 660px; color: var(--xf-petrol); margin: 0; }
.xf-editorial-note a { flex-shrink: 0; }
.xf-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.xf-article-card__image { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 22px; }
.xf-article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.xf-article-card__date { color: var(--xf-petrol); font-size: 13px; display: block; margin-bottom: 12px; }
.xf-article-card h3 { font-size: 21px; }
.xf-article-card p { font-size: 17px; color: var(--xf-petrol); }

/* Shared contact CTA and footer. */
.xf-cta { background: var(--xf-navy); overflow: hidden; }
.xf-cta .xf-container { align-items: center; }
.xf-cta .xf-cta__copy h2 { margin-bottom: 18px; }
.xf-cta .xf-cta__copy p { color: #e1e7eb; max-width: 570px; }
.xf-cta .xf-cta__contact { text-align: end; }
.xf-cta .xf-cta__contact p { text-align: end; }
.xf-cta .xf-phone { display: inline-block; font-family: var(--xf-heading); font-weight: 500; font-size: clamp(25px, 3vw, 38px); line-height: 1.3; margin-bottom: 15px; letter-spacing: -.03em; }
.xf-cta .xf-email { font-size: 17px; overflow-wrap: anywhere; }
.xf-cta a:hover { color: var(--xf-gold); }
.xf-cta .xf-button--gold:hover { color: var(--xf-navy); }
.xf-footer { background: var(--xf-navy-deep); padding: 58px 0 25px; }
.xf-site .xf-footer { padding-block: 58px 25px !important; }
.xf-footer .xf-footer__logo { max-width: 220px; margin-bottom: 22px; }
.xf-footer .xf-footer__logo img { width: 100%; height: auto; }
.xf-footer :is(p, a) { color: #d6e0e6; font-size: 15px; line-height: 1.7; }
.xf-footer a:hover { color: var(--xf-white); text-decoration: underline; text-underline-offset: 4px; }
.xf-footer h3 { color: var(--xf-white); font-size: 12px; font-weight: 600; letter-spacing: .07em; margin-bottom: 21px; text-transform: uppercase; }
.xf-footer .xf-footer__nav { list-style: none; margin: 0; }
.xf-footer .xf-footer__nav li { margin: 0 0 8px; }
.xf-footer .xf-footer__nav a { display: inline-block; min-height: 32px; padding-block: 4px; }
.xf-footer .xf-footer__bottom { border-top: 1px solid rgb(255 255 255 / 18%); padding-top: 24px; margin-top: 35px; }
.xf-footer .xf-footer__bottom p { margin: 0; font-size: 12px; }
.xf-footer .xf-footer__legal p { text-align: end; }
.xf-site .absolute-footer { display: none; }
.xf-site .klaro .cookie-notice { box-shadow: 0 10px 40px rgb(12 36 59 / 18%); border: 1px solid var(--xf-line); }
.xf-site .klaro .cm-btn { background: var(--xf-navy); color: var(--xf-white); }
.xf-site .klaro .cm-btn:focus-visible { outline: 3px solid var(--xf-navy); outline-offset: 3px; }

@media (max-width: 1099px) {
    .xf-site #header .header-nav-main { gap: 13px; }
    .xf-site #logo { width: 260px; margin-right: 12px; }
    .xf-site #logo img { width: 236px; }
    .xf-site #header .header-nav-main > li > a { font-size: 11px; }
    .xf-site #header .header-button .button { padding-inline: 15px; }
    .xf-hero--home .xf-hero__copy.col { padding-inline: 35px; }
    .xf-hero__image img { min-height: 600px; object-position: 57% center; }
    .xf-profile .xf-profile__copy.col { padding: 55px 18px 55px 40px; }
}
@media (max-width: 849px) {
    .xf-site #header .header-main { height: 96px; }
    .xf-hero--home .xf-hero__copy.col, .xf-hero--home .xf-hero__media.col { flex-basis: 100%; max-width: 100%; }
    .xf-hero--home .xf-hero__copy.col { padding: 54px var(--xf-gutter) 44px; }
    .xf-hero__title h1 { font-size: clamp(2.25rem, 5.6vw, 3.15rem); max-width: 680px; }
    .xf-hero__copy .xf-lead p { max-width: 640px; }
    .xf-hero__image img { height: 430px; min-height: 0; object-position: 55% 52%; }
    .xf-hero__copy .xf-location p { margin-top: 23px; }
    .xf-section .xf-container > .col { padding-inline: 12px; }
    .xf-service-card > .col-inner { padding: 27px 21px; }
    .xf-service-card h3 { font-size: 20px; }
    .xf-service-card p { font-size: 16px; }
    .xf-profile .xf-profile__copy.col { padding: 45px 12px 45px 28px; }
    .xf-profile__photo img { min-height: 660px; }
    .xf-profile__copy :is(p, .xf-credentials p) { font-size: 16px; }
    .xf-editorial-note { gap: 20px; flex-direction: column; }
    .xf-footer .xf-footer__brand { margin-bottom: 30px; }
}
@media (max-width: 549px) {
    .xf-site #logo { width: 260px; margin-right: 0; }
    .xf-site #logo img { width: 236px; max-height: 82px; }
    .xf-section .xf-container.row { width: calc(100% - 2 * var(--xf-gutter)); }
    .xf-section .xf-container > .col { padding-inline: 0; }
    .xf-section h2 { font-size: 29px; }
    .xf-section .xf-intro { margin-bottom: 28px; }
    .xf-hero__title h1 { font-size: 35px; }
    .xf-hero--home .xf-hero__copy.col { padding-block: 42px 36px; }
    .xf-hero__copy .xf-lead p { font-size: 18px; }
    .xf-hero__image img { height: 330px; object-position: 54% 53%; }
    .xf-section .xf-actions { align-items: stretch; gap: 12px; flex-direction: column; }
    .xf-section .xf-actions .xf-button { width: 100%; justify-content: center; }
    .xf-section .xf-actions .xf-button--text { justify-content: start; }
    .xf-section .xf-card-row { row-gap: 19px; }
    .xf-service-card > .col-inner { padding: 27px; }
    .xf-section .xf-service-card .xf-card-number p { margin-bottom: 25px; }
    .xf-service-card h3 { font-size: 24px; }
    .xf-service-card p { font-size: 17px; }
    .xf-profile__photo img { min-height: 0; height: 490px; object-position: 50% 28%; }
    .xf-profile .xf-profile__copy.col { padding: 40px 0 48px; }
    .xf-profile__copy :is(p, .xf-credentials p) { font-size: 17px; }
    .xf-approach .xf-step { margin-bottom: 25px; }
    .xf-approach .xf-step:last-child { margin-bottom: 0; }
    .xf-offices .xf-office { margin-bottom: 25px; }
    .xf-office address { min-height: 0; }
    .xf-article-grid { grid-template-columns: 1fr; }
    .xf-cta .xf-cta__contact { margin-top: 32px; }
    .xf-cta .xf-cta__contact, .xf-cta .xf-cta__contact p { text-align: start; }
    .xf-footer .xf-footer__column { margin-bottom: 27px; }
    .xf-footer .xf-footer__legal p { text-align: start; margin-top: 17px; }
    .xf-footer .xf-footer__bottom { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .xf-site { scroll-behavior: auto; }
    .xf-site .xf-button { transition: none; }
}
