/* Khallet Janzour Design System */

:root {
    --primary: #2C5F7F;
    --primary-soft: #4A90B8;
    --accent: #B8D8E8;
    --dark: #1A3A4D;
    --bg: #F0F7FB;
    --bg-soft: #D4E8F3;
    --radius: 14px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Poppins', 'Tajawal', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    background: radial-gradient(circle at 10% 20%, rgba(44, 95, 127, 0.06), transparent 25%), radial-gradient(circle at 90% 10%, rgba(44, 95, 127, 0.05), transparent 30%), var(--bg);
    color: var(--dark);
    letter-spacing: 0.01em;
}

body[dir="rtl"] {
    font-family: 'Tajawal', 'Cairo', 'Poppins', sans-serif;
}

/* Navigation */
.navbar {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.navbar-toggler {
    border: 1px solid rgba(26, 58, 77, 0.2);
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: none;
    width: 1.4em;
    height: 1.4em;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 2px;
    background: var(--dark);
    border-radius: 999px;
    transition: transform 0.2s ease;
}

.navbar-toggler-icon::before {
    top: 6px;
}

.navbar-toggler-icon::after {
    bottom: 6px;
}

.navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-light {
    background-color: #fdf9f7 !important;
}

.muted-plate {
    background: linear-gradient(145deg, #fff, #f9f0ed);
    border: 1px solid rgba(26, 58, 77, 0.07);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    padding: 0.7rem 1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
    border-color: var(--primary-soft);
    background: rgba(44, 95, 127, 0.07);
}

.nav-link.active {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 700;
}

.navbar-collapse {
    border-radius: 12px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin-top: 0.75rem;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    }
}

/* Sections */
.section-padded {
    padding: 64px 0;
}

.section-muted {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-plate {
    background: linear-gradient(135deg, #fff, #f9f3f0);
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid rgba(26, 58, 77, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    padding: 32px;
}

.section-title {
    color: var(--dark);
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
}

/* Buttons */
.btn {
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1d1b1a);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #23526B, #1E4A5F);
    border-color: #23526B;
    box-shadow: 0 14px 32px rgba(44, 95, 127, 0.28);
}

.btn-outline-primary {
    color: var(--dark);
    border-color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #23526B);
    border-color: var(--primary);
}

.btn-light {
    background: #fff;
    color: var(--dark);
    border: 1px solid rgba(26, 58, 77, 0.12);
}

.btn-light:hover,
.btn-light:focus {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

/* Cards */
.card {
    border: 1px solid rgba(26, 58, 77, 0.06);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: #fff;
}

.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.09);
}

.badge {
    border-radius: 999px;
    padding: 0.45em 0.9em;
    background: var(--primary-soft);
    color: #fff;
    letter-spacing: 0.02em;
    font-weight: 600;
}

/* Hero / Carousel */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.25) 100%);
}

.carousel-item img {
    height: 70vh;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 50vh;
    }
}

/* Statistics */
.stat-card {
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff, #faf4f1);
    border: 1px solid rgba(26, 58, 77, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.counter {
    font-size: 2.75rem;
    color: var(--primary);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid rgba(26, 58, 77, 0.16);
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(44, 95, 127, 0.18);
}

/* Footer */
footer {
    background: #fff;
}

footer a:hover {
    color: var(--primary) !important;
}

/* Badges and tags */
.tag-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--primary-soft);
}

/* Tables */
table {
    border-radius: var(--radius);
    overflow: hidden;
}

thead {
    background: var(--bg-soft);
    color: var(--dark);
}

tbody tr:nth-child(odd) {
    background: #faf7f6;
}

tbody tr:hover {
    background: rgba(217, 189, 183, 0.3);
}

/* Floating elements */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    inset-inline-end: 30px;
    background: #25d366;
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #1da653;
    transform: translateY(-4px);
    color: white;
}


/* Cards overlays */
.card-img-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(44, 95, 127, 0.08);
    color: var(--dark);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(44, 95, 127, 0.12), rgba(44, 95, 127, 0.06));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Dropdown */
.dropdown-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgba(44, 95, 127, 0.08);
}

.dropdown-menu {
    border: 1px solid rgba(26, 58, 77, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Misc */
img[loading="lazy"] {
    transition: opacity 0.3s;
}

html {
    scroll-behavior: smooth;
}

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 3px solid rgba(44, 95, 127, 0.35);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
