/* ============================================================
   SOL MEDIA — 2026 PREMIUM REDESIGN LAYER
   Calm, minimal, whitespace-led. Loads AFTER each page's inline
   <style> so it reskins the existing markup without a rewrite.
   Inspiration: restrained editorial / venture aesthetic.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&family=Inter:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --paper:        #FBF9F5;   /* warm off-white page */
  --paper-2:      #F4F1EA;   /* soft panel */
  --paper-3:      #ECE7DC;   /* deeper panel / hairline fill */
  --ink:          #1A1916;   /* near-black text */
  --ink-soft:     #5E5B53;   /* secondary text */
  --ink-faint:    #8C887E;   /* tertiary */
  --line:         #E6E0D5;   /* hairline */
  --line-strong:  #D8D1C3;
  --accent:       #0F8B8D;   /* teal — used sparingly */
  --accent-deep:  #0A6F70;
  --accent-tint:  rgba(15,139,141,0.08);
  --font-display: 'Bricolage Grotesque','Inter',sans-serif;

  /* remap existing vars so legacy rules inherit the new palette */
  --white:        #FBF9F5;
  --charcoal:     #1A1916;
  --grey:         #5E5B53;
  --grey-light:   #F4F1EA;
  --border:       #E6E0D5;
  --teal:         #0F8B8D;
  --teal-dark:    #0A6F70;
  --teal-light:   #EFEBE2;
  --teal-mid:     #E2DCD0;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 1px 0 rgba(26,25,22,0.04);
  --shadow-lg:    0 18px 50px -28px rgba(26,25,22,0.22);
  --shadow-xl:    0 30px 70px -36px rgba(26,25,22,0.28);
}

/* ---------- Reset the heavy "2026" layer ---------- */
html, * { cursor: auto !important; }            /* kill custom cursor */
#sol-cd, #sol-cr, .sol-progress { display: none !important; }
#sol-pl { display: none !important; }           /* preloader off */
body::after { display: none !important; content: none !important; } /* noise overlay off */
.scrub-outer { display: none !important; }       /* scroll-scrub hero removed */
* { will-change: auto !important; }              /* drop forced layers */

/* calmer, single reveal motion */
.reveal { opacity: 0; transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1) !important; }
.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { background: var(--paper); color: var(--ink); font-family: 'Inter',sans-serif;
  line-height: 1.65; overflow-x: hidden; letter-spacing: -0.005em; }
html[dir="rtl"] body { font-family: 'Noto Sans Arabic',sans-serif; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
p  { color: var(--ink-soft); }
::selection { background: var(--accent); color: #fff; }

.container { max-width: 1120px; padding: 0 28px; }
section { padding: 120px 0; }
@media (max-width: 860px) { section { padding: 76px 0; } }
@media (max-width: 560px) { section { padding: 60px 0; } }

/* eyebrow labels — quiet, no pill */
.section-label, .section-kicker, .tag, .hero-kicker-text, .case-tag,
.pricing-tier, .footer-col-title {
  background: none !important; color: var(--accent) !important;
  font-weight: 600 !important; font-size: .74rem !important;
  letter-spacing: .14em !important; text-transform: uppercase;
  padding: 0 !important; border-radius: 0 !important;
}
html[dir="rtl"] .section-label, html[dir="rtl"] .hero-kicker-text { letter-spacing: 0 !important; }
.section-heading-center { max-width: 720px; margin: 0 auto 64px; }

/* ---------- Nav — floating bar (RTL-safe centering) ---------- */
nav { position: fixed; top: 14px; left: 0; right: 0; margin: 0 auto; transform: none;
  width: calc(100% - 28px); max-width: 1160px; height: 60px;
  padding: 0 10px 0 22px;
  background: rgba(251,249,245,0.82) !important;
  backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  border: 1px solid var(--line) !important; border-radius: 18px;
  box-shadow: 0 10px 34px -18px rgba(26,25,22,0.28); z-index: 999; }
nav.nav-video { background: rgba(251,249,245,0.82) !important;
  border: 1px solid var(--line) !important; }
nav.nav-video .nav-logo-media { color: var(--accent) !important; }
nav.nav-video .nav-links a, nav.nav-video .nav-drop-btn { color: var(--ink-soft) !important; }
nav.nav-video .nav-links a:hover { background: var(--paper-2) !important; color: var(--ink) !important; }
nav.nav-video .lang-toggle { background: transparent !important; border-color: var(--line-strong) !important; color: var(--ink-soft) !important; }
nav.nav-video .sol-status { background: var(--accent-tint) !important; border-color: rgba(15,139,141,.2) !important; color: var(--accent) !important; }
nav.nav-video .nav-login { border-color: var(--line-strong) !important; color: var(--ink-soft) !important; }

.nav-inner { gap: 20px; }
.nav-logo { flex-shrink: 0; margin-right: 8px; }
.nav-logo-img { height: 26px; }
.nav-logo-media { color: var(--accent); margin-left: 2px; }
.nav-links { margin: 0 auto; }
.nav-right { flex-shrink: 0; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--paper-2); }
.nav-drop-btn { font-size: .85rem; color: var(--ink-soft); }

.lang-toggle { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft);
  border-radius: 100px; font-weight: 600; }
