/* Billing System — Public landing page (polished) */

:root {
    --cl-navy: #0b1a33;
    --cl-navy-mid: #122847;
    --cl-navy-soft: #1a3558;
    --cl-cyan: #3d8fd4;
    --cl-gold: #c9a227;
    --cl-gold-light: #e8c547;
    --cl-gold-soft: rgba(201, 162, 39, 0.14);
    --cl-text: #e8eef7;
    --cl-text-muted: #94a8c4;
    --cl-surface: rgba(255, 255, 255, 0.06);
    --cl-border: rgba(201, 162, 39, 0.22);
    --cl-radius: 1rem;
    --cl-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --cl-touch: 2.75rem;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body.cl-landing {
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    background: var(--cl-navy);
    color: var(--cl-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

.cl-container {
    width: min(1120px, calc(100% - 1.5rem));
    margin-inline: auto;
}

/* ── Header ── */
.cl-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 26, 51, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cl-border);
}

.cl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem 0;
    min-height: 3.75rem;
}

.cl-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.cl-logo {
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.cl-logo-sm {
    width: 2.75rem;
    height: 2.75rem;
}

.cl-logo-hero {
    width: min(9.5rem, 42vw);
    height: min(9.5rem, 42vw);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(61, 143, 212, 0.25), 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cl-logo-about {
    width: 7.5rem;
    height: 7.5rem;
}

.cl-brand-text {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
    min-width: 0;
}

.cl-brand-text small {
    display: block;
    font-weight: 400;
    font-size: .72rem;
    color: var(--cl-gold-light);
}

.cl-nav {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-shrink: 0;
}

.cl-nav-link {
    color: var(--cl-text-muted);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    padding: .35rem .5rem;
    transition: color .2s;
}

.cl-nav-link:hover {
    color: var(--cl-gold-light);
}

.cl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: var(--cl-touch);
    padding: .6rem 1.15rem;
    border-radius: .6rem;
    font-weight: 700;
    font-size: .925rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
    cursor: pointer;
    line-height: 1.2;
}

.cl-btn-lg {
    min-height: 3rem;
    padding: .75rem 1.35rem;
    font-size: 1rem;
}

.cl-btn-header {
    font-size: .85rem;
    padding: .55rem .95rem;
}

.cl-btn:active {
    transform: scale(.98);
}

.cl-btn-primary {
    background: linear-gradient(135deg, var(--cl-gold) 0%, #a88620 100%);
    color: #1a1200;
    border-color: var(--cl-gold-light);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.25);
}

.cl-btn-primary:hover {
    background: linear-gradient(135deg, var(--cl-gold-light) 0%, var(--cl-gold) 100%);
    color: #1a1200;
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

/* ── Hero ── */
.cl-hero {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 3rem;
}

.cl-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 75% 15%, rgba(61, 143, 212, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 20% 85%, rgba(201, 162, 39, 0.1) 0%, transparent 42%),
        linear-gradient(180deg, var(--cl-navy-mid) 0%, var(--cl-navy) 100%);
    z-index: 0;
}

.cl-hero-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 18% 28%, rgba(255,255,255,.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 62% 68%, rgba(255,255,255,.28) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 82% 18%, rgba(255,255,255,.32) 0%, transparent 100%),
        radial-gradient(1px 1px at 38% 88%, rgba(255,255,255,.22) 0%, transparent 100%);
    opacity: .55;
}

.cl-hero-glow {
    position: absolute;
    width: min(420px, 80vw);
    height: min(420px, 80vw);
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(61, 143, 212, 0.12) 0%, transparent 68%);
}

.cl-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.cl-hero-content {
    text-align: center;
}

.cl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border-radius: 2rem;
    background: var(--cl-gold-soft);
    border: 1px solid var(--cl-border);
    color: var(--cl-gold-light);
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cl-hero h1 {
    font-size: clamp(1.65rem, 5vw, 2.55rem);
    font-weight: 800;
    line-height: 1.28;
    margin: 0 0 .65rem;
    color: #fff;
    word-wrap: break-word;
}

.cl-hero-sub {
    font-size: clamp(.95rem, 2.8vw, 1.15rem);
    color: var(--cl-gold-light);
    font-weight: 600;
    margin: 0 0 .85rem;
}

.cl-hero-desc {
    color: var(--cl-text-muted);
    font-size: clamp(.925rem, 2.5vw, 1.05rem);
    max-width: 34rem;
    margin: 0 auto 1.5rem;
}

.cl-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.cl-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5rem 0;
}

.cl-hero-logo-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(17rem, 72vw);
    height: min(17rem, 72vw);
}

.cl-hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(61, 143, 212, 0.25);
}

