/*
 * MFK Global Responsive & Contrast Fixes
 * ----------------------------------------
 * Covers:
 *   1. WCAG AA contrast enforcement
 *   2. Full mobile/tablet/desktop responsiveness
 *   3. Section padding rhythm for all breakpoints
 *   4. Grid and flex collapse at small screens
 *   5. Typography fluid scaling
 *
 * @package MyFileKit_Fin
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. CONTRAST-SAFE COLOUR OVERRIDES
   Enforce readable combinations regardless of admin colour picks.
═══════════════════════════════════════════════════════════════════════════ */

/* Body text on white/light backgrounds: minimum dark green */
body {
    color: var(--heading-color);
}

p {
    color: var(--body-text-color);
}

/* On dark (primary-color) backgrounds: ensure white text */
[style*="background: var(--primary-color"],
[style*="background:var(--primary-color"],
.mfk-footer,
#cta,
#stats section,
.mfk-hero-section {
    color: rgba(255, 255, 255, 0.88);
}

/* Accent-green on white — acceptable (WCAG AA for large text, use boldly) */
/* Never place small body text in accent on white – always use primary */

/* Links: ensure readable */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Inside dark sections links should be white */
.mfk-footer a,
.mfk-footer p {
    color: rgba(255, 255, 255, 0.70);
}

.mfk-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.mfk-footer h4,
.mfk-footer h3,
.mfk-footer h2 {
    color: #ffffff;
}

#services h2,
#services h3,
#testimonials h2,
#contact h2,
#insights h2 {
    color: var(--heading-color);
}

/* Stat bar text (dark bg) */
#stats {
    --text-on-dark: rgba(255, 255, 255, 0.88);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. FLUID TYPOGRAPHY
═══════════════════════════════════════════════════════════════════════════ */
h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. GLOBAL CONTAINER & SECTION PADDING
═══════════════════════════════════════════════════════════════════════════ */
.container,
.mfk-footer-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
}