.lang-toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* primary CTA — quiet ink pill, accent on hover */
.nav-cta { background: var(--ink); color: var(--paper); border-radius: 100px; font-weight: 600; }
.nav-cta:hover { background: var(--accent); }

.sol-status { background: var(--accent-tint); border-color: rgba(15,139,141,.2); color: var(--accent); }

/* nav hamburger — make sure it's always tappable on mobile */
.nav-hamburger { color: var(--ink) !important; flex-shrink: 0; }

/* MOBILE NAV: keep only logo + lang + hamburger in the bar (everything else lives in the panel) */
@media (max-width: 860px) {
  nav { top: 10px; width: calc(100% - 20px); height: 56px; padding: 0 8px 0 16px; border-radius: 14px; }
  .nav-right { gap: 8px; }
  .nav-login, .sol-status, .nav-cta { display: none !important; }
  .nav-hamburger { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; }
  .lang-toggle { padding: 6px 12px; }
  /* reposition the mobile panel + overlay to clear the floating bar */
  .nav-mobile-panel { top: 76px !important; left: 10px !important; right: 10px !important; width: auto !important;
    border-radius: 16px !important; max-height: calc(100vh - 92px); overflow-y: auto;
    border: 1px solid var(--line) !important; box-shadow: 0 18px 50px -24px rgba(26,25,22,.4) !important; }
  .nav-mobile-overlay { top: 0 !important; }
}
@media (max-width: 380px) {
  .nav-logo-media { display: none; } /* tiny screens: just the SOL mark + lang + menu */
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-submit, .mobile-cta-primary, .cta-band-btn {
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  border-radius: 100px; font-weight: 600; box-shadow: none;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn-primary:hover, .btn-submit:hover, .cta-band-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 100px; font-weight: 600; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); min-height: auto; padding-top: 72px; }
.hero-bg { background: radial-gradient(120% 90% at 85% -10%, rgba(15,139,141,.06) 0%, transparent 55%),
  radial-gradient(90% 70% at -10% 110%, rgba(212,160,90,.05) 0%, transparent 55%) !important; }
