/* =========================================================================
   IAID — Infrastructure, Automation & IT Delivery
   Modern corporate tech theme
   ========================================================================= */

:root {
  /* Brand palette */
  --navy-900: #0a1633;
  --navy-800: #0b1b3b;
  --navy-700: #0f2350;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;

  /* Neutrals */
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --text: var(--ink);
  --text-muted: var(--slate-500);
  --border: var(--slate-200);
  --primary: var(--blue-600);
  --accent: var(--cyan-400);

  /* Effects */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 27, 59, .35);
  --gradient: linear-gradient(120deg, var(--navy-800) 0%, var(--navy-700) 45%, var(--blue-600) 100%);
  --gradient-accent: linear-gradient(120deg, var(--blue-500), var(--cyan-400));

  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Space Grotesk", var(--font);
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-400); }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--slate-700); }

/* -------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--gradient); color: #dbe4ff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b7c4e6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gradient-accent); border-radius: 2px; }
.section--dark .eyebrow { color: var(--cyan-300); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--text-muted); }
.section--dark .section-head p { color: #b7c4e6; }

.lead { font-size: 1.18rem; color: var(--slate-700); }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7); }
.btn--primary:hover { background: var(--blue-500); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .75); }
.btn--accent { background: var(--gradient-accent); color: #04263a; }
.btn--accent:hover { color: #04263a; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* -------------------------------------------------------------------------
   Header / navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 22, 51, .72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { background: rgba(9, 20, 46, .94); border-bottom-color: rgba(255, 255, 255, .1); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 38px; width: auto; display: block; }
/* legacy text-brand fallback (kept harmless) */
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); font-family: var(--font); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: #c3d1f2;
  padding: 9px 14px; border-radius: 999px; transition: background .18s ease, color .18s ease;
}
.nav__links a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav__links a.active { color: #fff; background: rgba(59, 130, 246, .24); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px;
  background: rgba(255, 255, 255, .06); cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease; position: relative;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient);
  color: #fff;
  padding: clamp(70px, 11vw, 130px) 0 clamp(80px, 12vw, 140px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(59, 130, 246, .28), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 800px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 15px; border-radius: 999px; font-size: .82rem; font-weight: 500; color: #cfe0ff;
  margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(34,211,238,.25); }
.hero h1 { color: #fff; }
.hero h1 .grad { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { margin-top: 22px; font-size: 1.2rem; color: #c3d1f2; max-width: 620px; }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 720px; }
.hero__stats .stat__num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: #fff; }
.hero__stats .stat__label { font-size: .85rem; color: #9fb2dd; }

/* Trusted / pillars strip */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -70px; position: relative; z-index: 5; }
.pillar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(37,99,235,.1); color: var(--primary); margin-bottom: 18px;
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { font-size: .96rem; color: var(--text-muted); }

/* -------------------------------------------------------------------------
   Service cards
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--gradient-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(34,211,238,.14)); color: var(--primary); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .97rem; color: var(--text-muted); }
.card__list { margin-top: 16px; display: grid; gap: 8px; }
.card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--slate-700); }
.card__list li svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 3px; }

/* Feature/value chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500;
  padding: 8px 15px; border-radius: 999px; background: var(--slate-100); color: var(--slate-700); border: 1px solid var(--border);
}
.chip svg { width: 16px; height: 16px; color: var(--primary); }

/* -------------------------------------------------------------------------
   Split / two-column feature blocks
   ------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--gradient); aspect-ratio: 4/3; position: relative;
}
.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(37,99,235,.1); color: var(--primary);
}
.checklist .tick svg { width: 16px; height: 16px; }
.checklist strong { display: block; color: var(--ink); font-family: var(--font-head); }
.checklist span { font-size: .95rem; color: var(--text-muted); }

/* Decorative media contents */
.media-visual { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.media-visual svg { width: 45%; height: 45%; opacity: .9; }
.media-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 70% 20%, rgba(34,211,238,.3), transparent 60%);
}

/* -------------------------------------------------------------------------
   Process / steps
   ------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 20px; }
.step__num {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--primary);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(37,99,235,.1); margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--text-muted); }

/* -------------------------------------------------------------------------
   Stats band
   ------------------------------------------------------------------------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.statband .stat__num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
.section--dark .statband .stat__num { color: #fff; }
.statband .stat__num .grad { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.statband .stat__label { color: #9fb2dd; font-size: .95rem; margin-top: 4px; }

/* -------------------------------------------------------------------------
   Partners / logos
   ------------------------------------------------------------------------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.logos span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--slate-400);
  letter-spacing: -.01em; opacity: .85;
}

/* -------------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--gradient); color: #fff; padding: clamp(40px, 6vw, 66px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 80% 0%, rgba(34,211,238,.25), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d1f2; max-width: 560px; margin: 14px auto 30px; }
.cta-band .hero__cta { justify-content: center; }

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ci-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(37,99,235,.1); color: var(--primary); }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 2px; }
.contact-item a, .contact-item p { color: var(--text-muted); font-size: .96rem; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-size: .88rem; font-weight: 500; margin-bottom: 7px; color: var(--slate-700); }
.field .req { color: #ef4444; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--slate-50); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--slate-400); margin-top: 6px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-muted); }
.form-consent input { width: auto; margin-top: 4px; }

.form-alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.form-alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* hidden honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------------------
   Page hero (interior pages)
   ------------------------------------------------------------------------- */
.page-hero { background: var(--gradient); color: #fff; padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 85% 0%, rgba(34,211,238,.2), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 780px; }
.page-hero p { color: #c3d1f2; font-size: 1.15rem; margin-top: 18px; max-width: 620px; }
.breadcrumb { font-size: .85rem; color: #9fb2dd; margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: #cfe0ff; }
.breadcrumb span { color: #6b82b8; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #a7b4d6; padding-top: 70px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #a7b4d6; }
.site-footer a:hover { color: var(--cyan-300); }
.footer-links { display: grid; gap: 11px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand small { color: #6b82b8; }
.footer-logo { height: 66px; width: auto; display: block; }
.footer-brand p { color: #8497c4; max-width: 300px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #a7b4d6; }
.footer-social a:hover { background: var(--primary); color: #fff; border-color: transparent; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #6b82b8; font-size: .87rem; }
.footer-bottom a { color: #8497c4; }

/* -------------------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .statband { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #0a1633; border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 16px 24px 24px;
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); transform: translateY(-140%); transition: transform .3s ease; visibility: hidden;
  }
  body.nav-open .nav__links { transform: translateY(0); visibility: visible; }
  .nav__links a { padding: 12px 14px; }
  .nav__actions .btn:not(.nav__toggle) { display: none; }
  .nav__toggle { display: inline-flex; }
  .pillars { grid-template-columns: 1fr; margin-top: 40px; }
  .grid--2, .grid--3, .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4, .steps, .statband { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}
