/* =========================================
   FindiBANKIT - Main Styles
   Theme: Supports Light & Dark (Semantically Linked)
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================================
   Accessibility Essentials
   ========================================= */

/* Robust Focus States */
:focus-visible {
    outline: 3px solid var(--color-secondary-500);
    outline-offset: 2px;
}

/* Skip to Content Link (Hidden by default, visible on focus) */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 1rem;
    z-index: 9999;
    padding: 1rem;
    background: var(--color-secondary-500);
    color: var(--brand-white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Global Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h, 80px);
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-family-body);
    font-size: var(--text-base);
    line-height: var(--leading-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Colors - Clean & Professional */
/* Typography Reset */
h1,
.text-h1 {
    font-size: var(--text-h1);
    line-height: var(--leading-h1);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

h2,
.text-h2 {
    font-size: var(--text-h2);
    line-height: var(--leading-h2);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
}

h3,
.text-h3 {
    font-size: var(--text-h3);
    line-height: var(--leading-h3);
    font-weight: var(--font-weight-semibold);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-base);
    margin-bottom: 1.25rem;
}

small,
.text-sm {
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
}

h1,
h2,
h3,
h4,
.font-heading {
    color: var(--text-primary);
    font-family: var(--font-family-heading);
}

/* --- Links (Global) --- */
a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard),
        text-decoration-color var(--duration-fast) var(--ease-standard);
}

a:hover,
a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--color-primary-700);
}

/* =========================================
   Hero Sections - Unified System
   ========================================= */

/* --- Homepage Hero (Dark Background) --- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--brand-dark);
    padding: var(--section-padding-y) 0;
}

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    color: var(--brand-white);
    text-align: left;
}

.hero-content .text-h1,
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, var(--text-h1));
    line-height: var(--leading-h1);
    margin-bottom: var(--gap-heading-subtitle);
    font-weight: var(--font-weight-bold);
    color: var(--brand-white);
}

.hero-content .text-h1 span,
.hero-content h1 span {
    color: var(--brand-primary);
}

.hero-content p,
.hero-desc {
    font-size: var(--text-base);
    line-height: var(--leading-base);
    margin-bottom: var(--gap-subtitle-content);
    opacity: 0.9;
    max-width: 550px;
}

/* Hero CTA Actions */
.hero-actions {
    display: flex;
    gap: var(--space-6);
    align-items: center;
    margin-top: var(--gap-subtitle-content);
}

.hero-actions .btn {
    height: 48px;
    padding: 0 var(--space-8);
}

/* Secondary button on dark hero backgrounds */
.hero-section .btn-secondary,
.hero-content .btn-secondary {
    color: var(--brand-white);
    border-color: rgba(254, 254, 254, 0.4);
    background: transparent;
}

.hero-section .btn-secondary:hover,
.hero-content .btn-secondary:hover {
    background: rgba(254, 254, 254, 0.1);
    border-color: var(--brand-white);
    transform: translateY(-2px);
}

/* --- Internal Page Hero (Light Background) --- */
.internal-hero {
    padding: var(--section-padding-y) 0;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.internal-hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
}

.internal-hero-content {
    flex: 1;
    max-width: 650px;
    text-align: left;
}

.internal-hero-content .text-h1,
.internal-hero-content h1 {
    margin-bottom: var(--gap-heading-subtitle);
    color: var(--text-primary);
}

.internal-hero-content .text-base,
.internal-hero-content p {
    margin-bottom: var(--gap-subtitle-content);
    color: var(--text-secondary);
}

/* Internal Hero CTA Group */
.internal-hero-content .btn-group,
.internal-hero-content>div:last-of-type {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--gap-subtitle-content);
}

.internal-hero-content .btn {
    height: 48px;
    padding: 0 var(--space-6);
}

/* Hero Visual Container */
.internal-hero-visual {
    flex: 0 0 400px;
    display: flex;
    justify-content: flex-end;
}

