/* ==========================================================================
   Work IT Times — static rebuild
   Type, colour, spacing and component metrics taken from the live site's
   computed styles (Astra + Elementor).
   ========================================================================== */

:root {
  /* palette */
  --primary: #004aad;          /* buttons, footer, home accents */
  --secondary: #6878d6;        /* inner-page accents, engage CTA */
  --secondary-dark: #4d61d6;
  --heading: #242a56;
  --body: #393a56;
  --tint: #eff2ff;             /* pale section background */
  --tint-blue: #e5edf7;        /* rgba(0,74,173,.1) over white */
  --white: #ffffff;
  --ghost: rgba(91, 91, 91, .14);
  --line: #e6e6e6;

  --container: 1240px;
  --section-pad: 100px;
  --header-h: 102px;

  --font-head: "Poppins", sans-serif;
  --font-body: "Open Sans", sans-serif;

  --card-shadow: rgba(86, 104, 146, .33) 0 5px 40px -10px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 .5em;
  line-height: 1.3;
}

h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 42px; line-height: 1.3; }
h3 { font-size: 20px; line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0 0 1em; padding-left: 1.2rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--heading); color: #fff; padding: 12px 20px; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 17px 35px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
  transition: background .25s ease, transform .2s ease;
}
.btn:hover { background: #003a87; color: #fff; transform: translateY(-1px); }

.btn-lg { font-size: 20px; font-weight: 600; letter-spacing: .5px; text-transform: capitalize; }
.btn-lg::after { content: " \00bb"; }

.btn-indigo { background: var(--secondary); }
.btn-indigo:hover { background: var(--secondary-dark); }

/* ---------- Header (overlays hero / banner) ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 240px; height: 60px; object-fit: contain; }

.main-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  opacity: .92;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; opacity: 1; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 2px;
  background: var(--secondary);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff;
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 50px;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .84; }
.hero > .container { position: relative; z-index: 1; }
.hero-inner { max-width: 560px; }
.hero .hero-kicker { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: #fff; margin-bottom: 34px; }

/* ---------- Inner page banner ---------- */
.page-banner {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  background: url("../img/banner-bg.jpg") center/cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: var(--heading); opacity: .8; }
.page-banner > .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; margin-bottom: 14px; }
.page-banner p { color: #fff; max-width: 620px; margin-inline: auto; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--tint { background: var(--tint); }
.section--blue-tint { background: var(--tint-blue); }
.section-title { text-align: center; margin-bottom: 55px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { max-width: 620px; margin-inline: auto; }

/* ---------- What We Do (home) ---------- */
.wwd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.wwd-card { background: #fff; padding: 40px 30px; }
.wwd-card .icon { width: 90px; height: 90px; margin: 0 auto 26px; }
.wwd-card h3 { margin-bottom: 12px; }
.wwd-cell-cta { display: flex; align-items: center; justify-content: center; }

/* ---------- Portfolio teasers (home) ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.pf-item .icon { width: 76px; height: 76px; margin: 0 auto 22px; }
.pf-item h3 { margin-bottom: 14px; }
.center-cta { text-align: center; margin-top: 50px; }

/* ---------- Why Us (home) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 30px; margin-top: 20px; }
.why-item { position: relative; padding-top: 46px; }
.why-item .num {
  position: absolute;
  top: -34px; left: -6px;
  font-family: var(--font-head);
  font-size: 140px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ghost);
  pointer-events: none;
  user-select: none;
}
.why-item h3 { position: relative; z-index: 1; margin-bottom: 12px; }
.why-item p { position: relative; z-index: 1; }

/* ---------- Clients ---------- */
/* Tinted band behind the grid, so the white cells read as cards rather than as
   floating rules on a white page. Same token as the "What We Do" section. */
.clients { background: var(--tint-blue); }
.clients h2 { text-align: left; margin-bottom: 40px; }

/* The 1px gap over a tinted background paints the grid lines, so cells need no
   borders and the rules survive any reflow at the breakpoints below — no
   nth-child arithmetic to strip edges. */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #cfe0f0;
  border: 1px solid #cfe0f0;
}
.client-cell {
  display: grid;
  place-items: center;
  padding: 34px 26px;
  min-height: 152px;
  background: #fff;
}
/* Logos are sized to equal optical AREA, not to a shared height or width.
   The files are trimmed to their marks, so ratios run 1:1 (CloudDevOps) to
   5.4:1 (DocumentiT); any single-axis cap makes one of those two look wrong —
   match heights and the square mark dwarfs the wordmarks, match widths and it
   vanishes. Each height below is ~sqrt(4400 / ratio), which lands every logo
   on roughly the same amount of ink. Recompute if a file is replaced. */
.client-cell img {
  height: var(--logo-h, 44px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.l-cognizant    { --logo-h: 29px; }  /* 5.26:1 -> 152px wide */
.l-documentit   { --logo-h: 29px; }  /* 5.41:1 -> 157px */
.l-assistnow    { --logo-h: 32px; }  /* 4.34:1 -> 139px */
.l-kognitiv     { --logo-h: 38px; }  /* 3.00:1 -> 114px */
.l-cloudsmarthr { --logo-h: 48px; }  /* 2.63:1 -> 126px, over area: stacked
                                        lockup, and its tagline is unreadable
                                        at the area-derived 41px */
.l-agilysys     { --logo-h: 49px; }  /* 1.81:1 ->  89px */
.l-cloudevops   { --logo-h: 56px; }  /* 1.00:1 ->  56px, under area: a solid
                                        filled disc carries far more ink than
                                        an equal-area wordmark */
.client-note {
  place-items: start;
  align-content: center;
  gap: 14px;
  text-align: left;
}
.client-note p { color: var(--body); margin: 0; }
.client-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.client-note a:hover,
.client-note a:focus-visible { text-decoration: underline; }

/* ---------- Engage band ---------- */
.engage { background: var(--tint); padding: 50px 0; }
.engage-card {
  max-width: 1000px;
  margin-inline: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.engage-card h2 { font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.engage-card .txt { max-width: 640px; }
.engage--indigo .engage-card h2 { color: var(--secondary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: #fff; }
.footer-main { padding: 70px 0 60px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 240px; height: auto; margin-bottom: 24px; }
.site-footer p, .site-footer li { color: #fff; }
.site-footer h4 { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-links a, .site-footer a { color: #fff; }
.footer-links a:hover, .site-footer a:hover { color: #cfe0f7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding: 18px 0;
  text-align: center;
  font-size: 16px;
}

/* ---------- About: mission / vision overlap cards ---------- */
.overlap { margin-top: -95px; position: relative; z-index: 5; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { background: #fff; padding: 40px 35px; box-shadow: 0 2px 24px rgba(36, 42, 86, .07); }
.mv-card .bar { display: block; width: 34px; height: 5px; background: var(--secondary); margin-bottom: 22px; }
.mv-card h3 { font-size: 26px; margin-bottom: 14px; }

/* ---------- About: why choose us split ---------- */
.split-feature { background: var(--tint); display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.split-feature .media { min-height: 420px; background: url("../img/why-choose-us.jpg") center/cover no-repeat; }
.split-feature .content { padding: 60px clamp(20px, 5vw, 90px); }
.split-feature h2 { text-align: left; margin-bottom: 16px; }

.tick-list { list-style: none; margin: 26px 0 0; padding: 0; }
.tick-list li { position: relative; padding-left: 28px; margin-bottom: 14px; }
.tick-list li::before {
  content: "\2714";
  position: absolute; left: 0; top: 0;
  color: var(--heading);
  font-size: 14px;
}

/* ---------- About: numbers row ---------- */
.numbers { background: var(--tint); padding: 60px 0; }
.numbers-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.numbers-row .label-lead { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: 18px; }
.number { display: flex; align-items: center; gap: 12px; }
.number .value { font-family: var(--font-head); font-size: 40px; font-weight: 400; color: var(--secondary); line-height: 1; }
.number .caption { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--heading); max-width: 110px; line-height: 1.25; }

/* ---------- About: team ---------- */
.team-section { padding: 90px 0; text-align: center; }
.team-section h2 { font-size: 48px; color: #5b5b5b; margin-bottom: 60px; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.team-card { border: 1px solid var(--line); width: 366px; max-width: 100%; padding: 0 20px 26px; }
.team-card .photo { width: 85px; height: 100px; margin: -50px auto 18px; border: 4px solid #fff; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card h3 { font-size: 24px; color: #000; margin-bottom: 6px; }
.team-card .role { font-family: var(--font-head); font-size: 13px; letter-spacing: 1px; color: var(--heading); }

/* ---------- Services: accordion rows ---------- */
.svc-row { background: #fff; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 40px 35px; margin-bottom: 30px; }
.svc-row:last-child { margin-bottom: 0; }
.svc-row .svc-icon { display: flex; justify-content: center; }
.svc-row .svc-icon img { width: 90px; height: 90px; }
.svc-row--flip .svc-icon { order: 2; }
.svc-row--flip .accordion { order: 1; }

.accordion { border: 1px solid #e8e8e8; }
.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f0f0;
  border: 0;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--body);
  cursor: pointer;
  text-align: left;
}
.accordion-head .plus { width: 14px; font-weight: 700; }
.accordion-head .chev { margin-left: auto; transition: transform .25s ease; }
.accordion-head[aria-expanded="true"] .chev { transform: rotate(90deg); }
.accordion-panel { display: none; padding: 22px 20px 26px; background: #fff; }
.accordion-panel.is-open { display: block; }
.accordion-panel ul { padding-left: 1.15rem; }
.accordion-panel li { margin-bottom: 10px; }

/* ---------- Portfolio page rows ---------- */
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.pf-row:last-child { margin-bottom: 0; }
.pf-side { background: #fff; padding: 60px 40px; display: flex; flex-direction: column; justify-content: center; }
.pf-side .icon { width: 84px; height: 84px; margin-bottom: 18px; }
.pf-side h3 { font-size: 20px; margin: 0; }
.pf-list { background: #fff; padding: 40px; }
.pf-list .tick-list { margin: 0; }
.pf-list .tick-list li { margin-bottom: 11px; }
.pf-map { background: #fff; padding: 30px; display: flex; align-items: center; justify-content: center; }
.pf-map img, .pf-map object { width: 100%; max-width: 520px; }

/* ---------- Indicative profiles ---------- */
.profiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.profile-item { text-align: center; }
.profile-item img { background: #fff; width: 100%; }
.profile-item figcaption { margin-top: 20px; color: var(--body); }

/* ---------- Contact ---------- */
.contact-head { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 42px; }
.contact-head h2 { text-align: left; font-size: 32px; margin: 0; }
.contact-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.contact-form { background: #fff; padding: 30px; box-shadow: 0 2px 24px rgba(36, 42, 86, .07); }
.field { margin-bottom: 18px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--body);
  padding: 14px 16px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  border-radius: 2px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--secondary); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { background: var(--secondary); }
.contact-form .btn:hover { background: var(--secondary-dark); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 14px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { color: #1d6b40; }
.form-status.is-error { color: #a02338; }

.map-frame { line-height: 0; box-shadow: 0 2px 24px rgba(36, 42, 86, .07); }
.map-frame iframe { width: 100%; height: 460px; border: 0; }

.reach h3 { font-size: 18px; margin-bottom: 20px; }
.reach ul { list-style: none; margin: 0; padding: 0; }
.reach li { display: flex; gap: 14px; margin-bottom: 20px; }
.reach .ic { color: var(--secondary); flex: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border: 0; border-radius: 4px;
  background: var(--primary); color: #fff;
  font-size: 1rem; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease; z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--secondary); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --section-pad: 70px; }
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  .hero { min-height: 500px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .wwd-grid { grid-template-columns: repeat(2, 1fr); }
  .split-feature { grid-template-columns: 1fr; }
  .split-feature .media { min-height: 300px; }
  .contact-body { grid-template-columns: 1fr 1fr; }
  .contact-head { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 20px; right: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 16px; }
  .main-nav li { border-bottom: 1px solid #eee; }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 13px 0; color: var(--heading); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); }
  .brand img { width: 180px; height: 46px; }
  .header-inner { position: relative; }
}

@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .hero { padding: 140px 30px 40px; min-height: 0; }
  .page-banner { height: auto; padding: 150px 0 70px; }
  .wwd-grid, .pf-grid, .why-grid, .mv-grid, .pf-row, .profiles-grid, .contact-body,
  .svc-row, .footer-grid { grid-template-columns: 1fr; }
  .svc-row--flip .svc-icon { order: 0; }
  .svc-row--flip .accordion { order: 0; }
  .engage-card { flex-direction: column; align-items: flex-start; }
  .clients h2 { text-align: center; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client-cell { min-height: 118px; padding: 24px 16px; }
  /* One multiplier keeps the area relationship intact at the smaller size. */
  .client-cell img { height: calc(var(--logo-h, 44px) * 0.8); }
  .why-item .num { font-size: 110px; }
  .numbers-row { justify-content: flex-start; }
  .team-section h2 { font-size: 34px; }
}

/* ---------- Utilities ---------- */
/* Visually hidden but still announced. Used by contact.html's form labels,
   which also carry the `hidden` attribute. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
