/**
 * FlairFacilitiesLtd — Main Stylesheet v3.5.1
 * Full-width hero, fixed sticky header, mobile hamburger, mobile-first.
 */

/* Inter Font Family — Self-Hosted (inlined from inter-font.css) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ffl-dark: #0a1628;
    --ffl-primary: #1e3a8a;
    --ffl-bright: #2563eb;
    --ffl-accent: #dc2626;
    --ffl-orange: #ea580c;
    --ffl-cream: #f8fafc;
    --ffl-gray: #e2e8f0;
    --ffl-muted: #64748b;
    --ffl-white: #ffffff;
    --header-height: 72px;
    --header-shrunk: 60px;
    --topbar-height: 36px;
    --shadow-sm: 0 2px 10px rgba(10,22,40,0.08);
    --shadow-md: 0 8px 30px rgba(10,22,40,0.12);
    --shadow-lg: 0 20px 60px rgba(10,22,40,0.18);
    --radius: 10px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    color: var(--ffl-dark);
    background: var(--ffl-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: calc(var(--topbar-height) + var(--header-height));
}
a { text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADING SCALE ==========
   Sizes are controlled via Customizer (Appearance → Customize → Typography)
   and output as CSS variables in wp_head.
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ffl-dark);
    margin: 0 0 0.5em;
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-weight: 800; line-height: 1.15; }
h2 { line-height: 1.2; }
h3 { line-height: 1.25; }
h4 { line-height: 1.3; }
h5 { line-height: 1.35; }
h6 { line-height: 1.4; }
p  { font-size: 1rem; line-height: 1.65; margin: 0 0 1em; }

/* ========== TOP BAR ========== */
.ffl-topbar {
    background: linear-gradient(135deg, var(--ffl-accent) 0%, var(--ffl-orange) 100%);
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--topbar-height);
}
.ffl-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ffl-topbar p,
.ffl-topbar span { color: rgba(255,255,255,0.9); margin: 0; font-weight: 600; letter-spacing: 0.5px; }
.ffl-topbar a { color: #fff; font-weight: 700; }
.ffl-topbar a:hover { text-decoration: underline; }

/* ========== HEADER (FIXED STICKY) ========== */
.ffl-header {
    background: linear-gradient(135deg, var(--ffl-primary) 0%, var(--ffl-dark) 100%);
    padding: 0;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
    transition: box-shadow 0.3s ease, height 0.3s ease;
}
.ffl-header.is-scrolled {
    height: var(--header-shrunk);
    box-shadow: 0 6px 40px rgba(0,0,0,0.35);
}

/* Scroll progress bar */
.ffl-scroll-progress {
    position: fixed;
    top: calc(var(--topbar-height) + var(--header-height));
    left: 0;
    right: 0;
    height: 3px;
    z-index: 999;
    background: rgba(255,255,255,0.1);
    transition: top 0.3s ease;
}
.ffl-header.is-scrolled + .ffl-scroll-progress,
.ffl-header.is-scrolled ~ .ffl-scroll-progress {
    top: calc(var(--topbar-height) + var(--header-shrunk));
}
.ffl-scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ffl-accent), var(--ffl-orange));
    transition: width 0.1s linear;
}
.ffl-header.is-scrolled .ffl-logo-main {
    font-size: 24px;
}
.ffl-header.is-scrolled .ffl-logo-sub {
    font-size: 8px;
    letter-spacing: 2.5px;
}
.ffl-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.ffl-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ffl-logo-main {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--ffl-accent) 0%, var(--ffl-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.ffl-logo-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* Site Logo */
.ffl-site-logo img,
.ffl-footer-logo img {
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
}

/* Nav link styling (global) */
.ffl-nav .wp-block-navigation-item__content {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.8) !important;
    position: relative;
    padding: 4px 0 !important;
}
.ffl-nav .wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2.5px;
    background: linear-gradient(90deg, var(--ffl-accent), var(--ffl-orange));
    transition: width 0.35s var(--ease-out);
    border-radius: 2px;
}
.ffl-nav .wp-block-navigation-item__content:hover { color: #fff !important; }
.ffl-nav .wp-block-navigation-item__content:hover::after { width: 100%; }

.has-text-align-center { text-align: center !important; }
p.has-text-align-center,
.wp-block-paragraph.has-text-align-center {
    width: 100% !important;
    display: block !important;
}

/* Footer Nav */
.ffl-footer {
    text-align: center;
}
.ffl-footer-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 12px;
}
.ffl-footer .ffl-address-shortcode,
.ffl-footer .ffl-address-shortcode address {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.8;
}
.ffl-footer-nav.wp-block-navigation,
.ffl-footer-nav .wp-block-navigation__container {
    justify-content: center !important;
    align-items: center !important;
}
.ffl-footer-nav .wp-block-navigation__container {
    gap: 16px !important;
}
.ffl-footer-nav .wp-block-navigation-item,
.ffl-footer-nav .wp-block-navigation-item__content {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}
.ffl-footer-nav .wp-block-navigation-item__content {
    color: rgba(255,255,255,0.55) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    position: relative;
    padding: 2px 0 !important;
}
.ffl-footer-nav .wp-block-navigation-item__content:hover {
    color: var(--ffl-accent) !important;
}

