:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5b667a;
  --line: #dbe3ef;
  --navy: #08111f;
  --red: #bc0c24;
  --gray: #535252;
  --soft-red: #fff0f2;
  --dark-red: #8e0718;
  --amber: #ffb84d;
  --shadow: 0 24px 70px rgba(8, 17, 31, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  color: #fff;
  background: rgba(8, 17, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, width 0.2s ease, padding 0.2s ease;
}

.site-header.scrolled,
.site-header.solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(219, 227, 239, 0.95);
  box-shadow: 0 16px 44px rgba(8, 17, 31, 0.12);
}

.site-header.scrolled {
  width: min(860px, calc(100% - 32px));
  padding: 8px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: clamp(42px, 4.5vw, 58px);
  object-fit: contain;
}

.brand-logo-dark,
.brand-icon {
  display: none;
}

.site-header.scrolled .brand-logo-light,
.site-header.scrolled .brand-logo-dark,
.site-header.solid .brand-logo-light {
  display: none;
}

.site-header.solid .brand-logo-dark,
.portfolio-page .brand-logo-dark {
  display: block;
}

.site-header.scrolled .brand-icon {
  display: block;
  width: 36px;
  height: 38px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius);
  opacity: 0.9;
}

.main-nav a:hover {
  background: rgba(188, 12, 36, 0.12);
  opacity: 1;
}

.main-nav .nav-cta {
  color: #fff;
  background: var(--red);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: currentColor;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 94vh;
  padding: 144px max(24px, calc((100vw - var(--max)) / 2)) 32px;
  color: #fff;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 12, 13, 0.95) 0%, rgba(25, 20, 21, 0.82) 38%, rgba(35, 25, 27, 0.22) 75%),
    linear-gradient(0deg, rgba(4, 9, 17, 0.85), rgba(4, 9, 17, 0.08) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-bottom: 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow,
.band .eyebrow,
.cta-section .eyebrow,
.portfolio-hero .eyebrow {
  color: #ffccd3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: var(--radius);
}

.btn-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 18px 36px rgba(188, 12, 36, 0.32);
}

.btn-outline {
  color: var(--red);
  background: #fff;
  border: 1px solid rgba(188, 12, 36, 0.24);
}

.btn-light {
  color: var(--red);
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-stats article {
  padding: 22px;
  background: rgba(8, 17, 31, 0.48);
}

.hero-stats strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.hero-stats strong::after {
  content: "+";
  color: #ffccd3;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 86px;
}

.intro-brand {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(8, 17, 31, 0.06);
}

.intro-brand img {
  width: min(320px, 100%);
}

.intro-copy {
  max-width: 780px;
}

.intro-copy p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.feature,
.timeline-item,
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(8, 17, 31, 0.06);
}

.service-card {
  min-height: 300px;
  padding: 24px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 38px;
  color: #fff;
  font-weight: 800;
  background: var(--navy);
  border-radius: var(--radius);
}

.service-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:nth-child(2) .icon {
  background: var(--red);
}

.service-card:nth-child(3) .icon {
  background: var(--gray);
}

.service-card:nth-child(4) .icon {
  background: var(--dark-red);
}

.service-card p,
.feature p,
.timeline-item p,
.project-card p {
  margin-bottom: 0;
}

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--gray));
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(188, 12, 36, 0.18);
}

.services-cta h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.services-cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.services-cta .btn {
  flex: 0 0 auto;
  background: #fff;
  color: var(--red);
  box-shadow: none;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: var(--navy);
}

.band h2,
.band p {
  color: inherit;
}

.band-content {
  align-self: center;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature {
  padding: 24px;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.1);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 42px;
  right: 42px;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gray));
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(188, 12, 36, 0.16);
}

