/* Find Theme Best Local — main.css. Bump FTBS_VERSION in functions.php whenever this file changes. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ftbs-font-body); font-size: 1rem; line-height: 1.6; color: var(--ftbs-text); background: var(--ftbs-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ftbs-primary); text-decoration: none; }
a:hover { color: var(--ftbs-primary-hover); }
:focus-visible { outline: 3px solid var(--ftbs-primary); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.ftbs-container { max-width: var(--ftbs-container); margin: 0 auto; padding: 0 1.5rem; }
.ftbs-section { padding: var(--ftbs-section-pad) 0; }
.ftbs-center { text-align: center; margin-left: auto; margin-right: auto; }
.ftbs-icon { width: 16px; height: 16px; flex: none; }
.ftbs-notice { background: #fff8e1; border: 1px solid #ffe08a; padding: .75rem 1rem; border-radius: var(--ftbs-radius); font-size: .875rem; }

.ftbs-heading { font-size: var(--ftbs-fs-h2); font-weight: 800; line-height: 1.25; margin: 0 0 .4rem; color: var(--ftbs-secondary); }
.ftbs-subheading { font-size: 1.3rem; font-weight: 700; margin: 0 0 1.5rem; color: var(--ftbs-secondary); }
.ftbs-lead { color: var(--ftbs-text-muted); max-width: 62ch; margin: 0 auto 1.5rem; }
.ftbs-body-text p { margin: 0 0 1em; }
.ftbs-body-text > :last-child { margin-bottom: 0; }
.ftbs-more-link { font-size: .8125rem; color: var(--ftbs-accent-hover); }

.ftbs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.6rem; border: 2px solid transparent; border-radius: 8px; font-size: .875rem; font-weight: 700; cursor: pointer; transition: background var(--ftbs-transition), color var(--ftbs-transition), border-color var(--ftbs-transition); }
.ftbs-btn--sm { padding: .6rem 1.1rem; font-size: .8125rem; }
.ftbs-btn--primary { background: var(--ftbs-primary); color: var(--ftbs-primary-on); }
.ftbs-btn--primary:hover { background: var(--ftbs-primary-hover); color: var(--ftbs-primary-on); }
.ftbs-btn--accent { background: var(--ftbs-accent); color: var(--ftbs-accent-on); }
.ftbs-btn--accent:hover { background: var(--ftbs-accent-hover); color: var(--ftbs-accent-on); }
.ftbs-btn--secondary { background: var(--ftbs-secondary); color: var(--ftbs-secondary-on); }
.ftbs-btn--secondary:hover { background: var(--ftbs-secondary-hover); color: var(--ftbs-secondary-on); }
.ftbs-btn--outline { background: #fff; border-color: var(--ftbs-border); color: var(--ftbs-secondary); }
.ftbs-btn--outline:hover { border-color: var(--ftbs-secondary); color: var(--ftbs-secondary); }

/* -------------------- Topbar (Business Info) -------------------- */
.ftbs-topbar { background: var(--ftbs-secondary); color: rgba(255,255,255,.88); font-size: .8125rem; }
.ftbs-topbar .ftbs-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.ftbs-topbar a { color: inherit; }
.ftbs-topbar a:hover { color: var(--ftbs-accent); }
.ftbs-topbar-left, .ftbs-topbar-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.ftbs-topbar-item { display: inline-flex; align-items: center; gap: .4rem; }
.ftbs-topbar .ftbs-icon { color: var(--ftbs-accent); }
.ftbs-social { list-style: none; display: flex; gap: .65rem; margin: 0; padding: 0; }
.ftbs-gbp-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* -------------------- Header: logo + primary menu in one row -------------------- */
.ftbs-header { background: #fff; position: sticky; top: 0; z-index: 40; }
.ftbs-header-row { display: flex; align-items: center; gap: 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.ftbs-logo { font-weight: 800; font-size: 1.5rem; flex: none; }
.ftbs-logo a { color: var(--ftbs-secondary); }
.ftbs-logo img { max-height: 52px; max-width: 100%; width: auto; height: auto; }
.ftbs-logo .custom-logo-link { display: block; line-height: 0; }
.ftbs-primary-nav { margin-left: 2rem; }
.ftbs-primary-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.ftbs-primary-nav a { position: relative; display: block; padding: .35rem 0; color: var(--ftbs-secondary); font-size: .875rem; font-weight: 500; }
.ftbs-primary-nav a:hover { color: var(--ftbs-primary); }
.ftbs-primary-nav .current-menu-item > a, .ftbs-primary-nav .current_page_item > a, .ftbs-primary-nav .current-menu-ancestor > a { color: var(--ftbs-primary); }
.ftbs-primary-nav .current-menu-item > a::after, .ftbs-primary-nav .current_page_item > a::after, .ftbs-primary-nav .current-menu-ancestor > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.9rem; height: 2px; background: var(--ftbs-primary); }
.ftbs-menu-desc { display: block; font-size: .6875rem; font-weight: 400; color: var(--ftbs-text-muted); }
.ftbs-header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.ftbs-menu-toggle { display: none; flex: none; background: none; border: 0; padding: .25rem; cursor: pointer; color: var(--ftbs-secondary); }
.ftbs-header-btn { max-width: 100%; min-width: 0; }
.ftbs-header-btn__icon { display: inline-flex; flex: none; }
.ftbs-header-btn__icon .ftbs-icon { width: 15px; height: 15px; }
.ftbs-header-btn__icon--mobile-only { display: none; }
.ftbs-header-btn__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -------------------- Banner bar -------------------- */
.ftbs-banner { background: var(--ftbs-primary); color: var(--ftbs-primary-on); }
.ftbs-banner-row { display: flex; align-items: center; gap: 1.5rem; padding-top: .85rem; padding-bottom: .85rem; position: relative; }
.ftbs-banner-date { display: inline-flex; align-items: center; gap: .5rem; flex: none; padding: .5rem 1rem; border: 1px solid var(--ftbs-accent); border-radius: 3px; font-size: .8125rem; font-weight: 600; }
.ftbs-banner-date .ftbs-icon { width: 14px; height: 14px; color: var(--ftbs-accent); }
.ftbs-banner-text { margin: 0; padding-left: 1.5rem; border-left: 1px solid var(--ftbs-accent); font-weight: 700; font-size: 1rem; flex: 1; }
.ftbs-cats { margin-left: auto; padding-left: 1.5rem; border-left: 1px solid var(--ftbs-accent); }
.ftbs-cats summary { list-style: none; cursor: pointer; color: var(--ftbs-accent); display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; }
.ftbs-cats summary::-webkit-details-marker { display: none; }
.ftbs-cats[open] summary .ftbs-icon { transform: rotate(180deg); }
.ftbs-cats-panel { position: absolute; left: 1.5rem; right: 1.5rem; top: 100%; z-index: 50; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; background: #fff; color: var(--ftbs-text); padding: 1.5rem; box-shadow: 0 14px 30px rgba(0,0,0,.15); border-top: 3px solid var(--ftbs-accent); border-radius: 0 0 var(--ftbs-radius) var(--ftbs-radius); }
.ftbs-cats-title { font-weight: 700; color: var(--ftbs-secondary); display: block; margin-bottom: .5rem; }
.ftbs-cats-col ul { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.ftbs-cats-col li { margin-bottom: .25rem; }
.ftbs-cats-col li a { color: var(--ftbs-text); }
.ftbs-cats-col li a:hover { color: var(--ftbs-primary); }

/* -------------------- Hero (homepage, listings, agency profile) -------------------- */
.ftbs-hero { position: relative; overflow: hidden; padding: clamp(2.25rem, 5vw, 4rem) 0; background: radial-gradient(circle at 8% 25%, rgba(248,176,46,.12), transparent 38%), linear-gradient(180deg, var(--ftbs-primary-tint) 0%, #fff 100%); }
.ftbs-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.ftbs-hero-grid--single { grid-template-columns: 1fr; }
.ftbs-pill { display: inline-block; margin-bottom: 1rem; padding: .3rem .85rem; border-radius: 999px; background: var(--ftbs-primary-tint); color: var(--ftbs-primary); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ftbs-hero-title { margin: 0 0 1rem; font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--ftbs-secondary); max-width: 20ch; }
.ftbs-hero-grid--single .ftbs-hero-title { max-width: 30ch; }
.ftbs-hero-text { max-width: 54ch; color: var(--ftbs-text-muted); font-size: 1.05rem; }
.ftbs-hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 0; margin: 1.75rem 0 0; padding: 0; }
.ftbs-hero-stats li { display: flex; align-items: center; gap: .8rem; padding-right: 1.75rem; margin-right: 1.75rem; border-right: 1px solid var(--ftbs-border); }
.ftbs-hero-stats li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ftbs-hero-stat__icon { color: var(--ftbs-accent); }
.ftbs-hero-stat__icon .ftbs-icon { width: clamp(24px, 6.5vw, 34px); height: clamp(24px, 6.5vw, 34px); stroke-width: 1.3; }
.ftbs-hero-stat__text strong { display: block; font-size: clamp(1rem, 4.4vw, 1.15rem); line-height: 1.2; color: var(--ftbs-secondary); overflow-wrap: anywhere; }
.ftbs-hero-stat__text small { display: block; font-size: .8125rem; color: var(--ftbs-text-muted); }
.ftbs-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.ftbs-hero-media { position: relative; }
.ftbs-hero-media img { margin-left: auto; max-height: 340px; width: auto; }
.ftbs-hero-media--logo img { max-width: 280px; max-height: 240px; padding: 1.5rem; object-fit: contain; background: #fff; border-radius: 20px; box-shadow: var(--ftbs-shadow); }
.ftbs-hero-badge { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: .6rem; max-width: 230px; padding: .8rem 1rem; background: #fff; border-radius: 12px; box-shadow: var(--ftbs-shadow); font-size: .75rem; color: var(--ftbs-text-muted); }
.ftbs-hero-badge .ftbs-icon { width: 22px; height: 22px; color: var(--ftbs-primary); }

/* -------------------- Agency profile hero --------------------
   .ftbs-hero-copy is flattened (display: contents) so every piece becomes a cell of
   one grid. Desktop: copy on the left, logo on the right, description below.
   Mobile (<= 991px), top to bottom: pill, title, logo, stats (2 x 2), Province /
   Services, short text, description, Visit Company. */
.ftbs-hero-terms { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ftbs-hero-terms li { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .6rem; font-size: .95rem; }
.ftbs-hero-term__icon { color: var(--ftbs-accent); display: inline-flex; }
.ftbs-hero-term__icon .ftbs-icon { width: clamp(20px, 5.5vw, 26px); height: clamp(20px, 5.5vw, 26px); stroke-width: 1.4; }
.ftbs-hero-terms strong { color: var(--ftbs-secondary); }
.ftbs-hero-body { color: var(--ftbs-text); }

.ftbs-hero--profile .ftbs-hero-copy { display: contents; }
.ftbs-hero--profile .ftbs-hero-grid { grid-template-columns: 1.1fr .9fr; column-gap: 2.5rem; row-gap: 0; align-items: start; grid-template-areas: "pill media" "title media" "text media" "stats media" "terms media" "biz media" "actions media" "body body"; }
.ftbs-hero--profile .ftbs-hero-grid--single { grid-template-columns: 1fr; grid-template-areas: "pill" "title" "text" "stats" "terms" "biz" "actions" "body"; }
.ftbs-hero--profile .ftbs-pill { grid-area: pill; justify-self: start; }
.ftbs-hero--profile .ftbs-hero-title { grid-area: title; max-width: none; min-width: 0; }
.ftbs-hero--profile .ftbs-hero-text { grid-area: text; min-width: 0; }
.ftbs-hero--profile .ftbs-hero-stats { grid-area: stats; min-width: 0; }
.ftbs-hero--profile .ftbs-hero-terms { grid-area: terms; min-width: 0; }
.ftbs-hero--profile .ftbs-hero-biz { grid-area: biz; min-width: 0; margin-top: 1.25rem; }
.ftbs-hero--profile .ftbs-hero-biz .fbs-bizinfo { margin-top: 0; }
.ftbs-hero--profile .ftbs-hero-actions { grid-area: actions; }
.ftbs-hero--profile .ftbs-hero-media { grid-area: media; align-self: center; }
.ftbs-hero--profile .ftbs-hero-body { grid-area: body; margin-top: 2.25rem; min-width: 0; }

/* -------------------- Section heads -------------------- */
.ftbs-section-head { margin-bottom: 1.25rem; }
.ftbs-section-head::before { content: ''; display: block; width: 34px; height: 3px; margin-bottom: .6rem; background: var(--ftbs-accent); }
.ftbs-section-sub { margin: 0; font-size: .9rem; color: var(--ftbs-text-muted); }

.ftbs-round-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--ftbs-accent-tint); background: color-mix(in srgb, var(--ftbs-card-color, var(--ftbs-accent)) 15%, #fff); color: var(--ftbs-card-color, var(--ftbs-accent)); }
.ftbs-round-icon .fbs-icon { width: 28px; height: 28px; }
.ftbs-link-arrow { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--ftbs-accent-hover); white-space: nowrap; }
.ftbs-link-arrow:hover { color: var(--ftbs-primary); }

/* -------------------- Explore by services -------------------- */
.ftbs-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--ftbs-gap); }
.ftbs-svc-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; background: #fff; border: 1px solid var(--ftbs-border); border-radius: var(--ftbs-radius); box-shadow: var(--ftbs-shadow); }
.ftbs-svc-body h3 { margin: 0 0 .15rem; font-size: 1rem; }
.ftbs-svc-body h3 a { color: var(--ftbs-secondary); }
.ftbs-svc-count { margin: 0; font-size: .875rem; color: var(--ftbs-text); }
.ftbs-svc-note { margin: .15rem 0 0; font-size: .75rem; color: var(--ftbs-text-muted); }

/* -------------------- Explore by location -------------------- */
.ftbs-locations { padding-top: 0; }
.ftbs-loc-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 1.75rem 2rem; background: var(--ftbs-bg-alt); border-radius: 12px; }
.ftbs-section-head--inline { margin: 0; }
.ftbs-section-head--inline::before { display: none; }
.ftbs-section-head--inline .ftbs-heading { display: flex; align-items: center; gap: 1rem; font-size: 1.25rem; }
.ftbs-section-head--inline .ftbs-heading::before { content: ''; width: 28px; height: 3px; background: var(--ftbs-accent); }
.ftbs-section-head--inline .ftbs-section-sub { padding-left: 44px; }
.ftbs-loc-controls { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ftbs-loc-select { display: flex; align-items: center; gap: .6rem; min-width: 270px; padding: .35rem .9rem; background: #fff; border: 1px solid var(--ftbs-border); border-radius: var(--ftbs-radius); }
.ftbs-loc-select > .ftbs-icon:first-child { color: var(--ftbs-primary); }
.ftbs-loc-select > .ftbs-icon:last-child { color: var(--ftbs-text-muted); }
.ftbs-loc-select select { flex: 1; min-width: 0; padding: .5rem 0; border: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--ftbs-text); appearance: none; -webkit-appearance: none; cursor: pointer; }
.ftbs-loc-select select:focus { outline: none; }
.ftbs-loc-select:focus-within { outline: 2px solid var(--ftbs-primary); }

/* -------------------- Rankings & recommendations -------------------- */
.ftbs-rk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--ftbs-gap); }
.ftbs-rk-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.25rem; color: inherit; background: #fff; border: 1px solid var(--ftbs-border); border-left: 5px solid var(--ftbs-card-color); border-radius: 6px; box-shadow: var(--ftbs-shadow); }
.ftbs-rk-card:hover { color: inherit; border-color: var(--ftbs-card-color); }
.ftbs-rk-card .ftbs-round-icon { width: 52px; height: 52px; }
.ftbs-rk-body strong { display: block; font-size: .9rem; color: var(--ftbs-secondary); }
.ftbs-rk-body small { display: block; font-size: .72rem; color: var(--ftbs-text-muted); }
.ftbs-rk-link { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--ftbs-accent-hover); white-space: nowrap; }
.ftbs-rk-chevron { color: var(--ftbs-text-muted); }

/* -------------------- Listing + agency pages -------------------- */
.ftbs-listing-wrap { padding: 1.5rem 0 3rem; }
.ftbs-profile-tabs { padding-top: 0; }
.ftbs-profile-tabs .fbs-profile .fbs-tabs { margin: 0; }
/* Tabbed agency cards (plugin 2.3): keep the card header tidy beside the theme's header/hero. */
.ftbs-listing-wrap .fbs-listing--tabs { padding-top: .25rem; }
.ftbs-profile-body { max-width: 900px; }
.ftbs-profile-terms { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 2rem; font-size: .9rem; }
.ftbs-profile-terms__label { font-weight: 700; color: var(--ftbs-secondary); }

/* -------------------- Previous homepage sections (optional) -------------------- */
.ftbs-iv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ftbs-gap); }
.ftbs-iv-card__visual { display: flex; align-items: center; justify-content: center; gap: .9rem; aspect-ratio: 3 / 2; padding: 1rem; margin-bottom: 1rem; }
.ftbs-iv-card__visual.is-person { background: var(--ftbs-accent); color: var(--ftbs-accent-on); justify-content: flex-start; }
.ftbs-iv-card__visual.is-logo { background: #fff; border: 1px solid var(--ftbs-border); }
.ftbs-iv-card__visual.is-logo img { max-height: 100%; width: auto; }
.ftbs-iv-photo { flex: none; width: 42%; aspect-ratio: 1 / 1; border: 4px solid #fff; border-radius: 14px; overflow: hidden; background: #fff; }
.ftbs-iv-photo img { width: 100%; height: 100%; object-fit: cover; }
.ftbs-iv-name { font-size: 1.1rem; line-height: 1.25; }
.ftbs-iv-name strong { display: block; font-size: 1.15rem; }
.ftbs-iv-card__title { margin: 0 0 .6rem; font-size: .8125rem; line-height: 1.35; }
.ftbs-iv-card__title a { color: var(--ftbs-text); }
.ftbs-iv-card__excerpt { margin: 0 0 .6rem; font-size: .75rem; color: var(--ftbs-text-muted); }

.ftbs-features { background: var(--ftbs-highlight); color: #fff; }
.ftbs-features-heading { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 300; }
.ftbs-features-sub { margin: .3rem 0 0; font-weight: 700; }
.ftbs-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.ftbs-feature { text-align: center; }
.ftbs-feature__img { width: 150px; height: 150px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; }
.ftbs-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.ftbs-feature h3 { font-size: .95rem; margin: 0 0 1rem; }
.ftbs-feature__lead { font-weight: 700; font-size: .8125rem; text-align: justify; }
.ftbs-feature__text { font-size: .8125rem; text-align: justify; opacity: .95; }
.ftbs-feature__text p { margin: 0 0 1em; }

.ftbs-boost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ftbs-boost-grid--no-image { grid-template-columns: 1fr; text-align: center; }
.ftbs-boost-copy p { margin: 0; line-height: 1.15; }
.ftbs-boost-word { font-size: clamp(3rem, 7vw, 5rem); font-weight: 300; color: var(--ftbs-secondary); }
.ftbs-boost-sub { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 300; color: var(--ftbs-secondary-light); }
.ftbs-boost-strong { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--ftbs-secondary); margin-bottom: 1.25rem !important; }

.ftbs-agencies-cta { background: var(--ftbs-accent); color: var(--ftbs-accent-on); border-top: 6px solid var(--ftbs-accent-hover); }
.ftbs-cta-kicker { margin: 0 0 .5rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; text-transform: uppercase; }
.ftbs-cta-heading { margin: 0 0 1.5rem; font-size: clamp(1.1rem, 2.4vw, 1.5rem); text-transform: uppercase; }
.ftbs-cta-text { max-width: 62ch; margin: 0 auto 1.75rem; font-size: .8125rem; }

/* -------------------- Footer -------------------- */
/* Always a solid background: --ftbs-footer-bg / --ftbs-footer-text are printed by inc/customizer.php
   (Customize → Theme Options → Footer); the fallbacks keep it dark even if that block is missing. */
.ftbs-footer { margin-top: 0; background-color: var(--ftbs-footer-bg, var(--ftbs-secondary, #0f2d4a)); color: var(--ftbs-footer-text, #ffffff); font-size: .8125rem; }
.ftbs-footer-row { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding-top: 2rem; padding-bottom: 2rem; }
.ftbs-footer-logo { font-size: 1.3rem; font-weight: 800; flex: none; }
.ftbs-footer-logo a { color: inherit; }
.ftbs-footer-logo img { max-height: 44px; width: auto; }
.ftbs-footer-desc { margin: 0; padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.28); border-left-color: color-mix(in srgb, currentColor 30%, transparent); max-width: 38ch; font-size: .75rem; opacity: .85; }
.ftbs-footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; padding: 0; }
.ftbs-footer-nav a { color: inherit; font-weight: 600; font-size: .75rem; }
.ftbs-footer-nav a:hover { color: var(--ftbs-accent); }
.ftbs-copyright { margin: 0 0 0 auto; font-size: .6875rem; opacity: .8; }

/* -------------------- Page / post fallbacks -------------------- */
.ftbs-page-content { max-width: none; }
.ftbs-page-content > p, .ftbs-page-content > ul, .ftbs-page-content > ol, .ftbs-page-content > blockquote,
.ftbs-page-content > h1, .ftbs-page-content > h2, .ftbs-page-content > h3 { max-width: 72ch; }
.ftbs-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ftbs-gap); }
.ftbs-blog-card img { border-radius: var(--ftbs-radius); margin-bottom: 1rem; }
.ftbs-search-form { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto; }
.ftbs-search-form input { flex: 1; padding: .7rem 1rem; border: 1px solid var(--ftbs-border); border-radius: var(--ftbs-radius); }
.ftbs-search-form button { padding: .7rem 1.4rem; border: 0; border-radius: var(--ftbs-radius); background: var(--ftbs-primary); color: var(--ftbs-primary-on); cursor: pointer; }

/* -------------------- Top agencies (carousel) -------------------- */
.ftbs-section--tint { background: var(--ftbs-bg-alt); }
.ftbs-top-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.ftbs-top-head__text { max-width: 640px; }
.ftbs-eyebrow { margin: 0 0 .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ftbs-primary); }
.ftbs-top-heading { margin-bottom: .6rem; text-transform: uppercase; }
.ftbs-top-nav { display: flex; gap: .6rem; flex: none; }
.ftbs-top-nav[hidden] { display: none; }
.ftbs-top-nav__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--ftbs-border); background: transparent; color: var(--ftbs-secondary); cursor: pointer; transition: background var(--ftbs-transition), color var(--ftbs-transition), border-color var(--ftbs-transition), opacity var(--ftbs-transition); }
.ftbs-top-nav__btn .ftbs-icon { width: 16px; height: 16px; }
.ftbs-top-nav__btn.is-next { background: var(--ftbs-secondary); border-color: var(--ftbs-secondary); color: var(--ftbs-secondary-on); }
.ftbs-top-nav__btn:hover:not(:disabled) { background: var(--ftbs-primary); border-color: var(--ftbs-primary); color: var(--ftbs-primary-on); }
.ftbs-top-nav__btn:disabled { opacity: .45; cursor: default; }