.pd-icon-large {
    background: var(--bg-surface);
    color: var(--brand-primary);
    font-size: 4rem;
    border-radius: var(--radius-card);
    padding: var(--space-8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.pd-icon-large svg {
    width: 64px;
    height: 64px;
    stroke: currentColor;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* --- Hero Responsive --- */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: var(--section-padding-y-mobile) 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p,
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .internal-hero {
        padding: var(--section-padding-y-mobile) 0;
    }

    .internal-hero-layout {
        flex-direction: column;
        text-align: center;
        gap: var(--space-8);
    }

    .internal-hero-content {
        max-width: 100%;
        text-align: center;
    }

    .internal-hero-content .btn-group,
    .internal-hero-content>div:last-of-type {
        justify-content: center;
    }

    .internal-hero-visual {
        flex: none;
        justify-content: center;
    }

    .breadcrumb {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        gap: var(--space-4);
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .internal-hero-content .btn-group,
    .internal-hero-content>div:last-of-type {
        flex-direction: column;
        gap: var(--space-4);
    }

    .internal-hero-content .btn {
        width: 100%;
    }

    .pd-icon-large {
        padding: var(--space-6);
    }

    .pd-icon-large svg {
        width: 48px;
        height: 48px;
    }
}

/* =========================================
   Components - Clean Light Design
   ========================================= */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 2rem;
    /* Increased horizontal padding for stability */
    border-radius: var(--radius-btn);
    font-family: var(--font-family-body);
    font-weight: var(--font-weight-bold);
    font-size: var(--text-base);
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-standard),
        background-color var(--duration-fast) var(--ease-standard),
        box-shadow var(--duration-fast) var(--ease-standard),
        border-color var(--duration-fast) var(--ease-standard);
    cursor: pointer;
    border: 2px solid transparent;
    outline: none;
    white-space: nowrap;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    vertical-align: middle;
}

/* Primary - Solid Brand Blue (Optimized for AA Contrast) */
.btn-primary {
    background: #00729C;
    /* Accessible alternative to #0BABE4 */
    color: var(--brand-white);
    border-color: #00729C;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #005D80;
    border-color: #005D80;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-raised);
}

.btn-primary:active {
    transform: translateY(-1px);
    /* More deliberate transition from hover */
    box-shadow: var(--shadow-btn-pressed);
}

/* Secondary - Outline Brand Dark */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--brand-dark);
    color: var(--brand-dark);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(28, 60, 95, 0.05);
    border-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
    transform: translateY(0);
    background: rgba(28, 60, 95, 0.1);
    box-shadow: none;
}

/* --- CTA Container System --- */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    /* Increased gap for clarity */
    margin-top: var(--space-12);
    /* Increased whitespace for confidence */
    justify-content: flex-start;
}

.cta-group-center {
    justify-content: center;
    text-align: center;
}

.cta-group-right {
    justify-content: flex-end;
}

/* Mobile full-width CTAs */
@media (max-width: 576px) {
    .cta-group .btn {
        width: 100%;
    }
}

/* =========================================
   Card System - Unified Components
   ========================================= */

/* --- Base Card --- */
.card {
    background: var(--brand-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out-smooth);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 171, 228, 0.2);
}

/* --- Card Grid Layout (Equal Height) --- */
.card-grid {
    display: grid;
    gap: var(--card-gap);
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Equal height cards via flexbox */
.card-grid .card,
.card-grid .service-tile,
.card-grid .benefit-card,
.card-grid .feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- Service Tiles (Product/Service Listings) --- */
.service-tile {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: var(--space-8);
    transition: all var(--duration-normal) var(--ease-out-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-tile:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
}

/* Left accent bar on hover */
.service-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--brand-primary);
    transition: height var(--duration-normal) var(--ease-out-smooth);
}

.service-tile:hover::before {
    height: 100%;
}

