/*
Theme Name: MyFileKit Fin
Theme URI: https://myfilekit.com
Author: hardeepcoder
Author URI: https://myfilekit.com
Description: A premium financial services theme for GIFT City / IFSC companies. Built for performance and extreme flexibility with Elementor.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myfilekit-fin
*/

.logo img {
    width: 50% !important;
}

.mfk-slide-overlay {
    background: none !important;
}


.mfk-hero-slider {
    background: none !important;
    height: 70vh !important;
    padding-bottom: 0 !important;
}

.mfk-service-card-horizontal h3 {
    font-size: 1.2rem !important;
}

.gateway-section h2 {
    font-size: 2.2rem !important;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
/*
 * IMPORTANT: Brand color variables (--primary-color, --secondary-color,
 * --accent-color, --heading-color, --body-text-color, --background-color)
 * are intentionally NOT declared here.
 *
 * They are output as a dynamic inline <style> in <head> by
 * myfilekit_fin_dynamic_css_vars() in functions.php, which reads
 * the current values from MyFileKit Fin Settings in the database.
 *
 * Declaring them here would override those dynamic values and break
 * Starter Template imports and color customization.
 *
 * Only structural, non-themeable tokens live here.
 */
:root {
    /* Derived / computed color tokens (safe fallbacks — dynamic vars take priority) */
    --primary-dark: color-mix(in srgb, var(--primary-color, #1a3a1a) 80%, black);
    --primary-light: color-mix(in srgb, var(--primary-color, #1a3a1a) 12%, white);
    --surface-color: color-mix(in srgb, var(--primary-color, #1a3a1a) 4%, white);
    --border-color: color-mix(in srgb, var(--primary-color, #1a3a1a) 18%, white);
    --dark-color: var(--primary-color, #1a3a1a);
    --dark-light: color-mix(in srgb, var(--primary-color, #1a3a1a) 70%, white);
    --success-color: var(--accent-color, #4caf50);
    --theme-gradient-bg: linear-gradient(to bottom right, var(--Color-Purple-700, #603dc8) 0, var(--Color-Purple-950, #271c4a) 39%) 100% 100%/50% 50% no-repeat, linear-gradient(to bottom left, var(--Color-Purple-700, #603dc8) 0, var(--Color-Purple-950, #271c4a) 39%) 0 100%/50% 50% no-repeat, linear-gradient(to top left, var(--Color-Purple-700, #603dc8) 0, var(--Color-Purple-950, #271c4a) 39%) 0 0/50% 50% no-repeat, linear-gradient(to top right, var(--Color-Purple-700, #603dc8) 0, var(--Color-Purple-950, #271c4a) 39%) 100% 0/50% 50% no-repeat;


    /* Layout */
    --container-width: 1280px;
    --section-pad: 80px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;

    /* Typography fallbacks (dynamic vars from functions.php take priority) */

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .10);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, .12);
}

/* ── Global ────────────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    color: var(--body-text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--heading-color);
    font-weight: 800;
    /* Heavy */
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -.025em;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    letter-spacing: -.02em;
}

h3 {
    font-size: 1.375rem;
}

h4 {
    font-size: 1.125rem;
}

p {
    font-family: var(--body-font);
    font-weight: 400;
    /* Futura Book / Regular */
    color: var(--body-text-color);
    margin-bottom: 1rem;
}

p, .mfk-card-body, .mfk-serve-content, .entry-content div, .gateway-content, .mfk-about-content {
    text-align: justify !important;
}

/* Exclude headings and sub-headings from justification to maintain correct alignment */
h1 p, h2 p, h3 p, h4 p, h5 p, h6 p,
h1 + p, h2 + p, h3 + p,
.section-title, .section-subtitle, .mfk-hero__subtitle, .mfk-slide-subtitle,
.mfk-offerings-hero p, .mfk-serve-hero p,
.text-center, .text-center *,
.mfk-hero-pill, .mfk-contact-item p,
.btn, .btn * {
    text-align: inherit !important;
}

/* Font Weight Utilities */
.f-light {
    font-weight: 300;
}

.f-regular {
    font-weight: 400;
}

.f-medium {
    font-weight: 500;
}

.f-bold {
    font-weight: 700;
}

.f-heavy {
    font-weight: 800;
}

p:last-child {
    margin-bottom: 0;
}

/* ── Layout Helpers ────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad {
    padding: var(--section-pad) 0;
}

.bg-surface {
    background-color: var(--surface-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.gap-8 {
    gap: 2rem;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--black);
    border-color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--surface-color);
    transform: translateY(-2px);
    color: var(--primary-dark);
}

/* ── Section Title ─────────────────────────────────────────────────────────── */
.section-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 17px;
    color: var(--body-text-color);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
    opacity: .8;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  HEADER                                                                    */
/* ── ──────────────────────────────────────────────────────────────────────── */
#theme-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .3s ease, background .3s ease;
}

#theme-header.scrolled {
    box-shadow: var(--shadow-md);
}

#theme-header.has-transparent {
    background: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
}

/* Top Bar */
.top-bar {
    background: var(--dark-color);
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    padding: 7px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info span::before {
    margin-right: 5px;
}

.top-info a {
    color: rgba(255, 255, 255, .75);
}

.top-info a:hover {
    color: var(--secondary-color);
}

/* Main Header Row */
.main-header {
    padding: 14px 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 48px;
    width: auto;
}

.logo h1 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

/* Primary Nav */
.primary-nav>ul {
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav li {
    position: relative;
}

.primary-nav li a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: var(--dark-light);
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav>ul>li>a:hover,
.primary-nav>ul>li.current-menu-item>a,
.primary-nav>ul>li.current-page-ancestor>a {
    color: var(--primary-color);
    background: var(--primary-light, rgba(0, 0, 0, 0.05));
}

/* Sub Menu Desktop */
.primary-nav ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 15px 0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
}

.primary-nav ul li:hover>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-nav ul li ul.sub-menu li a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    border-radius: 0;
}

.primary-nav ul li ul.sub-menu li a:hover {
    background: var(--primary-light, #f8f9fa);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Parent Item Indicator */
.primary-nav li.menu-item-has-children>a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
    margin-left: 8px;
    font-size: 11px;
    opacity: 0.6;
    transition: transform 0.3s ease;
    display: inline-block;
}

.primary-nav li.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* CTA Button in header */
.header-cta .btn {
    padding: 10px 22px;
    font-size: 14px;
}

.mfk-header-btn-alt {
    color: white;
    background: linear-gradient(90deg, #f27829, #ff9649);
    box-shadow: 0 2px 5px 0 #ff9652;
    padding: 6px 18px;
    border-radius: 4px;
    transition: all .3s ease;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

.mfk-header-btn-alt:hover {
    background: linear-gradient(90deg, #ff9649, #f27829);
    box-shadow: 0 4px 12px 0 rgba(255, 150, 82, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

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

/* Mobile Menu Toggle */
.mfk-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--dark-color);
}

.mfk-menu-toggle span {
    display: block;
    background: currentColor;
    transition: var(--transition);
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  HERO SECTION                                                              */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-hero {
    background: linear-gradient(135deg, #1F2937 0%, #2080A6 100%);
    color: #fff;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.mfk-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 170, .12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(32, 128, 166, .12) 0%, transparent 50%);
    pointer-events: none;
}

.mfk-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.mfk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 170, .15);
    border: 1px solid rgba(0, 212, 170, .3);
    color: var(--secondary-color);
    border-radius: 40px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: .5px;
}

.mfk-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.15;
}

.mfk-hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, .85);
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.mfk-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.mfk-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: mfkBounce 2s infinite;
}

@keyframes mfkBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  STATS BAR                                                                 */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-stats {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
    padding: 0;
    margin-top: -1px;
}

.mfk-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.mfk-stat-item {
    text-align: center;
    padding: 36px 24px;
    border-right: 1px solid var(--border-color);
    transition: var(--transition);
}

.mfk-stat-item:last-child {
    border-right: none;
}

.mfk-stat-item:hover {
    background: var(--primary-light);
}

.mfk-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 6px;
}

.mfk-stat-label {
    font-size: 13px;
    color: var(--body-text-color);
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  FEATURE CARDS                                                             */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 3rem;
}

.mfk-feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.mfk-feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--primary-color);
}

.mfk-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.mfk-feature-card h3 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mfk-feature-card p {
    font-size: 14px;
    color: var(--body-text-color);
    opacity: .8;
    margin: 0;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  SERVICE ITEMS (alternating layout)                                        */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-service-item {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.mfk-service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.mfk-service-item:last-child {
    margin-bottom: 0;
}

.mfk-service-content {
    flex: 1;
}

.mfk-service-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.mfk-service-media {
    flex: 0 0 340px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(0, 212, 170, .1) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: var(--shadow-md);
}

.mfk-benefits-list {
    margin: 20px 0;
}

.mfk-benefits-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--body-text-color);
    font-size: 15px;
}

.mfk-benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 16px;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  WHY US CARDS                                                              */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 3rem;
}

.mfk-why-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, .5) 100%);
    padding: 28px;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.mfk-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mfk-why-card h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mfk-why-card p {
    font-size: 14px;
    color: var(--body-text-color);
    margin: 0;
    opacity: .8;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  COMPARISON TABLE                                                          */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.mfk-compare-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.mfk-compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--surface-color);
    font-size: 14px;
}

.mfk-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.mfk-compare-table tbody tr:hover {
    background: var(--primary-light);
}

.mfk-compare-table td:nth-child(2) {
    color: var(--primary-color);
    font-weight: 500;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  ACCORDION (FAQ)                                                           */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-accordion {
    max-width: 840px;
    margin: 0 auto;
}

.mfk-accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.mfk-accordion-item.open {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.mfk-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    user-select: none;
}

.mfk-accordion-header:hover {
    background: rgba(32, 128, 166, .15);
}

.mfk-accordion-item.open .mfk-accordion-header {
    background: var(--primary-color);
    color: #fff;
}

.mfk-accordion-toggle {
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    transition: var(--transition);
}

.mfk-accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: #fff;
    color: var(--body-text-color);
    font-size: 15px;
}

.mfk-accordion-content.open {
    max-height: 400px;
    padding: 18px 20px;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  CTA BAND                                                                  */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-cta-band {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-light) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
    border-radius: var(--border-radius-lg);
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.mfk-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(0, 212, 170, .1) 0%, transparent 60%);
}

.mfk-cta-band h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 16px;
    position: relative;
}

.mfk-cta-band p {
    font-size: 17px;
    opacity: .9;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  TESTIMONIALS                                                              */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-testimonial-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.mfk-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mfk-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.mfk-testimonial-text {
    font-style: italic;
    color: var(--body-text-color);
    margin: 16px 0;
    font-size: 15px;
    padding-top: 24px;
}

.mfk-testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    margin: 0;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  CONTACT SECTION                                                           */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-top: 3rem;
}

.mfk-contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.mfk-contact-item p {
    font-size: 14px;
    margin: 0;
    color: var(--body-text-color);
}

.mfk-contact-item a {
    color: var(--primary-color);
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  FOOTER                                                                    */
/* ── ──────────────────────────────────────────────────────────────────────── */
#theme-footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, .85);
}

.footer-top {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-logo {
    max-height: 48px;
    margin-bottom: 16px;
}

.footer-site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-about-text {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    line-height: 1.7;
}

.footer-col-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-menu-list li {
    margin-bottom: 8px;
}

.footer-menu-list a {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-menu-list a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    color: rgba(255, 255, 255, .7);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
    margin: 0;
}

/* ── Preloader ──────────────────────────────────────────────────────────────── */
#mfk-preloader {
    position: fixed;
    inset: 0;
    background: var(--dark-color);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}

#mfk-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ── Sticky Header Scrolled ────────────────────────────────────────────────── */
#theme-header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}

/* ── Page Template ──────────────────────────────────────────────────────────── */
.site-main {
    min-height: 300px;
}

/* Disables main padding for Elementor pages */
.no-theme-container .site-main {
    padding: 0;
    max-width: 100%;
}

/* ── Scroll Animations ──────────────────────────────────────────────────────── */
.mfk-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mfk-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mfk-service-media {
        flex: 0 0 260px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 50px;
    }

    .mfk-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mfk-stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .mfk-service-item,
    .mfk-service-item:nth-child(even) {
        flex-direction: column;
    }

    .mfk-service-media {
        flex: unset;
        width: 100%;
        height: 200px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 0;
        box-shadow: var(--shadow-md);
    }

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

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

    .primary-nav>ul>li>a {
        border-radius: 0;
        padding: 12px 24px;
        border-bottom: 1px solid #f0f0f0;
    }

    .primary-nav ul li ul.sub-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        padding: 0;
        margin-top: 0;
        border-radius: 0;
    }

    .primary-nav ul li ul.sub-menu li a {
        padding: 12px 40px;
        border-bottom: 1px solid #ebebeb;
    }

    .primary-nav li.menu-item-has-children>a::after {
        float: right;
    }

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

    .main-header .container {
        flex-wrap: wrap;
    }

    .mfk-contact-grid {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .logo img {
        width: 120px !important;
    }

    .mfk-hero-slider {
        height: auto !important;
    }

    .gateway-section h2 {
        font-size: 1.1rem !important;
    }

    .swiper-button-next.mfk-slide-nav,
    .swiper-button-prev.mfk-slide-nav {
        display: none !important;
    }

    #cta h2 {
        font-size: 2rem !important;
        margin-bottom: 25px !important;
    }

    #services h2,
    #why-choose-us h2 {
        font-size: 1.8rem !important;
    }

    .mfk-service-modern-card {
        padding: 120px 25px 40px !important;
        margin-top: 80px !important;
    }

    .mfk-service-modern-card div[style*="width: 260px"] {
        width: 180px !important;
        height: 180px !important;
        margin-top: -210px !important;
    }

    #cta {
        padding: 60px 0 !important;
    }

    .mfk-faq-trigger {
        padding: 18px !important;
        font-size: 1rem !important;
    }
}

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

    .mfk-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .mfk-compare-table {
        font-size: 12px;
    }

    .mfk-compare-table th,
    .mfk-compare-table td {
        padding: 10px 12px;
    }
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  TESTIMONIALS SWIPER                                                       */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-testimonial-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    width: 8px;
    height: 8px;
    opacity: 1;
    transition: all 0.3s ease;
}

.mfk-testimonial-swiper .swiper-pagination-bullet-active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 4px;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  BLOG CARDS                                                                */
/* ── ──────────────────────────────────────────────────────────────────────── */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* ── ──────────────────────────────────────────────────────────────────────── */
/*  HERO SWIPER MINIMAL RESET                                                 */
/* ── ──────────────────────────────────────────────────────────────────────── */
.mfk-hero-slider-wrap .swiper-wrapper {
    display: flex;
}

.mfk-hero-slider-wrap .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    background-color: var(--primary-color, #0c1c2c);
}

/* Layout Modes */
.has-boxed-layout {
    background-color: #f5f8fa;
}

.mfk-layout-boxed {
    max-width: 1280px;
    margin: 40px auto;
    background: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 1280px) {
    .mfk-layout-boxed {
        margin: 0 auto;
        border-radius: 0;
    }
}