/* ASCON public site — MSS 2026 */
:root {
    --navy: #1c2370;
    --navy-2: #232a82;
    --blue: #34a5dd;
    --amber: #f5a524;
    --ink: #121528;
    --muted: #5d6275;
    --line: #e6e8f0;
    --bg-soft: #f4f6fb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(18, 21, 40, .08);
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}
.lang-ar { --font-head: 'Tajawal', system-ui, sans-serif; --font-body: 'Tajawal', system-ui, sans-serif; }

body.site { font-family: var(--font-body); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.7; }
.lang-ar body, body.lang-ar { font-size: 17px; }
.site h1, .site h2, .site h3, .site h4, .site h5, .site h6 { font-family: var(--font-head); color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 { letter-spacing: 0; line-height: 1.4; }
.site a { color: var(--navy-2); text-decoration: none; }
.site p { color: var(--muted); }
.site img { max-width: 100%; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 12px; }
.lang-ar .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--amber); border-radius: 2px; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.lead-muted { font-size: 1.1rem; color: var(--muted); max-width: 680px; }

/* Buttons */
.btn-brand { background: var(--amber); color: var(--ink) !important; font-weight: 700; border: 0; padding: 12px 24px; border-radius: 10px; font-family: var(--font-head); }
.btn-brand:hover { background: #ffb53d; transform: translateY(-1px); }
.btn-navy { background: var(--navy-2); color: #fff !important; font-weight: 600; padding: 12px 24px; border-radius: 10px; border: 0; }
.btn-navy:hover { background: var(--navy); }
.btn-outline-brand { border: 1.5px solid var(--navy-2); color: var(--navy-2) !important; border-radius: 8px; font-weight: 600; }
.site .btn-lg { padding: 14px 28px; border-radius: 12px; font-weight: 700; }
.site .btn i { margin-inline-end: 6px; }

/* Top bar + header */
.topbar { background: var(--navy); color: #c9cdea; font-size: .85rem; padding: 8px 0; }
.topbar a { color: #fff !important; }
.topbar i { color: var(--blue); }
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(18, 21, 40, .08); }
.site-header .navbar { padding: 12px 0; }
.site-header .nav-link { font-family: var(--font-head); font-weight: 600; color: var(--ink) !important; padding: 8px 16px !important; position: relative; }
.site-header .nav-link.active, .site-header .nav-link:hover { color: var(--navy-2) !important; }
.site-header .nav-link.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--amber); border-radius: 2px; }
.navbar-toggler { border: 0; color: var(--navy-2); }
.navbar-toggler:focus { box-shadow: none; }
.hotline { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; }
.hotline i { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); color: var(--navy-2); display: grid; place-items: center; font-size: 1.2rem; }
.hotline small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.1; }
.hotline strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy-2); }