/* Service Icon */
.service-tile .service-icon,
.service-tile .icon {
    width: 72px;
    height: 72px;
    background: var(--bg-body);
    border-radius: var(--radius-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--brand-primary);
    font-size: 2rem;
    transition: all var(--duration-normal) var(--ease-out-smooth);
}

.service-tile:hover .service-icon,
.service-tile:hover .icon {
    background: var(--brand-primary);
    color: var(--brand-white);
    transform: scale(1.05);
}

/* Service Category Label */
.service-tile .service-category {
    font-size: var(--text-xs);
    color: var(--brand-primary);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

/* Service Title */
.service-tile .service-title,
.service-tile h3 {
    font-size: var(--text-h3);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

/* Service Description */
.service-tile .service-description,
.service-tile p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

/* Service Tile Footer */
.service-tile .tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Learn More Link */
.service-tile .learn-more {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-weight-semibold);
    color: var(--brand-primary);
    font-size: var(--text-sm);
}

.service-tile .learn-more svg {
    transition: transform 0.3s ease;
}

.service-tile:hover .learn-more svg {
    transform: translateX(4px);
}

/* Highlighted Service Tile */
.service-tile.highlight {
    animation: card-highlight-pulse 2s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(11, 171, 228, 0.1);
}

@keyframes card-highlight-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* --- Benefit Cards (Product Features) --- */
.benefit-card,
.benefit-card-premium {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: var(--space-8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover,
.benefit-card-premium:hover {
    transform: translateY(-5px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

/* Benefit Card Icon */
.benefit-card .benefit-icon,
.benefit-card-premium .benefit-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-50);
    border-radius: var(--radius-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    color: var(--brand-primary);
    font-size: 1.5rem;
}

/* Benefit Card SVG/Emoji Icon Fallback */
.benefit-card span:first-child,
.benefit-card-premium span:first-child {
    font-size: 2rem;
    margin-bottom: var(--space-5);
    display: block;
    color: var(--brand-primary);
}

.benefit-card h3,
.benefit-card-premium h3 {
    font-size: var(--text-h3);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.benefit-card p,
.benefit-card-premium p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* --- Feature Cards (Compact Feature Blocks) --- */
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: var(--space-6);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.feature-card .feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-50);
    border-radius: var(--radius-input);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--brand-primary);
}

.feature-card h4 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* --- Blog/Content Cards --- */
.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.blog-card .blog-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--bg-body-alt);
}

.blog-card .blog-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card .blog-meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.blog-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.blog-card .blog-link {
    color: var(--brand-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.blog-card .blog-link:hover {
    text-decoration: underline;
}

/* --- Selector Cards (Partner Type Selection) --- */
.selector-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: var(--space-8);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selector-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.selector-card .selector-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    color: var(--brand-primary);
    transition: all 0.3s ease;
}

.selector-card:hover .selector-icon {
    background: var(--brand-primary);
    color: var(--brand-white);
    transform: scale(1.1);
}

.selector-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.selector-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

/* --- Card Responsive --- */
@media (max-width: 768px) {

    .card,
    .service-tile,
    .benefit-card,
    .benefit-card-premium,
    .feature-card,
    .blog-card,
    .selector-card {
        padding: var(--space-6);
    }

    .service-tile .service-icon,
    .service-tile .icon {
        width: 56px;
        height: 56px;
    }

    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* --- Form Fields --- */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
}

.form-input {
    background: var(--brand-white);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-family-body);
    font-size: var(--text-base);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-secondary-500);
    box-shadow: 0 0 0 4px rgba(11, 171, 228, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--brand-white);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
}


footer {
    background: var(--brand-dark);
    padding: var(--section-padding-y) 0;
    margin-top: auto;
    color: rgba(254, 254, 254, 0.8);
    border-top: none;
}

footer .font-heading,
footer h4 {
    color: var(--brand-white);
}

footer a {
    color: rgba(254, 254, 254, 0.7);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard);
}