/* Consistent vertical rhythm - Optimized for mobile */
section {
    padding-top: clamp(50px, 6vw, 120px);
    padding-bottom: clamp(50px, 6vw, 120px);
    scroll-margin-top: 90px;
    /* Prevent sticky header from covering section titles */
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. HEADER / NAV — RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
.main-header {
    position: relative;
    z-index: 99999 !important;
    /* Force stay on top of all content */
    background: #ffffff;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* Smart Sticky Header - Pin to top on scroll */
body.scrolled .main-header {
    top: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    backdrop-filter: blur(8px);
}

body.admin-bar.scrolled .main-header {
    top: 0 !important;
}


/* hero fills full viewport */

.mfk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

/* Nav links */
.primary-nav>ul {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
}

.primary-nav>ul>li>a {
    display: block;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--heading-color, #1a2e1a);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.primary-nav>ul>li>a:hover,
.primary-nav>ul>li.current-menu-item>a {
    background: color-mix(in srgb, var(--accent-color, #4caf50) 8%, white);
    color: var(--accent-color, var(--accent-color, #4caf50));
    text-decoration: none;
}

/* Premium Animated Menu Icon */
.mfk-menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Align bars to right for style */
    gap: 7px;
}

.mfk-menu-toggle span {
    display: block;
    height: 2px !important;
    min-height: 2px !important;
    flex-shrink: 0 !important;
    background-color: var(--heading-color, #1a2e1a);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Bar lengths for premium look */
.mfk-menu-toggle span:nth-child(1) {
    width: 28px;
}

.mfk-menu-toggle span:nth-child(2) {
    width: 18px;
}

/* Middle bar shorter */
.mfk-menu-toggle span:nth-child(3) {
    width: 28px;
}

/* Morph into Sleek X */
.mfk-menu-toggle.active span:nth-child(1) {
    width: 28px !important;
    transform: translateY(9px) rotate(45deg) !important;
    background-color: #4caf50 !important;
    /* Force Vibrant Green */
}

.mfk-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    width: 0 !important;
    transform: translateX(10px) !important;
    background-color: #4caf50 !important;
}

.mfk-menu-toggle.active span:nth-child(3) {
    width: 28px !important;
    transform: translateY(-9px) rotate(-45deg) !important;
    background-color: #4caf50 !important;
    /* Force Vibrant Green */
}

.mfk-menu-toggle:hover span {
    background-color: var(--accent-color, #4caf50) !important;
    width: 28px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. HERO SECTION — RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */


@media (max-width: 768px) {

    .mfk-hero-section,
    .mfk-hero-static,
    #home {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* .mfk-hero-swiper {
    min-height: 100svh;
} */

.mfk-slide-content {
    padding-left: clamp(20px, 5vw, 80px);
    padding-right: clamp(20px, 5vw, 80px);
    max-width: 700px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. STATS BAR — RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
#stats>section,
[id="stats"] section,
/* target the stats section by internal grid */
.mfk-stats-bar .mfk-footer-container>div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. ABOUT SECTION — RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
#about [style*="grid-template-columns: 1fr 1fr"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. SERVICES / WHY-CHOOSE-US — RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
#services [style*="grid-template-columns: repeat(auto-fill"],
#why-choose-us [style*="grid-template-columns: 1fr 1fr"],
#testimonials [style*="grid-template-columns: repeat(auto-fill"],
#insights [style*="grid-template-columns: repeat(auto-fill"],
#contact [style*="grid-template-columns: repeat(auto-fill"] {
    display: grid;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. FOOTER — RESPONSIVE (supplement footer-main.php inline styles)
═══════════════════════════════════════════════════════════════════════════ */
.mfk-footer-grid {
    display: grid;
    gap: clamp(32px, 4vw, 60px);
    align-items: start;
}

.mfk-footer-grid-1 {
    grid-template-columns: 1fr;
}

.mfk-footer-grid-2 {
    grid-template-columns: 3fr 2fr;
}

.mfk-footer-grid-3 {
    grid-template-columns: 2.5fr 1.5fr 2fr;
}

.mfk-footer-grid-4 {
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
}

.mfk-footer-nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
}

.mfk-footer-nav li a:hover {
    color: #ffffff;
    padding-left: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. BREAKPOINTS
═══════════════════════════════════════════════════════════════════════════ */

/* ── Large tablet (≤ 1024px) ─────────────────────────────────────────── */
@media (max-width: 1024px) {

    /* Footer grids collapse to 2 or 1 col */
    .mfk-footer-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .mfk-footer-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    /* Why-choose-us split → single column */
    #why-choose-us>div>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* About split → single column */
    #about>div>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Services: min col 260px */
    #services>div>div[style*="auto-fill"] {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }

    /* Stats: 2 per row on tablet */
    #stats>div>div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Tablet portrait (≤ 768px) ───────────────────────────────────────── */
@media (max-width: 768px) {

    /* Hide nav, show toggle */
    .primary-nav {
        display: none;
        position: absolute;
        top: 0 !important;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        padding: 16px 0;
        z-index: 999;
    }

    .primary-nav.nav-open {
        display: block;
    }

    .primary-nav>ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .primary-nav>ul>li>a {
        padding: 13px 24px;
        border-radius: 0;
    }

    .mfk-menu-toggle {
        display: flex;
    }

    /* Hero: height handled by main swiper class */
    .mfk-hero-swiper {
        height: 450px !important;
        /* Slightly smaller for mobile */
        min-height: auto !important;
        max-height: none !important;
    }

    .mfk-slide-title {
        font-size: clamp(1.8rem, 7vw, 3rem) !important;
    }

    .mfk-slide-subtitle {
        font-size: 1rem !important;
    }

    .mfk-slide-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px !important;
    }

    .mfk-btn-primary,
    .mfk-btn-outline {
        width: 100%;
        justify-content: center;
    }

    /* Swiper arrows: smaller on mobile */
    .swiper-button-prev.mfk-slide-nav,
    .swiper-button-next.mfk-slide-nav {
        width: 40px !important;
        height: 40px !important;
    }

    .swiper-button-prev.mfk-slide-nav {
        left: 12px !important;
    }

    .swiper-button-next.mfk-slide-nav {
        right: 12px !important;
    }

    /* Stats: 2 col */
    #stats>div>div {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #stats>div>div>div {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 36px 20px !important;
    }

    /* About: stack */
    #about>div>div {
        grid-template-columns: 1fr !important;
    }

    #about .mfk-hero-visual,
    #about [style*="position: relative"]+div {
        order: 1 !important;
    }

    /* Services: 1 col */
    #services>div>div[style*="auto-fill"] {
        grid-template-columns: 1fr !important;
    }

    /* Why-choose-us */
    #why-choose-us>div>div {
        grid-template-columns: 1fr !important;
    }

    #why-choose-us div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Testimonials */
    #testimonials>div>div[style*="auto-fill"] {
        grid-template-columns: 1fr !important;
    }

    /* Blog */
    #insights>div>div[style*="auto-fill"] {
        grid-template-columns: 1fr !important;
    }

    /* Contact cards */
    #contact>div>div[style*="auto-fill"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* CTA: stack */
    #cta>div>div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }

    #cta>div>div>div:last-child {
        justify-content: center !important;
    }

    /* Footer: single column */
    .mfk-footer-grid-4,
    .mfk-footer-grid-3,
    .mfk-footer-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .mfk-footer-top {
        padding: 56px 0 40px !important;
    }

    .mfk-footer-bottom-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
}

/* ── Mobile (≤ 480px) ────────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Stats bar: 1 per row */
    #stats>div>div {
        grid-template-columns: 1fr !important;
    }

    /* Contact cards: 1 col */
    #contact>div>div[style*="auto-fill"] {
        grid-template-columns: 1fr !important;
    }

    /* Why-choose-us feature grid: 1 col */
    #why-choose-us div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Section headings: tighter */
    [style*="font-size: clamp(1.8rem"],
    [style*="font-size: clamp(2rem"] {
        font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    }

    /* CTA buttons: full width */
    #cta a[style*="border-radius: 50px"] {
        width: 100%;
        justify-content: center !important;
    }

    .mfk-footer-container {
        padding: 0 16px !important;
    }

    /* Back to Top Button Mobile Fix */
    #mfk-back-to-top {
        width: 38px !important;
        height: 38px !important;
        bottom: 20px !important;
        right: 20px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    }
}