/* Desktop: horizontal inline nav */
@media (min-width: 783px) {
    .ffl-nav .wp-block-navigation__container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 28px !important;
    }
    .ffl-nav .wp-block-navigation-item {
        width: auto !important;
    }
    /* Remove overlay look from desktop view */
    .ffl-nav .wp-block-navigation__responsive-container {
        background: transparent !important;
        backdrop-filter: none !important;
        padding-top: 0 !important;
    }
}

/* Mobile overlay menu only */
@media (max-width: 782px) {
    .ffl-nav.is-responsive .wp-block-navigation__responsive-container-open {
        display: flex !important;
    }
    .ffl-nav.is-responsive .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
    }
    .wp-block-navigation__responsive-container {
        background: rgba(10,22,40,0.98) !important;
        backdrop-filter: blur(20px);
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        padding-top: calc(var(--topbar-height) + var(--header-height)) !important;
    }
    /* Override WordPress core is-menu-open align-items from items-justified-right */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
        align-items: center !important;
    }
    .wp-block-navigation__responsive-container .wp-block-navigation__container {
        padding: 24px !important;
        gap: 0 !important;
        align-items: center !important;
        flex-direction: column !important;
    }
    .wp-block-navigation__responsive-container .wp-block-navigation__container.ffl-nav {
        align-items: center !important;
        justify-content: flex-start !important;
    }
    .wp-block-navigation__responsive-container .wp-block-navigation-item {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: rgba(255,255,255,0.8) !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    .wp-block-navigation__responsive-container .wp-block-navigation-item__label {
        text-align: center !important;
    }
    .wp-block-navigation__responsive-container .wp-block-navigation-item__content::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2.5px;
        background: linear-gradient(90deg, var(--ffl-accent), var(--ffl-orange));
        transition: width 0.35s var(--ease-out);
        border-radius: 2px;
    }
    .wp-block-navigation__responsive-container .wp-block-navigation-item__content:hover {
        color: #fff !important;
    }
    .wp-block-navigation__responsive-container .wp-block-navigation-item__content:hover::after {
        width: 60%;
    }
    .wp-block-navigation__responsive-container-close {
        color: #fff !important;
        position: absolute;
        top: calc(var(--topbar-height) + 6px);
        right: 16px;
        z-index: 1002;
    }
    .wp-block-navigation__responsive-container-close svg {
        width: 28px;
        height: 28px;
    }
    .wp-block-navigation__responsive-container-open {
        color: #fff !important;
        padding: 8px !important;
    }
    .wp-block-navigation__responsive-container-open svg {
        width: 24px;
        height: 24px;
    }
}

/* ========== HERO (FULL WIDTH) ========== */
.ffl-hero {
    position: relative;
    background: linear-gradient(135deg, var(--ffl-dark) 0%, var(--ffl-primary) 60%, var(--ffl-dark) 100%);
    background-size: 200% 200%;
    animation: heroGradient 12s ease infinite;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}
.ffl-hero-has-image {
    background: none;
    animation: none;
}
.ffl-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ffl-dark) 0%, var(--ffl-primary) 60%, var(--ffl-dark) 100%);
    background-size: 200% 200%;
    animation: heroGradient 12s ease infinite;
}
.ffl-hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ffl-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated gradient effect for full-width section backgrounds */
.is-animated-gradient {
    background-size: 200% 200% !important;
    animation: heroGradient 12s ease infinite;
}
.ffl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ffl-hero-has-image::before {
    display: none;
}
.ffl-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
}
.ffl-hero-content { max-width: 640px; }
.ffl-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 20px;
}
.ffl-hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin: 0 0 24px;
}
.ffl-hero-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.ffl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}
.ffl-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.ffl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
}
.ffl-btn-red {
    background: linear-gradient(135deg, var(--ffl-accent) 0%, var(--ffl-orange) 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(220,38,38,0.35);
}
.ffl-btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(220,38,38,0.45);
}
.ffl-btn-blue {
    background: linear-gradient(135deg, var(--ffl-primary) 0%, var(--ffl-bright) 100%);
    color: #fff;
    box-shadow: 0 6px 24px color-mix(in srgb, var(--ffl-primary) 35%, transparent);
}
.ffl-btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30,58,138,0.45);
}

/* WordPress core button blocks */
.wp-block-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
    text-decoration: none;
    background: linear-gradient(135deg, var(--ffl-primary) 0%, var(--ffl-bright) 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(30,58,138,0.35);
}
.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30,58,138,0.45);
}

/* Strip gradient image & shadow when custom colours are applied */
.wp-block-button .wp-block-button__link.has-background {
    background-image: none;
    box-shadow: none;
}
.wp-block-button .wp-block-button__link.has-background:hover {
    box-shadow: none;
}

