/* Enterprise BPO Design System */
:root {
    /* Colors - Extracted from FMT PK Logo */
    --primary: #4A90A4;
    /* Blue (M) - Steel Blue */
    --primary-light: #6BADC2;
    --primary-dark: #003D5B;
    /* Deep Navy for footer/bg */

    --secondary: #F39C12;
    /* Orange (T) - Golden Orange */
    --secondary-hover: #E67E22;

    --accent: #C1272D;
    /* Red (F) - Deep Maroon Red */
    --accent-hover: #A01F24;

    --purple: #9C27B0;
    /* Purple (Tools Icon) - For special accents */

    --text-main: #334155;
    --text-light: #64748B;

    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border: #E2E8F0;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --h1: 3.5rem;
    --h2: 2.5rem;
    --h3: 1.75rem;
    --h4: 1.25rem;
    --body: 1rem;
    --small: 0.875rem;

    /* Spacing */
    --container-width: 95%;
    --section-padding: 2rem 0;
    --card-padding: 2rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.scroll-fade.visible {
    opacity: 1;
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    /* zoom: 67%; Remove zoom to restore default size */
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: var(--h1);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--h2);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--h3);
}

h4 {
    font-size: var(--h4);
}

p {
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary-dark);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

/* Force larger logo size and override inline styles */
.logo img {
    height: 60px !important;
    vertical-align: middle;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--secondary);
}

/* Dropdown */
.dropdown {
    position: relative;
    padding-bottom: 1rem;
    /* Increase hover area */
    margin-bottom: -1rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid var(--border);
    flex-direction: column;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--secondary);
    padding-left: 2rem;
}


.mobile-menu-close {
    display: none;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1101;
    /* Above the drawer */
    position: relative;
}

/* Hero Section - Redesigned */
.hero {
    background-color: var(--primary-dark);
    /* Subtle radial gradient using brand colors for depth */
    background-image:
        radial-gradient(circle at 15% 15%, rgba(107, 173, 194, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 85%, rgba(243, 156, 18, 0.08) 0%, transparent 25%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-text {
    font-size: 1.25rem;
    color: #CBD5E1;
    /* Light grey for readability */
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    /* Brand Orange */
    margin-top: 1rem;
    margin-bottom: 3rem;
    display: block;
    letter-spacing: 0.5px;
    /* text-transform: uppercase; Removed strictly uppercase to match user "slightly emphasized style" description vs literal text */
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Override btn-primary for hero specific high contrast */
.hero .btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.hero .btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.4);
}

.hero .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* 3-Column Grid for Testimonials */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    padding: var(--card-padding);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 769px) {
    .features-grid.reverse-desktop>div:first-child {
        order: 2;
    }

    .features-grid.reverse-desktop>div:last-child {
        order: 1;
    }
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Forms */
.form-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer Logo Adjustment */
.footer img {
    opacity: 1;
    margin-bottom: 1rem;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile */
/* Mobile */
@media (max-width: 768px) {
    :root {
        --h1: 2.5rem;
        --h2: 2rem;
    }

    .mobile-menu-close {
        display: none;
    }

    /* Fixed side drawer */
    .nav-links {
        display: flex;
        /* Always flex, but hidden via transform */
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        /* Full viewport height */
        height: 100dvh;
        /* Dynamic viewport height for modern browsers */
        width: 75%;
        max-width: 320px;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 1.5rem 8rem 1.5rem;
        /* Extra bottom padding for scrolling */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        /* Prevent body scroll chaining */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        /* Hide scrollbar */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .nav-links::-webkit-scrollbar {
        display: none;
        width: 0 !important;
        background: transparent;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Mobile Dropdown Styling */
    /* Mobile Dropdown Styling - Forced Specificity */
    .dropdown-menu {
        position: static !important;
        /* Force flow layout */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 1rem;
        display: none;
        width: 100% !important;
        float: none !important;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown-menu.active {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
    }

    /* Drawer Background (White) */
    .nav-links::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Min height to cover scrollable area? No, fixed height 100vh works best if container is scrolling. Wait, nav-links has overflow-y: auto. */
        /* If nav-links scrolls, ::after absolute might not cover full scroll height? 
           Actually, nav-links is fixed height 100vh. So 100% height is fine. 
        */
        background: var(--white);
        z-index: -1;
    }

    /* Overlay backdrop when menu is open */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        /* Extend to cover the rest of the screen */
        width: 200vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -2;
        /* Behind the white background */
        pointer-events: all;
        /* Blocks clicks on background */
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 1rem 0.5rem;
        /* Larger tap area */
        border-bottom: 1px solid var(--border);
    }

    .nav-links a i {
        pointer-events: none;
        /* Ensure clicks pass to the link */
    }

    .nav-links a.btn {
        border-bottom: none;
        text-align: center;
        margin-top: 1rem;
    }

    .dropdown {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        margin-top: 0;
        padding-left: 1rem;
    }

    .dropdown-menu a {
        font-size: 1rem;
        color: var(--text-light);
        padding: 0.5rem 0;
        border-bottom: none;
    }



    /* Hamburger Toggle - Ensure z-index is higher than menu */
    .mobile-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    /* Optional: Animate hamburger to X could be added here, 
       but keeping it simple for now as requested 'fix logo' logic doesn't touch JS */

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .features-grid {
        gap: 2rem;
    }
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* Split Section (Image + Text) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content h2 {
    margin-bottom: 1.5rem;
}

.split-content ul {
    margin-top: 1.5rem;
}

.split-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-image {
        order: -1;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* ------------------
   Help Page Styles
   ------------------ */

.help-hero {
    background: var(--primary-dark);
    padding: 6rem 0 4rem;
    text-align: center;
    color: var(--white);
    background-image: radial-gradient(circle at 20% 50%, rgba(74, 144, 164, 0.1) 0%, transparent 50%);
}

.search-box {
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--secondary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--secondary-hover);
    transform: scale(1.05);
}

/* Native Accordion using <details> */
details.accordion-item {
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background: var(--white);
    transition: all 0.3s ease;
    overflow: hidden;
}

details.accordion-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

summary.accordion-header {
    list-style: none;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-light);
    transition: var(--transition);
}

summary.accordion-header::-webkit-details-marker {
    display: none;
}

summary.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 300;
    transition: transform 0.3s ease;
}

details[open] summary.accordion-header::after {
    transform: rotate(45deg);
}

details[open] summary.accordion-header {
    border-bottom: 1px solid var(--border);
    background: var(--white);
    color: var(--secondary);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-main);
    line-height: 1.7;
    background: var(--white);
}

/* Contact Page Responsive Fixes */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
