:root {
  --bg: #ffffff;
  --surface: #f6f9fc;
  --card: #ffffff;
  --text: #373642;
  --heading: #005480;
  --line: #dde7ef;
  --radius: 8px;
  --shadow: 0 10px 26px rgba(7, 48, 79, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
}

h1,
h2,
h3 {
  color: var(--heading);
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.15rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-top: 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

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

.container {
  width: min(1150px, calc(100% - 2.6rem));
  margin: 0 auto;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid #e8edf2;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: all 0.2s ease;
}

.header-contact {
  color: #005480;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.header-contact:hover {
  text-decoration: underline;
}

.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 74, 120, 0.88),
    rgba(2, 74, 120, 0.62) 48%,
    rgba(6, 25, 44, 0.7) 100%
  );
  z-index: 2;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  animation: heroFade 18s infinite;
}

.hero-slide-1 {
  background-image: url("../Content/1blue-GS9efirULzrG53O-3vKVVw.jpg");
  animation-delay: 0s;
}

.hero-slide-2 {
  background-image: url("../Content/blue7-ikhJYf-8wsvgDVRmKrOS2Q.jpg");
  animation-delay: 6s;
}

.hero-slide-3 {
  background-image: url("../Content/camx-Ow3J6RDlyTzBjyaa9MPZ_Q.jpg");
  animation-delay: 12s;
}

.hero-content {
  padding-top: 74px;
  padding-bottom: 34px;
  position: relative;
  z-index: 3;
}

.hero-copy {
  color: #ffffff;
  max-width: 760px;
}

.hero-copy h1 {
  color: #ffffff;
  margin-bottom: 0.55rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-copy h3 {
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.hero-copy p {
  color: #eaf3ff;
  font-size: 1.02rem;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

.hero-list {
  margin: 0.15rem 0 0.5rem 1.1rem;
  padding: 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
}

.hero-list li {
  margin-bottom: 0.2rem;
}

.hero-cta {
  background: #ffffff;
  color: #005480;
  margin-top: 0.7rem;
  border-radius: 7px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 2.15fr repeat(4, 1fr);
  gap: 0.9rem;
  align-items: end;
  padding-bottom: 40px;
  position: relative;
  z-index: 3;
}

.metric {
  background: transparent;
  border: 0;
  color: #ffffff;
  padding: 0;
}

.metric strong {
  display: block;
  font-size: clamp(2.55rem, 4vw, 3.3rem);
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.metric span {
  font-size: 0.86rem;
  color: #e3effa;
  text-transform: uppercase;
}

.metric-intro h2 {
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.metric-intro p {
  color: #d9e9f8;
  margin-bottom: 0;
}

.section {
  padding: 3rem 0;
}

.section:nth-of-type(2) {
  background: var(--surface);
}

.section-title {
  margin-bottom: 1.2rem;
}

.section-title p {
  max-width: 68ch;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card p {
  margin-bottom: 0;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-image {
  margin: -1.1rem -1.1rem 0.8rem;
  height: 205px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-card .project-image {
  margin: 0;
  height: 360px;
  border-radius: 0;
}

.project-copy {
  margin: 0;
  padding: 1.1rem 1.4rem 1.25rem;
  color: #005480;
  font-size: 0.97rem;
  line-height: 1.65;
}

.project-copy br {
  display: block;
  content: "";
  margin-bottom: 0.3rem;
}

.project-copy strong {
  font-weight: 700;
}

.project-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #005480;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cta-band {
  background: linear-gradient(120deg, #005480, #006ea6);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cta-band h2,
.cta-band p {
  color: #ffffff;
}

.button-primary {
  background: #ffffff;
  color: #005480;
}

.button-primary:hover {
  background: #eef7ff;
}

.button-secondary {
  background: transparent;
  color: #005480;
  border-color: #005480;
}

.button-secondary:hover {
  background: #f3f9ff;
}

.cta-band .button-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.cta-band .button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer {
  background: #073556;
  color: #d8e4ee;
  padding: 2.2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.footer strong {
  color: #ffffff;
}

.footer a:hover {
  color: #ffffff;
}

.reveal-stagger {
  animation: reveal 0.55s ease both;
}

.reveal-stagger:nth-child(2) {
  animation-delay: 80ms;
}

.reveal-stagger:nth-child(3) {
  animation-delay: 160ms;
}

.reveal-stagger:nth-child(4) {
  animation-delay: 240ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  6% {
    opacity: 1;
  }
  27% {
    opacity: 1;
    transform: scale(1.04);
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@media (max-width: 960px) {
  .brand {
    max-width: 190px;
  }

  .hero-metrics,
  .services,
  .projects,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-row {
    min-height: 88px;
  }

  .hero-overlay {
    min-height: auto;
  }

  .hero-content {
    padding-top: 46px;
    padding-bottom: 20px;
  }

  .metric strong {
    font-size: 2.3rem;
  }

  .hero-metrics {
    padding-bottom: 28px;
    gap: 0.7rem;
  }

  .project-card .project-image {
    height: 250px;
  }
}
