/* ==========================================================
   Nizar Massalha Services — single page static site
   No external dependencies (fonts, CDNs) — fully portable.
   ========================================================== */

:root {
  --bg: #07131f;
  --bg-alt: #0a1a29;
  --panel: #0e2236;
  --line: rgba(148, 197, 220, 0.16);
  --text: #e8f1f7;
  --muted: #93a8b8;
  --teal: #22d3c5;
  --blue: #2563eb;
  --grad: linear-gradient(135deg, #22d3c5 0%, #2563eb 100%);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  color: #04121c;
  background: var(--grad);
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 28px rgba(34, 211, 197, 0.25);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 34px rgba(37, 99, 235, 0.35); }
.btn-small { padding: 9px 20px; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); box-shadow: none; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 19, 31, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.brand-text { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.92rem; }
.brand-text b { color: var(--teal); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 9vw, 110px);
  background:
    linear-gradient(rgba(148, 197, 220, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(148, 197, 220, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; pointer-events: none; }
.hero-glow-a { width: 480px; height: 480px; background: #22d3c5; top: -160px; left: -120px; opacity: 0.28; }
.hero-glow-b { width: 460px; height: 460px; background: #2563eb; bottom: 20px; right: -180px; opacity: 0.3; }

.hero-inner { position: relative; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 8.2vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-line { display: block; }
.hero-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: 640px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.22rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 64px 0 0;
  padding: 0;
}
.hero-stats li { padding: 16px 0 0; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 1.05rem; }
.hero-stats span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -0.015em; }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 197, 0.5); box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 211, 197, 0.12);
  border: 1px solid rgba(34, 211, 197, 0.3);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { padding: 24px 22px; border-left: 2px solid var(--line); transition: border-color 0.25s; }
.step:hover { border-color: var(--teal); }
.step-num { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--teal); }
.step h3 { margin: 8px 0 6px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; margin: 0; padding: 26px; display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 211, 197, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3c5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 26px;
  border: 1px solid rgba(34, 211, 197, 0.35);
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(500px 220px at 0% 100%, rgba(34, 211, 197, 0.2), transparent 70%),
    var(--panel);
}
.contact-card h2 { margin-bottom: 10px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--text); font-size: 0.82rem; }
.footer-brand img { height: 32px; width: auto; border-radius: 5px; background: #fff; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: rgba(7, 19, 31, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; }
  .brand-text { font-size: 0.78rem; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 44px; }
}

@media (max-width: 560px) {
  .grid-4, .steps { grid-template-columns: 1fr; }
  .contact-actions, .contact-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