.cl-hero-ring-1 {
    inset: 0;
    border-color: rgba(201, 162, 39, 0.2);
}

.cl-hero-ring-2 {
    inset: 10%;
    border-color: rgba(61, 143, 212, 0.3);
}

.cl-hero-ring-3 {
    inset: 22%;
    border-color: rgba(201, 162, 39, 0.15);
    background: radial-gradient(circle, rgba(26, 53, 88, 0.5) 0%, transparent 70%);
}

@media (min-width: 768px) {
    .cl-hero {
        padding: 3.5rem 0 4.5rem;
    }

    .cl-hero-grid {
        grid-template-columns: 1.15fr .85fr;
        gap: 2.5rem;
    }

    .cl-hero-content {
        text-align: right;
    }

    .cl-hero-desc {
        margin-inline: 0 auto 1.5rem 0;
    }

    .cl-hero-actions {
        justify-content: flex-start;
    }

    .cl-hero-glow {
        left: auto;
        right: 10%;
        top: 50%;
    }
}

@media (min-width: 992px) {
    .cl-btn-header {
        font-size: .925rem;
        padding: .6rem 1.15rem;
    }
}

/* ── Sections ── */
.cl-section {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}

.cl-section-alt {
    background: rgba(0, 0, 0, 0.16);
}

.cl-section-title {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.cl-section-title h2 {
    font-size: clamp(1.25rem, 3.5vw, 1.8rem);
    font-weight: 800;
    margin: 0 0 .45rem;
    color: #fff;
    line-height: 1.35;
}

.cl-section-title p {
    margin: 0;
    color: var(--cl-text-muted);
    font-size: .925rem;
}

.cl-section-title .cl-gold-line {
    width: 48px;
    height: 3px;
    background: var(--cl-gold);
    border-radius: 2px;
    margin: .75rem auto 0;
}

/* ── Services ── */
.cl-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
}

.cl-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 7.5rem;
    background: var(--cl-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--cl-radius);
    padding: 1.25rem 1rem;
    transition: border-color .2s, transform .2s;
}

.cl-service-card:hover {
    border-color: var(--cl-border);
    transform: translateY(-2px);
}

.cl-service-card-featured {
    border-color: var(--cl-border);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.1) 0%, var(--cl-surface) 100%);
}

.cl-service-icon {
    font-size: 1.75rem;
    margin-bottom: .65rem;
    line-height: 1;
}

.cl-service-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.5;
    max-width: 14rem;
}

@media (min-width: 576px) {
    .cl-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* البطاقة الخامسة في المنتصف */
    .cl-service-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: calc(50% - .5rem);
        justify-self: center;
    }
}

@media (min-width: 768px) {
    .cl-services {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }

    .cl-service-card {
        grid-column: span 2;
        min-height: 8rem;
    }

    /* 3 في الأعلى + 2 في المنتصف */
    .cl-service-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .cl-service-card:nth-child(5) {
        grid-column: 4 / span 2;
        max-width: none;
        justify-self: stretch;
    }
}

/* ── Frequencies ── */
.cl-freq-note {
    text-align: center;
    color: var(--cl-gold-light);
    font-weight: 600;
    font-size: .925rem;
    margin-top: 1.15rem;
}

.cl-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--cl-radius);
    border: 1px solid var(--cl-border);
    background: var(--cl-surface);
    max-width: 100%;
}

.cl-freq-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: .875rem;
}

.cl-freq-table thead {
    background: rgba(201, 162, 39, 0.12);
}

.cl-freq-table th,
.cl-freq-table td {
    padding: .75rem .85rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cl-freq-table th {
    color: var(--cl-gold-light);
    font-weight: 700;
    white-space: nowrap;
    font-size: .8rem;
}

.cl-freq-location {
    text-align: right !important;
    font-weight: 600;
    color: #fff;
    min-width: 9rem;
    line-height: 1.4;
}

.cl-freq-table tbody tr:last-child td {
    border-bottom: none;
}

.cl-freq-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cl-freq-val {
    font-family: ui-monospace, 'Courier New', monospace;
    font-weight: 600;
    color: #fff;
    direction: ltr;
    display: inline-block;
}

.cl-freq-cards {
    display: none;
}

.cl-freq-inline {
    margin: 0;
    font-family: ui-monospace, 'Courier New', monospace;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    letter-spacing: .02em;
}

@media (max-width: 767px) {
    .cl-table-wrap {
        display: none;
    }

    .cl-freq-cards {
        display: flex;
        flex-direction: column;
        gap: .65rem;
    }

    .cl-freq-card {
        background: var(--cl-surface);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--cl-radius);
        padding: .9rem 1rem;
    }

    .cl-freq-card h3 {
        font-size: .9rem;
        font-weight: 700;
        margin: 0 0 .5rem;
        color: var(--cl-gold-light);
        line-height: 1.4;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .cl-table-wrap {
        display: block;
    }

    .cl-freq-cards {
        display: none;
    }

    .cl-freq-table {
        min-width: 100%;
        font-size: .8rem;
    }

    .cl-freq-table th,
    .cl-freq-table td {
        padding: .65rem .5rem;
    }
}

/* ── Portal CTA ── */
.cl-portal-cta {
    background: linear-gradient(135deg, var(--cl-navy-soft) 0%, var(--cl-navy-mid) 100%);
    border: 1px solid var(--cl-border);
    border-radius: calc(var(--cl-radius) + .25rem);
    padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    box-shadow: var(--cl-shadow);
}

.cl-portal-icon {
    font-size: 2rem;
    color: var(--cl-gold-light);
    margin-bottom: .65rem;
}

.cl-portal-cta h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    font-weight: 800;
    margin: 0 0 .65rem;
    color: #fff;
}