.timeline::after {
  content: "";
  position: absolute;
  top: 62px;
  right: 28px;
  width: 20px;
  height: 20px;
  border-top: 6px solid var(--gray);
  border-right: 6px solid var(--gray);
  transform: rotate(45deg);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 230px;
  padding: 26px 24px 24px;
  overflow: hidden;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(188, 12, 36, 0.08), rgba(255, 255, 255, 0) 44%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.timeline-item:hover::before {
  opacity: 1;
}

.step-marker {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 800;
  background: var(--red);
  border: 6px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(188, 12, 36, 0.22);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 6px 0 34px;
  color: var(--red);
  background: var(--soft-red);
  border: 1px solid rgba(188, 12, 36, 0.16);
  border-radius: var(--radius);
}

.step-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-item h3,
.timeline-item p,
.step-marker,
.step-icon {
  position: relative;
  z-index: 1;
}

.cta-section {
  display: block;
  padding: 94px max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background:
    linear-gradient(135deg, rgba(188, 12, 36, 0.96), rgba(83, 82, 82, 0.92)),
    var(--red);
}

.cta-section h2,
.cta-section p {
  color: #fff;
}

.cta-content {
  max-width: 760px;
  margin-bottom: 36px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(420px, 0.62fr);
  gap: 20px;
  align-items: stretch;
  max-width: var(--max);
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.mascot {
  width: min(270px, 92%);
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
}

.contact-card-copy {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-card-copy .btn {
  width: 100%;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
}

.map-frame {
  width: 100%;
  min-height: 430px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 800;
  color: var(--red);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
}

.footer-contact a {
  color: var(--gray);
  font-size: 0.9rem;
}

.footer-top {
  white-space: nowrap;
}

.portfolio-page {
  background: #eef3f8;
}

.portfolio-hero {
  padding: 160px max(24px, calc((100vw - var(--max)) / 2)) 72px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(24, 17, 18, 0.96), rgba(83, 82, 82, 0.74)),
    url("../assets/hero-it-services.png") center / cover;
}

.portfolio-hero div {
  max-width: 850px;
}

.portfolio-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.portfolio-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.portfolio-section {
  padding-top: 44px;
}

.portfolio-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  position: sticky;
  top: 92px;
  z-index: 5;
  padding: 12px;
  background: rgba(238, 243, 248, 0.88);
  border: 1px solid rgba(219, 227, 239, 0.8);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 24px;
}

.project-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card h2 {
  font-size: 1.55rem;
  line-height: 1.1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 0 14px;
  color: #fff;
  font-weight: 800;
  background: var(--red);
  border-radius: var(--radius);
}

.project-link:hover {
  background: var(--dark-red);
}

.project-card.is-hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    justify-content: flex-start;
  }

  .portfolio-nav {
    position: static;
    display: flex;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero {
    min-height: 920px;
  }

  .hero-stats,
  .intro,
  .band,
  .cta-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 28px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid,
  .timeline,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before,
  .timeline::after {
    display: none;
  }

  .services-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .site-header.scrolled {
    width: calc(100% - 24px);
  }

  .brand-logo {
    height: 42px;
  }

  .hero {
    min-height: 860px;
    padding-top: 126px;
  }

  .hero-content {
    padding-bottom: 24px;
  }

  .hero-stats,
  .service-grid,
  .timeline,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    gap: 14px;
  }

  .timeline::before {
    display: block;
    top: 24px;
    bottom: 24px;
    left: 38px;
    right: auto;
    width: 5px;
    height: auto;
  }

  .timeline-item {
    min-height: auto;
    padding-left: 78px;
  }

  .step-marker {
    position: absolute;
    top: 24px;
    left: 17px;
    margin-bottom: 0;
  }

  .step-icon {
    width: 62px;
    height: 62px;
    margin-top: 0;
    margin-bottom: 22px;
  }

  .contact-card {
    min-height: auto;
  }

  .mascot {
    width: min(220px, 78%);
  }

  .map-frame {
    min-height: 330px;
  }

  .intro-brand {
    min-height: 180px;
    padding: 24px;
  }

  .intro-actions,
  .services-cta .btn {
    display: grid;
    width: 100%;
  }

  .hero-actions,
  .footer,
  .portfolio-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .footer-top {
    width: 100%;
  }

  .footer-contact {
    display: grid;
  }

  .section,
  .band,
  .cta-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}