/* Outline style */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--ffl-primary);
    box-shadow: inset 0 0 0 2px var(--ffl-primary);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--ffl-primary);
    color: #fff;
    box-shadow: inset 0 0 0 2px var(--ffl-primary), 0 6px 24px rgba(30,58,138,0.35);
}

/* Hero card */
.ffl-hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.ffl-hero-card .ffl-hero-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.ffl-hero-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 24px;
    line-height: 1.65;
}
.ffl-hero-card .ffl-btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.ffl-hero-card .ffl-btn:last-child { margin-bottom: 0; }

/* ========== ANIMATIONS ========== */
.ffl-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.ffl-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.ffl-fade-up-delay-1 { transition-delay: 0.1s; }
.ffl-fade-up-delay-2 { transition-delay: 0.2s; }
.ffl-fade-up-delay-3 { transition-delay: 0.3s; }
.ffl-fade-up-delay-4 { transition-delay: 0.4s; }

.ffl-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.ffl-slide-left.is-visible { opacity: 1; transform: translateX(0); }

.ffl-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.ffl-slide-right.is-visible { opacity: 1; transform: translateX(0); }

.ffl-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.ffl-scale-in.is-visible { opacity: 1; transform: scale(1); }

/* ========== SECTION LABEL ========== */
.ffl-label {
    display: inline-block;
    text-align: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ffl-accent);
    margin-bottom: 16px;
}

.has-text-align-center .ffl-label { text-align: center !important; width: 100%; }

/* ========== EXPERTISE CARDS ========== */
.ffl-expertise-card {
    position: relative;
    background: linear-gradient(135deg, var(--ffl-primary) 0%, var(--ffl-bright) 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    color: #fff;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 24px rgba(30,58,138,0.2);
}
.ffl-expertise-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.ffl-expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(30,58,138,0.2);
}
.ffl-expertise-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}
.ffl-expertise-card p {
    font-size: 14.5px;
    color: rgba(255,255,255,0.8);
    line-height: 1.65;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}
.ffl-expertise-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    align-self: flex-end;
}
.ffl-expertise-card a:hover { background: rgba(255,255,255,0.25); transform: translateX(4px); }

.ffl-expertise-card.ffl-expertise-card-has-image {
    position: relative;
    overflow: hidden;
    background-color: var(--ffl-primary);
}
.ffl-expertise-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ffl-expertise-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ========== SERVICE CARDS ========== */
.ffl-service-card {
    background: var(--ffl-white);
    border: 1px solid var(--ffl-gray);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    height: 100%;
}
.ffl-service-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.ffl-service-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ffl-primary) 0%, var(--ffl-bright) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 22px;
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 8px 24px rgba(30,58,138,0.25);
}
.ffl-service-card:hover .ffl-service-icon { transform: scale(1.1) rotate(-5deg); }
.ffl-service-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ffl-dark);
    margin: 0 0 14px;
}
.ffl-service-card p {
    font-size: 14.5px;
    color: var(--ffl-muted);
    line-height: 1.65;
    margin: 0 0 22px;
}
.ffl-service-card .ffl-btn { padding: 11px 24px; font-size: 13px; }

/* ========== EMERGENCY BANNER ========== */
.ffl-emergency {
    background: linear-gradient(135deg, var(--ffl-accent) 0%, var(--ffl-orange) 100%);
    position: relative;
    overflow: hidden;
}
.ffl-emergency::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: emergencyShine 4s ease-in-out infinite;
}
@keyframes emergencyShine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

