:root {
  --blue: #075f8e;
  --blue-dark: #063d5e;
  --green: #057c2f;
  --green-dark: #045f25;
  --orange: #e24c23;
  --text: #152d3d;
  --muted: #607180;
  --light: #f4f8fb;
  --white: #fff;
  --shadow: 0 18px 45px rgba(6, 61, 94, .14);
  --shadow-strong: 0 24px 60px rgba(6, 61, 94, .2);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

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

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

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.topbar {
  background: var(--blue-dark);
  color: #eaf7ff;
  font-size: .9rem;
}

.topbar-inner {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  padding: 8px 0;
  flex-wrap: wrap;
}

.navbar {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 18px rgba(0, 0, 0, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.25rem;
  letter-spacing: .03em;
}

.brand small {
  display: block;
  color: var(--green);
  font-weight: 700;
  font-size: .78rem;
}

.primary-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.primary-menu a {
  display: inline-flex;
  padding: 11px 13px;
  border-radius: 30px;
  font-weight: 700;
  color: var(--blue-dark);
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.primary-menu a:hover,
.primary-menu a.active {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--blue-dark);
  border-radius: 5px;
}

.home-hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--blue-dark);
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-image: linear-gradient(120deg, rgba(6, 61, 94, .92), rgba(5, 124, 47, .72)), var(--slide-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .9s ease, transform 5.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 430px;
  height: 430px;
  background: rgba(255, 255, 255, .09);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .75fr;
  gap: 42px;
  align-items: center;
}

.home-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.02;
  margin: 10px 0 22px;
}

.home-copy p {
  font-size: 1.15rem;
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--orange);
  font-size: .78rem;
  margin-bottom: 8px;
}

.home-hero .eyebrow,
.page-hero .eyebrow {
  color: #ffb388;
}

.hero-actions,
.hero-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.hero-controls {
  margin-top: 22px;
}

.hero-control {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background .22s ease, transform .22s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, .28);
  transform: translateY(-2px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .44);
  transition: width .22s ease, background .22s ease;
}

.hero-dot.is-active {
  width: 26px;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(5, 124, 47, .22);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 14px 30px rgba(5, 124, 47, .28);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}

.btn-outline:hover {
  background: #fff;
  color: var(--green);
  border-color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--green);
  border-color: #fff;
}

.hero-panel {
  background: rgba(255, 255, 255, .95);
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.hero-panel img {
  width: 150px;
  margin-bottom: 18px;
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-panel li {
  padding: 12px 0;
  border-bottom: 1px solid #e4edf3;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: var(--light);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split h2,
.section-head h2,
.content-narrow h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--blue-dark);
}

.rounded-img,
.document-img,
.feature-card img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}

.document-img {
  background: #fff;
  padding: 12px;
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

.text-link:hover,
.section-head a:hover,
.service-card a:hover,
.project-card a:hover,
.project-list-card a:not(.btn):hover {
  color: var(--orange);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-head a {
  font-weight: 800;
  color: var(--green);
}

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

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

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e1ebf1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
  position: relative;
  overflow: hidden;
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(5, 124, 47, .08);
  transition: transform .3s ease, background .3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(5, 124, 47, .32);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  transform: scale(1.2);
  background: rgba(226, 76, 35, .1);
}

.service-card > span:first-child,
.card-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.service-card:hover > span:first-child,
.service-card:hover .card-number {
  animation: numberPulse .65s ease;
  background: var(--green);
}

.service-card h3 {
  color: var(--blue-dark);
  line-height: 1.2;
}

.service-card a {
  color: var(--green);
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stats-grid article {
  background: linear-gradient(135deg, var(--blue), var(--green));
  padding: 34px 20px;
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .26s ease, box-shadow .26s ease;
}

.stats-grid article::after {
  content: "";
  position: absolute;
  inset: auto -35% -60% auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transition: transform .3s ease;
}

.stats-grid article:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-strong);
}

.stats-grid article:hover::after {
  transform: scale(1.4);
}

.stats-grid strong {
  display: block;
  font-size: 2.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card,
.project-list-card,
.feature-card,
.info-card,
.contact-card,
.contact-form,
.policy-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #e3eef3;
}

.project-card {
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(5, 124, 47, .32);
  box-shadow: var(--shadow-strong);
}

.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card div,
.feature-card,
.info-card,
.contact-card,
.contact-form {
  padding: 24px;
}

.status {
  display: inline-block;
  background: #eaf7ed;
  color: var(--green);
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
}

.project-card h3,
.project-list-card h2 {
  color: var(--blue-dark);
}

.project-list {
  display: grid;
  gap: 24px;
}

.project-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-service-card h2 {
  font-size: 1.45rem;
  line-height: 1.18;
  margin: 18px 0 10px;
}

.project-service-card p {
  margin-top: 0;
}

.project-service-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0 0 22px;
}