footer a:hover {
    color: var(--brand-primary);
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.content-width {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* --- Section Spacing --- */
section,
.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

/* --- Content Gaps --- */
.gap-heading-subtitle {
    margin-bottom: var(--gap-heading-subtitle);
}

.gap-subtitle-content {
    margin-bottom: var(--gap-subtitle-content);
}

/* --- Typography Spacing Rhythm --- */

/* Base Section Header - Left Aligned (Default) */
.section-header {
    text-align: left;
    margin-bottom: var(--space-12);
    max-width: 800px;
}

/* Centered Variant */
.section-header-center,
.section-header.text-center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-12);
}

/* Overline - Small Accent Label */
.section-header .overline,
.section-header-center .overline {
    display: block;
    margin-bottom: var(--space-4);
    color: var(--brand-primary);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: var(--text-sm);
}

/* Headings in Section Headers */
.section-header h1,
.section-header h2,
.section-header h3,
.section-header-center h1,
.section-header-center h2,
.section-header-center h3 {
    margin-bottom: var(--gap-heading-subtitle);
    position: relative;
    padding-bottom: var(--space-4);
}

/* Divider Underline - Left Aligned */
.section-header h1::after,
.section-header h2::after,
.section-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 2px;
}

/* Divider Underline - Centered */
.section-header-center h1::after,
.section-header-center h2::after,
.section-header-center h3::after,
.section-header.text-center h1::after,
.section-header.text-center h2::after,
.section-header.text-center h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 2px;
}

/* Last Child Reset (remove margin when no subtitle follows) */
.section-header h1:last-child,
.section-header h2:last-child,
.section-header h3:last-child,
.section-header p:last-child,
.section-header-center h1:last-child,
.section-header-center h2:last-child,
.section-header-center h3:last-child,
.section-header-center p:last-child {
    margin-bottom: 0;
}

/* Subtitle/Description Paragraph */
.section-header p,
.section-header-center p {
    margin-top: var(--space-4);
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-base);
}

.section-header p {
    max-width: 600px;
}

.section-header-center p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================
   Responsive Layout Fixes
   ========================================= */

/* Prevent Horizontal Overflow Globally */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Images and Media - Prevent Overflow */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* Fix Long Words Breaking Layout */
h1,
h2,
h3,
h4,
p,
li,
a,
span,
label {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- Mobile First Breakpoints --- */

/* Tablets and Below (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        width: 90%;
        /* Premium breathing room on tablets */
    }

    /* Grid layouts should stack */
    .impact-grid,
    .help-grid,
    .values-list,
    .culture-grid {
        grid-template-columns: 1fr !important;
    }

    /* Two-column layouts stack */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* Typography Scaling for small mobile */
    .text-h1,
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    .text-h2,
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    .text-4xl {
        font-size: 2rem !important;
    }


    .text-3xl {
        font-size: 1.75rem !important;
    }

    .text-2xl {
        font-size: 1.5rem !important;
    }


    /* Hero Section Fixes */
    .hero-section,
    .page-header,
    .careers-hero,
    .support-hero {
        padding: var(--section-padding-y-mobile) 0 !important;
        min-height: auto !important;
    }

    .hero-glass-panel {
        padding: 2rem 1rem !important;
        background: transparent !important;
        border: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .hero-actions {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Section Padding */
    section,
    .section-padding {
        padding-top: var(--section-padding-y-mobile) !important;
        padding-bottom: var(--section-padding-y-mobile) !important;
    }

    /* Cards */
    .card,
    .stat-card,
    .reason-card,
    .help-card,
    .job-card {
        padding: 1.5rem !important;
    }

    .reason-card {
        flex-direction: column !important;
        text-align: center !important;
    }

    .reason-icon {
        margin: 0 auto 1rem auto !important;
    }

    /* Job Cards */
    .job-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .job-card .btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* Impact Strip */
    .impact-strip {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }

    /* Phygital Section */
    .diagram-container {
        flex-direction: column !important;
    }

    .connector-line {
        display: none !important;
    }

    /* Filter Pills Scrollable */
    .filter-pills {
        justify-content: flex-start !important;
        padding-bottom: 1rem !important;
    }

    /* Final CTA */
    .final-glass-panel {
        padding: 3rem 1.5rem !important;
    }

    /* Footer */
    footer {
        padding: var(--section-padding-y-mobile) 0 !important;
    }

    footer .container>div {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: left !important;
    }

    /* Forms - Full Width */
    .apply-form {
        margin: 2rem auto !important;
        padding: 1.5rem !important;
    }

    .form-input,
    .btn {
        width: 100% !important;
    }

    /* Tables - Horizontal Scroll */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .text-4xl {
        font-size: 1.75rem !important;
    }

    .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .stat-number {
        font-size: 2.5rem !important;
    }

    .service-icon,
    .help-icon,
    .reason-icon {
        font-size: 1.5rem !important;
        width: 50px !important;
        height: 50px !important;
    }
}

/* =========================================
   Illustration & Visual Placeholders
   ========================================= */

.illustration-placeholder {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--color-primary-50), var(--color-primary-100));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blobify 10s infinite alternate;
}

