/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0B1F3B;
    --secondary: #0A7D3B;
    --accent: #C9A227;
    --background: #F6F7F9;
    --text: #111827;
    --muted: #6B7280;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(11, 31, 59, 0.08);
    --shadow-hover: 0 4px 16px rgba(11, 31, 59, 0.12);
    --transition: all 0.3s ease;
    --header-h: 72px;
    
    /* Sudanese Design Tokens */
    --sd-navy: #0B1F3B;
    --sd-green: #0F6A3B;
    --sd-sand: #C8A24A;
    --sd-mist: rgba(11, 31, 59, 0.06);
    --sd-line: rgba(11, 31, 59, 0.12);
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="rtl"] {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

[dir="ltr"] {
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    background: var(--background);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    font-size: 0.875rem;
}

.lang-toggle:hover,
.lang-toggle:focus {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #08682f;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
    display: inline-block;
    transition: var(--transition);
}

.btn-link:hover,
.btn-link:focus {
    text-decoration: underline;
}

/* ============================================
   Hero Section - Portal Grade
   ============================================
   DIAGNOSIS (Fixed Issues):
   - Problem 1: overflow:hidden was clipping content at bottom
   - Problem 2: max-height:70vh was causing content cutoff
   - Problem 3: No header height calculation causing overlap
   - Solution: Removed overflow:hidden, changed to auto height, added header padding
   ============================================ */
.hero {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 4rem;
    overflow: hidden;
    background: var(--background);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        height: auto;
        display: block;
        padding-top: calc(var(--header-h) + 16px);
        padding-bottom: max(3rem, calc(3rem + env(safe-area-inset-bottom)));
    }
}

.hero .container {
    max-width: 1280px;
    width: 100%;
    padding-inline: 24px;
}

.hero-web {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto; /* Enable mouse interaction for canvas */
    opacity: 0; /* Hidden by default, will fade in when ready */
    transition: opacity 200ms ease;
}

.hero-web.is-ready {
    opacity: 1; /* Show canvas when ready */
}

.hero-web-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.15)); /* Reduced opacity for better canvas visibility */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
}

[dir="rtl"] .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
}

[dir="ltr"] .hero-content {
    grid-template-columns: 0.9fr 1.1fr;
}

[dir="rtl"] .hero-text {
    text-align: right;
}

[dir="ltr"] .hero-text {
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    max-width: 100%;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
    line-height: 1.75;
    max-width: 95%;
    overflow: visible;
}

/* Trust Bar */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(11, 31, 59, 0.06);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.trust-icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 59, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    flex-shrink: 0;
}

.trust-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    stroke-width: 2;
}

.trust-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trust-content strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

.trust-content span {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Services Chips */
.hero-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin-bottom: 1.75rem;
}

.chip {
    padding: 0.625rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    box-shadow: 0 1px 2px rgba(11, 31, 59, 0.04);
    transition: var(--transition);
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--primary);
    background: rgba(11, 31, 59, 0.02);
    box-shadow: 0 2px 4px rgba(11, 31, 59, 0.08);
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    min-width: 180px;
}

.btn-primary:focus,
.btn-secondary:focus {
    outline: 3px solid rgba(10, 125, 59, 0.3);
    outline-offset: 2px;
}

/* How to Request */
.hero-how-to {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Visual Area - Portal Board */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.portal-board {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(11, 31, 59, 0.08);
    overflow: hidden;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.portal-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-weight: 500;
}

.portal-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 1rem;
    background: var(--background);
}

.portal-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 0.25rem;
    transition: var(--transition);
}

.portal-service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(11, 31, 59, 0.08);
}

.portal-icon-container {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 59, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.portal-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    stroke-width: 2;
}

.portal-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    line-height: 1.3;
}

.portal-desc {
    font-size: 0.6875rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.3;
}

