/* ============================================================
   STRATFLOW CONSULTING CMS - Premium Theme
   Palette: #0F172A / #1E40AF / #3B82F6 / #10B981 / #F8FAFC / #1E293B
   ============================================================ */

:root {
  --primary: #0F172A;
  --secondary: #1E40AF;
  --accent: #3B82F6;
  --success: #10B981;
  --bg: #F8FAFC;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --radius: 16px;
  --radius-lg: 24px;
  --gradient: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--primary); line-height: 1.25; }
a { color: var(--secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
section { position: relative; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-primary-dark { background: var(--primary); }
.bg-soft { background: #EEF2FF; }

/* ---------- Navbar ---------- */
.navbar-stratflow {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .7);
  padding: .9rem 0;
  transition: box-shadow .3s, padding .3s;
}
.navbar-stratflow.scrolled {
  box-shadow: var(--shadow-sm);
  padding: .6rem 0;
}
.navbar-brand {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--primary);
}
.navbar-brand .sub { display: block; font-size: .62rem; letter-spacing: .34em; color: var(--accent); font-weight: 600; margin-top: -3px; }
.navbar-stratflow .nav-link {
  font-weight: 600; color: var(--text); margin: 0 .35rem; font-size: .94rem; position: relative;
}
.navbar-stratflow .nav-link::after {
  content: ''; position: absolute; left: .6rem; right: .6rem; bottom: 4px; height: 2px;
  background: var(--gradient); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.navbar-stratflow .nav-link:hover::after,
.navbar-stratflow .nav-link.active::after { transform: scaleX(1); }
.navbar-stratflow .nav-link.active { color: var(--secondary); }

/* ---------- Buttons ---------- */
.btn-gradient {
  background: var(--gradient);
  color: #fff !important;
  border: none;
  padding: .8rem 1.7rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(59, 130, 246, .35);
  transition: transform .2s, box-shadow .2s;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(59, 130, 246, .45); }
.btn-outline-brand {
  background: transparent; color: var(--secondary); border: 2px solid var(--secondary);
  padding: .72rem 1.6rem; border-radius: 12px; font-weight: 600; transition: all .2s;
}
.btn-outline-brand:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.btn-success-brand { background: var(--success); color: #fff !important; border: none; padding: .8rem 1.7rem; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 20px rgba(16, 185, 129, .3); transition: transform .2s; }
.btn-success-brand:hover { transform: translateY(-2px); background: #0DA678; }
.btn-white { background: #fff; color: var(--secondary) !important; border: none; padding: .8rem 1.7rem; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-sm); transition: all .2s; }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero {
  padding: 8rem 0 6rem;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(59,130,246,.15), transparent 60%),
              radial-gradient(900px 400px at -10% 20%, rgba(16,185,129,.10), transparent 55%),
              var(--bg);
  overflow: hidden;
}
.hero .badge-pill {
  background: rgba(30, 64, 175, .08); color: var(--secondary); font-weight: 600;
  padding: .5rem 1.1rem; border-radius: 100px; display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(30, 64, 175, .15); font-size: .85rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 560px; }
.hero-dashboard {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.75));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
}
.glass-card { background: rgba(255,255,255,.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); }
.hero-float { position: absolute; border-radius: 14px; background: #fff; box-shadow: var(--shadow); padding: .7rem 1rem; font-size: .82rem; animation: float 5s ease-in-out infinite; }
.hero-float .bi { color: var(--accent); margin-right: .4rem; }
.hero-float.f1 { top: -18px; right: -8px; }
.hero-float.f2 { bottom: -14px; left: -18px; animation-delay: 2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cards ---------- */
.feature-card, .service-card, .plan-card, .post-card, .testimonial-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  height: 100%;
}
.feature-card:hover, .service-card:hover, .post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(59,130,246,.4);
}
.icon-box {
  width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient); color: #fff; font-size: 1.4rem; box-shadow: 0 8px 18px rgba(59,130,246,.3);
}
.icon-box.green { background: linear-gradient(135deg,#10B981,#34D399); box-shadow: 0 8px 18px rgba(16,185,129,.3); }
.icon-box.dark { background: linear-gradient(135deg,#0F172A,#1E3A8A); box-shadow: 0 8px 18px rgba(15,23,42,.3); }

/* ---------- Section headers ---------- */
.sec-tag { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sec-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin-top: .4rem; }
.sec-sub { color: var(--muted); max-width: 620px; }

/* ---------- Stats ---------- */
.stat-counter { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: .92rem; }

/* ---------- Service detail ---------- */
.service-hero { padding: 6rem 0 3.5rem; background: var(--gradient-dark); }
.service-hero h1 { color: #fff; }
.service-hero .lead { color: rgba(255,255,255,.8); }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .45rem 0 .45rem 1.9rem; position: relative; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: .45rem; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(16,185,129,.15); color: var(--success); font-weight: 700; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Pricing ---------- */
.plan-card { padding: 2.2rem 1.8rem; position: relative; }
.plan-card.popular { border: 2px solid var(--accent); box-shadow: 0 20px 50px rgba(59,130,246,.18); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  padding: .35rem .95rem; border-radius: 100px; text-transform: uppercase; white-space: nowrap;
}
.plan-price { font-size: 2.6rem; font-weight: 800; color: var(--primary); }
.plan-price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan-feature { padding: .4rem 0; color: var(--text); font-size: .95rem; }
.plan-feature .bi { margin-right: .55rem; }
.plan-feature.included .bi { color: var(--success); }
.plan-feature.excluded { color: #CBD5E1; }
.plan-feature.excluded .bi { color: #CBD5E1; }

/* ---------- Blog ---------- */
.post-card .card-img-top { border-radius: var(--radius) var(--radius) 0 0; object-fit: cover; height: 210px; width: 100%; }
.post-category { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.blog-content { font-size: 1.05rem; }
.blog-content h2 { margin: 1.8rem 0 1rem; font-size: 1.5rem; }
.blog-content h3 { margin: 1.5rem 0 .8rem; font-size: 1.25rem; }
.blog-content p { margin-bottom: 1.1rem; }
.blog-content img { border-radius: 12px; margin: 1rem 0; }
.blog-content blockquote { border-left: 4px solid var(--accent); background: #EEF2FF; padding: 1rem 1.4rem; border-radius: 0 12px 12px 0; margin: 1.4rem 0; }
.blog-content ul, .blog-content ol { margin: 0 0 1.2rem 1.4rem; }

/* ---------- Testimonials ---------- */
.testimonial-card { padding: 1.8rem; }
.testimonial-card .quote-mark { font-size: 2.6rem; color: rgba(59,130,246,.2); line-height: 1; }
.google-style { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 1.4rem; display: flex; gap: 1rem; }
.google-style .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--success)); }
.timeline-item { position: relative; padding-bottom: 2.4rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.2rem; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.timeline-item .year { font-weight: 800; color: var(--accent); font-size: 1.05rem; }

/* ---------- Team ---------- */
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card .team-avatar { height: 200px; background: var(--gradient-dark); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3.4rem; font-weight: 800; position: relative; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item { border: 1px solid var(--border); border-radius: 12px !important; margin-bottom: .8rem; overflow: hidden; background: #fff; }
.faq-accordion .accordion-button { font-weight: 600; padding: 1.1rem 1.4rem; background: #fff; color: var(--primary); }
.faq-accordion .accordion-button:not(.collapsed) { background: #EEF2FF; color: var(--secondary); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--border); }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; height: 100%; transition: transform .3s, box-shadow .3s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.form-control, .form-select {
  border-radius: 12px; border: 1px solid var(--border); padding: .75rem 1rem; font-size: .95rem;
  background: #fff;
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- WhatsApp & floating ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff !important; font-size: 1.8rem; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(37,211,102,.4); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.site-footer h6 { color: #fff; font-weight: 700; letter-spacing: .02em; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; margin-top: 3rem; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.animate-float { animation: float 5s ease-in-out infinite; }

/* ---------- Misc ---------- */
.page-hero { padding: 7.5rem 0 3.5rem; background: var(--gradient-dark); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.25), transparent 70%); }
.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,.8); position: relative; z-index: 1; }
.breadcrumb-strat .breadcrumb-item, .breadcrumb-strat .breadcrumb-item a { color: rgba(255,255,255,.7); }
.breadcrumb-strat .breadcrumb-item.active { color: #fff; }
.breadcrumb-strat .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.cta-banner { background: var(--gradient); border-radius: var(--radius-lg); color: #fff; padding: 3rem; position: relative; overflow: hidden; }
.cta-banner h3 { color: #fff; }
.chart-container { position: relative; width: 100%; }
.rating-stars .bi { color: #F59E0B; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero { padding: 6rem 0 4rem; }
  .hero-dashboard { margin-top: 2rem; }
  .navbar-stratflow .nav-link::after { display: none; }
}
@media (max-width: 575.98px) {
  .hero-float.f1 { right: 6px; }
  .hero-float.f2 { left: 6px; }
  .cta-banner { padding: 2rem; }
}

/* ============================================================
   STRATFLOW - Trilingual & enhancements
   ============================================================ */

/* ---------- Language switcher ---------- */
.lang-switcher .btn {
  border-radius: 10px;
  font-weight: 600;
  color: var(--secondary);
  border: 1px solid var(--border);
}
.lang-switcher .lang-code { letter-spacing: .05em; }
.lang-switcher .dropdown-menu { min-width: 10rem; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.lang-switcher .dropdown-item { font-weight: 500; border-radius: 8px; margin: .15rem .35rem; padding: .45rem .7rem; }
.lang-switcher .dropdown-item.active { background: #EEF2FF; color: var(--secondary); }
.lang-switcher .dropdown-item[lang="ar"] { font-family: 'Cairo', sans-serif; }

/* ---------- Arabic (RTL) ---------- */
body.rtl, html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', 'Segoe UI', system-ui, sans-serif;
}
html[dir="rtl"] .navbar-stratflow .nav-link::after {
  transform-origin: right;
}
html[dir="rtl"] .timeline { padding-left: 0; padding-right: 2.2rem; }
html[dir="rtl"] .timeline::before { left: auto; right: 9px; }
html[dir="rtl"] .timeline-item::before { left: auto; right: -2.2rem; }
html[dir="rtl"] .check-list li { padding: .45rem 1.9rem .45rem 0; }
html[dir="rtl"] .check-list li::before { left: auto; right: 0; }
html[dir="rtl"] .hero-float.f1 { right: auto; left: -8px; }
html[dir="rtl"] .hero-float.f2 { left: auto; right: -18px; }
html[dir="rtl"] .blog-content blockquote { border-left: none; border-right: 4px solid var(--accent); border-radius: 12px 0 0 12px; }
html[dir="rtl"] .footer-bottom .text-md-end { text-align: left !important; }
html[dir="rtl"] .back-to-top { right: 92px; left: auto; }

/* ---------- Team avatars ---------- */
.team-card .team-avatar img { object-fit: cover; width: 100%; height: 100%; transition: transform .4s; }
.team-card:hover .team-avatar img { transform: scale(1.05); }
.team-avatar .avatar-initial {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); color: #fff; font-size: 2rem; font-weight: 800;
  border: 2px solid rgba(255,255,255,.35);
}
.team-card .team-avatar {
  background: linear-gradient(150deg, #1E40AF 0%, #3B82F6 60%, #10B981 130%);
}

/* ---------- Digital marketing page ---------- */
.dm-hero {
  padding: 7.5rem 0 3.5rem;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
.dm-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 85% 10%, rgba(16,185,129,.25), transparent 60%),
    radial-gradient(600px 300px at 10% 90%, rgba(59,130,246,.35), transparent 60%);
  pointer-events: none;
}
.dm-hero h1 { color: #fff; }
.dm-hero p { color: rgba(255,255,255,.8); }
.dm-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(16,185,129,.16); color: #34D399;
  border: 1px solid rgba(16,185,129,.35);
  padding: .45rem 1rem; border-radius: 100px; font-weight: 600; font-size: .82rem;
}
.dm-pillar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; height: 100%; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.dm-pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(16,185,129,.45); }
.dm-pillar .icon-box { background: linear-gradient(135deg,#10B981,#34D399); box-shadow: 0 8px 18px rgba(16,185,129,.3); }
.dm-stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; height: 100%;
}
.dm-stat .num { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--secondary); }
.dm-steps .icon-box { width: 46px; height: 46px; font-size: 1.1rem; }
.dm-tools { display: flex; flex-wrap: wrap; gap: .6rem; }
.dm-tools .tool-tag {
  background: #EEF2FF; color: var(--secondary); border: 1px solid #C7D2FE;
  font-size: .82rem; font-weight: 600; padding: .4rem .9rem; border-radius: 100px;
}
html[dir="rtl"] .dm-hero::after { transform: scaleX(-1); }