/* =====================================================================
   City2day.com — الهوية المشتركة (الهيدر، الفوتر، الأزرار، الصفحات الداخلية)
   ===================================================================== */
:root {
    --primary-color: #1E3C96;
    --secondary-color: #1EA5F0;
    --text-color: #16213D;
    --bg-color: #F5F8FD;

    --c2d-navy: #0F1F5C;
    --c2d-slate: #5D6B8A;
    --c2d-line: #DCE6F5;
    --c2d-tint: #EBF3FD;
    --c2d-white: #FFFFFF;

    --svc-hotels: #1EA5F0;
    --svc-checkin: #0E9488;
    --svc-shopping: #16A34A;
    --svc-accounting: #6A38C2;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 6px 18px rgba(15, 31, 92, .08);
    --shadow-md: 0 18px 40px rgba(15, 31, 92, .14);
    --nav-h: 68px;
    --gutter: clamp(16px, 4vw, 40px);
    --maxw: 1200px;
    --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.7;
    overflow-x: clip;
}

img, video { max-width: 100%; display: block; }

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

:focus-visible {
    outline: 3px solid rgba(30, 165, 240, .55);
    outline-offset: 2px;
    border-radius: 8px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -60px;
    z-index: 2000;
    background: var(--c2d-navy);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
}

.skip-link:focus { top: 12px; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- الهيدر ---------- */
.c2d-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(30, 60, 150, .08);
}

.c2d-nav .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.c2d-brand img { height: 28px; width: auto; }

.c2d-links {
    display: flex;
    gap: 4px;
    margin-inline-start: auto;
    list-style: none;
    padding: 0;
    margin-block: 0;
}

.c2d-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.c2d-links a:hover { background: var(--c2d-tint); color: var(--primary-color); }

.c2d-auth { display: flex; gap: 8px; }

.btn-c2d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 0;
    font-family: inherit;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn-c2d:hover { transform: translateY(-1px); }

.btn-primary-c2d { background: var(--primary-color); color: #fff; box-shadow: 0 8px 20px rgba(30, 60, 150, .25); }
.btn-primary-c2d:hover { background: var(--c2d-navy); color: #fff; }

.btn-ghost-c2d { background: var(--c2d-tint); color: var(--primary-color); }
.btn-ghost-c2d:hover { background: #dcebfb; }

.c2d-burger {
    display: none;
    margin-inline-start: auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--c2d-line);
    background: #fff;
    color: var(--c2d-navy);
    font-size: 1.4rem;
    cursor: pointer;
}

.c2d-drawer {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid var(--c2d-line);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter) 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}

.c2d-drawer.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }

.c2d-drawer a.link {
    display: block;
    padding: 12px 6px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid #eef2f8;
}

.c2d-drawer .c2d-auth { margin-top: 14px; }
.c2d-drawer .c2d-auth .btn-c2d { flex: 1; }

@media (max-width: 991.98px) {
    .c2d-nav .c2d-links, .c2d-nav .c2d-auth { display: none; }
    .c2d-burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- عناوين الأقسام ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: .3px;
}

.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--c2d-navy);
    margin: 10px 0 12px;
}

.section-lead { color: var(--c2d-slate); font-size: 1.05rem; max-width: 640px; margin: 0; }

/* ---------- كروت الخدمات ---------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 22px 22px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--c2d-line);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.svc-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--svc);
    transform: scaleX(.2);
    transform-origin: right;
    transition: transform .3s ease;
}

.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }

.svc-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--svc);
    background: color-mix(in srgb, var(--svc) 12%, #fff);
}

.svc-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--c2d-navy); margin: 4px 0 0; }
.svc-card p { margin: 0; color: var(--c2d-slate); font-size: .95rem; }
.svc-card .svc-domain { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--svc); direction: ltr; text-align: right; }

@media (max-width: 991.98px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- التطبيق ---------- */
.app-band {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--c2d-navy), var(--primary-color) 60%, #2350B8);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.app-band .section-title { color: #fff; }
.app-band .section-lead { color: rgba(255, 255, 255, .82); }
.app-band .kicker { color: #9EDBFF; }

.store-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    background: #fff;
    color: var(--c2d-navy);
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease;
}

.store-btn:hover { transform: translateY(-2px); }
.store-btn i { font-size: 1.5rem; }
.store-btn small { display: block; font-size: .72rem; font-weight: 600; color: var(--c2d-slate); line-height: 1.1; }

.app-band .app-shot {
    justify-self: center;
    width: min(240px, 60vw);
    aspect-ratio: 9 / 17;
    border-radius: 34px;
    border: 6px solid rgba(255, 255, 255, .9);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
    background: #0F1F5C url('../img/journey-poster.jpg') center / cover no-repeat;
}

@media (max-width: 767.98px) {
    .app-band { grid-template-columns: 1fr; text-align: center; }
    .app-band .section-lead { margin-inline: auto; }
    .store-row { justify-content: center; }
    .app-band .kicker::before { display: none; }
}

/* ---------- الفوتر ---------- */
.c2d-footer {
    background: var(--c2d-navy);
    color: rgba(255, 255, 255, .78);
    padding: 48px 0 28px;
    margin-top: 0;
}

.c2d-footer .cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.c2d-footer img { height: 28px; width: auto; margin-bottom: 12px; }
.c2d-footer h4 { color: #fff; font-size: 1rem; font-weight: 800; margin: 0 0 10px; }
.c2d-footer ul { list-style: none; padding: 0; margin: 0; }
.c2d-footer li { margin-bottom: 6px; }
.c2d-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.c2d-footer a:hover { color: #fff; }
.c2d-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: .85rem; }

@media (max-width: 767.98px) { .c2d-footer .cols { grid-template-columns: 1fr; } }

/* ---------- الصفحات الداخلية ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--c2d-navy), var(--primary-color));
    color: #fff;
    padding: clamp(40px, 7vw, 80px) 0;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 8px 0; }
.page-hero p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 640px; }

.card-c2d {
    background: #fff;
    border: 1px solid var(--c2d-line);
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-sm);
}

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list i { color: var(--secondary-color); font-size: 1.2rem; margin-top: 2px; }
.info-list b { display: block; color: var(--c2d-navy); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .svc-card, .btn-c2d, .store-btn { transition: none; }
}

/* ---------- صفحة عن الشركة ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.about-text { color: var(--c2d-slate); font-size: 1.05rem; line-height: 1.95; margin: 0 0 14px; }

.about-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.about-platforms a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--c2d-line);
    color: var(--c2d-navy);
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.about-platforms a i { color: var(--svc); }
.about-platforms a:hover { border-color: var(--svc); transform: translateY(-2px); }

.card-title { font-size: 1.2rem; font-weight: 800; color: var(--c2d-navy); margin: 0 0 18px; }

.cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: clamp(22px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--c2d-tint);
}

.cta-strip h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; color: var(--c2d-navy); margin: 0 0 6px; }
.cta-strip p { margin: 0; color: var(--c2d-slate); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 767.98px) {
    .about-grid { grid-template-columns: 1fr; }
}
