/* =========================
   Flux build (matched scheme)
   Blue:   #00AEEF
   Yellow: #FFDE16
   Grey:   #EDEDED
   Border: #D7D7D7
========================= */

:root{
  --blue:   #00AEEF;
  --yellow: #FFDE16;
  --soft:   #EDEDED;
  --border: #D7D7D7;

  --bg: #ffffff;
  --text: #000000;
  --muted: #333333;

  --container: 980px;
}

/* ===== Reset / base ===== */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

site-header,
site-footer{
  display: block;
}

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

main{
  flex: 1;
}

.container{
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}

/* ===== Topbar ===== */
.topbar{
  background: #fff;
  padding: 12px 0 8px;
}

.topbar__inner{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__logo{
  width: 160px;
  height: auto;
}

.brand__logo--secondary{
  width: 65px;
}

.nav{
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 0;
  font-size: 14px;
  letter-spacing: .3px;
}

.nav a{
  text-decoration: none;
  color: #000;
}
.nav a:hover{ text-decoration: underline; }

/* ===== Hero ===== */
.hero{
  background: var(--soft);
  padding: 18px 0;
}

.hero__inner{
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 18px;
  align-items: center;
  border: none;
}

.hero__copy h1{
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
}

.hero__copy p{
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--muted);
  max-width: 270px;
}

.btn{
  display: inline-block;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 10px;
  padding: 10px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
}

.btn:hover{ filter: brightness(0.97); }
.btn:active{ transform: translateY(1px); }

.btn--small{
  padding: 10px 18px;
}