/* ========== CHECK ITEMS ========== */
.ffl-check {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ffl-check-icon {
    width: 28px; height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ffl-accent) 0%, var(--ffl-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}

/* ========== TESTIMONIAL CARD ========== */
.ffl-testi-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s var(--ease-out);
}
.ffl-testi-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    transform: translateX(4px);
}
.ffl-testi-stars { color: #fbbf24; font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.ffl-testi-quote { font-size: 14.5px; font-style: italic; color: rgba(255,255,255,0.8); line-height: 1.7; margin: 0 0 14px; }
.ffl-testi-author { font-size: 13px; font-weight: 700; color: #fff; }

/* ========== FOOTER ========== */
.ffl-footer {
    background: var(--ffl-dark);
    color: rgba(255,255,255,0.65);
}
.ffl-footer a { color: rgba(255,255,255,0.65); }
.ffl-footer a:hover { color: var(--ffl-accent); }

/* Mobile: extra bottom padding for WhatsApp widget */
@media (max-width: 782px) {
    .ffl-footer {
        padding-bottom: 100px !important;
    }
}

/* Mobile: side padding for content readability */
@media (max-width: 782px) {
    .wp-block-post-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Footer Social Icons */
.ffl-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.ffl-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    transition: all 0.25s var(--ease-out);
    border: 1px solid rgba(255,255,255,0.08);
}

.ffl-social-icons a:hover {
    background: var(--ffl-primary);
    color: #fff;
    border-color: var(--ffl-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(30,58,138,0.35);
}

/* Footer certification images */
.flairltd-footer-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}
.flairltd-footer-certs img {
    height: auto;
    max-width: 100%;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.flairltd-footer-certs img:hover {
    opacity: 1;
}
@media (max-width: 782px) {
    .flairltd-footer-certs img {
        max-height: 50px;
        width: auto;
    }
}

/* ========== STATS ========== */
.ffl-stat {
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}
.ffl-stat-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.ffl-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}

/* About Image Block — Stats Overlay */
.ffl-about-stats {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    gap: 40px;
    backdrop-filter: blur(10px);
}
.ffl-about-stat { flex: 1; }
.ffl-about-stat__num {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    word-break: keep-all;
}
.ffl-about-stat__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
    word-break: keep-all;
}
@media (max-width: 600px) {
    .ffl-about-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    .ffl-about-stat__num { font-size: 28px; }
    .ffl-about-stat__label { font-size: 10px; letter-spacing: 1px; }
}

/* ========== FULL WIDTH FIXES ========== */
.alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* ========== MOBILE FIRST ========== */
/* ========== GOOGLE REVIEWS ========== */
.flairltd-reviews-widget { margin: 40px 0; }
.flairltd-reviews-summary { text-align: center; margin-bottom: 24px; }
.flairltd-reviews-summary__text { font-size: 15px; color: var(--ffl-muted); }
.flairltd-reviews-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.flairltd-reviews-container--all { grid-template-columns: 1fr; max-width: 800px; margin: 0 auto; }
.flairltd-review-card { background: var(--ffl-white); border: 1px solid var(--ffl-gray); border-radius: var(--radius-lg); padding: 24px; }
.flairltd-review-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.flairltd-review-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.flairltd-review-card__author-info { display: flex; flex-direction: column; }
.flairltd-review-card__author-name { font-weight: 700; font-size: 14px; color: var(--ffl-dark); }
.flairltd-review-card__date { font-size: 12px; color: var(--ffl-muted); }
.flairltd-review-card__rating { display: flex; gap: 2px; color: #f59e0b; margin-bottom: 12px; }
.flairltd-review-card__comment { font-size: 14px; line-height: 1.6; color: var(--ffl-dark); margin: 0; }
.flairltd-review-card__comment--truncated { cursor: pointer; }
.flairltd-review-card__read-more { color: var(--ffl-bright); font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 4px; display: inline-block; }
.flairltd-review-card__reply { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ffl-gray); background: var(--ffl-cream); border-radius: var(--radius); padding: 16px; }
.flairltd-review-card__reply-author { display: block; font-size: 12px; color: var(--ffl-accent); margin-bottom: 6px; }
.flairltd-review-card__reply-text { font-size: 14px; color: var(--ffl-dark); margin: 0; }
.flairltd-reviews__view-all-link { display: inline-block; margin-top: 24px; padding: 10px 24px; background: linear-gradient(135deg, var(--ffl-accent) 0%, var(--ffl-orange) 100%); color: #fff; font-weight: 600; border-radius: var(--radius); text-decoration: none; }
.flairltd-associated-reviews { margin: 40px 0; }
.flairltd-associated-reviews__title { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: var(--ffl-dark); }
.flairltd-reviews-meta-box-list { max-height: 300px; overflow-y: auto; }
.flairltd-reviews-meta-box-list .review-item { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f1; }
.flairltd-reviews-meta-box-list .review-item:last-child { border-bottom: none; }

@media (max-width: 900px) {
    :root { --header-height: var(--header-height); }
    .ffl-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 16px;
    }
    .ffl-hero-card { max-width: 100%; }
    .ffl-hero {
        min-height: auto;
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }
    .ffl-hero-inner { max-width: 100%; overflow-wrap: break-word; }
    .ffl-hero-content { overflow-wrap: break-word; }
    .ffl-header-inner { padding: 0 16px; }
    .ffl-expertise-card, .ffl-service-card { padding: 28px 20px; }
    .ffl-topbar-inner { padding: 0 16px; }
    .ffl-site-logo img,
    .ffl-footer-logo img { max-height: 40px; height: auto; }
}

@media (max-width: 600px) {
    .ffl-hero-inner { padding: 32px 16px; }
    .ffl-hero-card .ffl-hero-card-title { font-size: 16px; }
    .ffl-hero-card { padding: 24px; }
    .flairltd-reviews-container { grid-template-columns: 1fr; }
    .ffl-btn { padding: 13px 22px; font-size: 14px; width: 100%; justify-content: center; }
    .ffl-hero-btns { flex-direction: column; }
    .ffl-hero-badges { gap: 6px; }
    .ffl-hero-badge { font-size: 11px; padding: 5px 10px; }
    .ffl-topbar-inner { flex-direction: column; gap: 2px; font-size: 11px; }
    .ffl-logo-main { font-size: 24px; }
}

/* ==========================================================================
   FAQ SECTION BLOCK
   ========================================================================== */

/* ==========================================================================
   FULL-WIDTH SECTION BREAKOUT
   Aggressive override for WordPress constrained layout
   ========================================================================== */
.flairltd-faq-section,
.flairltd-page-menu,
.wp-block-flairltd-faq-section,
.wp-block-flairltd-page-menu,
.is-layout-constrained .wp-block-flairltd-faq-section,
.is-layout-constrained .wp-block-flairltd-page-menu,
.is-layout-constrained > .wp-block-flairltd-faq-section,
.is-layout-constrained > .wp-block-flairltd-page-menu {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
    position: relative;
}

.flairltd-faq-section {
    padding: 80px 24px;
}

.flairltd-faq-inner {
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
}

.flairltd-faq-title {
    text-align: center;
    font-size: var(--wp--preset--font-size--3xl);
    font-weight: 800;
    margin: 0 0 48px;
    line-height: 1.2;
}

.flairltd-faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.flairltd-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 32px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.flairltd-faq-item:hover {
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.1);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Q / A Badges */
.flairltd-faq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.flairltd-faq-badge--q {
    background: var(--wp--preset--color--accent-red);
    color: #ffffff;
}

.flairltd-faq-badge--a {
    background: var(--wp--preset--color--primary-blue);
    color: #ffffff;
}

/* Question row */
.flairltd-faq-question {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.flairltd-faq-question-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wp--preset--color--dark-navy);
    line-height: 1.4;
    padding-top: 5px;
}

