/* ================================================================
   Abdul Mohsen Saud Al Raqib Company – custom styles
   (Tailwind utilities are in tailwind.css; this file holds the
   hand-written components, animations and RTL tweaks.)
   ================================================================ */

:root {
  --navy: #0B1A55;
  --navy-900: #061243;
  --navy-950: #030A26;
  --navy-light: #2C4A8C;
  --gold: #B8A06A;
  --gold-300: #DDD0A8;
  --brand: #2A6626;
  --brand-light: #4F8F47;
  --brand-dark: #1F451C;
  --accent: #2A6626;
  --grad-navy: linear-gradient(135deg, #0A1A52 0%, #061243 55%, #030A26 100%);
  --grad-green: linear-gradient(135deg, #4F8F47 0%, #2A6626 55%, #1F451C 100%);
  --cream: #F2F4EF;
  --header-h: 72px;
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { overflow-x: hidden; }
/* "clip" blocks sideways scrolling (incl. RTL) without breaking the sticky header */
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
html[dir="rtl"] body { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }
html[dir="rtl"] .tracking-wider, html[dir="rtl"] .tracking-tight { letter-spacing: 0; }
img { max-width: 100%; }

/* RTL arrow flipping (works together with Tailwind transform vars) */
html[dir="rtl"] .rtl-flip {
  --tw-scale-x: -1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* ---------- Header & navigation ---------- */
#siteHeader.is-scrolled { box-shadow: 0 8px 30px -12px rgba(15, 26, 61, .25); background: rgba(255, 255, 255, .92); }
.nav-link {
  position: relative; padding: .55rem .8rem; border-radius: .6rem;
  font-size: .9rem; font-weight: 600; color: var(--navy-900); transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--accent); background: rgba(42, 102, 38, .08); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after {
  content: ''; position: absolute; inset-inline: .8rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--accent);
}

/* ---------- Drawer ---------- */
.drawer { transform: translateX(100%); transition: transform .35s cubic-bezier(.22, 1, .36, 1); will-change: transform; visibility: hidden; }
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0) !important; visibility: visible; }
#drawerOverlay.is-open { opacity: 1; }
.drawer-link {
  display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-radius: .9rem;
  font-weight: 700; color: var(--navy-900); transition: background .2s;
}
.drawer-link:hover, .drawer-link:active { background: #F2F4EF; color: var(--accent); }
body.no-scroll { overflow: hidden; touch-action: none; }

/* ---------- Hero ---------- */
.hero-overlay { background: linear-gradient(100deg, rgba(10, 18, 48, .92) 0%, rgba(15, 26, 61, .78) 45%, rgba(15, 26, 61, .25) 100%); }
html[dir="rtl"] .hero-overlay { background: linear-gradient(260deg, rgba(10, 18, 48, .92) 0%, rgba(15, 26, 61, .78) 45%, rgba(15, 26, 61, .25) 100%); }
.hero-img { color: transparent; transform: scale(1.08); transition: transform 7s ease-out; }
.swiper-slide-active .hero-img { transform: scale(1); }
.hero-content > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.swiper-slide-active .hero-content > * { opacity: 1; transform: none; }
.swiper-slide-active .hero-content > *:nth-child(2) { transition-delay: .12s; }
.swiper-slide-active .hero-content > *:nth-child(3) { transition-delay: .24s; }
.swiper-slide-active .hero-content > *:nth-child(4) { transition-delay: .36s; }
.hero-nav {
  position: absolute; top: 50%; z-index: 10; display: none; height: 3rem; width: 3rem; margin-top: -1.5rem;
  align-items: center; justify-content: center; border-radius: 999px; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); transition: background .2s;
}
.hero-nav:hover { background: var(--accent); color: #fff; }
@media (min-width: 768px) { .hero-nav { display: inline-flex; } }
.hero-pagination { position: absolute; bottom: 1.5rem !important; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; gap: .5rem; }
.hero-pagination .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 !important; background: rgba(255, 255, 255, .5); opacity: 1; transition: width .3s, background .3s; border-radius: 999px; }
.hero-pagination .swiper-pagination-bullet-active { width: 32px; background: var(--accent); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 1rem; animation: marquee 40s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; padding: .7rem 1.2rem; border-radius: 999px;
  background: #fff; border: 1px solid rgba(27, 42, 92, .08); font-weight: 700; font-size: .9rem; color: var(--navy-900);
  box-shadow: 0 4px 14px -8px rgba(15, 26, 61, .2);
}
.marquee-item svg { width: 1.1rem; height: 1.1rem; color: var(--accent); }
.marquee-item.is-badge { background: var(--navy); color: #fff; border-color: var(--navy); }
.marquee-item.is-badge svg { color: var(--gold-300); }

/* ---------- About ---------- */
.tick { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: #E6F0E3; color: var(--brand); }
.stat { border-radius: 1rem; background: #fff; padding: .9rem .75rem; text-align: center; box-shadow: 0 14px 30px -14px rgba(15, 26, 61, .35); border-bottom: 3px solid var(--accent); }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-label { margin-top: .25rem; font-size: .72rem; font-weight: 600; color: #64748b; }
@media (max-width: 639px) { #about .reveal.relative { margin-bottom: 7.5rem; } .stat-num { font-size: 1.35rem; } }
@media (min-width: 640px) and (max-width: 1023px) { #about .reveal.relative { margin-bottom: 2rem; } }

.pattern-bg { background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px; }

/* ---------- Cards ---------- */
.role-card {
  position: relative; overflow: hidden; border-radius: 1.25rem; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1); transition: transform .3s, border-color .3s, background .3s;
}
.role-card:hover { transform: translateY(-4px); border-color: rgba(42, 102, 38, .55); background: rgba(255, 255, 255, .08); }
.role-card img { transition: transform .6s; }
.role-card:hover img { transform: scale(1.06); }

.mp-card {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; border-radius: 1rem; background: #fff;
  border: 1px solid rgba(27, 42, 92, .07); box-shadow: 0 6px 18px -12px rgba(15, 26, 61, .25); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mp-card:hover { transform: translateY(-3px); border-color: rgba(42, 102, 38, .6); box-shadow: 0 16px 30px -16px rgba(15, 26, 61, .35); }
.mp-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .8rem; background: #F2F4EF; color: var(--navy); }
.mp-card:hover .mp-icon { background: var(--accent); color: #fff; }
.mp-card.is-hidden { display: none; }
.mp-card.is-entering { animation: pop .35s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.filter-chip { border-color: rgba(27, 42, 92, .15); color: var(--navy-900); background: #fff; }
.filter-chip:hover { border-color: var(--accent); }
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.tabs-scroll { scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.ctab {
  display: inline-flex; flex-shrink: 0; align-items: center; gap: .55rem; scroll-snap-align: start; padding: .8rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem; color: var(--navy-900); background: #F2F4EF; border: 1px solid transparent; transition: all .25s;
}
.ctab svg { width: 1.15rem; height: 1.15rem; color: var(--accent); }
.ctab:hover { border-color: rgba(42, 102, 38, .6); }
.ctab.is-active { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(27, 42, 92, .7); }
.cpanel { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.process-card { position: relative; padding: 1.75rem 1.5rem; border-radius: 1.25rem; background: #fff; border: 1px solid rgba(27, 42, 92, .08); box-shadow: 0 10px 26px -18px rgba(15, 26, 61, .35); }
.process-num { position: absolute; top: 1rem; inset-inline-end: 1.25rem; font-size: 2.5rem; font-weight: 800; color: rgba(42, 102, 38, .22); line-height: 1; }

.project-card { overflow: hidden; border-radius: 1.25rem; background: #fff; box-shadow: 0 12px 30px -18px rgba(15, 26, 61, .4); transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -20px rgba(15, 26, 61, .45); }
.project-card img { transition: transform .6s; }
.project-card:hover img { transform: scale(1.05); }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.status-pill::before { content: ''; width: .45rem; height: .45rem; border-radius: 999px; background: currentColor; }
.status-completed { background: #E6F0E3; color: var(--brand); }
.status-ongoing { background: #FEF3C7; color: #B45309; }

.skeleton { background: linear-gradient(90deg, #e9edf5 25%, #f5f7fb 37%, #e9edf5 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Highlights slider */
.hl-swiper .swiper-slide { height: auto; width: 86%; }
@media (min-width: 640px) { .hl-swiper .swiper-slide { width: 46%; } }
@media (min-width: 1024px) { .hl-swiper .swiper-slide { width: 31.5%; } }
.hl-card { height: 100%; border-radius: 1.25rem; padding: 1.75rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.slider-btn { display: inline-flex; height: 2.9rem; width: 2.9rem; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: all .2s; }
.slider-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.slider-btn.swiper-button-disabled { opacity: .35; pointer-events: none; }
.hl-pagination .swiper-pagination-bullet { background: rgba(255, 255, 255, .45); opacity: 1; width: 9px; height: 9px; transition: width .3s; border-radius: 999px; }
.hl-pagination .swiper-pagination-bullet-active { background: var(--accent); width: 26px; }

/* FAQ */
.faq-item { border-radius: 1rem; border: 1px solid rgba(27, 42, 92, .1); background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq-item.is-open { border-color: rgba(42, 102, 38, .7); box-shadow: 0 14px 30px -20px rgba(15, 26, 61, .4); }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; text-align: start; font-weight: 700; color: var(--navy-900); }
.faq-q svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: var(--accent); transition: transform .3s; }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.25rem 1.2rem; color: #475569; line-height: 1.7; }

/* ---------- Forms ---------- */
.form-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .85rem .5rem; border-radius: 1rem;
  font-size: .78rem; font-weight: 700; color: #64748b; transition: all .25s; text-align: center; line-height: 1.2;
}
@media (min-width: 640px) { .form-tab { flex-direction: row; font-size: .92rem; gap: .55rem; } }
.form-tab:hover { color: var(--navy); }
.form-tab.is-active { background: #fff; color: var(--navy); box-shadow: 0 6px 18px -10px rgba(15, 26, 61, .35); }
.form-tab.is-active svg { color: var(--accent); }
.lead-form.is-entering { animation: fadeUp .4s ease both; }
.field.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.field-error { margin-top: .35rem; font-size: .78rem; font-weight: 600; color: #dc2626; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A5C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 1.1rem; background-position: right .9rem center; padding-inline-end: 2.5rem; }
html[dir="rtl"] select.field { background-position: left .9rem center; }
/* Honeypot anti-spam field: visually hidden without off-screen offsets (offsets break RTL layout) */
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.spinner { width: 1.1rem; height: 1.1rem; border-radius: 999px; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .spinner { display: inline-block !important; }
.is-loading .btn-icon { display: none; }

/* ---------- Footer ---------- */
.footer-h { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
html[dir="rtl"] .footer-h { letter-spacing: 0; }
.footer-link { transition: color .2s; text-align: start; }
.footer-link:hover { color: var(--accent); }

/* ---------- Floating buttons & chat ---------- */
.fab {
  display: inline-flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center; border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(10, 18, 48, .45); transition: transform .25s, box-shadow .25s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab-stack .fab { position: relative; height: 3.1rem; width: 3.1rem; }
.chat-fab { border: 2px solid var(--accent); }
.chat-fab::before { content: ''; position: absolute; inset: -2px; border-radius: 999px; border: 2px solid var(--accent); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
.chat-fab.is-open::before { animation: none; opacity: 0; }
.online-dot { position: absolute; top: .1rem; inset-inline-end: .1rem; width: .8rem; height: .8rem; border-radius: 999px; background: #22c55e; border: 2px solid #fff; }

.chat-window {
  inset-inline-end: 1rem; bottom: 5.5rem; width: calc(100vw - 2rem); max-width: 380px; height: min(600px, calc(100svh - 7.5rem));
  border-radius: 1.25rem; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97); transform-origin: bottom right;
  transition: opacity .25s, transform .3s cubic-bezier(.22, 1, .36, 1), visibility .25s;
}
html[dir="rtl"] .chat-window { transform-origin: bottom left; }
.chat-window.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 640px) { .chat-window { inset-inline-end: 1.5rem; bottom: 6.25rem; } }
@media (max-width: 479px) {
  .chat-window { inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; border-radius: 0; }
  body.chat-open .chat-fab, body.chat-open .fab-stack { display: none; }
}
body.chat-open .fab-stack { opacity: 0; pointer-events: none; }
.fab-stack, .chat-fab { transition: opacity .2s, transform .25s; }
/* Phones & tablets: keep floating buttons out of the way while the visitor fills in a form */
@media (max-width: 1023px) {
  body.is-typing .fab-stack, body.is-typing .chat-fab { opacity: 0; pointer-events: none; }
}
@media (max-width: 639px) {
  .fab-stack .fab[href^="tel:"] { display: none; }
  .fab-stack .fab, .chat-fab { height: 3.25rem; width: 3.25rem; }
}
.msg { max-width: 85%; padding: .7rem .95rem; border-radius: 1rem; font-size: .9rem; line-height: 1.5; animation: fadeUp .3s ease both; white-space: pre-line; }
.msg-bot { background: #fff; color: #1e293b; border: 1px solid #e2e8f0; border-end-start-radius: .3rem; }
.msg-user { margin-inline-start: auto; background: var(--navy); color: #fff; border-end-end-radius: .3rem; }
.typing { display: inline-flex; gap: .25rem; padding: .85rem 1rem; }
.typing span { width: .45rem; height: .45rem; border-radius: 999px; background: #94a3b8; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.quick-chip { border-radius: 999px; padding: .45rem .85rem; font-size: .8rem; font-weight: 700; color: var(--navy); background: #E6F0E3; border: 1px solid rgba(42, 102, 38, .45); transition: all .2s; }
.quick-chip:hover { background: var(--accent); color: #fff; }

/* ---------- Modal & toast ---------- */
.modal.is-open { display: flex; animation: fadeIn .25s ease both; }
.modal.is-open .modal-card { animation: modalIn .35s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.toast { opacity: 0; visibility: hidden; transform: translateY(-20px); transition: all .3s ease; background: var(--navy); }
.toast.is-visible { opacity: 1; visibility: visible; transform: none; }
.toast.is-error { background: #b91c1c; }
.toast.is-success { background: var(--brand); }

/* ---------- Scroll reveal ---------- */
.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
html.js-reveal .reveal { opacity: 0; transform: translateY(28px); }
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Inner pages ---------- */
.page-hero .hero-img { transform: none; opacity: .55; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: #cbd5e1; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--gold-300); }
.drawer-link.is-active { background: #E6F0E3; color: var(--accent); }

.timeline { position: relative; display: grid; gap: 1.25rem; max-width: 56rem; margin-inline: auto; }
.timeline::before { content: ''; position: absolute; top: .5rem; bottom: .5rem; inset-inline-start: 1.35rem; width: 2px; background: linear-gradient(var(--accent), rgba(42,102,38,.15)); }
.timeline li { position: relative; display: flex; gap: 1.25rem; align-items: flex-start; }
.timeline li > div { flex: 1; padding: 1.1rem 1.3rem; border-radius: 1rem; background: #fff; border: 1px solid rgba(27,42,92,.08); box-shadow: 0 8px 22px -16px rgba(15,26,61,.35); }
.timeline h3 { font-weight: 800; color: var(--navy-900); }
.timeline p { margin-top: .25rem; font-size: .9rem; line-height: 1.6; color: #475569; }
.timeline-dot { position: relative; z-index: 1; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--navy); color: var(--accent); font-weight: 800; box-shadow: 0 0 0 6px #fff; }
.bg-navy-50 .timeline-dot, section.bg-navy-50 .timeline-dot { box-shadow: 0 0 0 6px #F2F4EF; }

.contact-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; border-radius: 1.25rem; background: #fff; border: 1px solid rgba(27,42,92,.08); box-shadow: 0 18px 40px -22px rgba(15,26,61,.45); transition: transform .25s, border-color .25s; }
.contact-card:hover { transform: translateY(-4px); border-color: rgba(42,102,38,.7); }
@media (max-width: 639px) { .contact-card { padding: 1rem 1.15rem; gap: .15rem; } .contact-card .contact-icon { width: 2.5rem; height: 2.5rem; margin-bottom: .35rem; } }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: .9rem; margin-bottom: .6rem; }

/* ---------- Image fallback ---------- */
img.img-fallback { object-fit: cover; background: linear-gradient(135deg, #1B2A5C, #0F1A3D); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js-reveal .reveal { opacity: 1; transform: none; }
}


/* ================================================================
   Logo-based theme: navy + green bevel gradients, champagne-gold ornament
   ================================================================ */
body { background: #fff; }
.bg-navy-50 { background-color: var(--cream) !important; }
/* Dark sections use the logo's deep-navy bevel gradient */
section.bg-navy-900, .page-hero.bg-navy-900, footer.bg-navy-950 { background-image: var(--grad-navy); }
.bg-navy-950 { background-color: var(--navy-950); }
/* Green sections use the logo's green bevel gradient */
.from-brand-700.to-brand-500 { background-image: var(--grad-green) !important; }
/* Gold ornament line (like the divider inside the logo) */
.ornament-line, #siteHeader::after { background: linear-gradient(90deg, transparent, #B8A06A 20%, #DDD0A8 50%, #B8A06A 80%, transparent); }
#siteHeader { position: sticky; }
#siteHeader::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; opacity: .9; }
.h2::after { content: ''; display: block; width: 72px; height: 3px; margin-top: .9rem; border-radius: 3px; background: linear-gradient(90deg, #0B1A55 0 45%, #2A6626 45% 100%); }
.text-center .h2::after, .mx-auto.text-center .h2::after { margin-inline: auto; }
/* Icon tiles + ticks */
.tick { background: #E6F0E3; color: var(--brand); }
.mp-icon { background: #E3E7F1; color: var(--navy); }
.stat { border-bottom-color: var(--brand); }
.stat-num { background: linear-gradient(135deg, #2C4A8C, #061243); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline-dot { background: var(--grad-navy); color: #fff; }
.timeline::before { background: linear-gradient(var(--brand), rgba(42,102,38,.15)); }
.ctab.is-active, .filter-chip.is-active, .form-tab.is-active svg { }
.ctab.is-active, .filter-chip.is-active { background: var(--grad-navy); border-color: var(--navy); }
.ctab svg { color: var(--brand); }
.ctab.is-active svg { color: #9FD18F; }
.hero-overlay { background: linear-gradient(100deg, rgba(3,10,38,.94) 0%, rgba(6,18,67,.80) 45%, rgba(11,26,85,.30) 100%); }
html[dir="rtl"] .hero-overlay { background: linear-gradient(260deg, rgba(3,10,38,.94) 0%, rgba(6,18,67,.80) 45%, rgba(11,26,85,.30) 100%); }
.chat-fab { background: var(--grad-navy) !important; color: #fff !important; border-color: var(--brand); }
.chat-fab::before { border-color: var(--brand-light); }
#chatWindow > header { background: var(--grad-navy); }
.msg-user { background: var(--grad-navy); }
.quick-chip { background: #E6F0E3; color: var(--brand-dark); border-color: rgba(42,102,38,.35); }
.quick-chip:hover { background: var(--grad-green); color: #fff; }
.slider-btn:hover { background: var(--grad-green); border-color: var(--brand); color: #fff; }
.hero-nav:hover { background: var(--grad-green); color: #fff; }
.marquee-item svg { color: var(--brand); }
.marquee-item.is-badge { background: var(--grad-navy); }
.marquee-item.is-badge svg { color: #9FD18F; }
.status-completed { background: #E6F0E3; color: var(--brand); }
.footer-h { color: var(--gold); }
.footer-link:hover { color: #9FD18F; }
.toast { background: var(--grad-navy); }
.toast.is-success { background: var(--grad-green); }
.btn-gold .spinner, .btn-navy .spinner { color: #fff; }
::selection { background: rgba(42,102,38,.2); }

/* ---------- Packages ---------- */
.pkg-card { position: relative; display: flex; flex-direction: column; border-radius: 1.5rem; background: #fff; padding: 2rem 1.75rem; border: 1px solid rgba(11,26,85,.08); box-shadow: 0 14px 34px -22px rgba(6,18,67,.45); }
.pkg-featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgba(42,102,38,.55); }
@media (min-width: 1024px) { .pkg-featured { transform: translateY(-10px); } }
.pkg-badge { position: absolute; top: -0.85rem; inset-inline-start: 1.5rem; border-radius: 999px; padding: .3rem .9rem; font-size: .72rem; font-weight: 800; color: #fff; background: var(--grad-green); }
.pkg-name { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
html[dir="rtl"] .pkg-name { letter-spacing: 0; }
.pkg-title { margin-top: .4rem; font-size: 1.5rem; font-weight: 800; color: var(--navy-900); }
.pkg-desc { margin-top: .5rem; font-size: .9rem; color: #475569; }
.pkg-total { display: flex; align-items: baseline; gap: .5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed rgba(11,26,85,.15); font-size: .85rem; font-weight: 600; color: #64748b; }
.pkg-num { font-size: 2.5rem; font-weight: 800; line-height: 1; background: var(--grad-navy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pkg-list { margin-top: 1rem; display: grid; gap: .5rem; flex: 1; align-content: start; }
.pkg-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; border-radius: .7rem; background: var(--cream); font-size: .9rem; color: var(--navy-900); }
.pkg-list b { color: var(--brand); }

/* ---------- Calculator ---------- */
.calc-range { accent-color: var(--brand); height: 2rem; }
.calc-out { min-width: 3rem; padding: .35rem .6rem; border-radius: .7rem; text-align: center; font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--grad-navy); }
.calc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .3rem; border-radius: .9rem; background: var(--cream); }
.calc-seg label { position: relative; cursor: pointer; }
.calc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.calc-seg span { display: block; padding: .6rem .5rem; border-radius: .7rem; text-align: center; font-size: .88rem; font-weight: 700; color: #475569; transition: all .2s; }
.calc-seg input:checked + span { background: #fff; color: var(--navy-900); box-shadow: 0 6px 16px -10px rgba(6,18,67,.5); }
.calc-seg input:focus-visible + span { outline: 3px solid rgba(42,102,38,.35); }
.calc-check { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: .8rem; border: 1px solid rgba(11,26,85,.1); cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--navy-900); transition: border-color .2s, background .2s; }
.calc-check:has(input:checked) { border-color: var(--brand); background: #F2F7F0; }
.calc-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.calc-table th { padding: .7rem .8rem; text-align: start; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #64748b; border-bottom: 1px solid #e2e8f0; }
html[dir="rtl"] .calc-table th { letter-spacing: 0; }
.calc-table td { padding: .75rem .8rem; border-bottom: 1px solid #f1f5f9; color: var(--navy-900); }
.calc-table td b { font-size: 1.05rem; color: var(--brand); }