.illustration-placeholder::after {
    content: "Illustration";
    color: var(--brand-dark);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    opacity: 0.3;
}

@keyframes blobify {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}


/* =========================================
   Lead Capture Modal
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 13, 24, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-standard);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--bg-surface);
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform var(--duration-normal) var(--ease-out-smooth);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-standard);
}

.modal-close:hover {
    color: var(--brand-primary);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h2 {
    margin-bottom: 0.75rem;
    font-size: var(--text-h2);
    letter-spacing: -0.01em;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-base);
    max-width: 480px;
    margin: 0 auto;
}

.enquiry-form .form-group {
    margin-bottom: 1.5rem;
}

.enquiry-form .cta-group {
    margin-top: 2rem;
}

.enquiry-form label {
    display: block;
    margin-bottom: 0.625rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-standard);
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-input);
    background: var(--bg-body);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-standard);
    box-shadow: var(--shadow-xs);
}

/* --- Breadcrumb Polish --- */
.breadcrumb {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--duration-fast);
}

.breadcrumb a:hover {
    color: var(--brand-primary);
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* --- Visual Progression (Step Flow) --- */
.step-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
    counter-reset: flow-counter;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.step-item::before {
    counter-increment: flow-counter;
    content: counter(flow-counter);
    width: 64px;
    height: 64px;
    background: var(--brand-primary);
    color: white;
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 16px rgba(11, 171, 228, 0.2);
    border: 4px solid var(--bg-body);
    position: relative;
    z-index: 2;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-subtle);
    z-index: 1;
}

.step-item h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-item p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .step-item:not(:last-child)::after {
        display: none;
    }
}

/* --- Data Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: var(--text-base);
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-surface-alt);
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background-color: var(--bg-surface-hover);
}

/* --- Feature Lists (Checkmarks) --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: var(--text-base);
}

.feature-list li::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230babe4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* --- Accordion (FAQ) --- */
.accordion-item {
    border-bottom: 1px solid var(--border-subtle);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--duration-fast);
}

.accordion-header:hover {
    color: var(--brand-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-standard);
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-icon {
    transition: transform var(--duration-normal);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px var(--color-primary-50);
}

.enquiry-form input.error,
.enquiry-form select.error,
.enquiry-form textarea.error {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px var(--color-accent-50);
    /* Removed shake animation to ensure error state feels calm, not alarming */
}

.form-error-msg {
    color: var(--brand-red);
    font-size: var(--text-sm);
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--duration-fast) var(--ease-standard);
}

.form-error-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.success-state {
    display: none;
    text-align: center;
    padding: 3rem 0;
    animation: fadeIn var(--duration-normal) var(--ease-out-smooth);
}

