:root {
  --ink: #142033;
  --navy: #102a43;
  --teal: #0f766e;
  --green: #76c348;
  --teal-soft: #e7f4f2;
  --red: #f52216;
  --gold: #ffd21f;
  --paper: #ffffff;
  --mist: #f4f7f8;
  --line: #dbe4e8;
  --muted: #5f6f7d;
  --shadow: 0 22px 70px rgba(16, 42, 67, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 44px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(16, 42, 67, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.brand-name {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-professional-services.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 25, 43, 0.95) 0%, rgba(9, 25, 43, 0.77) 38%, rgba(9, 25, 43, 0.24) 78%),
    linear-gradient(0deg, rgba(9, 25, 43, 0.42), rgba(9, 25, 43, 0.06));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 104px);
  padding-top: 78px;
}

.hero-logo {
  width: min(250px, 68vw);
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a8e66e;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.14rem;
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.btn.primary {
  color: #fff;
  background: var(--red);
}

.btn.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.intro-band {
  background: var(--navy);
  color: #fff;
}

.intro-grid {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 28px 0;
}

.intro-grid div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.metric {
  color: var(--gold);
  font-weight: 900;
}

.intro-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.section,
.split-section,
.contact-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.service-grid,
.company-grid {
  display: grid;
  gap: 16px;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.company-grid {
  grid-template-columns: repeat(2, 1fr);
}

.company-card {
  display: grid;
  grid-template-rows: 260px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.company-jump {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.company-jump:hover,
.company-jump:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 26px 74px rgba(16, 42, 67, 0.2);
  outline: none;
}

.company-card.dark {
  color: #fff;
  background: #000000;
  border-color: rgba(118, 195, 72, 0.35);
}

.company-logo-wrap {
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(118, 195, 72, 0.12), transparent 58%),
    #000000;
}

.company-logo-wrap.light {
  background: #fff;
}

.company-logo-wrap img {
  max-width: 100%;
  max-height: 218px;
  object-fit: contain;
}

.company-card.dark .company-logo-wrap img {
  mix-blend-mode: normal;
}

.company-copy {
  padding: 28px;
}

.company-card.dark .company-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #000000;
}

.company-copy p {
  color: var(--muted);
}

.company-card.dark .company-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.company-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.company-card.dark .company-kicker {
  color: var(--gold);
}

.company-copy h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.company-copy p:last-child {
  margin-bottom: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--teal-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.social-links .service-jump {
  color: #fff;
  background: var(--teal);
}

.company-card.dark .social-links a {
  color: #fff;
  background: rgba(118, 195, 72, 0.18);
  border: 1px solid rgba(118, 195, 72, 0.26);
}

.company-card.dark .social-links .service-jump {
  color: #0b1013;
  background: var(--gold);
  border-color: transparent;
}

.service-sections {
  display: grid;
  gap: 28px;
}

.service-block {
  scroll-margin-top: 98px;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(231, 244, 242, 0.42), rgba(255, 255, 255, 0) 210px),
    #fff;
  box-shadow: 0 18px 54px rgba(16, 42, 67, 0.08);
}

.service-block.dark {
  color: #fff;
  background: #05090d;
  border-color: rgba(118, 195, 72, 0.35);
}

.service-block-heading {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.service-block-heading img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.service-block.dark .service-block-heading img {
  background: #000;
}

.service-block-heading h3 {
  font-size: clamp(1.42rem, 2.5vw, 2.18rem);
}

.service-block.dark .eyebrow {
  color: var(--gold);
}

.service-grid.detailed {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.service-card {
  min-height: 0;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.05);
}

.service-block.dark .service-card {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.service-card:nth-child(2) {
  background: var(--teal-soft);
}

.service-block.dark .service-card:nth-child(2) {
  background: rgba(118, 195, 72, 0.12);
}

.service-card:nth-child(4) {
  border-color: rgba(184, 50, 69, 0.26);
}

.service-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.service-card ul {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

.service-block.dark .service-card ul {
  color: rgba(255, 255, 255, 0.76);
}

.service-card.sectors ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.service-card.wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(90deg, rgba(231, 244, 242, 0.9), rgba(255, 255, 255, 0.94));
}

.flyer-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 12px;
  max-width: 100%;
  margin-top: 22px;
  padding: 4px 2px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.flyer-gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 42, 67, 0.1);
}

.flyer-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #f7faf8;
  transition: transform 180ms ease;
}

.flyer-gallery a:hover img {
  transform: scale(1.025);
}

.service-icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
}

.service-card p,
.split-copy p,
.step p,
.about-panel p,
.contact-copy p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 7vw, 82px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.split-copy p {
  margin-top: 20px;
  font-size: 1.06rem;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px;
  border-left: 4px solid var(--teal);
  background: var(--mist);
  border-radius: 8px;
}

.step span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 900;
}

.step p {
  margin: 8px 0 0;
}

.about {
  width: 100%;
  max-width: none;
  padding: clamp(72px, 10vw, 120px) 18px;
  background:
    linear-gradient(90deg, rgba(231, 244, 242, 0.82), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(135deg, rgba(16, 42, 67, 0.06) 0 1px, transparent 1px 18px);
}

.about-panel {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

.about-logo {
  width: min(230px, 64vw);
  height: auto;
  margin-bottom: 26px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 42, 67, 0.16);
}

.about-panel p {
  max-width: 760px;
  margin: 22px auto 0;
  font-size: 1.08rem;
}

.social-feed-section {
  border-bottom: 1px solid var(--line);
}

.feed-panel {
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(16, 42, 67, 0.08);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: stretch;
}

.contact-copy {
  padding: 34px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.contact-copy h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.65rem);
  line-height: 1.12;
  overflow-wrap: normal;
}

.contact-copy .eyebrow,
.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-link {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 28px 104px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 800;
}

.contact-link img {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 70px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.contact-link img.ivec-logo {
  width: 92px;
  height: 70px;
  top: 12px;
  right: 14px;
}

.contact-link span {
  color: var(--teal);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 44px);
  color: rgba(255, 255, 255, 0.82);
  background: #0d1b2a;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    color: currentColor;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: grid;
    gap: 12px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 25, 43, 0.94), rgba(9, 25, 43, 0.66)),
      linear-gradient(0deg, rgba(9, 25, 43, 0.54), rgba(9, 25, 43, 0.1));
  }

  .intro-grid,
  .company-grid,
  .service-grid,
  .service-grid.detailed,
  .split-section,
  .contact-section,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-card.wide {
    grid-column: auto;
  }

  .company-card {
    grid-template-rows: 230px auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .intro-grid div,
  .service-block-heading,
  .step {
    grid-template-columns: 1fr;
  }

  .service-card.sectors ul {
    grid-template-columns: 1fr;
  }

  .flyer-gallery {
    grid-auto-columns: minmax(240px, 82vw);
  }

  .contact-copy,
  .company-copy,
  .service-card,
  .step,
  .contact-link {
    padding: 22px;
  }

  .contact-link {
    min-height: 132px;
    padding-right: 88px;
  }

  .contact-link img {
    width: 58px;
    height: 48px;
    top: 20px;
    right: 20px;
  }

  .contact-link img.ivec-logo {
    width: 76px;
    height: 58px;
    top: 14px;
    right: 14px;
  }

  .hero-logo {
    width: min(210px, 72vw);
  }
}
