/* ============================================================
   Influx — Service page stylesheet
   Reuses the exact design system from index.html
   ============================================================ */

@font-face {
  font-family: 'IBMPlexSansArabicLocal';
  src: url('/alfont_com_IBMPlexSansArabic-SemiBold.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy: #0D1B2A;
  --navy-mid: #0F1F30;
  --navy-card: #16263A;
  --navy-card-2: #1B2D43;
  --gold: #C9A84C;
  --gold-hover: #D8B95C;
  --white: #FFFFFF;
  --w70: rgba(255,255,255,0.70);
  --w50: rgba(255,255,255,0.50);
  --w40: rgba(255,255,255,0.38);
  --w12: rgba(255,255,255,0.12);
  --w08: rgba(255,255,255,0.08);
  --green: #34C759;
  --font-latin: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-ar: 'IBMPlexSansArabicLocal', 'IBM Plex Sans Arabic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-latin);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* LAYOUT */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--font-latin); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; transition: padding 0.3s; }
@media (min-width: 900px) { nav .wrap { padding-top: 18px; padding-bottom: 18px; } }
nav.scrolled { background: rgba(13,27,42,0.92); backdrop-filter: blur(14px); border-bottom-color: var(--w08); }
nav.scrolled .wrap { padding-top: 8px; padding-bottom: 8px; }
@media (min-width: 900px) { nav.scrolled .wrap { padding-top: 12px; padding-bottom: 12px; } }
.nav-logo img { height: 25px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: none; list-style: none; gap: 30px; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a { font-size: 14px; color: var(--w70); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  display: none; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 13px; padding: 11px 18px;
  border-radius: 100px; transition: background 0.2s, transform 0.2s;
}
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: var(--gold-hover); transform: translateY(-1px); }
.nav-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 10px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
@media (min-width: 900px) { .nav-hamburger { display: none; } }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy); padding: 96px 32px 40px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-size: 1.8rem; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--w08); letter-spacing: -0.02em; }
.mobile-menu .nav-cta { display: inline-flex; margin-top: 24px; font-size: 15px; padding: 16px 24px; align-self: flex-start; }

/* SECTIONS */
.sec { padding: 60px 0; }
@media (min-width: 768px) { .sec { padding: 100px 0; } }
.sec-mid { background: var(--navy-mid); }
.tag { display: inline-block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.sec-h { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.sec-p { font-size: 16px; color: var(--w70); margin-top: 16px; max-width: 620px; line-height: 1.75; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: 15px;
  padding: 16px 26px; border-radius: 100px; transition: background 0.2s, transform 0.2s; min-height: 54px;
}
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); font-weight: 500; font-size: 15px;
  padding: 16px 24px; border-radius: 100px; border: 1px solid var(--w12);
  transition: border-color 0.2s, background 0.2s; min-height: 54px;
}
.btn-ghost:hover { border-color: var(--w40); background: var(--w08); }
.wa-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* FOOTER */
footer { background: var(--navy-mid); border-top: 1px solid var(--w08); padding: 56px 0 32px; }
.foot-top { display: flex; flex-direction: column; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--w08); }
@media (min-width: 760px) { .foot-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.foot-logo img { height: 30px; margin-bottom: 14px; }
.foot-tag { font-size: 14px; color: var(--w50); max-width: 280px; line-height: 1.6; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--w40); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--w70); margin-bottom: 11px; transition: color 0.2s; }
.foot-col a:hover { color: var(--white); }
.foot-bot { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
@media (min-width: 600px) { .foot-bot { flex-direction: row; justify-content: space-between; align-items: center; } }
.foot-copy { font-size: 13px; color: var(--w40); }

/* ============================================================
   SERVICE PAGE SPECIFIC CLASSES
   ============================================================ */

/* Hero */
.sp-hero {
  padding: 120px 0 70px;
  position: relative;
}
@media (min-width: 768px) { .sp-hero { padding: 150px 0 90px; } }
.sp-hero-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--gold); margin-bottom: 20px;
  border: 1px solid var(--w12); padding: 7px 14px; border-radius: 100px;
}
.sp-hero-label::before { content:''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.sp-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.sp-hero h1 .alt { color: var(--gold); }
.sp-hero .sp-intro {
  font-size: 17px; color: var(--w70); max-width: 620px;
  line-height: 1.75; margin-bottom: 36px;
}
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Content sections */
.sp-section { padding: 60px 0; }
@media (min-width: 768px) { .sp-section { padding: 90px 0; } }
.sp-section-mid { background: var(--navy-mid); }

/* Process steps grid */
.sp-steps { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
@media (min-width: 768px) { .sp-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.sp-step { padding-top: 24px; border-top: 2px solid var(--gold); }
.sp-step-n { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 12px; }
.sp-step-t { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.sp-step-d { font-size: 14px; color: var(--w70); line-height: 1.7; }

/* Why cards */
.sp-why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
@media (min-width: 640px) { .sp-why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .sp-why-grid { grid-template-columns: repeat(3, 1fr); } }
.sp-why-card {
  background: var(--navy-card); border: 1px solid var(--w08);
  border-radius: 16px; padding: 26px 22px;
  transition: border-color 0.3s, transform 0.3s;
}
.sp-why-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-3px); }
.sp-why-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(201,168,76,0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.sp-why-ico svg { width: 22px; height: 22px; }
.sp-why-t { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.sp-why-d { font-size: 14px; color: var(--w70); line-height: 1.65; }

/* FAQ items */
.sp-faq { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-top: 1px solid var(--w08); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--w08); }
.faq-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.faq-item p { font-size: 15px; color: var(--w70); line-height: 1.75; }

/* CTA block */
.sp-cta {
  background: var(--navy-mid); border-top: 1px solid var(--w08);
  padding: 70px 0;
  text-align: center;
}
.sp-cta-inner { max-width: 660px; margin: 0 auto; }
.sp-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.sp-cta p { font-size: 16px; color: var(--w70); margin-bottom: 28px; line-height: 1.7; }
.sp-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.sp-cta-or { font-size: 13px; color: var(--w40); margin-top: 14px; }

/* Other services list */
.sp-other { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sp-other a {
  font-size: 14px; color: var(--w70); border: 1px solid var(--w12);
  padding: 9px 16px; border-radius: 100px; transition: color 0.2s, border-color 0.2s;
}
.sp-other a:hover { color: var(--gold); border-color: rgba(201,168,76,0.4); }

/* Breadcrumb */
.sp-breadcrumb {
  font-size: 13px; color: var(--w40);
  padding: 14px 0 0;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.sp-breadcrumb a { color: var(--w40); transition: color 0.2s; }
.sp-breadcrumb a:hover { color: var(--gold); }
.sp-breadcrumb span { color: var(--w70); }