/* Card & Element Spacing Enhancements (320px - 768px) */
@media (max-width: 768px) {

    .mfk-feature-card,
    .mfk-service-item,
    .mfk-why-card,
    .mfk-testimonial-card,
    .mfk-contact-item {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }

    p {
        max-width: 65ch;
        /* Improve readability */
        margin-left: auto;
        margin-right: auto;
    }

    .mfk-hero-section,
    .mfk-hero-static {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .mfk-slide-content {
        padding: 0 20px !important;
        text-align: center;
    }

    .mfk-slide-actions {
        width: 100%;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. CONTRAST FIX: sections with inline green background
       e.g. services first card (dark), stats bar
═══════════════════════════════════════════════════════════════════════════ */

/* Services dark card: guarantee white text */
.mfk-service-ref-card[style*="background: var(--primary-color"] h3,
.mfk-service-ref-card[style*="background: var(--primary-color"] p,
.mfk-service-ref-card[style*="background: var(--primary-color"] li,
.mfk-service-ref-card[style*="background: var(--primary-color"] a {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Stats numbers — bright accent on dark */
#stats [style*="color: var(--accent-color"] {
    color: color-mix(in srgb, var(--accent-color, #4caf50) 60%, white) !important;
    /* lighter green for better contrast on var(--primary-color, #1a3a1a) */
}

/* About floating card: white text on dark green */
#about [style*="background: var(--primary-color"] {
    color: #ffffff !important;
}

#about [style*="background: var(--primary-color"] * {
    color: inherit !important;
}

/* Section label text (small caps above headings) */
p[style*="color: var(--accent-color"] {
    color: color-mix(in srgb, var(--accent-color, #4caf50) 80%, black) !important;
    /* darker green — AA compliant on white */
    font-weight: 700;
}

/* Testimonial card — ensure body text is readable */
#testimonials [style*="font-style: italic"] {
    color: #3d4a3d !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
}

/* Blog meta text */
#insights [style*="color: #888"],
#insights [style*="color:#888"] {
    color: #5a6a5a !important;
    /* darker for better contrast */
}

/* Contact cards: icon colour on light bg */
#contact [style*="color: var(--accent-color"] i {
    color: color-mix(in srgb, var(--accent-color, #4caf50) 70%, black) !important;
    /* dark green — AA on color-mix(in srgb, var(--accent-color, #4caf50) 8%, white) bg */
}

/* CTA section: subtitle text on dark bg */
#cta [style*="rgba(255,255,255,0.65)"] {
    color: rgba(255, 255, 255, 0.80) !important;
}

/* Footer contact list */
.mfk-contact-row,
.mfk-contact-row a {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. FOCUS / ACCESSIBILITY
═══════════════════════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 3px solid var(--accent-color, var(--accent-color, #4caf50));
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove outline for mouse-only interaction */
:focus:not(:focus-visible) {
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. IMAGE / EMBEDDED MEDIA — RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* Aspect-ratio maintained thumbnails */
.wp-post-image,
.attachment-medium_large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. WORDPRESS CORE CONTENT (single posts / pages)
═══════════════════════════════════════════════════════════════════════════ */
.entry-content {
    max-width: 740px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px);
    color: var(--heading-color, #1a2e1a);
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--heading-color, #1a2e1a);
    margin-top: 2rem;
}

.entry-content a {
    color: color-mix(in srgb, var(--accent-color, #4caf50) 70%, black);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--accent-color, #4caf50);
}

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: 1.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-color, var(--accent-color, #4caf50));
    padding: 16px 24px;
    background: #f0f7ef;
    margin: 24px 0;
    color: #2d4a2d;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. SINGLE POST / ARCHIVE – CARD GRID
═══════════════════════════════════════════════════════════════════════════ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

@media (max-width: 480px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. WOOCOMMERCE / CONTACT FORM 7 — BASE RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
.woocommerce-page .woocommerce,
.woocommerce ul.products {
    width: 100% !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    width: 100% !important;
}

@media (min-width: 600px) {
    .woocommerce ul.products li.product {
        width: calc(50% - 16px) !important;
    }
}

@media (min-width: 900px) {
    .woocommerce ul.products li.product {
        width: calc(33.333% - 16px) !important;
    }
}

/* CF7 inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #c8dcc8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--heading-color, #1a2e1a);
    background: #fff;
    transition: border-color 0.2s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: var(--accent-color, var(--accent-color, #4caf50));
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.wpcf7 input[type="submit"] {
    padding: 14px 32px;
    background: var(--accent-color, var(--accent-color, #4caf50));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.wpcf7 input[type="submit"]:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   17. PRINT
═══════════════════════════════════════════════════════════════════════════ */
@media print {

    .main-header,
    .mfk-footer,
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination,
    .mfk-menu-toggle,
    #back-to-top {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. HERO: Force absolute full-bleed width on all viewports
═══════════════════════════════════════════════════════════════════════════ */
#home,
.mfk-hero-section {
    width: 100vw;
    margin-left: calc(-1 * ((100vw - 100%) / 2));
    position: relative;
    overflow: hidden;
}

/* Ensure Swiper wrapper fills the section */
#home .mfk-hero-swiper,
.mfk-hero-section .mfk-hero-swiper {
    width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   19. FOOTER: Force single-column on mobile (override grid inline styles)
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* All footer grids → 1 column */
    .mfk-footer-grid,
    .mfk-footer-grid-1,
    .mfk-footer-grid-2,
    .mfk-footer-grid-3,
    .mfk-footer-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Nav links: larger tap targets */
    .mfk-footer-nav li a {
        padding: 6px 0 !important;
        font-size: 0.95rem !important;
    }

    /* Contact rows: smaller text */
    .mfk-contact-row {
        font-size: 0.88rem !important;
    }

    /* About text: full width */
    .mfk-footer-about {
        max-width: 100% !important;
    }

    /* Bottom bar: stacked */
    .mfk-footer-bottom-inner {
        flex-direction: column !important;
        text-align: center !important;
    }

    /* Footer top: tighter */
    .mfk-footer-top {
        padding: 48px 0 36px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   20. SERVICE SECTION: inline style override for mobile
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Services CTA row → stack */
    #services>div>div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    /* Why choose us: left column → single col  */
    #why-choose-us>div>div[style] {
        flex-direction: column !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   17. TRADING ACCOUNT BUTTON (HEADER)
═══════════════════════════════════════════════════════════════════════════ */
#theme-header .mfk-header-btn-alt {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: linear-gradient(90deg, #f27829, #ff9649) !important;
    box-shadow: 0 2px 8px 0 rgba(255, 150, 82, 0.4) !important;
    padding: 6px 18px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    vertical-align: middle;
}

#theme-header .mfk-header-btn-alt:hover {
    background: linear-gradient(90deg, #ff9649, #f27829) !important;
    box-shadow: 0 4px 15px 0 rgba(255, 150, 82, 0.5) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    #theme-header .mfk-header-btn-alt {
        display: none !important;
    }
}