/* Divider between Q and A */
.flairltd-faq-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--wp--preset--color--light-gray) 0%, transparent 100%);
    margin: 0 0 16px 52px;
}

/* Answer row */
.flairltd-faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.flairltd-faq-answer-text {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    padding-top: 5px;
}

.flairltd-faq-answer-text p {
    margin: 0 0 12px;
}

.flairltd-faq-answer-text p:last-child {
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 600px) {
    .flairltd-faq-section {
        padding: 60px 20px;
    }
    .flairltd-faq-title {
        font-size: var(--wp--preset--font-size--2xl);
        margin-bottom: 32px;
    }
    .flairltd-faq-item {
        padding: 22px 20px;
        border-radius: 10px;
    }
    .flairltd-faq-question-text {
        font-size: 1rem;
    }
    .flairltd-faq-answer-text {
        font-size: 0.95rem;
    }
    .flairltd-faq-list {
        gap: 16px;
    }
    .flairltd-faq-divider {
        margin-left: 0;
    }
}

/* ==========================================================================
   PAGE MENU BLOCK
   ========================================================================== */

.flairltd-page-menu {
    padding: 60px 24px;
}

.flairltd-page-menu-inner {
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
}

.flairltd-page-menu-title {
    text-align: center;
    font-size: var(--wp--preset--font-size--3xl);
    font-weight: 800;
    margin: 0 0 32px;
    line-height: 1.2;
}

.flairltd-page-menu-parent {
    text-align: center;
    margin-bottom: 32px;
}

.flairltd-page-menu-parent-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 16px 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.flairltd-page-menu-parent-link:hover {
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.1);
    transform: translateY(-2px);
}

.flairltd-page-menu-parent-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wp--preset--color--muted);
    margin-bottom: 4px;
}

.flairltd-page-menu-parent-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wp--preset--color--primary-blue);
}

.flairltd-page-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flairltd-page-menu-item {
    border-bottom: 1px solid #e2e8f0;
}
.flairltd-page-menu-item:first-child {
    border-top: 1px solid #e2e8f0;
}

.flairltd-page-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: var(--wp--preset--color--dark-navy);
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
}

.flairltd-page-menu-link:hover {
    background: var(--wp--preset--color--primary-blue);
    color: #ffffff;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 8px;
}

.flairltd-page-menu-link:hover .flairltd-page-menu-arrow {
    stroke: #ffffff;
    transform: translateX(4px);
}

.flairltd-page-menu-arrow {
    stroke: var(--wp--preset--color--muted);
    flex-shrink: 0;
    transition: stroke 0.2s ease, transform 0.2s ease;
}

.flairltd-page-menu-empty {
    text-align: center;
    color: var(--wp--preset--color--muted);
    font-style: italic;
}

@media (max-width: 600px) {
    .flairltd-page-menu {
        padding: 48px 20px;
    }
    .flairltd-page-menu-title {
        font-size: var(--wp--preset--font-size--2xl);
        margin-bottom: 24px;
    }
    .flairltd-page-menu-link {
        padding: 16px 4px;
        font-size: 0.95rem;
    }
    .flairltd-page-menu-link:hover {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */

.flairltd-sidebar .widget {
    margin-bottom: 32px;
}

.flairltd-sidebar .widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wp--preset--color--dark-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wp--preset--color--light-gray);
}

