/* =================================================================
   V3 TECHNICAL SOLUTIONS — stylesheet
   Brand colours live here. Change these variables to re-skin
   the whole site in seconds.
   ================================================================= */

:root {
  /* ---- Brand colours ---- */
  --blue:      #2c5fe0;
  --blue-deep: #1d3fae;
  --purple:    #7c3aed;
  --navy:      #0f1b3d;   /* primary text / dark sections */

  /* ---- Greys (supporting only) ---- */
  --ink:       #16223f;   /* body text */
  --muted:     #5b6b8c;   /* secondary text */
  --line:      #e6e9f2;   /* hairline borders */
  --bg:        #ffffff;
  --bg-alt:    #f6f8fc;   /* alternating section background */

  /* ---- Brand gradient (used sparingly) ---- */
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);

  /* ---- Type & layout ---- */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1140px;
  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(20, 30, 70, 0.35);
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;            /* keeps anchor jumps clear of the sticky header */
  -webkit-text-size-adjust: 100%;      /* stop iOS auto-inflating text in landscape */
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-block;
  white-space: nowrap;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 10px 22px -12px rgba(44, 95, 224, 0.7);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(124, 58, 237, 0.6); }
.btn-sm { padding: 9px 18px; font-size: .94rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--blue); background: var(--bg-alt); box-shadow: none; }

/* =================================================================
   HEADER / NAV
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; color: var(--ink); transition: color .15s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .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;
  padding: 96px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% -10%, rgba(124, 58, 237, 0.14), transparent 60%),
    radial-gradient(50% 60% at 8% 0%, rgba(44, 95, 224, 0.12), transparent 55%);
}
.hero-inner { max-width: 820px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700;
  color: var(--blue-deep); margin: 0 0 18px;
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: .35em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 18px; }
.hero-note { font-size: .92rem; color: var(--muted); }

/* =================================================================
   SECTIONS
   ================================================================= */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.grid { display: grid; gap: 24px; }
.grid-cards { grid-template-columns: repeat(4, 1fr); }
.grid-approach { grid-template-columns: repeat(4, 1fr); }
.grid-reviews { grid-template-columns: repeat(3, 1fr); }

/* ---- Service cards ---- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(44,95,224,.12), rgba(124,58,237,.12));
  color: var(--blue-deep);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---- Approach pillars ---- */
.pillar { padding: 8px 4px; }
.pillar-num {
  display: inline-block; font-weight: 800; font-size: .95rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .05em; margin-bottom: 10px;
}
.pillar h3 { font-size: 1.18rem; }
.pillar p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---- Technology / vendors ---- */
.vendor-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vendor-group { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.vendor-group h3 { font-size: 1rem; color: var(--blue-deep); margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: .9rem; font-weight: 500; color: var(--ink);
  background: linear-gradient(135deg, rgba(44,95,224,.08), rgba(124,58,237,.08));
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.vendor-note { text-align: center; color: var(--muted); margin: 36px auto 0; max-width: 660px; font-size: 1.02rem; }
@media (max-width: 980px) { .vendor-groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vendor-groups { grid-template-columns: 1fr; } }

/* ---- Projects ---- */
.project {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; background: var(--bg);
  transition: transform .18s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project h3 { font-size: 1.15rem; margin-top: 10px; }
.project p { color: var(--muted); font-size: .96rem; margin: 0; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple); background: rgba(124, 58, 237, .1); padding: 5px 11px; border-radius: 999px;
}
.is-placeholder { border-style: dashed; background: transparent; }
.is-placeholder h3 { color: var(--muted); }

/* ---- Reviews ---- */
.review {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; background: var(--bg);
}
.review blockquote { margin: 0 0 18px; font-size: 1.05rem; color: var(--ink); }
.review figcaption { display: flex; flex-direction: column; }
.review figcaption strong { color: var(--navy); }
.review figcaption span { color: var(--muted); font-size: .9rem; }

/* =================================================================
   CONTACT
   ================================================================= */
.contact { background:
    radial-gradient(60% 80% at 90% 10%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(50% 70% at 0% 90%, rgba(44, 95, 224, 0.10), transparent 60%); }
.contact-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: var(--navy); color: #fff; border-radius: 24px; padding: 56px;
  box-shadow: var(--shadow);
}
.contact-inner h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.contact-copy p { color: #c7d0e8; margin: 0; font-size: 1.06rem; }
.contact-actions { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.contact-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.contact-list li {
  display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); align-items: baseline;
}
.contact-list li span { min-width: 64px; color: #9fb0d6; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list li a:hover { color: #a78bfa; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { background: #0b132b; color: #c7d0e8; padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 360px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: #8fa0c4; font-size: .94rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.footer-nav a { color: #c7d0e8; font-weight: 500; }
.footer-nav a:hover { color: #a78bfa; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #7e8fb5; }

/* =================================================================
   SCROLL-IN ANIMATION (respects reduced-motion)
   ================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-approach { grid-template-columns: repeat(2, 1fr); }
  .grid-reviews { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a.btn { text-align: center; margin-top: 12px; border-bottom: 0; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
}

@media (max-width: 460px) {
  .grid-cards { grid-template-columns: 1fr; }
  .grid-approach { grid-template-columns: 1fr; }
  .contact-inner { padding: 30px 24px; }
}