.hero__media img{
  width: 100%;
  height: 210px;          /* match screenshot feel */
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

/* ===== Stats bar ===== */
.stats{
  background: var(--blue);
  padding: 18px 0;
}

.stats__inner{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.stat__value{
  color: var(--yellow);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.stat__label{
  color: #fff;
  font-size: 10px;
  margin-top: 6px;
}

/* ===== Services tiles ===== */
/* ===== Services ===== */
.services{
  padding: 24px 0 0;
}

.services__grid{
  display: grid;
  gap: 14px;
  margin: 14px auto;
}

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

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

.tile{
  position: relative;
  height: 145px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  background: #fff;
}

.tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transform: scale(1.02);
}

.tile__text{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;

  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .8px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

/* ===== Logos strip ===== */
.logos{
  background: var(--blue);
  padding: 22px 0;
  margin-top: 14px;
}

.logos__inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.logos__inner img{
  height: 56px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.05);
}

.promo-strip{
  background: var(--blue);
  color: #fff;
  padding: 22px 0;
}

.promo-strip__inner{
  display: flex;
  justify-content: center;
}

.promo-strip__content{
  width: 100%;
  text-align: center;
}

.promo-strip__title{
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.promo-strip__text{
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

/* ===== Why section ===== */
.why{
  background: var(--soft);
  padding: 18px 0;
}

.why__inner{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: center;
}

.why__media img{
  height: 250px;
  width: 100%;
  object-fit: cover;
  object-position: center bottom;
  border: 1px solid var(--border);
  background: #fff;
}

.why__copy h2{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.why__copy p{
  margin: 0 0 12px;
  font-size: 10px;
  color: var(--muted);
  max-width: 380px;
}

.history__content{
  max-width: 900px;
  margin: 0 auto;
}

.history__title{
  margin: 0 0 16px;
  text-align: center;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
}

.history__image-box{
  width: 100%;
  height: 260px;
  margin: 0 0 18px;
  border: 2px dashed var(--border);
  background: #fff;
}

.history__gallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: min(680px, 100%);
  margin: 8px auto 18px;
}

.history__gallery img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.history__content p{
  margin: 0 auto 12px;
  max-width: 780px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Service detail pages ===== */
.service-detail{
  background: var(--soft);
  padding: 20px 0 26px;
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: stretch;
}

.service-detail .container{
  flex: 1;
}

.service-detail__wrap{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  align-items: stretch;
  min-height: 100%;
}

.service-detail__media img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.service-detail__content{
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail__title{
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.1;
}

.service-detail__content p{
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.service-detail__content ul{
  margin: 0 0 12px 18px;
  padding: 0;
}

.service-detail__content li{
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* ===== Reach us ===== */
.reach{
  background: var(--soft);
  padding: 24px 0 18px;
}

.reach__inner{
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 18px;
  align-items: center;
}

.reach__copy h2{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.reach__copy--full{
  grid-column: 1 / -1;
  text-align: center;
}

.reach__copy p{
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  max-width: 380px;
}

.reach__map img,
.reach__map iframe{
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.reach__map{
  grid-column: 1 / -1;
  width: min(820px, 100%);
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer{
  background: var(--blue);
  color: #fff;
  padding: 18px 0 28px;
}

.footer__inner{
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
}

.footer__logos{
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.logos--footer{
  background: transparent;
  padding: 0;
  margin-top: 0;
}

.logos--footer .logos__inner{
  justify-content: flex-end;
  gap: 12px;
}

.logos--footer .logos__inner img{
  height: 52px;
}

.footer__col{
  font-size: 10px;
  line-height: 1.55;
}

.footer__col strong{
  font-size: 11px;
}

.footer__links{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding-top: 6px;
}

.footer a{
  color: #fff;
  text-decoration: none;
}
.footer a:hover{ text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 820px){
  .hero__inner{
    grid-template-columns: 1fr;
  }
  .hero__media img{
    height: 220px;
  }

  .services__grid--top{
    grid-template-columns: 1fr;
  }
  .services__grid--bottom{
    grid-template-columns: 1fr;
  }

  .why__inner{
    grid-template-columns: 1fr;
  }

  .reach__inner{
    grid-template-columns: 1fr;
  }

  .service-detail__wrap{
    grid-template-columns: 1fr;
  }

  .service-detail__media img{
    height: 240px;
    min-height: 240px;
  }

  .nav{
    gap: 16px;
  }

  .logos__inner{
    flex-wrap: wrap;
    gap: 12px;
  }

  .history__gallery{
    grid-template-columns: 1fr;
  }

  .promo-strip__content{
    min-height: 140px;
    padding: 16px;
  }

  .promo-strip__title{
    font-size: 24px;
  }

  .promo-strip__text{
    font-size: 16px;
  }
}

@media (max-width: 520px){
  .topbar__inner{
    flex-direction: column;
    align-items: center;
  }

  .nav{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
    gap: 12px;
    font-size: 10px;
  }

  .footer__inner{
    grid-template-columns: 1fr;
  }

  .footer__col{
    text-align: center;
  }

  .footer__logos{
    justify-content: center;
  }

  .logos--footer .logos__inner{
    justify-content: center;
  }

  .stats__inner{ grid-template-columns: 1fr; }
}

/* ===== Home page scale-up ===== */
.page-home .container{
  width: min(1060px, calc(100% - 28px));
}

.page-home .hero__copy h1{
  font-size: 28px;
}

.page-home .hero__copy p{
  font-size: 12px;
  max-width: 320px;
}

.page-home .btn{
  font-size: 11px;
  padding: 12px 30px;
}

.page-home .hero__media img{
  height: 240px;
}

.page-home .tile{
  height: 160px;
}

.page-home .tile__text{
  font-size: 12px;
}

.page-home .logos__inner img{
  height: 62px;
}

.page-home .why__copy h2{
  font-size: 22px;
}

.page-home .why__copy p{
  font-size: 12px;
  max-width: 460px;
}

.page-home .reach__copy h2{
  font-size: 26px;
}

.page-home .reach__copy p{
  font-size: 12px;
  max-width: 440px;
}

.page-home .reach__map img,
.page-home .reach__map iframe{
  height: 300px;
}

.page-home .footer__col{
  font-size: 11px;
}

.page-service .container{
  width: min(1060px, calc(100% - 28px));
}

.page-history main{
  background: var(--soft);
}
