/* ==========================================================================
   Core Audit (جوهر المراجعة) — site styles
   Palette derived from the official logo: deep navy + gold on light neutral.
   RTL-first, Arabic typography (Cairo / Tajawal).
   ========================================================================== */

:root {
    --navy-900: #14223f;
    --navy-800: #1b2a4a;
    --navy-700: #243b5e;
    --navy-600: #2f4a72;
    --gold-500: #b89150;
    --gold-400: #c9a86a;
    --gold-300: #ddc08c;
    --cream-100: #f7f4ee;
    --cream-50: #fbfaf6;
    --ink: #2a2f3a;
    --muted: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(20, 34, 63, .06);
    --shadow-md: 0 10px 30px rgba(20, 34, 63, .10);
    --shadow-lg: 0 20px 50px rgba(20, 34, 63, .16);
    --radius: 14px;
    --transition: .25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.8;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Cairo', 'Tajawal', sans-serif; font-weight: 700; color: var(--navy-800); }

a { color: var(--navy-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-500); }

.skip-link {
    position: absolute; top: 8px; right: 8px; z-index: 2000;
    background: var(--navy-800); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn { border-radius: 50px; font-weight: 600; padding: .6rem 1.6rem; transition: all var(--transition); }
.btn-lg { padding: .8rem 2.2rem; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900); border: none; box-shadow: 0 6px 18px rgba(184,145,80,.35);
}
.btn-gold:hover { color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(184,145,80,.5); }

.btn-navy { background: var(--navy-800); color: #fff; border: none; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

.btn-outline-light { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}
.navbar { padding-top: .5rem; padding-bottom: .5rem; }
.brand-logo { height: 54px; width: auto; object-fit: contain; }
.navbar-brand { padding: 0; }

.navbar-nav .nav-link {
    color: var(--navy-800); font-weight: 600; margin: 0 .35rem; position: relative; padding: .5rem .75rem;
}
.navbar-nav .nav-link::after {
    content: ''; position: absolute; bottom: .25rem; right: .75rem; left: .75rem; height: 2px;
    background: var(--gold-500); transform: scaleX(0); transform-origin: center; transition: transform var(--transition);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--gold-500); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }

.btn-cta { padding: .5rem 1.4rem; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
    color: #fff; padding: 5.5rem 0; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(201,168,106,.18), transparent 45%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-block; color: var(--gold-300); letter-spacing: 1px; font-weight: 600;
    margin-bottom: 1rem; border: 1px solid rgba(221,192,140,.4); padding: .25rem 1rem; border-radius: 50px;
}
.hero-title { color: #fff; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.4; margin-bottom: 1.2rem; }
.hero-lead { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; position: relative; z-index: 2; }
.hero-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
    padding: 1.8rem 1.2rem; text-align: center; backdrop-filter: blur(6px); transition: transform var(--transition);
}
.hero-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.hero-card i { font-size: 2.2rem; color: var(--gold-400); display: block; margin-bottom: .6rem; }
.hero-card span { color: #fff; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream-100); }
.section-navy { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 3rem; }
.section-eyebrow {
    display: inline-block; color: var(--gold-500); font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; font-size: .85rem; margin-bottom: .6rem;
}
.section-eyebrow.light { color: var(--gold-300); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); position: relative; margin-bottom: .8rem; }
.section-title.text-white { color: #fff; }
.section-head.text-center .section-title::after {
    content: ''; display: block; width: 64px; height: 3px; background: var(--gold-500);
    margin: .9rem auto 0; border-radius: 3px;
}
.section-subtitle { color: var(--muted); font-size: 1.05rem; }
.section-subtitle.light { color: rgba(255,255,255,.75); }

/* ---------- Service cards ---------- */
.service-card {
    background: #fff; border: 1px solid #eee; border-radius: var(--radius); padding: 2rem 1.6rem;
    box-shadow: var(--shadow-sm); transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold-500), var(--navy-700)); transform: scaleX(0);
    transform-origin: right; transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(27,42,74,.08), rgba(184,145,80,.14)); margin-bottom: 1.2rem;
}
.service-icon i { font-size: 1.8rem; color: var(--navy-700); }
.service-card:hover .service-icon i { color: var(--gold-500); }
.service-title { margin-bottom: .6rem; }
.service-desc { color: var(--muted); margin-bottom: 1rem; }
.service-link { font-weight: 600; color: var(--gold-500); }
.service-link i { transition: transform var(--transition); }
.service-link:hover i { transform: translateX(-4px); }