.success-icon {
    font-size: 5rem;
    color: var(--color-success);
    margin-bottom: 2rem;
    display: block;
    animation: scaleIn 0.5s var(--ease-out-smooth);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-state h3 {
    font-size: var(--text-h3);
    margin-bottom: 0.5rem;
}

.success-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* =========================================
   Trust & Partners Section
   ========================================= */

.trust-section {
    background: var(--bg-body-alt);
    padding: var(--section-padding-y) 0;
}

.trust-grid-corporate {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.trust-item {
    padding: 2.5rem;
    background: var(--bg-surface);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) var(--ease-out-smooth);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.trust-item h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: var(--text-h3);
}

.trust-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.trust-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--duration-fast) var(--ease-standard);
}

.trust-link:hover {
    gap: 0.75rem;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-subtle);
}

.trust-logo {
    font-family: var(--font-family-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    opacity: 0.7;
    transition: all var(--duration-normal) var(--ease-out-smooth);
    filter: grayscale(1);
    /* cursor: default; Removed to allow natural cursor behavior */
}

.trust-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

.compliance-strip {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    font-size: var(--text-sm);
}

.footer-bottom-row {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.text-copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
    opacity: 0.8;
}

.text-disclaimer {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.5;
}

.notice-box {
    background: rgba(255, 255, 255, 0.05);
    /* Consider finding a var for this alpha or use surface */
    padding: 1.5rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    margin-top: 1rem;
}

/* Financial & Trust Disclaimers */
.disclaimer-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(28, 60, 95, 0.04);
    border-radius: 12px;
    border-left: 4px solid var(--border-subtle);
}

.disclaimer-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.earning-slab-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .logo-grid {
        gap: 2rem;
        margin-top: 4rem;
    }

    .trust-logo {
        font-size: 1.2rem;
    }
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: normal;
    /* enhance alignment */
}

.badge-banking {
    background-color: var(--color-banking-bg);
    color: var(--color-banking-text);
}

.badge-travel {
    background-color: var(--color-travel-bg);
    color: var(--color-travel-text);
}

.badge-insurance {
    background-color: var(--color-insurance-bg);
    color: var(--color-insurance-text);
}

/* --- Dropdown Navigation --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: var(--brand-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-card);
    z-index: 1000;
    margin-top: 0.5rem;
    overflow: hidden;
    padding: 0.5rem 0;
    border: 1px solid var(--border-subtle);
}

.dropdown-content a {
    color: var(--brand-dark);
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease-standard);
}

.dropdown-content a:hover {
    background-color: rgba(11, 171, 228, 0.05);
    color: var(--brand-primary);
    padding-left: 1.75rem;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown var(--duration-fast) var(--ease-out-smooth);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===========================
GLOBAL HEADER FINAL (LOCKED)
=========================== */
:root {
    --header-h: 78px;
    --header-h-scrolled: 64px;
    --header-max: 1240px;
    --header-pad-x: 28px;
    --header-bg: rgba(255, 255, 255, .86);
    --header-bg-scrolled: rgba(255, 255, 255, .92);
    --header-border: rgba(28, 60, 95, .08);
}

/* fixed header + layout offset */
body {
    padding-top: var(--header-h) !important;
}

/* shell */
header.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: var(--header-bg) !important;
    backdrop-filter: blur(14px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
    border-bottom: 1px solid var(--header-border) !important;
    box-shadow: 0 12px 40px rgba(10, 25, 41, .06) !important;
    transition: background var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard) !important;
}

/* inner container */
header.site-header .header-inner {
    height: var(--header-h) !important;
    max-width: var(--header-max) !important;
    margin: 0 auto !important;
    padding: 0 var(--header-pad-x) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

/* brand */
header.site-header .brand img {
    height: 36px !important;
    width: auto !important;
}

/* nav */
#desktop-nav {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    white-space: nowrap !important;
}

#desktop-nav a {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    padding: 10px 10px !important;
    border-radius: 10px !important;
    transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard) !important;
}