.flairltd-sidebar .widget p,
.flairltd-sidebar .widget li {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.flairltd-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flairltd-sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.flairltd-sidebar .widget ul li:last-child {
    border-bottom: none;
}

.flairltd-sidebar .widget a {
    color: var(--wp--preset--color--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.flairltd-sidebar .widget a:hover {
    color: var(--wp--preset--color--accent-red);
}

.flairltd-sidebar-placeholder {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9rem;
}

/* ==========================================================================
   CHILD HERO TEMPLATE
   ========================================================================== */

/* Hero section */
.ffl-child-hero .wp-block-cover__inner-container {
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.ffl-child-hero .wp-block-post-title {
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Mobile: hero adjustments */
@media (max-width: 781px) {
    .ffl-child-hero {
        min-height: 280px !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
}



/* ── Contact Form Block ─────────────────────────────────────────── */

.ffl-contact-form-wrapper {
    max-width: 840px;
    margin: 0 auto;
}

.ffl-contact-form {
    background: var(--ffl-white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: none;
}

.ffl-contact-form-wrapper.has-border .ffl-contact-form {
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ffl-gray);
}

@media (max-width: 600px) {
    .ffl-contact-form-wrapper.has-border .ffl-contact-form {
        padding: 28px;
    }
}

.ffl-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.ffl-contact-field {
    margin-bottom: 24px;
}

.ffl-contact-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ffl-dark);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.ffl-contact-required {
    color: var(--ffl-accent);
}

.ffl-contact-field input[type="text"],
.ffl-contact-field input[type="email"],
.ffl-contact-field input[type="tel"],
.ffl-contact-field input[type="number"],
.ffl-contact-field input[type="file"],
.ffl-contact-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--ffl-gray);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--ffl-dark);
    background: var(--ffl-white);
    transition: all 0.25s var(--ease-out);
}

.ffl-contact-field input:focus,
.ffl-contact-field textarea:focus {
    outline: none;
    border-color: var(--ffl-bright);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ffl-bright) 8%, transparent);
}

.ffl-contact-field textarea {
    resize: vertical;
    min-height: 140px;
}

.ffl-contact-field input[type="file"] {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
}

.ffl-contact-hint {
    display: block;
    font-size: 12px;
    color: var(--ffl-muted);
    margin-top: 8px;
}

.ffl-contact-submit {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
    text-decoration: none;
    background: linear-gradient(135deg, var(--ffl-primary) 0%, var(--ffl-bright) 100%);
    color: var(--ffl-white);
    box-shadow: 0 6px 24px color-mix(in srgb, var(--ffl-primary) 35%, transparent);
}

.ffl-contact-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--ffl-primary) 45%, transparent);
}

.ffl-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ffl-contact-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: none;
}

.ffl-contact-message.ffl-contact-success,
.ffl-contact-message.ffl-contact-error {
    display: block;
}

.ffl-contact-message.ffl-contact-success {
    background: color-mix(in srgb, var(--ffl-bright) 6%, transparent);
    color: var(--ffl-primary);
    border: 1.5px solid color-mix(in srgb, var(--ffl-bright) 20%, transparent);
}

.ffl-contact-message.ffl-contact-error {
    background: color-mix(in srgb, var(--ffl-accent) 5%, transparent);
    color: var(--ffl-accent);
    border: 1.5px solid color-mix(in srgb, var(--ffl-accent) 20%, transparent);
}

.ffl-contact-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

@media (max-width: 600px) {
    .ffl-contact-form-wrapper.has-border .ffl-contact-form {
        padding: 28px;
    }
    .ffl-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


.ffl-address-shortcode { margin-top: 0 !important; }
.ffl-address-shortcode address { margin-top: 0 !important; font-style: normal; }

/* ── Page Title Gradient Bar ───────────────────────────────────── */

.ffl-page-title-bar {
    position: relative;
    background: linear-gradient(135deg, var(--ffl-dark) 0%, var(--ffl-primary) 60%, var(--ffl-dark) 100%);
    background-size: 200% 200%;
    animation: heroGradient 12s ease infinite;
    padding: 60px 20px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.ffl-page-title-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.ffl-page-title-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}

.ffl-page-title-bar h1,
.ffl-page-title-bar .wp-block-post-title {
    color: #fff;
    margin: 0 !important;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
}

/* Adjust spacing when title bar is present */
body.has-page-title-bar .ffl-breadcrumbs {
    margin-bottom: 20px;
}

body.has-page-title-bar main.wp-block-group.alignfull {
    padding-top: 0 !important;
    padding-bottom: 40px !important;
}

body.has-page-title-bar .wp-block-post-content {
    margin-top: 40px !important;
}

/* Single post title bar — viewport breakout from constrained container */
.single-post .ffl-page-title-bar {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

@media (max-width: 600px) {
    .ffl-page-title-bar {
        padding: 50px 16px;
        margin-top: 0;
    }
    .ffl-page-title-bar h1,
    .ffl-page-title-bar .wp-block-post-title {
        font-size: 2rem;
    }
}


/* =========================================================
   Logo Marquee
   ========================================================= */

.ffl-logo-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ffl-logo-marquee-track {
    display: flex;
    width: max-content;
    animation: fflMarqueeScroll var(--ffl-marquee-speed, 30s) linear infinite;
}

.ffl-logo-marquee.is-pause-hover .ffl-logo-marquee-track:hover {
    animation-play-state: paused;
}

.ffl-logo-marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: var(--ffl-marquee-gap, 80px);
    padding-right: var(--ffl-marquee-gap, 80px);
}

.ffl-logo-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffl-logo-marquee-item img {
    max-width: var(--ffl-marquee-logo-max-w, 150px);
    max-height: var(--ffl-marquee-logo-max-h, 80px);
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes fflMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--ffl-marquee-shift, -50%));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ffl-logo-marquee-track {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    .ffl-logo-marquee-group {
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
    }
    .ffl-logo-marquee-group[aria-hidden="true"] {
        display: none;
    }
}


