/* ==========================================
   CSS Variables — Classic Medical Theme
   ========================================== */
:root {
    --primary:        #0A2342;   /* Navy Deep */
    --primary-hover:  #0D2E5A;
    --accent:         #0891B2;   /* Medical Teal */
    --accent-hover:   #0670A0;
    --accent-light:   #E0F2FE;   /* Teal light bg */
    --bg-page:        #F8FAFC;   /* صفحة */
    --bg-card:        #FFFFFF;
    --bg-section:     #F0F5FB;   /* خلفية أقسام */
    --text-heading:   #0A2342;
    --text-body:      #374151;
    --text-muted:     #6B7280;
    --border:         #DDE6F0;
    --shadow-sm:      0 1px 4px rgba(10,35,66,.07);
    --shadow-md:      0 4px 16px rgba(10,35,66,.10);
    --shadow-lg:      0 12px 36px rgba(10,35,66,.13);
    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      22px;

    /* ===== Bootstrap overrides — map bs-primary → our navy ===== */
    --bs-primary:             #0A2342;
    --bs-primary-rgb:         10, 35, 66;
    --bs-link-color:          #0891B2;
    --bs-link-hover-color:    #0670A0;
    --bs-link-color-rgb:      8, 145, 178;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
}

/* ===== داخل الخلفيات الداكنة — الـ headings ترث اللون الأبيض ===== */
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6,
.bg-brand-primary h1, .bg-brand-primary h2, .bg-brand-primary h3,
.bg-brand-primary h4, .bg-brand-primary h5, .bg-brand-primary h6,
.bg-brand-accent h1,  .bg-brand-accent h2,  .bg-brand-accent h3,
.bg-brand-accent h4,  .bg-brand-accent h5,  .bg-brand-accent h6,
.card-header.bg-brand-primary h1, .card-header.bg-brand-primary h2,
.card-header.bg-brand-primary h3, .card-header.bg-brand-primary h4,
.card-header.bg-brand-primary h5, .card-header.bg-brand-primary h6 {
    color: inherit;
}

/* ==========================================
   Navbar
   ========================================== */
.custom-navbar {
    background-color: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.custom-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* شريط علوي رفيع بلون الـ teal */
.custom-navbar::before {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to left, var(--accent), var(--primary));
}

.navbar-brand-logo {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 8px rgba(10,35,66,.25);
    flex-shrink: 0;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand-text .name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary);
}

.navbar-brand-text .title {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-body) !important;
    padding: 0.45rem 0.9rem !important;
    margin: 0 0.1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
    background-color: var(--accent-light);
}

.nav-link.active-link {
    color: var(--primary) !important;
    background-color: var(--accent-light);
    font-weight: 700;
}

.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn-brand-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(10,35,66,.20);
}

.btn-brand-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(10,35,66,.28);
}

.btn-brand-secondary {
    background-color: var(--accent);
    color: #fff;
    border: none;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(8,145,178,.22);
}

.btn-brand-secondary:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(8,145,178,.30);
}

.btn-outline-brand {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-outline-brand:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ==========================================
   Utility Classes
   ========================================== */
.bg-brand-primary  { background-color: var(--primary) !important; }
.bg-brand-accent   { background-color: var(--accent) !important; }
.bg-brand-light    { background-color: var(--bg-section) !important; }
.text-brand-primary { color: var(--primary) !important; }
.text-brand-accent  { color: var(--accent) !important; }
.border-brand       { border-color: var(--border) !important; }

/* ==========================================
   Cards
   ========================================== */
.card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover,
.transition-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

/* ==========================================
   Section Headers
   ========================================== */
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(to left, var(--accent), var(--primary));
    border-radius: 4px;
    margin: 0.75rem auto 0;
}

/* ==========================================
   Footer
   ========================================== */
.custom-footer {
    background-color: var(--primary);
    color: rgba(255,255,255,.75);
    border-top: 4px solid var(--accent);
}

.footer-link {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255,255,255,.12);
}

/* ==========================================
   Badges & Tags
   ========================================== */
.tag-day {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(8,145,178,.2);
}

/* ==========================================
   Accordion (FAQ)
   ========================================== */
.custom-accordion .accordion-button {
    font-weight: 700;
    color: var(--text-heading);
    background: #fff;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: var(--accent-light);
    color: var(--primary);
    box-shadow: none;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
}

.custom-accordion .accordion-body {
    background-color: #f9fcff;
    border-right: 4px solid var(--accent);
    color: var(--text-body);
}

/* ==========================================
   Scrollbar
   ========================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==========================================
   Hover - white text utility
   ========================================== */
.hover-white { transition: color 0.2s ease; }
.hover-white:hover { color: #fff !important; }

/* ==========================================
   z-index helper
   ========================================== */
.z-index-2 { z-index: 2; position: relative; }

/* ==========================================
   Trust / Stats Bar
   ========================================== */
.trust-bar {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.trust-item {
    text-align: center;
    color: #fff;
    flex: 1 1 140px;
}

.trust-item .trust-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: block;
}

.trust-item .trust-label {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: .85;
    margin-top: .3rem;
    display: block;
}

.trust-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,.2);
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .trust-divider { display: none; }
}

/* ==========================================
   Specialty Cards
   ========================================== */
.specialty-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    transition: all .25s ease;
    text-align: center;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    transition: background .25s ease;
}

.specialty-card:hover .specialty-icon {
    background: var(--accent);
}

/* ==========================================
   Testimonial Cards
   ========================================== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    position: relative;
    transition: all .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--accent-light);
    font-family: Georgia, serif;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    opacity: .6;
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
