/* ============================================================
   ATRI SOLUTIONS — DARK THEME
   Deep navy / charcoal design. Mirror of main.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --white:       #0D1117;
  --bg-alt:      #161B22;
  --bg-soft:     #1C2333;
  --navy-deep:   #E8EEF8;
  --navy:        #6B9FE8;
  --navy-mid:    #5A8FD8;
  --navy-light:  #3A5A8C;
  --dark-bg:     #060A10;
  --dark-bg-2:   #0D1420;
  --dark-border: #1E2D45;
  --dark-dim:    #4A6080;
  --dark-mid:    #8AAAC8;
  --dark-light:  #D0DDF0;
  --text-h:      #E8EEF8;
  --text-b:      #A8B8CC;
  --text-m:      #7A90A8;
  --text-d:      #4A6080;
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.14);
  --font-disp:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
  --max-w:  1240px;
  --pad:    clamp(20px, 5vw, 60px);
  --sec:    clamp(64px, 9vw, 104px);
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  /* accent */
  --accent: #4A9EFF;
  --accent-glow: rgba(74,158,255,0.15);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { background: var(--white); color: var(--text-b); font-family: var(--font-body); overflow-x: hidden; }
img  { max-width: 100%; display: block; object-fit: cover; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.section       { padding: var(--sec) 0; background: var(--white); }
.section--alt  { background: var(--bg-alt); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark-bg); }