/* =========================================================
   CTA Section
   ========================================================= */

.ffl-cta-section {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.ffl-cta-section.is-animated-gradient {
    background-size: 200% 200%;
    animation: heroGradient 12s ease infinite;
}

.ffl-cta-section-inner {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

.ffl-cta-section-content {
    margin-bottom: 32px;
}

.ffl-cta-section-content > *:first-child {
    margin-top: 0;
}

.ffl-cta-section-content > *:last-child {
    margin-bottom: 0;
}

.ffl-cta-section-button-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ffl-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ffl-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

@media (max-width: 600px) {
    .ffl-cta-button {
        padding: 14px 24px;
        font-size: 1rem;
    }
}


/* =========================================================
   Tables — Post Content
   ========================================================= */

.ffl-post-content table,
.wp-block-post-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ffl-gray);
}

.ffl-post-content table thead,
.wp-block-post-content table thead,
.wp-block-table table thead {
    background: var(--ffl-primary);
}

.ffl-post-content table tbody tr:first-child th,
.wp-block-post-content table tbody tr:first-child th,
.wp-block-table table tbody tr:first-child th {
    background: var(--ffl-primary);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid color-mix(in srgb, var(--ffl-primary) 50%, transparent);
}

.ffl-post-content table th,
.wp-block-post-content table th,
.wp-block-table table th {
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid color-mix(in srgb, var(--ffl-primary) 50%, transparent);
}

.ffl-post-content table td,
.wp-block-post-content table td,
.wp-block-table table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--ffl-gray);
    color: var(--ffl-dark);
}

.ffl-post-content table tbody tr:nth-child(even),
.wp-block-post-content table tbody tr:nth-child(even),
.wp-block-table table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.ffl-post-content table tbody tr:hover,
.wp-block-post-content table tbody tr:hover,
.wp-block-table table tbody tr:hover {
    background-color: color-mix(in srgb, var(--ffl-bright) 8%, transparent);
}

.ffl-post-content table tbody tr:last-child td,
.wp-block-post-content table tbody tr:last-child td,
.wp-block-table table tbody tr:last-child td {
    border-bottom: none;
}

/* Mobile: horizontal scroll for wide tables */
@media (max-width: 768px) {
    .ffl-post-content table,
    .wp-block-post-content table,
    .wp-block-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .ffl-post-content table tbody tr:first-child th,
    .wp-block-post-content table tbody tr:first-child th,
    .wp-block-table table tbody tr:first-child th,
    .ffl-post-content table th,
    .wp-block-post-content table th,
    .wp-block-table table th,
    .ffl-post-content table td,
    .wp-block-post-content table td,
    .wp-block-table table td {
        padding: 10px 14px;
        white-space: nowrap;
    }
}


/* =========================================================
   Single Post Images — Centred
   ========================================================= */

.single-post .wp-block-post-content img,
.single-post .wp-block-post-content .wp-block-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   Post Grid Tiles — Blog Index
   ========================================================= */