/* Track: a native horizontal scroller; --ftbs-top-cols = cards visible (decimal = peek of the next card).
   Padding + negative margin leave room for the card shadows inside the scroll box. */
.ftbs-top-track { --ftbs-top-cols: 2.6; display: flex; gap: var(--ftbs-gap); margin: -8px -8px 0; padding: 8px 8px 16px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ftbs-top-track::-webkit-scrollbar { display: none; }

/* Card — measured from the reference screenshot (~438px wide card). */
.ftbs-top-card {
	--ftbs-top-accent: var(--ftbs-top-accent-c, #a3262c); /* rank number + pin */
	--ftbs-top-chip: var(--ftbs-top-chip-c, #7a1a1d);    /* tag chips */
	display: flex; flex-direction: column; min-width: 0;
	flex: 0 0 calc((100% - var(--ftbs-gap) * (var(--ftbs-top-cols) - 1)) / var(--ftbs-top-cols));
	padding: 20px 24px 22px;
	background: #fff; border: 1px solid #ececec; border-radius: 14px;
	box-shadow: 0 2px 10px rgba(16, 24, 40, .08);
	scroll-snap-align: start;
}
.ftbs-top-card__logo { display: flex; align-items: center; justify-content: center; height: 86px; padding: 0 0 12px; border-bottom: 1px solid #e9e9e9; }
.ftbs-top-card__logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.ftbs-top-card__fallback { font-size: 1.15rem; font-weight: 700; text-align: center; color: var(--ftbs-secondary); }
.ftbs-top-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 32px; }

/* Rank number (left) + rating / reviews (right), bottoms aligned. */
.ftbs-top-card__meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 8px; }
.ftbs-top-card__num { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; color: var(--ftbs-top-accent); }
.ftbs-top-card__rating { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; text-align: right; }
.ftbs-top-card__score { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; color: #1d2b3a; }
.ftbs-top-card__star { width: 18px; height: 18px; fill: #f6b40e; }
.ftbs-top-card__reviews { font-size: 14px; color: #5d6b7a; }

.ftbs-top-card__title { margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.ftbs-top-card__title a { color: #0f2d4a; color: var(--ftbs-secondary); }
.ftbs-top-card__title a:hover { color: var(--ftbs-top-accent); }
.ftbs-top-card__text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 15px; line-height: 24px; color: #5d6b7a; }

/* Footer: address, then the tag chips aligned right — pinned to the card bottom. */
.ftbs-top-card__foot { margin-top: auto; padding-top: 18px; }
.ftbs-top-card__address { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; line-height: 1.45; color: #1d2b3a; }
.ftbs-top-card__pin { flex: none; width: 18px; height: 18px; margin-top: -1px; fill: none; stroke: var(--ftbs-top-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ftbs-top-card__chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ftbs-top-chip { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--ftbs-top-chip); font-size: 12px; font-weight: 700; line-height: 1.25; color: #fff; white-space: nowrap; }

/* -------------------- Browse by Province -------------------- */
.ftbs-prov-group + .ftbs-prov-group { margin-top: 2rem; }
.ftbs-prov-group__title { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ftbs-text-muted); }
.ftbs-prov-group__title::after { content: ""; flex: 1; height: 1px; background: var(--ftbs-border); }
.ftbs-prov-grid { display: grid; grid-template-columns: repeat(var(--ftbs-prov-cols, 4), minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ftbs-prov-card { display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--ftbs-border); border-radius: 12px; color: var(--ftbs-text); transition: border-color var(--ftbs-transition), box-shadow var(--ftbs-transition), transform var(--ftbs-transition); }
.ftbs-prov-card:hover, .ftbs-prov-card:focus-visible { border-color: var(--ftbs-secondary); box-shadow: var(--ftbs-shadow); transform: translateY(-2px); color: var(--ftbs-text); }
.ftbs-prov-card__abbr { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ftbs-secondary-tint); font-size: .875rem; font-weight: 800; letter-spacing: .04em; color: var(--ftbs-secondary); }
.ftbs-prov-card:hover .ftbs-prov-card__abbr { background: var(--ftbs-secondary); color: var(--ftbs-secondary-on); }
.ftbs-prov-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ftbs-prov-card__name { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ftbs-secondary); }
.ftbs-prov-card__count { font-size: .8125rem; color: var(--ftbs-text-muted); }
.ftbs-prov-card__type { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ftbs-primary); }
.ftbs-prov-card__arrow { flex: none; color: var(--ftbs-text-muted); }
.ftbs-prov-card__arrow .ftbs-icon { width: 16px; height: 16px; }
.ftbs-prov-card.is-empty { background: var(--ftbs-bg-alt); }
.ftbs-prov-card.is-empty .ftbs-prov-card__abbr { background: #fff; color: var(--ftbs-text-muted); }

/* -------------------- Browse by Service -------------------- */
.ftbs-sg-grid { display: grid; grid-template-columns: repeat(var(--ftbs-sg-cols, 3), minmax(0, 1fr)); gap: var(--ftbs-gap); margin: 0; padding: 0; list-style: none; }
.ftbs-sg-card { --ftbs-card-color: var(--ftbs-primary); display: flex; flex-direction: column; height: 100%; padding: 1.5rem; background: #fff; border: 1px solid var(--ftbs-border); border-radius: 14px; box-shadow: 0 2px 10px rgba(16, 24, 40, .05); transition: box-shadow var(--ftbs-transition), border-color var(--ftbs-transition); }
.ftbs-sg-card:hover { border-color: var(--ftbs-card-color); box-shadow: var(--ftbs-shadow); }
.ftbs-sg-card__head { display: flex; align-items: center; gap: 1rem; }
.ftbs-sg-card__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ftbs-bg-alt); background: color-mix(in srgb, var(--ftbs-card-color) 12%, #fff); color: var(--ftbs-card-color); }
.ftbs-sg-card__icon svg { width: 28px; height: 28px; }
.ftbs-sg-card__title { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.ftbs-sg-card__title a { color: var(--ftbs-secondary); }
.ftbs-sg-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole head is clickable */
.ftbs-sg-card__head { position: relative; }
.ftbs-sg-card__count { margin: .15rem 0 0; font-size: .8125rem; color: var(--ftbs-text-muted); }
.ftbs-sg-card__desc { margin: 1rem 0 0; font-size: .875rem; line-height: 1.6; color: var(--ftbs-text-muted); }
.ftbs-sg-subs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.ftbs-sg-subs a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid var(--ftbs-border); border-radius: 999px; font-size: .8125rem; color: var(--ftbs-text); background: #fff; transition: border-color var(--ftbs-transition), color var(--ftbs-transition); }
.ftbs-sg-subs a:hover { border-color: var(--ftbs-card-color); color: var(--ftbs-card-color); }
.ftbs-sg-subs svg { width: 14px; height: 14px; color: var(--ftbs-card-color); }
.ftbs-sg-subs__n { color: var(--ftbs-text-muted); font-size: .75rem; }
.ftbs-sg-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1.1rem; font-size: .875rem; font-weight: 700; color: var(--ftbs-card-color); }
.ftbs-sg-card__more .ftbs-icon { width: 14px; height: 14px; }
.ftbs-sg-grid--compact .ftbs-sg-card { padding: 1.1rem 1.25rem; }
.ftbs-sg-grid--compact .ftbs-sg-card__icon { width: 46px; height: 46px; border-radius: 12px; }
.ftbs-sg-grid--compact .ftbs-sg-card__icon svg { width: 24px; height: 24px; }
.ftbs-sg-grid--compact .ftbs-sg-card__title { font-size: 1rem; }
.ftbs-section-foot { margin-top: 1.75rem; text-align: center; }

/* -------------------- Responsive -------------------- */
@media (max-width: 1100px) {
	.ftbs-prov-grid { --ftbs-prov-cols: 3; }
}
@media (max-width: 991px) {
	.ftbs-top-track { --ftbs-top-cols: 1.7; }
	.ftbs-prov-grid { --ftbs-prov-cols: 2; }
	.ftbs-sg-grid { --ftbs-sg-cols: 2; }
	.ftbs-menu-toggle { display: flex; }
	/* Logo + button + menu icon stay on ONE row; only the opened menu wraps below. */
	.ftbs-header-row { flex-wrap: wrap; gap: .5rem 1rem; padding-top: .7rem; padding-bottom: .7rem; }
	.ftbs-logo { flex: 0 1 auto; min-width: 0; }
	.ftbs-logo img { max-height: 40px; }
	/* The actions take the space left beside the logo; the button shrinks (label ellipsised) instead of wrapping. */
	.ftbs-header-actions { flex: 1 1 0; min-width: 0; justify-content: flex-end; gap: .6rem; }
	.ftbs-header-actions .ftbs-btn { padding: .5rem .85rem; font-size: .75rem; white-space: nowrap; }
	.ftbs-primary-nav { display: none; margin-left: 0; width: 100%; order: 3; }
	.ftbs-primary-nav.is-open-mobile { display: block; }
	.ftbs-primary-nav ul { flex-direction: column; gap: .75rem; padding: .5rem 0 1rem; }
	.ftbs-primary-nav .current-menu-item > a::after, .ftbs-primary-nav .current_page_item > a::after { display: none; }
	.ftbs-topbar-left { display: none; }
	.ftbs-banner-row { flex-wrap: wrap; gap: 1rem; }
	.ftbs-banner-text { border-left: 0; padding-left: 0; flex-basis: 100%; order: 3; }
	.ftbs-cats { margin-left: 0; padding-left: 0; border-left: 0; }
	.ftbs-cats-panel { left: 0; right: 0; }
	.ftbs-hero-grid { grid-template-columns: 1fr; }
	.ftbs-hero-media img { margin-right: auto; max-height: 260px; }
	/* Agency profile: stack in the requested order. */
	.ftbs-hero--profile .ftbs-hero-grid, .ftbs-hero--profile .ftbs-hero-grid--single { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pill" "title" "media" "stats" "terms" "biz" "text" "body" "actions"; }
	.ftbs-hero--profile .ftbs-hero-title { margin-bottom: 1.25rem; }
	.ftbs-hero--profile .ftbs-hero-media { margin-bottom: 1.5rem; }
	.ftbs-hero--profile .ftbs-hero-media img { margin-left: auto; margin-right: auto; width: min(72%, 300px); max-height: none; }
	.ftbs-hero--profile .ftbs-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; margin-top: 0; }
	.ftbs-hero--profile .ftbs-hero-stats li { margin: 0; padding: 0; border: 0; min-width: 0; }
	.ftbs-hero--profile .ftbs-hero-stats li:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--ftbs-border); }
	.ftbs-hero--profile .ftbs-hero-terms { margin-top: 1.5rem; }
	.ftbs-hero--profile .ftbs-hero-text { margin-top: 1.25rem; }
	.ftbs-hero--profile .ftbs-hero-body { margin-top: 1.25rem; }
	.ftbs-hero--profile .ftbs-hero-actions { margin-top: 1.5rem; }
	.ftbs-hero--profile .ftbs-hero-actions .ftbs-btn--primary { flex: 1 1 100%; padding: 1rem 1.25rem; }
	.ftbs-hero--profile .ftbs-hero-actions .ftbs-btn--outline { display: none; }
	.ftbs-hero-badge { position: static; margin-top: 1rem; max-width: none; }
	.ftbs-iv-grid, .ftbs-feature-grid, .ftbs-blog-grid, .ftbs-boost-grid { grid-template-columns: 1fr; }
	.ftbs-boost-media { order: -1; }
	.ftbs-footer-row { flex-direction: column; align-items: flex-start; }
	.ftbs-footer-desc { padding-left: 0; border-left: 0; }
	.ftbs-copyright { margin-left: 0; }
}
@media (max-width: 600px) {
	.ftbs-top-track { --ftbs-top-cols: 1.08; }
	.ftbs-top-card { padding: 18px 18px 20px; }
	.ftbs-top-card__body { padding-top: 24px; }
	.ftbs-top-card__title { font-size: 18px; }
	.ftbs-top-card__text { font-size: 14px; line-height: 22px; }
	.ftbs-prov-grid { --ftbs-prov-cols: 1; gap: .75rem; }
	.ftbs-sg-grid { --ftbs-sg-cols: 1; }
	.ftbs-top-head { align-items: flex-start; flex-direction: column; margin-bottom: 1.5rem; }
	.ftbs-header-row { padding-left: 1rem; padding-right: 1rem; }
	.ftbs-logo { max-width: 40%; }
	.ftbs-logo img { max-height: 30px; }
	.ftbs-header-actions { gap: .4rem; }
	.ftbs-header-actions .ftbs-btn { padding: .5rem .7rem; font-size: clamp(.6875rem, 3.1vw, .8125rem); gap: .4rem; }
	/* "Icon only" option: hide the label (kept for screen readers), show the icon. */
	.ftbs-header-btn--icon-mobile { padding: .6rem; }
	.ftbs-header-btn--icon-mobile .ftbs-header-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
	.ftbs-header-btn--icon-mobile .ftbs-header-btn__icon--mobile-only { display: inline-flex; }
	.ftbs-header-btn--icon-mobile .ftbs-header-btn__icon .ftbs-icon { width: 20px; height: 20px; }
	.ftbs-topbar .ftbs-gbp-link span { display: none; }
	.ftbs-svc-grid, .ftbs-rk-grid { grid-template-columns: 1fr; }
	.ftbs-svc-card, .ftbs-rk-card { flex-wrap: wrap; }
	.ftbs-link-arrow, .ftbs-rk-link { margin-left: 0; }
	.ftbs-loc-panel { padding: 1.25rem; }
	.ftbs-loc-select { min-width: 0; width: 100%; }
	.ftbs-hero-stats li { padding-right: 1rem; margin-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