/* ── TYPE ────────────────────────────────────────────────── */
.t-xl  { font-family: var(--font-disp); font-size: clamp(28px,3.8vw,48px); font-weight: 700; line-height: 1.0; letter-spacing: -0.035em; color: var(--text-h); }
.t-lg  { font-family: var(--font-disp); font-size: clamp(28px,4vw,50px);   font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;  color: var(--text-h); }
.t-md  { font-family: var(--font-disp); font-size: clamp(22px,2.8vw,36px); font-weight: 700; line-height: 1.1;  letter-spacing: -0.025em; color: var(--text-h); }
.t-sm  { font-family: var(--font-disp); font-size: clamp(17px,1.8vw,22px); font-weight: 600; line-height: 1.2;  letter-spacing: -0.015em; color: var(--text-h); }
.t-eye { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.t-eye::before { content: ''; display: inline-block; width: 18px; height: 1.5px; background: var(--accent); flex-shrink: 0; }
.t-eye--light { color: var(--dark-dim); }
.t-eye--light::before { background: var(--dark-dim); }
.t-body-lg { font-size: clamp(15px,1.3vw,18px); line-height: 1.65; color: var(--text-b); }
.t-body     { font-size: clamp(14px,1vw,15px);   line-height: 1.7;  color: var(--text-m); }
.t-small    { font-size: 13px; line-height: 1.6; color: var(--text-d); }
.navy       { color: var(--accent); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.stuck { border-bottom-color: var(--border); box-shadow: 0 1px 30px rgba(0,0,0,0.4); }
.nav__logo  { display: flex; align-items: center; gap: 10px; font-family: var(--font-disp); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-h); }
.nav__mark  { width: 28px; height: 28px; background: var(--accent); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #0D1117; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a { font-size: 14px; font-weight: 400; color: var(--text-m); transition: color 0.2s; }
.nav__links a:hover { color: var(--text-h); }
.nav__actions { display: flex; align-items: center; }
.nav__toggle  { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-h); }

/* Dropdown */
.nav__dd-wrap { position: relative; }
.nav__dd-wrap > a::after { content: ' ↓'; font-size: 9px; color: var(--accent); }
.nav__dd {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  width: 820px; background: #161B22; border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 32px; display: none;
  grid-template-columns: repeat(3,1fr); gap: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.nav__dd-wrap:hover .nav__dd { display: grid; }
.nav__dd-col h4 { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.nav__dd-col ul { list-style: none; }
.nav__dd-col li { margin-bottom: 9px; }
.nav__dd-col li a { font-size: 13px; color: var(--text-m); display: flex; align-items: center; gap: 7px; transition: color 0.2s; }
.nav__dd-col li a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--dark-border); flex-shrink: 0; transition: background 0.2s; }
.nav__dd-col li a:hover { color: var(--text-h); }
.nav__dd-col li a:hover::before { background: var(--accent); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 980px; font-family: var(--font-disp); font-size: 14px; font-weight: 500; transition: all 0.3s var(--ease); }
.btn--navy { background: var(--accent); color: #0D1117; }
.btn--navy:hover { background: #6AAFFF; box-shadow: 0 8px 24px rgba(74,158,255,0.3); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text-h); border: 1px solid var(--border-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: var(--dark-light); border: 1px solid var(--dark-border); }
.btn--ghost-light:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn__arr { transition: transform 0.2s; }
.btn:hover .btn__arr { transform: translateX(4px); }

/* ── HERO ────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding-top: 60px; background: var(--dark-bg); }
.hero__left { padding: 72px var(--pad) 72px; padding-right: 40px; display: flex; flex-direction: column; justify-content: center; }
.hero__right { padding: clamp(24px,4vw,56px) var(--pad) clamp(24px,4vw,56px) 0; display: flex; align-items: center; }
.hero__img { width: 100%; height: 520px; object-fit: cover; border-radius: 12px; display: block; filter: brightness(0.75) saturate(0.8); }
.hero__title .navy { display: block; }
.hero__actions { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.hero__locs { padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hero__loc-label { font-size: 11px; color: var(--text-d); margin-right: 4px; font-weight: 500; }
.hero__loc { font-size: 11px; color: var(--text-m); padding: 3px 10px; background: var(--bg-soft); border-radius: 980px; border: 1px solid var(--border); }

/* ── STATS BAR ───────────────────────────────────────────── */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.stats__row { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: var(--border); }
.stats__item { background: var(--bg-alt); padding: 28px; transition: background 0.2s; }
.stats__item:hover { background: var(--bg-soft); }
.stats__num { font-family: var(--font-disp); font-size: clamp(26px,3.5vw,42px); font-weight: 700; color: var(--accent); letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.stats__num sup { font-size: 55%; }
.stats__label { font-size: 12px; color: var(--text-d); line-height: 1.4; }

/* ── IMAGE + CONTENT SPLIT ───────────────────────────────── */
.img-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: var(--sec) 0; background: var(--white); }
.img-split--alt { background: var(--bg-alt); }
.img-split--rev { direction: rtl; }
.img-split--rev > * { direction: ltr; }
.img-split__img { padding: 0 32px 0 var(--pad); }
.img-split--rev .img-split__img { padding: 0 var(--pad) 0 32px; }
.img-split__img img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; display: block; filter: brightness(0.75) saturate(0.8); }
.img-split__content { padding: 0 var(--pad) 0 40px; display: flex; flex-direction: column; justify-content: center; }
.img-split--rev .img-split__content { padding: 0 40px 0 var(--pad); }

/* ── SECTION HEADER ──────────────────────────────────────── */
.sec-hd { margin-bottom: clamp(36px,5vw,64px); }
.sec-hd--c { text-align: center; }
.sec-hd--c .sec-hd__body { margin: 0 auto; }
.sec-hd__eye   { margin-bottom: 14px; }
.sec-hd__title { margin-bottom: 16px; }
.sec-hd__body  { max-width: 560px; }

/* ── GRID LAYOUTS ────────────────────────────────────────── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.four-col  { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

/* ── CARD COMPONENTS ─────────────────────────────────────── */
.card { background: var(--bg-alt); padding: 28px 24px; transition: background 0.2s; }
.card:hover { background: var(--bg-soft); }
.card__num   { font-size: 10px; font-weight: 600; color: var(--text-d); display: block; margin-bottom: 10px; letter-spacing: 0.08em; }
.card__num--navy { color: var(--accent); }
.card__title { font-family: var(--font-disp); font-size: 15px; font-weight: 600; color: var(--text-h); margin-bottom: 7px; }
.card__body  { font-size: 13px; line-height: 1.6; color: var(--text-m); }
.card__link  { font-size: 13px; font-weight: 500; color: var(--accent); margin-top: 12px; display: block; }

/* Serve cards */
.serve-card { background: var(--bg-alt); padding: 32px 28px; transition: background 0.2s; }
.serve-card:hover { background: var(--bg-soft); }
.serve-card__tag   { font-size: 11px; font-weight: 600; color: var(--text-d); display: block; margin-bottom: 12px; letter-spacing: 0.06em; }
.serve-card__title { font-family: var(--font-disp); font-size: 18px; font-weight: 600; color: var(--text-h); margin-bottom: 10px; line-height: 1.2; }
.serve-card__body  { font-size: 13px; line-height: 1.65; color: var(--text-m); }
.serve-card__link  { font-size: 13px; font-weight: 500; color: var(--accent); margin-top: 14px; display: block; }

/* Vert list */
.vert-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.vert-item { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); background: var(--bg-alt); transition: background 0.2s, padding-left 0.3s var(--ease); }
.vert-item:last-child { border-bottom: none; background: var(--bg-soft); }
.vert-item:hover { background: var(--bg-soft); padding-left: 30px; }
.vert-item__left { display: flex; align-items: center; gap: 14px; }
.vert-item__num  { font-size: 10px; font-weight: 600; color: var(--text-d); letter-spacing: 0.06em; flex-shrink: 0; }
.vert-item__name { font-family: var(--font-disp); font-size: 14px; font-weight: 600; color: var(--text-h); }
.vert-item__desc { font-size: 12px; color: var(--text-m); font-weight: 400; margin-top: 2px; }
.vert-item__arr  { font-size: 16px; color: var(--accent); transition: transform 0.2s; }
.vert-item:hover .vert-item__arr { transform: translateX(4px); }

/* ── PILLARS ─────────────────────────────────────────────── */
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dark-pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--dark-border); border: 1px solid var(--dark-border); border-radius: 12px; overflow: hidden; }
.dark-pillar { background: rgba(255,255,255,0.03); padding: 28px 24px; }
.dark-pillar__num   { font-size: 10px; font-weight: 600; color: var(--dark-dim); display: block; margin-bottom: 10px; letter-spacing: 0.08em; }
.dark-pillar__title { font-family: var(--font-disp); font-size: 15px; font-weight: 600; color: var(--dark-light); margin-bottom: 6px; }
.dark-pillar__body  { font-size: 12px; line-height: 1.55; color: var(--dark-dim); }