.ffl-post-tile {
    background: var(--ffl-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ffl-gray);
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ffl-post-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ffl-post-tile .wp-block-post-featured-image {
    margin: 0;
    overflow: hidden;
}

.ffl-post-tile .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ffl-post-tile:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

.ffl-post-tile .wp-block-post-title a {
    color: var(--ffl-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ffl-post-tile .wp-block-post-title a:hover {
    color: var(--ffl-primary);
}

.ffl-post-tile .wp-block-post-excerpt__more-text {
    font-weight: 600;
    color: var(--ffl-primary);
    text-decoration: none;
}

.ffl-post-tile .wp-block-post-excerpt__more-text:hover {
    color: var(--ffl-bright);
}

.ffl-post-tile-date {
    font-size: 0.85rem;
    color: #6b7280;
}

/* 3-column grid gap adjustments */
.ffl-post-grid.is-flex-container {
    gap: 28px;
}

/* Post index — tighten title/date gap */
.ffl-post-tile-wide .wp-block-post-title {
    margin-bottom: 4px !important;
}
.ffl-post-tile-wide .wp-block-post-date {
    margin-top: 0 !important;
}

@media (max-width: 992px) {
    .ffl-post-grid.is-flex-container {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .ffl-post-grid.is-flex-container {
        gap: 20px;
    }
    .ffl-post-tile .wp-block-post-featured-image {
        height: 180px;
    }
}


/* =========================================================
   Post List Tiles — Full Width
   ========================================================= */

.ffl-post-tile-wide .ffl-post-tile-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 220px;
}

.ffl-post-tile-wide .wp-block-post-featured-image {
    flex: 0 0 320px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.ffl-post-tile-wide .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ffl-post-tile-wide:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

.ffl-post-tile-wide .wp-block-group {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ffl-post-list .wp-block-post + .wp-block-post {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .ffl-post-tile-wide .ffl-post-tile-row {
        flex-direction: column;
        min-height: auto;
    }
    .ffl-post-tile-wide .wp-block-post-featured-image {
        flex: 0 0 auto;
        height: 200px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* =========================================================
   Single Post — Related Posts & Prev/Next
   ========================================================= */

.ffl-related-posts {
    margin-top: 80px;
    padding-top: 0;
    border-top: none;
}

.ffl-related-posts-title {
    text-align: center;
    margin-bottom: 36px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ffl-dark);
    letter-spacing: -0.3px;
}

.ffl-related-posts .wp-block-query {
    margin: 0;
}

/* Flex grid for related posts */
.ffl-related-posts .ffl-post-grid.is-flex-container {
    gap: 20px;
}

/* Related post cards */
.ffl-related-posts .ffl-post-tile-small {
    background: var(--ffl-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(10,22,40,0.06);
    border: 1px solid var(--ffl-gray);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    position: relative;
}

.ffl-related-posts .ffl-post-tile-small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Fallback branded image area for posts without featured images */
.ffl-related-posts .ffl-post-tile-small::before {
    content: '';
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--ffl-primary) 0%, var(--ffl-dark) 100%);
    position: relative;
}

.ffl-related-posts .ffl-post-tile-small:has(.wp-block-post-featured-image)::before {
    display: none;
}

.ffl-related-posts .ffl-post-tile-small .wp-block-post-featured-image {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.ffl-related-posts .ffl-post-tile-small .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ffl-related-posts .ffl-post-tile-small:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

.ffl-related-posts .ffl-post-tile-small .wp-block-group {
    padding: 16px 18px 18px;
}

.ffl-related-posts .ffl-post-tile-small .wp-block-post-title {
    margin: 0 0 4px !important;
    font-size: 0.9rem;
    line-height: 1.35;
}

.ffl-related-posts .ffl-post-tile-small .wp-block-post-title a {
    color: var(--ffl-dark);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.ffl-related-posts .ffl-post-tile-small .wp-block-post-title a:hover {
    color: var(--ffl-primary);
}

.ffl-related-posts .ffl-post-tile-small .wp-block-post-date {
    font-size: 0.75rem;
    color: var(--ffl-muted);
    margin: 0 !important;
}

/* Prev/Next Navigation */
.ffl-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--ffl-gray);
}

.ffl-post-nav .wp-block-post-navigation-link {
    margin: 0;
}

.ffl-post-nav a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    background: var(--ffl-white);
    border: 1px solid var(--ffl-gray);
    border-radius: var(--radius-lg);
    color: var(--ffl-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    transition: all 0.25s var(--ease-out);
    box-shadow: 0 2px 12px rgba(10,22,40,0.04);
    max-width: 100%;
    height: 100%;
}

.ffl-post-nav a:hover {
    background: var(--ffl-primary);
    color: #fff;
    border-color: var(--ffl-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.ffl-post-nav-prev a {
    align-items: flex-start;
    text-align: left;
}

.ffl-post-nav-prev a::before {
    content: '← Previous Post';
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ffl-muted);
    transition: color 0.25s ease;
}

.ffl-post-nav-next a {
    align-items: flex-end;
    text-align: right;
}

.ffl-post-nav-next a::before {
    content: 'Next Post →';
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ffl-muted);
    transition: color 0.25s ease;
}

.ffl-post-nav a:hover::before {
    color: rgba(255,255,255,0.7);
}

/* Hide empty nav slots */
.ffl-post-nav .wp-block-post-navigation-link:empty {
    display: none;
}

@media (max-width: 992px) {
    .ffl-related-posts .ffl-post-grid.is-flex-container {
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .ffl-related-posts {
        margin-top: 60px;
    }
    .ffl-related-posts-title {
        font-size: 1.3rem;
        margin-bottom: 28px;
    }
    .ffl-related-posts .ffl-post-grid.is-flex-container {
        gap: 14px;
    }
    .ffl-post-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ffl-post-nav a {
        padding: 18px;
        font-size: 0.95rem;
    }
    .ffl-post-nav-next a {
        align-items: flex-start;
        text-align: left;
    }
}

/* Phone Button Block */
.wp-block-flairltd-phone-button {
    margin: 0;
}
.wp-block-flairltd-phone-button.alignleft {
    text-align: left;
}
.wp-block-flairltd-phone-button.aligncenter {
    text-align: center;
}
.wp-block-flairltd-phone-button.alignright {
    text-align: right;
}
.ffl-phone-button {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ffl-phone-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.ffl-phone-button svg {
    flex-shrink: 0;
}