/* Hero */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14, 18, 64, .94) 0%, rgba(20, 26, 90, .78) 45%, rgba(20, 26, 90, .25) 100%); }
.lang-ar .hero::after { background: linear-gradient(260deg, rgba(14, 18, 64, .94) 0%, rgba(20, 26, 90, .78) 45%, rgba(20, 26, 90, .25) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; line-height: 1.08; margin-bottom: 22px; }
.lang-ar .hero h1 { line-height: 1.3; }
.hero h1 span { color: var(--amber); }
.hero p { color: #d6d9f2; font-size: 1.18rem; max-width: 600px; }
.hero .eyebrow { color: #9fd8f5; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-badges span { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: 8px 14px; border-radius: 30px; font-size: .9rem; color: #fff; }
.hero-badges i { color: var(--amber); margin-inline-end: 6px; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 110px 0 80px; color: #fff; background: var(--navy) center/cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14, 18, 64, .93), rgba(20, 26, 90, .65)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.page-hero p { color: #d6d9f2; max-width: 640px; font-size: 1.1rem; }
.crumbs { font-size: .9rem; color: #aeb3dc; margin-bottom: 10px; }
.crumbs a { color: #fff !important; }

/* Intro strip */
.intro-strip { margin-top: -70px; position: relative; z-index: 5; }
.intro-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; height: 100%; border-top: 4px solid var(--amber); }
.intro-card i { font-size: 1.9rem; color: var(--navy-2); }
.intro-card h5 { margin: 12px 0 6px; font-size: 1.08rem; }
.intro-card p { margin: 0; font-size: .95rem; }

/* About split */
.img-stack { position: relative; }
.img-stack img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 460px; object-fit: cover; }
.img-stack .since-badge { position: absolute; bottom: -26px; inset-inline-end: -10px; background: var(--navy-2); color: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); text-align: center; }
.since-badge small { display: block; color: #aeb3dc; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.since-badge strong { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--amber); }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--ink); }
.check-list i { color: var(--blue); font-size: 1.1rem; margin-top: 2px; }

/* Service cards */
.svc-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; color: inherit; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(18, 21, 40, .12); }
.svc-card .svc-img { position: relative; height: 210px; overflow: hidden; }
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-img img { transform: scale(1.07); }
.svc-card .svc-icon { position: absolute; bottom: -24px; inset-inline-start: 22px; width: 52px; height: 52px; border-radius: 12px; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--shadow); }
.svc-card .svc-body { padding: 36px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-card h5 { font-size: 1.1rem; margin-bottom: 8px; }
.svc-card p { font-size: .95rem; flex: 1; }
.svc-card .more { font-weight: 700; color: var(--navy-2); font-size: .92rem; }
.lang-ar .svc-card .more i { display: inline-block; transform: scaleX(-1); }

/* Dark band (why us / quote) */
.dark-band { background: var(--navy) url('/assets/images/web/band.jpg') center/cover; position: relative; color: #fff; }
.dark-band::before { content: ""; position: absolute; inset: 0; background: rgba(14, 18, 64, .9); }
.dark-band > .container { position: relative; z-index: 2; }
.dark-band h2, .dark-band h3, .dark-band h5 { color: #fff; }
.dark-band p { color: #c3c7e6; }
.why-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); height: 100%; }
.why-item i { font-size: 1.6rem; color: var(--amber); }
.why-item h5 { margin-bottom: 4px; font-size: 1.05rem; }
.why-item p { margin: 0; font-size: .95rem; }

/* Quote */
.gm-quote { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; position: relative; }
.gm-quote .bi-quote { font-size: 3.4rem; color: var(--amber); line-height: 1; }
.gm-quote blockquote { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--ink); font-weight: 600; line-height: 1.5; margin: 10px 0 24px; }
.gm-quote .who { display: flex; align-items: center; gap: 14px; }
.gm-quote .who img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; }
.gm-quote .who strong { display: block; font-family: var(--font-head); }
.gm-quote .who small { color: var(--muted); }

/* Projects */
.proj-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 300px; display: block; }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.proj-card:hover img { transform: scale(1.06); }
.proj-card .cap { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(0deg, rgba(10, 12, 40, .92), rgba(10, 12, 40, 0)); color: #fff; }
.proj-card .cap small { color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.lang-ar .proj-card .cap small { letter-spacing: 0; font-size: .85rem; }
.proj-card .cap h5 { color: #fff; margin: 4px 0 0; }

/* Values / timeline */
.value-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.value-card .num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--blue); }
.value-card h5 { margin: 6px 0; }
.timeline { position: relative; padding-inline-start: 30px; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; inset-inline-start: 7px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--amber); }
.tl-item .yr { font-family: var(--font-head); font-weight: 800; color: var(--navy-2); }
.tl-item p { margin: 2px 0 0; }

/* Service detail */
.svc-detail-img { border-radius: var(--radius); width: 100%; height: 420px; object-fit: cover; box-shadow: var(--shadow); }
.side-box { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.side-box li a.active, .side-box li a:hover { color: var(--navy-2); }
.cta-box { background: var(--navy-2); color: #fff; border-radius: var(--radius); padding: 28px; }
.cta-box h5 { color: #fff; }
.cta-box p { color: #c9cdea; }

/* Contact */
.contact-tile { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); height: 100%; }
.contact-tile i { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--bg-soft); color: var(--navy-2); display: grid; place-items: center; font-size: 1.3rem; }
.contact-tile h6 { margin-bottom: 4px; }
.contact-tile p, .contact-tile a { margin: 0; color: var(--muted); }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.form-card .form-control, .form-card .form-select { border-radius: 10px; padding: 12px 14px; border-color: var(--line); }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52, 165, 221, .15); }
.form-card label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
#alertBox { display: none; color: #fff; padding: 12px; border-radius: 10px; margin-bottom: 16px; }

/* CTA band + footer */
.cta-band { background: linear-gradient(110deg, var(--navy-2), #2e3aa8); color: #fff; padding: 54px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { color: #cfd3f2; }
.site-footer { background: #0d1030; color: #a9add0; padding: 70px 0 0; font-size: .95rem; }
.site-footer p { color: #a9add0; }
.site-footer h6 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: #d7daf3 !important; }
.site-footer a:hover { color: var(--amber) !important; }
.site-footer li { margin-bottom: 10px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 8px 12px; }
.slogan { font-style: italic; color: #fff !important; }
.contact-list li { display: flex; gap: 10px; }
.contact-list i { color: var(--blue); }
.social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 50px; padding: 22px 0; font-size: .85rem; }
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff !important; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); z-index: 1040; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RTL tweaks */
[dir=rtl] .text-lg-end { text-align: left !important; }
[dir=rtl] .bi-arrow-right::before { transform: scaleX(-1); display: inline-block; }

@media (max-width: 991px) {
    .section { padding: 70px 0; }
    .hero { min-height: 78vh; padding: 90px 0 120px; }
    .img-stack img { height: 320px; }
    .img-stack .since-badge { inset-inline-end: 10px; }
    .site-header .nav-link.active::after { display: none; }
}
@media (max-width: 575px) {
    .form-card, .gm-quote { padding: 24px; }
    .proj-card { height: 240px; }
}
.site .btn-outline-light { color: #fff !important; border-color: rgba(255,255,255,.7); }
.site .btn-outline-light:hover { background: #fff; color: var(--navy-2) !important; }
.site .btn-light { color: var(--navy-2) !important; }