/* ---------- About ---------- */
.about-graphic {
    border-radius: var(--radius); display: grid; place-items: center; overflow: hidden;
    background: var(--cream-100); box-shadow: var(--shadow-md); padding: 1.5rem;
    border: 1px solid #ece7dd;
}
.about-graphic i { font-size: 6rem; color: var(--gold-400); }
.about-logo {
    max-width: 100%; width: 100%; height: auto; display: block; object-fit: contain;
    border-radius: calc(var(--radius) - 4px);
}
.about-text { color: #45505f; font-size: 1.05rem; margin-bottom: 1rem; }
.about-points { list-style: none; padding: 0; margin: 1.2rem 0; }
.about-points li { margin-bottom: .6rem; font-weight: 500; }
.about-points i { color: var(--gold-500); margin-left: .5rem; }

.commitment-box { text-align: center; }
.commitment-icon { font-size: 3rem; color: var(--gold-500); display: block; margin-bottom: 1rem; }

/* ---------- Principles ---------- */
.principle-card {
    background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm);
    border: 1px solid #f0efe9; transition: all var(--transition);
}
.principle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.principle-icon {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(184,145,80,.12); color: var(--gold-500); font-size: 1.5rem; margin-bottom: 1rem;
}
.principle-title { margin-bottom: .4rem; }
.principle-desc { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Process ---------- */
.process-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
    padding: 2rem 1.4rem; text-align: center; position: relative; transition: all var(--transition);
}
.process-card:hover { background: rgba(255,255,255,.1); transform: translateY(-6px); }
.process-number {
    position: absolute; top: -18px; inset-inline-start: 50%; transform: translateX(50%);
    width: 44px; height: 44px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900);
    font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.process-icon { font-size: 2.2rem; color: var(--gold-300); margin: 1rem 0 .8rem; }
.process-title { color: #fff; margin-bottom: .4rem; }
.process-desc { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); padding: 4rem 0; text-align: center;
}
.cta-heading { color: var(--navy-900); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .8rem; }
.cta-text { color: var(--navy-800); font-size: 1.1rem; max-width: 620px; margin: 0 auto 1.8rem; }
.cta-section .btn-gold { background: var(--navy-800); color: #fff; box-shadow: 0 8px 20px rgba(20,34,63,.3); }
.cta-section .btn-gold:hover { background: var(--navy-900); color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff;
    padding: 4rem 0 3.4rem; text-align: center;
}
.page-hero-title { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .5rem; }
.page-hero-sub { color: rgba(255,255,255,.8); font-size: 1.1rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-info {
    background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 2.2rem; height: 100%;
    box-shadow: var(--shadow-md);
}
.contact-info h2 { color: #fff; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-item-icon {
    width: 46px; height: 46px; border-radius: 12px; background: rgba(201,168,106,.2); color: var(--gold-300);
    display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item-label { display: block; color: rgba(255,255,255,.6); font-size: .85rem; }
.contact-item-value { color: #fff; font-weight: 600; }
.contact-item-value:hover { color: var(--gold-300); }
.contact-note { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 1.5rem; }
.contact-note i { color: var(--gold-300); }

.contact-form-wrap {
    background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}
.form-label { font-weight: 600; color: var(--navy-800); }
.form-control, .form-select { border-radius: 10px; padding: .7rem .9rem; border: 1px solid #d8dbe0; }
/* Honeypot anti-spam field — hidden from humans, still submitted by bots */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-control:focus, .form-select:focus { border-color: var(--gold-400); box-shadow: 0 0 0 .2rem rgba(184,145,80,.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; }
.footer-logo { height: 60px; width: auto; object-fit: contain; background: #fff; padding: 6px; border-radius: 10px; }
.footer-brand { color: #fff; margin-bottom: .2rem; }
.footer-sub { color: var(--gold-300); font-size: .9rem; margin-bottom: 1rem; }
.footer-desc { font-size: .95rem; }
.footer-heading { color: #fff; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.footer-contact i { color: var(--gold-400); }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: var(--gold-300); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1rem; }
.footer-bottom { text-align: center; font-size: .9rem; color: rgba(255,255,255,.55); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; bottom: 24px; inset-inline-start: 24px; width: 46px; height: 46px; border-radius: 50%;
    background: var(--navy-800); color: #fff; border: none; display: grid; place-items: center; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition); z-index: 1040;
    box-shadow: var(--shadow-md);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); color: var(--navy-900); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .navbar-nav { text-align: center; padding: 1rem 0; }
    .btn-cta { display: inline-block; margin-top: .5rem; }
    .hero { padding: 3.5rem 0; }
    .section-title.text-start { text-align: center !important; }
}
@media (max-width: 575.98px) {
    .hero-visual { grid-template-columns: 1fr 1fr; gap: .8rem; }
    .hero-card { padding: 1.2rem .8rem; }
    .brand-logo { height: 44px; }
    .hero-actions .btn { width: 100%; }
}