/* ── PILLARS GRID (homepage four pillars) ───────────────── */
.pillars-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pillars-grid .card__title { font-size: 14px; font-weight: 700; color: var(--text-h); line-height: 1.35; margin-bottom: 10px; }

/* ── STATEMENT ───────────────────────────────────────────── */
.statement { background: var(--dark-bg); padding: var(--sec) 0; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.statement__quote { font-family: var(--font-disp); font-size: clamp(17px,2.2vw,27px); font-weight: 500; color: var(--dark-light); line-height: 1.4; letter-spacing: -0.01em; max-width: 700px; margin: 0 auto 14px; }
.statement__attr  { font-size: 12px; color: var(--dark-dim); }

/* ── JOURNEY STEPS ───────────────────────────────────────── */
.journey { display: flex; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.journey-step { flex: 1; background: var(--bg-alt); padding: 20px 14px; transition: background 0.2s; }
.journey-step:hover { background: var(--bg-soft); }
.journey-step__num   { font-size: 10px; font-weight: 600; color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: 0.08em; }
.journey-step__title { font-size: 12px; font-weight: 600; color: var(--text-h); line-height: 1.3; }

/* ── LIFECYCLE ───────────────────────────────────────────── */
.lifecycle { display: flex; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; overflow-x: auto; scrollbar-width: none; }
.lifecycle::-webkit-scrollbar { display: none; }
.lc-phase { flex: 1; min-width: 80px; background: var(--bg-alt); padding: 18px 10px; text-align: center; transition: background 0.2s; }
.lc-phase:hover { background: var(--bg-soft); }
.lc-phase__num  { font-size: 9px; font-weight: 600; color: var(--accent); display: block; margin-bottom: 5px; letter-spacing: 0.08em; }
.lc-phase__name { font-size: 11px; font-weight: 500; color: var(--text-h); line-height: 1.3; }

/* ── FOOTPRINT ───────────────────────────────────────────── */
.fp-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.fp-card { background: var(--bg-alt); padding: 28px 20px; transition: background 0.2s; }
.fp-card:hover { background: var(--bg-soft); }
.fp-card__flag   { font-size: 24px; margin-bottom: 12px; display: block; }
.fp-card__region { font-family: var(--font-disp); font-size: 13px; font-weight: 700; color: var(--text-h); margin-bottom: 3px; }
.fp-card__role   { font-size: 10px; font-weight: 500; color: var(--accent); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.06em; }
.fp-card__cities { font-size: 11px; color: var(--text-d); line-height: 1.5; }

/* ── WORK CARDS ──────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.work-card { background: var(--bg-alt); overflow: hidden; transition: background 0.2s; }
.work-card:hover { background: var(--bg-soft); }
.work-card__img { height: 200px; overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.8); transition: transform 0.5s; }
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__body { padding: 24px; }
.work-card__tag  { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.work-card__title{ font-family: var(--font-disp); font-size: 16px; font-weight: 700; color: var(--text-h); margin-bottom: 8px; letter-spacing: -0.01em; line-height: 1.2; }
.work-card__desc { font-size: 13px; color: var(--text-m); line-height: 1.6; margin-bottom: 14px; }
.work-card__caps { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-tag { font-size: 10px; color: var(--accent); background: var(--bg-soft); border: 1px solid var(--border-2); padding: 3px 8px; border-radius: 3px; font-weight: 500; }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band { background: var(--accent); padding: var(--sec) 0; text-align: center; }
.cta-band__content { max-width: 580px; margin: 0 auto; }
.cta-band__title { font-family: var(--font-disp); font-size: clamp(26px,4vw,44px); font-weight: 700; color: #0D1117; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; }
.cta-band__body  { font-size: 16px; line-height: 1.6; color: rgba(13,17,23,0.7); margin-bottom: 32px; }
.cta-band__note  { font-size: 12px; color: rgba(13,17,23,0.5); margin-top: 14px; font-style: italic; }
.cta-band .btn--navy { background: #0D1117; color: var(--accent); }
.cta-band .btn--navy:hover { background: #161B22; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--dark-bg); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand-logo { font-family: var(--font-disp); font-size: 17px; font-weight: 700; color: var(--text-h); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__tagline { font-size: 13px; color: var(--text-d); line-height: 1.65; max-width: 230px; margin-bottom: 16px; }
.footer__col h4  { font-size: 11px; font-weight: 600; color: var(--text-h); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.footer__col ul  { list-style: none; }
.footer__col li  { margin-bottom: 10px; }
.footer__col li a { font-size: 13px; color: var(--text-m); transition: color 0.2s; }
.footer__col li a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__copy   { font-size: 12px; color: var(--text-d); }
.footer__legal  { display: flex; gap: 20px; }
.footer__legal a { font-size: 12px; color: var(--text-d); transition: color 0.2s; }
.footer__legal a:hover { color: var(--accent); }

/* ── FADE ANIMATION ──────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fade-up.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

/* ── UTILITY ─────────────────────────────────────────────── */
.mt-8{margin-top:8px} .mt-16{margin-top:16px} .mt-24{margin-top:24px}
.mt-28{margin-top:28px} .mt-32{margin-top:32px} .mt-40{margin-top:40px} .mt-48{margin-top:48px}
.mb-16{margin-bottom:16px} .mb-20{margin-bottom:20px} .mb-24{margin-bottom:24px}
.mb-28{margin-bottom:28px} .mb-32{margin-bottom:32px}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__right { display: none; }
  .hero__left  { padding: 100px var(--pad) 64px; }
  .two-col     { grid-template-columns: 1fr; gap: 40px; }
  .img-split   { grid-template-columns: 1fr; padding: var(--sec) 0; }
  .img-split__img { padding: 0 var(--pad); }
  .img-split--rev .img-split__img { padding: 0 var(--pad); }
  .img-split__content { padding: 32px var(--pad) 0; }
  .img-split--rev .img-split__content { padding: 32px var(--pad) 0; }
  .img-split__img img { height: 280px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .fp-grid      { grid-template-columns: repeat(3,1fr); }
  .stats__row   { grid-template-columns: repeat(3,1fr); }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .work-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle  { display: flex; }
  .three-col    { grid-template-columns: 1fr; }
  .four-col     { grid-template-columns: 1fr 1fr; }
  .pillar-grid  { grid-template-columns: 1fr; }
  .dark-pillar-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .journey      { flex-direction: column; }
  .fp-grid      { grid-template-columns: 1fr 1fr; }
  .stats__row   { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .work-grid    { grid-template-columns: 1fr; }
}