.project-service-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.project-meta small {
  color: var(--muted);
  font-weight: 800;
}

.page-hero {
  min-height: 420px;
  background: linear-gradient(120deg, rgba(6, 61, 94, .88), rgba(5, 124, 47, .72)), var(--hero-img) center/cover;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1;
  margin: 0 0 18px;
}

.page-hero p {
  max-width: 760px;
  font-size: 1.12rem;
}

.two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.feature-card img {
  height: 310px;
  object-fit: cover;
  margin-bottom: 20px;
}

.content-narrow {
  max-width: 860px;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin: 10px 0;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.detail-list {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px 22px;
  background: var(--light);
  padding: 24px;
  border-radius: var(--radius);
}

.detail-list dt {
  font-weight: 900;
  color: var(--blue-dark);
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mini-gallery img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform .26s ease, box-shadow .26s ease;
}

.mini-gallery img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.gallery-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.filter-btn {
  border: 1px solid #d7e6ee;
  background: #fff;
  color: var(--blue-dark);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.gallery-item {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  cursor: pointer;
  border: 1px solid #e3eef3;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.gallery-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 18px;
  color: var(--blue-dark);
  transition: color .22s ease;
}

.gallery-item span {
  color: var(--muted);
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: rgba(5, 124, 47, .32);
  box-shadow: var(--shadow-strong);
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-item:hover figcaption {
  color: var(--green);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .86);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  border-radius: 18px;
}

.lightbox-close {
  position: absolute;
  right: 28px;
  top: 22px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 28px;
  cursor: pointer;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.policy-card {
  padding: 24px;
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.policy-card:hover {
  transform: translateY(-7px);
  border-color: rgba(5, 124, 47, .32);
  box-shadow: var(--shadow-strong);
}

.policy-card h2,
.policy-card h3 {
  margin-top: 0;
  color: var(--blue-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-weight: 800;
  color: var(--blue-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dce8ef;
  border-radius: 14px;
  margin-top: 7px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(5, 124, 47, .25);
  border-color: var(--green);
}

.cta-strip {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  padding: 46px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.cta-inner h2 {
  margin: 0;
  font-size: 2rem;
}

.site-footer {
  background: #062f49;
  color: #e9f7ff;
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr 1fr;
  gap: 36px;
}

.footer-logo {
  width: 104px;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  display: block;
  margin: 0;
}

.site-footer a {
  color: #fff !important;
  opacity: 1;
  visibility: visible;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  line-height: 1.4;
}

.site-footer a:hover {
  color: #ffb388;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 18px;
  margin-top: 36px;
  color: #b9d6e8;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes numberPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.14) rotate(5deg);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    transition: opacity .65s ease, transform .65s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1060px) {
  .primary-menu a {
    padding-inline: 10px;
    font-size: .94rem;
  }
}

@media (max-width: 950px) {
  .topbar-inner {
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 150;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 4%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
  }

  .primary-menu.open,
  .nav-toggle[aria-expanded="true"] + .primary-menu {
    display: flex;
  }

  .primary-menu a {
    display: flex;
    justify-content: center;
  }

  .home-hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding: 85px 0;
  }

  .service-grid,
  .service-grid.large,
  .project-grid,
  .stats-grid,
  .footer-grid,
  .two-cards,
  .gallery-grid,
  .mini-gallery,
  .policy-grid,
  .project-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel {
    max-width: 480px;
  }

  .section {
    padding: 62px 0;
  }
}

@media (max-width: 620px) {
  .service-grid,
  .service-grid.large,
  .project-grid,
  .stats-grid,
  .footer-grid,
  .two-cards,
  .gallery-grid,
  .mini-gallery,
  .policy-grid,
  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .home-services .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-services .service-card {
    padding: 15px;
    border-radius: 16px;
  }

  .home-services .service-card > span:first-child {
    width: 36px;
    height: 36px;
    font-size: .86rem;
  }

  .home-services .service-card h3 {
    font-size: .95rem;
    margin: 12px 0 8px;
  }

  .home-services .service-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: .78rem;
    line-height: 1.45;
    margin: 0 0 10px;
  }

  .home-services .service-card a {
    font-size: .8rem;
  }

  .brand small {
    display: none;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .section-head,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-item img {
    height: 240px;
  }

  .gallery-item figcaption {
    flex-direction: column;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    font-size: .78rem;
    gap: 10px;
  }

  .home-copy h1 {
    font-size: 2.4rem;
  }

  .home-copy p {
    font-size: 1rem;
  }

  .home-hero {
    padding: 68px 0;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .page-hero {
    min-height: 330px;
  }

  .project-card img {
    height: 210px;
  }
}

@media (max-width: 380px) {
  .home-services .service-card {
    padding: 12px;
  }

  .home-services .service-card h3 {
    font-size: .86rem;
  }
}