.portal-footer {
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.portal-workflow {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Services Section - Premium Government Grade
   ============================================ */
.services {
    padding: 72px 0;
    background: var(--background);
}

.services .container {
    max-width: 1280px;
}

.service-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(11, 31, 59, 0.04);
    border: 1px solid rgba(11, 31, 59, 0.1);
    border-radius: 8px;
    margin: 2rem auto 3rem;
    max-width: 600px;
    font-size: 0.9375rem;
    color: var(--text);
}

.service-picker-text {
    color: var(--muted);
}

.service-picker-selected {
    font-weight: 600;
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 31, 59, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card.active {
    border-color: rgba(217, 172, 0, 0.4);
    background: rgba(217, 172, 0, 0.02);
    box-shadow: 0 4px 12px rgba(217, 172, 0, 0.1);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon-container {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 59, 0.06);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    flex-shrink: 0;
}

.service-icon {
    width: 24px;
    height: 24px;
    color: #0B1F3B;
    stroke-width: 2;
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.service-value {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.service-bullets {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    flex-grow: 1;
}

.service-bullets li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

[dir="ltr"] .service-bullets li {
    padding-right: 0;
    padding-left: 1.5rem;
}

.service-bullets li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

[dir="ltr"] .service-bullets li::before {
    right: auto;
    left: 0;
}

.service-note {
    font-size: 0.875rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #E5E7EB;
}

.service-card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.service-cta-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.service-cta-btn:hover {
    background: #0a1a33;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(11, 31, 59, 0.2);
}

.service-cta-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.service-cta-link:hover {
    color: #0a1a33;
    background: rgba(11, 31, 59, 0.04);
}

.services-global-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(11, 31, 59, 0.02);
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.services-global-cta-divider {
    color: var(--muted);
    font-size: 0.9375rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-link-large {
    font-size: 1.0625rem;
    padding: 1rem 1.5rem;
}

/* ============================================
   Systems Section
   ============================================ */
/* ============================================
   Systems Section - Premium Government Grade
   ============================================ */
.systems {
    background: var(--white);
    padding: 72px 0;
}

.systems .container {
    max-width: 1280px;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.system-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.system-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 31, 59, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.system-card:focus-within {
    outline: 2px solid rgba(11, 31, 59, 0.3);
    outline-offset: 2px;
}

.system-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.system-icon-container {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 59, 0.06);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    flex-shrink: 0;
}

.system-icon {
    width: 24px;
    height: 24px;
    color: #0B1F3B;
    stroke-width: 2;
}

.system-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.system-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.system-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.system-badge-custom {
    background: rgba(217, 172, 0, 0.1);
    color: #b8860b;
}

.system-value {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.system-benefits {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    flex-grow: 1;
}

.system-benefits li {
    padding: 0.5rem 0;
    padding-inline-start: 1.5rem;
    position: relative;
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.system-benefits li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.system-card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.system-order-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
}

.system-order-btn:hover {
    background: #0a1a33;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(11, 31, 59, 0.2);
}

.system-order-btn:focus {
    outline: 2px solid rgba(11, 31, 59, 0.3);
    outline-offset: 2px;
}

/* ============================================
   Mobile Apps Section
   ============================================ */
/* ============================================
   Mobile Apps Section - Premium Government Grade
   ============================================ */
.mobile-apps {
    background: var(--background);
    padding: 72px 0;
}

.mobile-apps .container {
    max-width: 1280px;
}

.mobile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.mobile-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 31, 59, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-card:focus-within {
    outline: 2px solid rgba(11, 31, 59, 0.3);
    outline-offset: 2px;
}

.mobile-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 59, 0.06);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    flex-shrink: 0;
}

.mobile-icon {
    width: 28px;
    height: 28px;
    color: #0B1F3B;
    stroke-width: 2;
}

.mobile-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.mobile-value {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.mobile-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.mobile-benefits li {
    padding: 0.5rem 0;
    padding-inline-start: 1.5rem;
    position: relative;
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.mobile-benefits li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.mobile-global-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(11, 31, 59, 0.02);
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.mobile-global-cta-divider {
    color: var(--muted);
    font-size: 0.9375rem;
}

/* ============================================
   How to Order Section
   ============================================ */
/* ============================================
   How to Order Section - Premium Stepper
   ============================================ */
.how-to-order {
    background: var(--background);
    padding: 72px 0;
}

.how-to-order .container {
    max-width: 1280px;
}

.steps-container {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.step-card {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-height: 100%;
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 31, 59, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-card:focus-within {
    outline: 2px solid rgba(11, 31, 59, 0.3);
    outline-offset: 2px;
}

.step-badge {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 59, 0.06);
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    flex-shrink: 0;
}

.step-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--white);
    border-radius: 50%;
    padding: 2px;
}

.step-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.step-content p {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.step-sla {
    color: var(--secondary) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(11, 31, 59, 0.1);
}

.step-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.step-connector {
    position: absolute;
    top: 40px;
    width: 2rem;
    height: 2px;
    background: #E5E7EB;
    z-index: 1;
}

[dir="rtl"] .step-connector {
    left: auto;
    right: calc(-2rem - 1px);
}

[dir="ltr"] .step-connector {
    left: calc(-2rem - 1px);
    right: auto;
}

.step-card:last-child .step-connector {
    display: none;
}

.step-card:not(:last-child) .step-connector {
    display: block;
}

.order-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Why munjez Section - Premium Trust Pillars
   ============================================ */
.why-munjez {
    background: var(--background);
    padding: 72px 0;
}

.why-munjez .container {
    max-width: 1200px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.why-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.2s ease;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 31, 59, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.why-card:focus-within {
    outline: 2px solid rgba(11, 31, 59, 0.3);
    outline-offset: 2px;
}

.why-icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 59, 0.06);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.why-icon {
    width: 28px;
    height: 28px;
    color: #0B1F3B;
    stroke-width: 2;
}

.why-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.why-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.why-content p {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.why-proof {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(11, 31, 59, 0.04);
    border: 1px solid rgba(11, 31, 59, 0.1);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: auto;
}

.why-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* ============================================
   Contact Section - Premium Government Grade
   ============================================ */
.contact {
    background: var(--background);
    padding: 72px 0;
}

.contact .container {
    max-width: 1200px;
}

.contact-sla {
    text-align: center;
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 31, 59, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-card:focus-within {
    outline: 2px solid rgba(11, 31, 59, 0.3);
    outline-offset: 2px;
}

.contact-icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 59, 0.06);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #0B1F3B;
    stroke-width: 2;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1.5rem;
    word-break: break-all;
}

.contact-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: auto;
}

.contact-actions .btn {
    flex: 1;
    min-width: 140px;
}

.contact-actions .btn-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

[dir="rtl"] .toast {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(100px);
}

[dir="rtl"] .toast.show {
    transform: translateX(50%) translateY(0);
}

/* ============================================
   Footer - Premium Government Grade
   ============================================ */
.footer {
    background: #0B1F3B;
    color: var(--white);
}

.footer-main {
    background: #0B1F3B;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    margin-bottom: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--white);
    text-decoration: underline;
    transform: translateX(-2px);
}

[dir="rtl"] .footer-links a:hover,
[dir="rtl"] .footer-links a:focus {
    transform: translateX(2px);
}

.footer-address {
    font-style: normal;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.footer-contact-link:hover,
.footer-contact-link:focus {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact-label {
    font-weight: 600;
    font-size: 0.9375rem;
}

.footer-contact-value {
    font-size: 0.9375rem;
    word-break: break-all;
}

.footer-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-copy-btn:hover,
.footer-copy-btn:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.footer-sub {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: var(--white);
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-hover);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

[dir="rtl"] .floating-whatsapp {
    left: auto;
    right: 2rem;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(10, 125, 59, 0.4);
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
}

.tooltip {
    position: absolute;
    bottom: 70px;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

[dir="rtl"] .tooltip {
    right: 0;
}

[dir="ltr"] .tooltip {
    left: 0;
}

.floating-whatsapp:hover .tooltip {
    opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Tablet Layout - Stack to avoid clipping */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 20px);
        padding-bottom: 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .services {
        padding: 48px 0;
    }
    
    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .systems {
        padding: 48px 0;
    }
    
    .system-card {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-picker {
        margin: 1.5rem auto 2rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .why-munjez {
        padding: 48px 0;
    }
    
    .why-card {
        padding: 1.5rem;
    }
}

@media (min-width: 1025px) {
    /* Desktop Layout - Two columns */
    .hero {
        min-height: calc(100svh - var(--header-h));
        padding-top: calc(var(--header-h) + 24px);
        padding-bottom: 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }
    
    [dir="rtl"] .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
    }
    
    [dir="ltr"] .hero-content {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .footer-logo-img {
        height: 32px;
    }
    
    .footer-logo-text {
        font-size: 1.25rem;
    }
    
    .footer-logo {
        gap: 0.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 999;
    }

    [dir="rtl"] .nav-links {
        transform: translateX(100%);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions .btn-small {
        display: none;
    }

    .hero {
        min-height: auto;
        height: auto;
        padding-top: calc(var(--header-h) + 18px);
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
        overflow: visible;
    }

    .hero .container {
        padding-inline: 16px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    /* Mobile Hero: Flex Column Layout with Correct Order */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding-top: 0;
        width: 100%;
    }
    
    /* Ensure proper spacing between elements */
    .hero-content > * {
        margin-bottom: 0;
    }

    /* (1) Badge */
    .badge {
        order: 1;
        margin-bottom: 0;
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
        width: 100%;
    }

    /* (2) H1 */
    .hero h1 {
        order: 2;
        font-size: 1.75rem;
        line-height: 1.2;
        max-width: 100%;
        margin-bottom: 0;
        width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* (3) Subtitle */
    .hero-description {
        order: 3;
        font-size: 0.875rem;
        line-height: 1.6;
        max-width: 100%;
        margin-bottom: 0;
        overflow: visible;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100%;
    }

    /* (4) Trust Grid 2x2 */
    .trust-bar {
        order: 4;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
        padding: 1rem;
        margin-bottom: 0;
        width: 100%;
    }

    .trust-item {
        gap: 0.5rem;
    }

    .trust-icon-container {
        width: 32px;
        height: 32px;
    }

    .trust-icon {
        width: 18px;
        height: 18px;
    }

    .trust-content strong {
        font-size: 0.8125rem;
        line-height: 1.3;
    }

    .trust-content span {
        font-size: 0.6875rem;
        line-height: 1.3;
    }

    /* (5) CTA Buttons - Stacked */
    .hero-cta {
        order: 5;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 0;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* (6) Services Chips - Horizontal Scroll */
    .hero-chips {
        order: 6;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.625rem;
        margin-bottom: 0;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        width: 100%;
    }

    .hero-chips::-webkit-scrollbar {
        height: 4px;
    }

    .hero-chips::-webkit-scrollbar-track {
        background: transparent;
    }

    .hero-chips::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 2px;
    }

    .chip {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        flex: 0 0 auto;
        min-width: fit-content;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .hero-how-to {
        display: none;
    }

    /* (7) Visual Mockup - Last */
    .hero-visual {
        order: 7;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero-text {
        order: 0;
        width: 100%;
        display: contents;
    }

    .portal-board {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .portal-services-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.75rem 0.5rem;
    }

    .portal-service-card {
        padding: 0.75rem 0.5rem;
        margin: 0.125rem;
    }

    .portal-icon-container {
        width: 40px;
        height: 40px;
    }

    .portal-icon {
        width: 20px;
        height: 20px;
    }

    .portal-label {
        font-size: 0.75rem;
    }

    .portal-desc {
        font-size: 0.625rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .services {
        padding: 48px 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .mobile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .mobile-apps {
        padding: 48px 0;
    }
    
    .mobile-card {
        padding: 1.5rem;
    }
    
    .service-card-header {
        gap: 0.875rem;
    }
    
    .service-icon-container {
        width: 48px;
        height: 48px;
    }
    
    .service-icon {
        width: 22px;
        height: 22px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-picker {
        flex-direction: column;
        text-align: center;
        margin: 1.5rem auto 2rem;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .services-global-cta {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.5rem;
    }
    
    .service-card-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .service-cta-btn {
        width: 100%;
    }

    .systems-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .systems {
        padding: 48px 0;
    }
    
    .system-card {
        padding: 1.5rem;
    }
    
    .system-card-header {
        gap: 0.875rem;
    }
    
    .system-icon-container {
        width: 48px;
        height: 48px;
    }
    
    .system-icon {
        width: 22px;
        height: 22px;
    }
    
    .system-card h3 {
        font-size: 1.125rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .why-munjez {
        padding: 48px 0;
    }
    
    .why-card {
        padding: 1.5rem;
    }
    
    .why-icon-container {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
    
    .why-icon {
        width: 24px;
        height: 24px;
    }
    
    .why-content h3 {
        font-size: 1.125rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .contact {
        padding: 48px 0;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon-container {
        width: 56px;
        height: 56px;
        margin-bottom: 1.25rem;
    }
    
    .contact-icon {
        width: 22px;
        height: 22px;
    }
    
    .contact-card h3 {
        font-size: 1.25rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .contact-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-actions .btn,
    .contact-actions .btn-link {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-legal {
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .floating-whatsapp {
        bottom: 1rem;
        left: 1rem;
        width: 56px;
        height: 56px;
    }

    [dir="rtl"] .floating-whatsapp {
        left: auto;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--header-h) + 16px);
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        -webkit-line-clamp: 4;
    }

    .hero-description {
        font-size: 0.8125rem;
        -webkit-line-clamp: 3;
    }

    .trust-bar {
        gap: 0.5rem;
        padding: 0.875rem;
    }

    .trust-icon-container {
        width: 28px;
        height: 28px;
    }

    .trust-icon {
        width: 16px;
        height: 16px;
    }

    .trust-content strong {
        font-size: 0.75rem;
    }

    .trust-content span {
        font-size: 0.625rem;
    }

    .btn-large {
        height: 44px;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .chip {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .hero-how-to {
        font-size: 0.8125rem;
    }

    .portal-services-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.5rem 0.25rem;
    }

    .portal-service-card {
        padding: 0.625rem 0.375rem;
        margin: 0.125rem;
    }

    .portal-icon-container {
        width: 36px;
        height: 36px;
    }

    .portal-icon {
        width: 18px;
        height: 18px;
    }

    .portal-label {
        font-size: 0.6875rem;
    }

    .portal-desc {
        font-size: 0.5625rem;
    }

    .portal-header {
        padding: 0.875rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .portal-title {
        font-size: 0.9375rem;
    }

    .portal-status {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    .portal-footer {
        padding: 0.75rem 1.25rem;
    }

    .portal-workflow {
        font-size: 0.6875rem;
    }

    .mobile-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .mobile-apps {
        padding: 48px 0;
    }
    
    .mobile-card {
        padding: 1.5rem;
    }
    
    .mobile-card-header {
        gap: 0.875rem;
    }
    
    .mobile-icon-container {
        width: 56px;
        height: 56px;
    }
    
    .mobile-icon {
        width: 24px;
        height: 24px;
    }
    
    .mobile-card h3 {
        font-size: 1.125rem;
    }
    
    .mobile-global-cta {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.5rem;
    }
    
    .mobile-global-cta .btn,
    .mobile-global-cta .btn-link {
        width: 100%;
    }
    
    .how-to-order {
        padding: 48px 0;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-card {
        width: 100%;
        padding: 1.5rem;
    }
    
    .step-badge {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }
    
    .step-number {
        font-size: 1.5rem;
    }
    
    .step-icon {
        width: 18px;
        height: 18px;
        bottom: 6px;
        right: 6px;
    }
    
    .step-content h3 {
        font-size: 1.125rem;
    }
    
    .step-connector {
        display: none !important;
    }
    
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 2rem;
        background: #E5E7EB;
    }
    
    .step-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .step-cta .btn,
    .step-cta .btn-link {
        width: 100%;
    }
}

/* ============================================
   Safe Area Support (Mobile)
   ============================================ */
@supports (padding: max(0px)) {
    .floating-whatsapp {
        bottom: max(2rem, env(safe-area-inset-bottom));
        left: max(2rem, env(safe-area-inset-left));
    }

    [dir="rtl"] .floating-whatsapp {
        left: auto;
        right: max(2rem, env(safe-area-inset-right));
    }
}

/* ============================================
   Section Motifs - Subtle Animated Decorations
   ============================================ */
section[data-motif] {
    position: relative;
    overflow: hidden;
}

section[data-motif] > .container,
section[data-motif] > *:not(.motif) {
    position: relative;
    z-index: 1;
}

.motif {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.motif--left {
    left: -50px;
}

.motif--right {
    right: -50px;
}

[dir="rtl"] .motif--left {
    left: auto;
    right: -50px;
}

[dir="rtl"] .motif--right {
    right: auto;
    left: -50px;
}

/* Wave Variant - Colored Circles */
section[data-motif="wave"] .motif--left::before,
section[data-motif="wave"] .motif--right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 40px 60px, rgba(11, 31, 59, 0.2) 8px, transparent 8px),
        radial-gradient(circle at 120px 140px, rgba(15, 106, 59, 0.18) 10px, transparent 10px),
        radial-gradient(circle at 80px 220px, rgba(200, 162, 74, 0.16) 7px, transparent 7px),
        radial-gradient(circle at 160px 100px, rgba(11, 31, 59, 0.15) 9px, transparent 9px);
    background-size: 200px 300px, 200px 300px, 200px 300px, 200px 300px;
    background-position: 0 0, 50px 50px, 100px 100px, 150px 150px;
    background-repeat: repeat;
    opacity: 0.6;
}

/* Threads Variant - Colored Circles */
section[data-motif="threads"] .motif--left::before,
section[data-motif="threads"] .motif--right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 60px 80px, rgba(15, 106, 59, 0.2) 9px, transparent 9px),
        radial-gradient(circle at 140px 180px, rgba(200, 162, 74, 0.18) 11px, transparent 11px),
        radial-gradient(circle at 100px 260px, rgba(11, 31, 59, 0.16) 8px, transparent 8px),
        radial-gradient(circle at 30px 150px, rgba(15, 106, 59, 0.15) 7px, transparent 7px);
    background-size: 200px 300px, 200px 300px, 200px 300px, 200px 300px;
    background-position: 0 0, 60px 60px, 120px 120px, 180px 180px;
    background-repeat: repeat;
    opacity: 0.6;
}

/* Dots Variant - Colored Circles */
section[data-motif="dots"] .motif--left::before,
section[data-motif="dots"] .motif--right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50px 70px, rgba(200, 162, 74, 0.22) 10px, transparent 10px),
        radial-gradient(circle at 130px 160px, rgba(11, 31, 59, 0.2) 8px, transparent 8px),
        radial-gradient(circle at 90px 240px, rgba(15, 106, 59, 0.18) 9px, transparent 9px),
        radial-gradient(circle at 170px 110px, rgba(200, 162, 74, 0.16) 7px, transparent 7px);
    background-size: 200px 300px, 200px 300px, 200px 300px, 200px 300px;
    background-position: 0 0, 40px 40px, 80px 80px, 120px 120px;
    background-repeat: repeat;
    opacity: 0.65;
}

/* Ribbons Variant - Colored Circles */
section[data-motif="ribbons"] .motif--left::before,
section[data-motif="ribbons"] .motif--right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 70px 90px, rgba(11, 31, 59, 0.2) 9px, transparent 9px),
        radial-gradient(circle at 150px 200px, rgba(15, 106, 59, 0.18) 11px, transparent 11px),
        radial-gradient(circle at 110px 280px, rgba(200, 162, 74, 0.16) 8px, transparent 8px),
        radial-gradient(circle at 40px 170px, rgba(11, 31, 59, 0.15) 7px, transparent 7px);
    background-size: 200px 300px, 200px 300px, 200px 300px, 200px 300px;
    background-position: 0 0, 55px 55px, 110px 110px, 165px 165px;
    background-repeat: repeat;
    opacity: 0.6;
}

/* Grid Soft Variant - Colored Circles */
section[data-motif="grid-soft"] .motif--left::before,
section[data-motif="grid-soft"] .motif--right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 45px 65px, rgba(15, 106, 59, 0.2) 8px, transparent 8px),
        radial-gradient(circle at 125px 155px, rgba(200, 162, 74, 0.18) 10px, transparent 10px),
        radial-gradient(circle at 85px 235px, rgba(11, 31, 59, 0.16) 9px, transparent 9px),
        radial-gradient(circle at 165px 125px, rgba(15, 106, 59, 0.15) 7px, transparent 7px);
    background-size: 200px 300px, 200px 300px, 200px 300px, 200px 300px;
    background-position: 0 0, 45px 45px, 90px 90px, 135px 135px;
    background-repeat: repeat;
    opacity: 0.6;
}

/* Animations - Circular Movement */
@keyframes motifFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) translateX(12px) rotate(2deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(10px) translateX(-10px) rotate(-1deg);
        opacity: 0.65;
    }
    75% {
        transform: translateY(-8px) translateX(8px) rotate(1deg);
        opacity: 0.68;
    }
}

@keyframes motifDrift {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateX(16px) translateY(-12px) rotate(-2deg);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-10px) translateY(8px) rotate(1deg);
        opacity: 0.65;
    }
    75% {
        transform: translateX(12px) translateY(-10px) rotate(-1deg);
        opacity: 0.68;
    }
}

@keyframes motifPulse {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.65;
    }
    33% {
        transform: translateY(-12px) translateX(10px) scale(1.05);
        opacity: 0.75;
    }
    66% {
        transform: translateY(8px) translateX(-8px) scale(0.95);
        opacity: 0.7;
    }
}

/* Apply animations to motifs - Faster speeds */
section[data-motif="wave"] .motif {
    animation: motifFloat 14s ease-in-out infinite;
}

section[data-motif="threads"] .motif {
    animation: motifDrift 16s ease-in-out infinite;
}

section[data-motif="dots"] .motif {
    animation: motifPulse 12s ease-in-out infinite;
}

section[data-motif="ribbons"] .motif {
    animation: motifFloat 13s ease-in-out infinite;
}

section[data-motif="grid-soft"] .motif {
    animation: motifDrift 15s ease-in-out infinite;
}

/* Reverse animation for right motifs */
section[data-motif] .motif--right {
    animation-direction: reverse;
    animation-delay: -7s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .motif {
        width: 150px;
    }
    
    .motif--left {
        left: -40px;
    }
    
    .motif--right {
        right: -40px;
    }
    
    [dir="rtl"] .motif--left {
        right: -40px;
    }
    
    [dir="rtl"] .motif--right {
        left: -40px;
    }
}

@media (max-width: 768px) {
    .motif {
        width: 100px;
        opacity: 0.10;
    }
    
    .motif--left {
        left: -30px;
    }
    
    .motif--right {
        right: -30px;
    }
    
    [dir="rtl"] .motif--left {
        right: -30px;
    }
    
    [dir="rtl"] .motif--right {
        left: -30px;
    }
}