#desktop-nav a:hover {
    background: rgba(11, 171, 228, .08) !important;
    color: #00729C !important;
}

/* right actions */
.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* login dropdown */
.login-dropdown {
    position: relative !important;
}

.login-btn {
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(28, 60, 95, .18) !important;
    background: rgba(255, 255, 255, .65) !important;
    font-weight: 700 !important;
}

.login-menu {
    top: calc(100% + 10px) !important;
    right: 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(28, 60, 95, .10) !important;
    box-shadow: 0 25px 60px rgba(10, 25, 41, .14) !important;
    overflow: hidden !important;
}

/* CTA */
.header-actions .btn.btn-primary {
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
}

/* scrolled premium state */
header.site-header.is-scrolled {
    background: var(--header-bg-scrolled) !important;
    box-shadow: 0 18px 60px rgba(10, 25, 41, .10) !important;
}

header.site-header.is-scrolled .header-inner {
    height: var(--header-h-scrolled) !important;
}

/* responsive */
@media (max-width: 991px) {
    body {
        padding-top: 74px !important;
    }

    #desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
    }

    header.site-header .header-inner {
        padding: 0 18px !important;
    }

    .header-actions .btn.btn-primary,
    .login-dropdown {
        display: none !important;
    }
}

/* ===========================
   PHASE 0B HEADER PATCH
   =========================== */

/* Desktop: hamburger must be hidden */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Login dropdown must never render inline */
header.site-header .login-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* dropdown menu hidden by default */
header.site-header .login-menu {
    display: none !important;
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 10px) !important;
    min-width: 240px !important;
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid rgba(28, 60, 95, .10) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    z-index: 10000 !important;
}

/* show dropdown when open */
header.site-header .login-dropdown.open .login-menu {
    display: block !important;
    animation: fadeInDown var(--duration-fast) var(--ease-out-smooth) forwards !important;
}

/* menu items styling */
header.site-header .login-menu a {
    display: block !important;
    padding: 12px 12px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #0B2540 !important;
    text-decoration: none !important;
}

header.site-header .login-menu a:hover {
    background: rgba(11, 171, 228, .10) !important;
    color: #00729C !important;
}

/* if some link group is rendering inline, force it inside dropdown */
header.site-header .login-dropdown a {
    white-space: nowrap !important;
}

/* Ensure dropdown is not pushed outside header */
header.site-header .header-actions {
    position: relative !important;
    overflow: visible !important;
}

/* ===========================
   PHASE 1A STICKY HEADER
   =========================== */

/* Global Sticky Header Shell */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(11, 37, 64, .06) !important;
    width: 100% !important;
    transition: all var(--duration-normal) var(--ease-out-smooth) !important;
}

/* Constrain width and center content */
.site-header .header-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 14px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Scrolled State: Shadow & slightly more opaque background */
.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(11, 37, 64, .10) !important;
    background: rgba(255, 255, 255, .96) !important;
}

/* Fix desktop nav spacing */
#desktop-nav {
    display: flex !important;
    gap: 22px !important;
    align-items: center !important;
}

/* Deep Linking Styles */
.deep-section {
    scroll-margin-top: 110px !important;
    padding: 64px 0 !important;
}

.anchor-target {
    box-shadow: 0 0 0 4px rgba(11, 171, 228, 0.35) !important;
    border-radius: 18px !important;
    transition: box-shadow var(--duration-normal) var(--ease-out-smooth) !important;
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 171, 228, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(11, 171, 228, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(11, 171, 228, 0);
    }
}

/* =========================================
   PHASE 10.1 MOBILE OPTIMIZATIONS
   ========================================= */

/* Mobile Navigation Drawer */
#mobile-drawer {
    position: fixed;
    top: var(--header-h, 72px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h, 72px));
    background: var(--bg-body);
    z-index: 9998;
    overflow-y: auto;
    padding: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: none;
}