.cl-portal-cta p {
    color: var(--cl-text-muted);
    max-width: 32rem;
    margin: 0 auto 1.35rem;
    font-size: .925rem;
    line-height: 1.65;
}

/* ── Contact ── */
.cl-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    max-width: 42rem;
    margin: 0 auto;
}

.cl-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1.15rem 1rem;
    background: var(--cl-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--cl-radius);
    color: inherit;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cl-contact-card:hover {
    border-color: var(--cl-border);
    transform: translateY(-2px);
    box-shadow: var(--cl-shadow);
}

.cl-contact-icon {
    font-size: 1.35rem;
    color: var(--cl-gold-light);
    line-height: 1;
}

.cl-contact-label {
    font-size: .8rem;
    color: var(--cl-text-muted);
    font-weight: 500;
}

.cl-contact-number {
    font-size: clamp(1.05rem, 3vw, 1.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: .03em;
    font-family: ui-monospace, 'Courier New', monospace;
    text-decoration: none;
    transition: color .2s ease;
}

.cl-contact-number:hover {
    color: var(--cl-gold-light);
}

.cl-contact-wa {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .25rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #6ee7a0;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.cl-contact-wa:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.55);
    color: #9ef0bc;
}

.cl-contact-social {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.cl-contact-fb {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.12);
    border: 1px solid rgba(24, 119, 242, 0.35);
    color: #7eb8ff;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.cl-contact-fb:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.55);
    color: #a8d0ff;
}

@media (min-width: 576px) {
    .cl-contact-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        gap: 1rem;
    }
}

/* ── About ── */
.cl-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
}

.cl-about-logo {
    text-align: center;
}

.cl-about-logo img {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
}

.cl-about-text h2 {
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 800;
    margin: 0 0 .65rem;
    color: #fff;
    text-align: center;
}

.cl-about-text p {
    margin: 0;
    color: var(--cl-text-muted);
    font-size: .925rem;
    line-height: 1.7;
    text-align: center;
}

@media (min-width: 768px) {
    .cl-about {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }

    .cl-about-text h2,
    .cl-about-text p {
        text-align: right;
    }
}

/* ── Footer ── */
.cl-footer {
    border-top: 1px solid var(--cl-border);
    padding: 1.75rem 0 2rem;
    text-align: center;
    font-size: .875rem;
    color: var(--cl-text-muted);
}

.cl-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-bottom: .85rem;
}

.cl-footer-brand strong {
    display: block;
    color: #fff;
    font-size: .975rem;
}

.cl-footer-brand span {
    display: block;
    font-size: .825rem;
}

.cl-footer a {
    color: var(--cl-gold-light);
    text-decoration: none;
    font-weight: 600;
}

.cl-footer a:hover {
    text-decoration: underline;
}

.cl-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    margin-bottom: .65rem;
}

.cl-footer-contact {
    font-size: .8rem;
    color: var(--cl-text-muted);
}

.cl-footer-contact-sep {
    margin: 0 .35rem;
    opacity: .6;
}

.cl-footer-copy {
    margin: 0;
    font-size: .75rem;
    opacity: .75;
}

/* ── Mobile header (375 / 390) ── */
@media (max-width: 575px) {
    .cl-header-inner {
        flex-wrap: wrap;
    }

    .cl-nav {
        width: 100%;
    }

    .cl-btn-header {
        width: 100%;
        justify-content: center;
    }

    .cl-hero-logo-stage {
        width: min(14rem, 68vw);
        height: min(14rem, 68vw);
    }
}