.hero-glow, .hero-glow-2 { display: none !important; }       /* drop the big blobs */
.hero-inner { padding: 120px 28px 100px; gap: 72px; }
@media (max-width: 920px) { .hero-inner { padding: 80px 28px 64px; gap: 44px; } }
.hero h1 { font-weight: 600; letter-spacing: -0.03em; margin-bottom: 26px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-kicker-line { background: var(--accent); }
.hero-sub { font-size: 1.14rem; color: var(--ink-soft); max-width: 540px; line-height: 1.75; }
.hero-trust-dot { background: var(--accent); }
.hero-main-image { box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.hero-float-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 16px; }
.float-stat { color: var(--accent); }

/* ---------- Generic section surfaces ---------- */
.section-divisions, .section-cases { background: var(--paper-2); }
#what-we-do { background: var(--paper) !important; border-bottom: 1px solid var(--line) !important; }
#what-we-do span[style] { background: var(--paper-2) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }

/* ---------- Cards (divisions / services / cases / testimonials) ---------- */
.division-card, .service-item, .testi-card, .case-card, .pricing-card, .pc, .plan-card, .mc, .msvc, .prob-card {
  background: var(--paper); border: 1px solid var(--line) !important; box-shadow: none !important;
  border-radius: var(--radius-lg);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.division-card:hover, .service-item:hover, .case-card:hover {
  border-color: var(--line-strong) !important; transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
}
.division-image::after { display: none !important; }   /* drop multiply tint flash */
.division-tag { background: var(--paper); border: 1px solid var(--line); color: var(--accent); }
.division-link, .case-metric-num, .case-tag, .float-stat { color: var(--accent); }

/* dark "growth"/"hospitality" cards → refined warm dark */
.division-card.growth, .division-card.hospitality {
  background: #15140F !important; border-color: rgba(255,255,255,.08) !important; color: #EDE9DF !important;
}
.division-card.growth:hover, .division-card.hospitality:hover {
  border-color: rgba(255,255,255,.18) !important; box-shadow: var(--shadow-xl) !important;
}
.division-card.growth .division-body, .division-card.hospitality .division-body { background: #15140F !important; border-top-color: rgba(255,255,255,.06) !important; }

/* ---------- Stats: airy light, not a teal slab ---------- */
.section-stats { background: var(--ink) !important; }
.section-stats .stat-num, .stat-num { color: var(--paper) !important; font-family: var(--font-display); font-weight: 600; }
.section-stats .stat-lbl, .stat-lbl { color: rgba(251,249,245,.6) !important; }
.stats-inner { gap: 1px; background: rgba(255,255,255,.08); }
.stat-block { background: var(--ink); }

/* ---------- Testimonials ---------- */
.testi-stars { color: var(--accent); }
.testi-text { font-style: normal; color: var(--ink-soft); }
.testi-avatar { background: var(--accent-tint); color: var(--accent); }

/* ---------- Contact: calm panel, not teal slab ---------- */
.section-contact { background: var(--paper-2) !important; }
.contact-headline h2 { color: var(--ink) !important; }
.contact-headline .section-label { background: none !important; color: var(--accent) !important; }
.contact-sub { color: var(--ink-soft) !important; }
.contact-info-item { color: var(--ink-soft) !important; }
.contact-info-item a { color: var(--ink) !important; }
.contact-info-icon { background: var(--accent-tint) !important; color: var(--accent); }
.contact-form-box { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-group input, .form-group select, .form-group textarea { background: var(--paper); border-color: var(--line-strong); border-radius: 10px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }

/* ---------- CTA band (replaces removed pricing) ---------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  padding: 72px 56px; text-align: center; max-width: 920px; margin: 0 auto; }
.cta-band h2 { color: var(--paper); margin-bottom: 16px; }
.cta-band p { color: rgba(251,249,245,.7); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-band-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--paper);
  color: var(--ink) !important; border-color: var(--paper); padding: 15px 32px; text-decoration: none; }
.cta-band-btn:hover { background: var(--accent); color: var(--paper) !important; border-color: var(--accent); }
.cta-band-note { display: block; margin-top: 18px; font-size: .82rem; color: rgba(251,249,245,.5); }
@media (max-width: 560px) { .cta-band { padding: 48px 26px; } }

/* ---------- Logo strip (real logos / clean wordmarks) ---------- */
.logo-strip { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.logo-strip-label { text-align: center; font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 32px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 18px 48px; align-items: center; justify-content: center; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-faint);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; opacity: .72;
  transition: opacity .25s, color .25s; }
.brand-mark:hover { opacity: 1; color: var(--ink); }
.brand-mark svg { height: 22px; width: auto; display: block; }
.brand-mark--client { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .98rem; }

/* tech partner marquee — calmer, slower, hairline chips */
.partners-track { animation-duration: 60s; gap: 12px; }
.partner-logo { background: var(--paper); border: 1px solid var(--line); box-shadow: none; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: 12px; white-space: nowrap;
  transition: color .25s, border-color .25s; }
.partner-logo:hover { border-color: var(--line-strong); color: var(--ink); box-shadow: none; }
.partner-logo svg { height: 17px; width: 17px; fill: currentColor; display: block; }
.partner-logo span { font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: inherit; }

/* ---------- Footer ---------- */
footer { background: #15140F; }
.footer-logo-media { color: var(--paper); }
.footer-contact-item a, .footer-bottom a { color: var(--accent); }

/* ---------- WhatsApp / mobile bar ---------- */
.whatsapp-fab { box-shadow: 0 8px 24px -8px rgba(37,211,102,.5); bottom: 86px; }
.mobile-cta-bar { background: var(--paper); border-top: 1px solid var(--line); }
.mobile-cta-primary { background: var(--ink); color: var(--paper); }

/* ---------- Mobile alignment fixes ---------- */
html, body { max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }
.hero-inner, .divisions-intro, .why-grid, .about-grid, .contact-grid { width: 100%; }

@media (max-width: 920px) {
  .hero-visual { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { flex: 1; justify-content: center; }
  .stat-block { padding: 32px 18px; }
  .stat-num { font-size: 2.2rem !important; }
  .contact-form-box { padding: 28px 22px; }
  .logo-row { gap: 16px 30px; }
  .cta-band h2 { font-size: 1.7rem; }
}
@media (max-width: 380px) {
  .container { padding: 0 18px; }
}

/* neutralise leftover heavy marquees/pulses if reduced motion not set but section hidden */
.sol-ticker { animation-duration: 48s; }

/* sol-growth "What is" section — stop metric cards from clipping at any width.
   Grid/flex children default to min-width:auto and refuse to shrink; the section's
   overflow:hidden then clips the right column. min-width:0 lets them shrink + wrap. */
.what-grid, .metric-stack, .mc-row { min-width: 0; }
.what-grid > *, .metric-stack > *, .mc-row > *, .mc { min-width: 0; }
.mc-quote, .mc-sub, .mc-lbl, .mc-val { overflow-wrap: anywhere; }
@media (max-width: 1024px) { .mc-row { grid-template-columns: 1fr; } }

/* ============================================================
   PHASE 2 — MOBILE HARDENING
   ============================================================ */
/* never allow horizontal scroll; keep media within bounds */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe, canvas { max-width: 100%; }

/* iOS zoom-on-focus fix: form fields must be >=16px on phones */
@media (max-width: 860px) {
  input, select, textarea,
  .form-group input, .form-group select, .form-group textarea {
    font-size: 16px !important;
  }
}

/* tap targets >= 44px on touch layouts */
@media (max-width: 860px) {
  .nav-mobile-links a, .nav-mobile-lang-btn,
  .btn-primary, .btn-ghost, .btn-submit, .nav-cta, .cta-band-btn,
  .mobile-cta-bar a, .lang-toggle, .nav-hamburger, .filter-pill, .tab-btn {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .nav-mobile-links a, .mobile-cta-bar a { display: flex; }
}

/* decorative metric/dashboard SVGs: contain, and de-emphasize on small screens */
@media (max-width: 560px) {
  .hero-float-card { padding: 10px 12px; }
  .hero-float-card .float-label { display: none; }   /* trim clutter on phones */
}

/* prevent layout shift: give bare content images a sensible ratio if unset */
.work-card, .hero-main-image, .why-image, .about-image, .division-image { contain: layout paint; }

/* ---------- content.html: kill the scroll-jacking showcase ----------
   The format showcase used a 400vh sticky scroll-scrub (the Chrome
   "scrolling issue"). Render it as a normal vertical stack instead. */
#showcaseSticky { position: static !important; height: auto !important; overflow: visible !important; }
#showcaseScroller { display: none !important; height: 0 !important; }
.showcase-dots { display: none !important; }
[data-scroll-showcase] { background: #14130F !important; padding: 40px 0 !important; }
.showcase-track { flex-direction: column !important; transform: none !important; transition: none !important; display: flex !important; }
.showcase-slide { min-width: 0 !important; width: auto !important; height: auto !important; padding: 56px 24px !important; }
.showcase-slide .slide-inner { grid-template-columns: 1fr 1fr; gap: 56px; }
.showcase-slide + .showcase-slide .slide-inner { border-top: 1px solid rgba(255,255,255,.08); padding-top: 56px; }
@media (max-width: 860px) { .showcase-slide .slide-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Work / portfolio grid (content.html + work page) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: 0;
  aspect-ratio: 4/5; display: block; background: var(--paper-3);
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1); }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.work-card:hover img { transform: scale(1.05); }
.work-card .wc-overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px;
  background: linear-gradient(to top, rgba(15,14,11,.82) 0%, rgba(15,14,11,.25) 45%, transparent 70%); }
.work-card .wc-kicker { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 5px; }
.work-card .wc-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #fff; line-height: 1.12; }
.work-card .wc-sub { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 3px; }