#mobile-drawer:not([hidden]) {
    display: block;
    animation: slideDown var(--duration-fast) var(--ease-out-smooth) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color var(--duration-fast) var(--ease-standard);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--brand-primary);
    padding-left: 0.5rem;
    border-bottom-color: var(--brand-primary);
}

/* Nav Visibility & Layout Overrides */
@media (max-width: 991px) {

    /* Force hide desktop nav that was overriding with !important */
    #desktop-nav {
        display: none !important;
    }

    /* Ensure mobile toggle is visible */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 1.75rem;
        padding: 0.5rem;
        cursor: pointer;
        color: var(--text-primary);
        z-index: 10001;
    }

    /* Fix Header Inner Padding */
    .site-header .header-inner {
        padding: 0 1rem !important;
        gap: 0.5rem !important;
    }

    /* Adjust Login/Actions visibility if needed */
    .header-actions {
        gap: 0.5rem !important;
    }

    /* Motion Control Float Fix */
    #motion-toggle,
    .fixed-controls {
        /* Targeting ID mostly specific */
        bottom: 5rem !important;
        /* Move up to avoid overlapping bottom content/footer usually */
        left: 1rem !important;
        transform: scale(0.8);
        transform-origin: bottom left;
        z-index: 9900;
    }

    /* Fix Hero Typography Sizing */
    .text-h1,
    h1 {
        font-size: 2rem !important;
        /* Scale down big headings */
        line-height: 1.2 !important;
    }

    .hero-content .text-h1 {
        font-size: 2.25rem !important;
    }

    /* Standardize spacing for section headers */
    .section-header-center {
        margin-bottom: 2rem !important;
    }

    .section-padding {
        padding-top: var(--section-padding-y-mobile) !important;
        padding-bottom: var(--section-padding-y-mobile) !important;
    }

    /* Tap Confidence: Increase hit area for minor links */
    footer ul li a,
    .breadcrumb a,
    .trust-link {
        padding: 0.5rem 0;
        display: inline-block;
        min-height: 44px;
        /* Accessible tap target */
    }

    /* Cards: Reduce padding slightly to avoid cramped content */
    .card,
    .service-tile,
    .benefit-card-premium,
    .trust-item {
        padding: var(--space-6) !important;
    }
}

/* =========================================
   CMS Component Styles (Moved from index.html)
   ========================================= */

/* 1. Selector Cards (Homepage, Solutions) */
.selector-section {
    padding: var(--section-padding-y) 0;
    background: var(--bg-surface);
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--space-8);
}

.selector-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.selector-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
}

.selector-icon {
    display: inline-flex;
    padding: 1rem;
    background: var(--color-primary-50);
    border-radius: 20px;
    color: var(--brand-primary);
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.selector-card:hover .selector-icon {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.1) rotate(3deg);
}

.selector-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}

.selector-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.selector-link {
    font-weight: 700;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

/* 2. Earning Models */
.earning-models-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 1rem;
    scroll-snap-type: x mandatory;
    margin: 0 -1rem;
    /* Negative margin to allow full bleed scroll on mobile */
    -webkit-overflow-scrolling: touch;
}

.model-tile {
    min-width: 320px;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-subtle);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.model-tile:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
}

.model-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.model-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--color-secondary-50);
    color: var(--brand-dark);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.model-tile h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.model-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.model-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.model-features li svg {
    color: var(--color-success);
    flex-shrink: 0;
}

/* 3. Partner Logos */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 4rem;
    align-items: center;
    justify-items: center;
    opacity: 0.7;
}

.logo-item img {
    max-height: 48px;
    width: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* 4. Stat Numbers */
.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    text-align: center;
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 1.5rem;
}

/* Responsive Fixes for CMS Components */
@media (max-width: 992px) {
    .selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .selector-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .model-tile {
        min-width: 280px;
        /* Allow shrinking on mobile */
        padding: 2rem;
    }

    .logo-grid {
        gap: 2rem;
    }
}