/* ==========================================================================
   DAWOOD GROUP - LIGHT CORPORATE GATEWAY THEME
   Bright, Clean, Executive White Background Design
   ========================================================================== */

:root {
    --primary-red: #C8102E;
    --primary-red-hover: #A50C24;
    --primary-red-light: #FEE2E2;
    --primary-red-subtle: #FFF1F2;
    
    --pack-red: #D62828;
    --pack-red-hover: #B71C1C;
    --pack-light: #FEF2F2;
    --pack-border: #FECACA;
    --pack-glow: rgba(214, 40, 40, 0.15);
    
    --food-green: #2E7D32;
    --food-green-hover: #1B5E20;
    --food-light: #F0FDF4;
    --food-border: #BBF7D0;
    --food-glow: rgba(46, 125, 50, 0.15);

    --bg-main: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-alt: #F1F5F9;
    
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    --border-light: #E2E8F0;
    --border-subtle: #F1F5F9;

    --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -6px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html[lang="en"] body {
    font-family: var(--font-en);
}

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

/* Subtle Bright Ambient Background Patterns */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-sphere {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
}

.glow-left {
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, var(--pack-red) 0%, transparent 70%);
}

html[dir="ltr"] .glow-left {
    right: auto;
    left: -150px;
}

.glow-right {
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--food-green) 0%, transparent 70%);
}

html[dir="ltr"] .glow-right {
    left: auto;
    right: -150px;
}

/* Page Layout */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ==========================================================================
   HEADER (CLEAN WHITE)
   ========================================================================== */
.gateway-header {
    padding: 20px 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-name {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-name .highlight {
    color: var(--primary-red);
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    background: var(--bg-alt);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--bg-white);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-contact-pill {
    background: var(--primary-red);
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
    transition: var(--transition);
}

.btn-contact-pill:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35);
}

/* ==========================================================================
   MAIN HUB INTRO (BRIGHT)
   ========================================================================== */
.main-hub {
    flex: 1;
    padding: 50px 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hub-intro {
    max-width: 820px;
    margin: 0 auto 45px;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-red);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.hub-title {
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.gradient-text {
    display: block;
    color: var(--primary-red);
}

.hub-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   THE TWO GATEWAY CARDS (BRIGHT WHITE DESIGN)
   ========================================================================== */
.gateways-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.gateway-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
}

.gateway-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-pack:hover {
    border-color: var(--pack-border);
    box-shadow: 0 20px 45px var(--pack-glow);
}

.card-food:hover {
    border-color: var(--food-border);
    box-shadow: 0 20px 45px var(--food-glow);
}

/* Card Visual Header */
.card-visual-header {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gateway-card:hover .card-img {
    transform: scale(1.08);
}

.img-overlay {
    position: absolute;
    inset: 0;
}

.overlay-pack {
    background: linear-gradient(180deg, rgba(214, 40, 40, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.overlay-food {
    background: linear-gradient(180deg, rgba(46, 125, 50, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
}

/* Floating Brand Badge */
.brand-badge-float {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.pack-logo-wrapper,
.food-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline-end: 10px;
    border-inline-end: 1px solid var(--border-light);
}

.official-logo-img {
    height: 36px;
    width: auto;
    max-width: 95px;
    object-fit: contain;
    display: block;
}

html[dir="ltr"] .brand-badge-float {
    right: auto;
    left: 20px;
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
    position: relative;
}

.badge-pack .brand-icon-box {
    background: linear-gradient(135deg, #D62828 0%, #991B1B 100%);
    box-shadow: 0 4px 10px rgba(214, 40, 40, 0.3);
}

.box-food {
    background: linear-gradient(135deg, #2E7D32 0%, #15803D 100%);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.leaf-icon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.65rem;
    color: #BBF7D0;
}

.brand-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.brand-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Card Body (Bright White) */
.card-body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #FFFFFF;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: 12px;
}

.tag-pack {
    background: var(--pack-light);
    color: var(--pack-red);
    border: 1px solid var(--pack-border);
}

.tag-food {
    background: var(--food-light);
    color: var(--food-green);
    border: 1px solid var(--food-border);
}

.card-heading {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 26px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.features-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.card-pack .features-list i {
    color: var(--pack-red);
}

.card-food .features-list i {
    color: var(--food-green);
}

/* Card Action Button */
.card-action {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-portal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-portal-pack {
    background: linear-gradient(135deg, #D62828 0%, #B71C1C 100%);
    box-shadow: 0 4px 14px rgba(214, 40, 40, 0.3);
}

.btn-portal-pack:hover {
    background: linear-gradient(135deg, #EF4444 0%, #C8102E 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(214, 40, 40, 0.4);
}

.btn-portal-food {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}

.btn-portal-food:hover {
    background: linear-gradient(135deg, #38A169 0%, #2E7D32 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(46, 125, 50, 0.4);
}

.url-hint {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   VALUES RIBBON (BRIGHT)
   ========================================================================== */
.values-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    box-shadow: var(--shadow-sm);
}

.ribbon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

.ribbon-item i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* ==========================================================================
   FOOTER (CLEAN WHITE)
   ========================================================================== */
.gateway-footer {
    border-top: 1px solid var(--border-light);
    background: #FFFFFF;
    padding: 28px 0;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 8px;
}

html[dir="ltr"] .footer-logo span {
    margin-right: 0;
    margin-left: 8px;
}

.footer-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-address i {
    color: var(--primary-red);
}

.footer-contacts {
    display: flex;
    gap: 12px;
}

.contact-pill {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-pill:hover {
    background: #FFFFFF;
    color: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-sm);
}

.phone-number {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.developer-credit {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dev-link {
    color: var(--primary-red);
    font-weight: 700;
    margin-inline-start: 4px;
    transition: var(--transition);
}

.dev-link:hover {
    color: var(--primary-red-hover);
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .gateways-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }

    .values-ribbon {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hub-title {
        font-size: 2.2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

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

@media (max-width: 580px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .hub-title {
        font-size: 1.8rem;
    }

    .values-ribbon {
        grid-template-columns: 1fr;
    }

    .footer-contacts {
        flex-direction: column;
        width: 100%;
    }

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