:root {
  --ink: #10232a;
  --muted: #596b72;
  --line: #d9e3e2;
  --paper: #f6f8f5;
  --white: #ffffff;
  --blue: #0b74b8;
  --teal: #0d8d87;
  --green: #5c8a42;
  --dark: #07171c;
  --shadow: 0 18px 45px rgba(16, 35, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255, 255, 255);
  border-bottom: 1px solid black;
  backdrop-filter: blur(14px);
}

.topbar,
.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  
}

.topbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  color: white;
  font-size: 0.86rem;
  background-color:#2c2474;
  width: 100%;
  padding: 0 20px;
  
}

.topbar > a:hover,
.social-links a:hover,
.nav-links a:hover {
  color:#FFC94D;
}

.social-links {
  display: flex;
  gap: 14px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand img {
  width: 164px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 700;
}

.quote-link,
.button,
.filter-bar button {
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quote-link {
  padding: 12px 18px;
}

.button {
  display: inline-flex;
  padding: 14px 22px;
}

.quote-link:hover,
.button:hover,
.filter-bar button:hover,
.filter-bar button.is-active {
  background: var(--teal);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slider,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background:
    linear-gradient(90deg, rgba(7, 23, 28, 0.86), rgba(7, 23, 28, 0.34)),
    var(--bg) ;
   background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--white);
}

.hero-content p,
.eyebrow {
  margin: 0 0 12px;
  color: #78c9c5;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 28px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
}

.slider-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 32px;
  display: flex;
  gap: 10px;
}

.slider-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(7, 23, 28, 0.42);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.section-media img,
.reason-grid img,
.service-grid img,
.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-copy h2,
.section-heading h2,
.vision h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.reason-grid p,
.service-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.reason-grid,
.service-grid,
.portfolio-grid {
  display: grid;
  gap: 22px;
}

/* .reason-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
} */
.reason-grid{
  display: grid;
  grid-template-columns: repeat(4,300px);
  gap: 20px;
}
.portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reason-grid article{
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
  /* display:flex;
  justify-content: center;
  align-items: center; */
}
.service-grid article,
.portfolio-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 35, 42, 0.08);
  height: 100%;
  width: 100%;
  /* border-radius: 10px; */
}

.reason-grid article img{
  /* width: 100%;
  height:100%; */
  object-fit:contain;
  display: block;
  max-width: auto;
  max-height: auto;

}
.service-grid article img,
.portfolio-grid article img {
  /* aspect-ratio: 4 / 3; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reason-grid h3,
.service-grid h3,
.portfolio-grid h3 {
  margin: 20px 20px 8px;
  font-size: 1.08rem;
}

.reason-grid p,
.service-grid p {
  margin: 0 20px 22px;
}

.services {
  width: 100%;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: #e9f1ee;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.portfolio-grid article {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-grid article.is-hidden {
  display: none;
}

.portfolio-grid img {
  aspect-ratio: 1 / 0.78;
}

.portfolio-grid h3 {
  margin-bottom: 20px;
}

.vision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.vision article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 23, 28, 0.12), rgba(7, 23, 28, 0.85)),
    url("https://earthonmapping.com/wp-content/uploads/2021/03/Mapping-Ortho_eom.jpg") center / cover;
}

.vision article:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(7, 23, 28, 0.12), rgba(7, 23, 28, 0.85)),
    url("https://earthonmapping.com/wp-content/uploads/2021/03/BIM-Modeling-1.jpg") center / cover;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding: 64px max(16px, calc((100vw - 1180px) / 2)) 26px;
  color: rgba(255, 255, 255, 0.86);
  background: var(--dark);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 0 8px;
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: #78c9c5;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 999px;
  background: #16a34a;
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .topbar {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .quote-link {
    text-align: center;
  }

  .split,
  .vision {
    grid-template-columns: 1fr;
  }

  .reason-grid,
  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero,
  .hero-slider,
  .hero-slide {
    min-height: 560px;
  }

  .section {
    padding: 62px 0;
  }

  .reason-grid,
  .service-grid,
  .portfolio-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .slider-controls {
    left: 16px;
    right: auto;
  }
}
@media(max-width:992px){
  .reason-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:576px){
  .reason-grid{
    grid-template-columns:1fr;
  }
}
.topbar{
  background:#2f2b7f;
  color:#fff;
  padding:12px 30px;

  display:flex;
  justify-content:space-between;
  align-items:center;
}

.topbar a{
  color:#fff;
  text-decoration:none;
  font-size:16px;
}

.social-links{
  display:flex;
  gap:15px;
}

/* NAVBAR */

/* .navbar{
  background:#fff;
  width: 100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 60px;
} */
.brand{
  display:flex;
  align-items:center;
}

.brand img{
  width: 340px;
  height: auto;
  
}

.menu{
  display:flex;
  align-items:center;
  gap:35px;

  list-style:none;
}

.menu li{
  position:relative;
}

.menu li a{
  text-decoration:none;
  color:#000;
  font-size:18px;
  font-weight:700;
}

.service-btn{
  background:none;
  border:none;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}


.mega-menu{
  position:absolute;
  top:45px;
  left:-20px;

  display:none;
  z-index:100;
}

.mega-menu.show{
  display:flex;
}
.left-menu{
  width:270px;
  background:#0d5f91;
}

.menu-item{
  position:relative;

  color:#fff;
  padding:22px 35px;

  font-size:18px;
  font-weight:600;

  background:#0d5f91;
  border-bottom:1px solid rgba(255,255,255,0.2);

  cursor:pointer;
}

.menu-item:hover{
  background:#000;
}


.submenu{
  position:absolute;

  left:100%;
  top:0;

  width:500px;

  background:#0d5f91;

  display:none;
}

.menu-item:hover .submenu{
  display:block;
}

.submenu a{
  display:block;

  color:#fff !important;
  padding:22px 35px;

  text-decoration:none;

  border-bottom:1px solid rgba(255,255,255,0.2);
}

.submenu a:hover{
  background:#084b73;
}

.quote-link{
  background:#0b74c4;
  color:#fff !important;

  padding:15px 25px;
  border-radius:8px;
}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  grid-column: 1 / -1;
  width: 100%;
  /* flex-wrap:wrap; */
  gap:15px;
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
  white-space: nowrap;
}

@media(max-width:576px){
  .footer-bottom {
    justify-content: center;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

.power{
  margin-left:auto;
  white-space: nowrap;
  padding-left: 450px;
  display: block;
}
