/* ============================================================
   EJJ Solutions — ejj.co  ·  2026 refresh
   ============================================================ */
:root {
  --navy: #0b1424;
  --navy-2: #101d33;
  --blue: #2d7dd2;
  --blue-bright: #4da3ff;
  --blue-pale: #eaf3fc;
  --ink: #16202e;
  --body: #45556a;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 20, 36, .08);
  --shadow-lg: 0 24px 60px rgba(11, 20, 36, .14);
  --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); color: var(--body); background: var(--bg); line-height: 1.65; font-size: 16.5px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }

.container { width: min(1180px, 92%); margin: 0 auto; }
section { padding: 88px 0; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700;
  font-size: .95rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(45, 125, 210, .35); }
.btn-primary:hover { background: #2569b3; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .25s ease, box-shadow .25s ease;
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 2px 18px rgba(11,20,36,.08); padding: 10px 0; }
.nav-row { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 46px; width: auto; }
.logo-dark { display: none; }
.site-header.scrolled .logo-light, .header-solid .logo-light { display: none; }
.site-header.scrolled .logo-dark, .header-solid .logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-weight: 600; font-size: .95rem; color: #fff; transition: color .15s; }
.site-header.scrolled .nav-links a, .header-solid .nav-links a { color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--blue-bright); }
.site-header.scrolled .nav-links a:hover, .site-header.scrolled .nav-links a.active,
.header-solid .nav-links a:hover, .header-solid .nav-links a.active { color: var(--blue); }
.nav-cta { margin-left: 8px; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; z-index: 110; }
.hamburger span { display: block; width: 26px; height: 3px; border-radius: 2px; background: #fff; margin: 5px 0; transition: .25s; }
.site-header.scrolled .hamburger span, .header-solid .hamburger span { background: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff;
  background: linear-gradient(110deg, rgba(8, 15, 30, .92) 35%, rgba(8, 15, 30, .55)),
              url("../img/home-hero-server-room.jpg") center/cover no-repeat;
}
.hero-inner { max-width: 640px; padding: 140px 0 90px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.7rem); margin-bottom: 22px; }
.hero p { font-size: 1.15rem; color: #c8d4e4; margin-bottom: 34px; }
.hero .btn + .btn { margin-left: 14px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(77, 163, 255, .15);
  border: 1px solid rgba(77, 163, 255, .4); color: #aed3ff; font-size: .82rem; font-weight: 600;
  border-radius: 999px; padding: 6px 16px; margin-bottom: 24px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: 170px 0 90px;
  background: linear-gradient(110deg, rgba(8,15,30,.92) 30%, rgba(8,15,30,.6)), var(--ph-img, none) center/cover no-repeat, var(--navy);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 16px; }
.page-hero p { max-width: 600px; font-size: 1.1rem; color: #c8d4e4; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: 44px 16px; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; }
.stat .num { font-size: 2.6rem; font-weight: 800; color: var(--blue-bright); letter-spacing: -.02em; }
.stat .lbl { font-size: .9rem; color: #93a5bd; font-weight: 600; margin-top: 4px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cfe0f2; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--blue); }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: .95rem; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > .split-img { order: 2; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-txt h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.split-txt p { margin-bottom: 16px; }
.checklist { list-style: none; margin: 22px 0 30px; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 12px; font-weight: 600; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Industry tabs ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 11px 26px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; font-size: .92rem; color: var(--body); cursor: pointer; transition: .18s;
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; animation: fadeUp .4s ease; }
.industry-panel { grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.industry-panel img { height: 100%; min-height: 360px; object-fit: cover; }
.industry-copy { background: var(--navy); color: #d4deeb; padding: 54px 48px; display: flex; flex-direction: column; justify-content: center; }
.industry-copy h3 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.industry-copy .btn { align-self: flex-start; margin-top: 22px; }

/* ---------- Testimonials ---------- */
.quote-band { background: var(--bg-soft); }
.quote-card { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-card blockquote { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--ink); line-height: 1.5; }
.quote-card .who { margin-top: 26px; font-weight: 700; color: var(--ink); }
.quote-card .who span { display: block; font-weight: 500; color: var(--body); font-size: .9rem; }
.quote-mark { font-size: 4rem; color: var(--blue); line-height: 1; font-family: Georgia, serif; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; color: #fff; text-align: center; border-radius: var(--radius);
  padding: 90px 8%; overflow: hidden;
  background: linear-gradient(rgba(8,15,30,.78), rgba(8,15,30,.78)), url("../img/cta-tech-globe.jpg") center/cover no-repeat;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; color: #c8d4e4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #93a5bd; padding: 70px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #93a5bd; transition: color .15s; }
.site-footer a:hover { color: var(--blue-bright); }
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--blue-bright); flex-shrink: 0; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: .85rem; }

/* ---------- Contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 14px; }
.contact-info ul { list-style: none; margin-top: 26px; }
.contact-info li { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-weight: 600; color: var(--ink); }
.contact-info svg { width: 20px; height: 20px; stroke: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,125,210,.15); }
.form-note { font-size: .82rem; margin-top: 14px; }
.form-status { margin-top: 16px; font-weight: 700; display: none; }
.form-status.ok { display: block; color: #1a7f4b; }
.form-status.err { display: block; color: #c0392b; }

/* ---------- Reveal animation ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > .split-img { order: 0; }
  .industry-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links {
    position: fixed; inset: 0; background: rgba(11,20,36,.97); flex-direction: column;
    justify-content: center; gap: 30px; transform: translateX(100%); transition: transform .3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a, .site-header.scrolled .nav-links a, .header-solid .nav-links a { color: #fff; font-size: 1.25rem; }
  .hamburger { display: block; }
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero .btn + .btn { margin-left: 0; margin-top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
}
