/* ============================================================
   style.css — NAS IT SOLUTIONS
   Colors: navy #002D69, orange #E8622C, light bg #F5F6FA
   Fonts: Montserrat (Headings) & Inter (Body)
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #002D69;
  line-height: 1.5;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #002D69;
  margin-bottom: 20px;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}
.section-title span { color: #E8622C; }
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #D1D5DB;
  min-width: 30px;
  max-width: 200px;
}

/* ============================================================
   HERO SECTION (real background image, right side)
   ============================================================ */
.hero-section {
  position: relative;
  background: #ffffff;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* --- Real hero background image, right side, softly faded — no hard edge --- */
.hero-tech-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background-image: url('images/Hero section bg.png');
  background-size: cover;
  background-position: center;
  /* Smooth fade from fully transparent (left) to fully visible (right) —
     replaces the old clip-path so there is no visible diagonal border */
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 8%, rgba(0,0,0,0.35) 30%, black 55%, black 100%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 8%, rgba(0,0,0,0.35) 30%, black 55%, black 100%);
}

/* Extra soft white bloom on top so the blend into the page background
   is seamless, with no hard line anywhere */
.hero-tech-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #ffffff 0%, rgba(255,255,255,0.6) 20%, rgba(255,255,255,0) 55%);
}

/* ---- Content Wrapper ---- */
.hero-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-top: 28px;
  padding-bottom: 20px;
  min-height: 460px;
  z-index: 2; /* Keeps text in front */
}

.top-bar { display: flex; align-items: center; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
/* Hero logo — much bigger, sized to its natural aspect ratio */
.top-bar .brand-mark {
  width: auto;
  height: 72px;
  max-width: 260px;
}
.brand-text strong {
  display: block; color: #002D69; font-size: 1.4rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1;
  font-family: 'Montserrat', sans-serif;
}
.brand-text span {
  display: block; color: #E8622C; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.24em; margin-top: 2px;
  font-family: 'Montserrat', sans-serif;
}

/* Bigger accompanying wordmark next to the bigger hero logo */
.top-bar .brand-text strong { font-size: 1.9rem; }
.top-bar .brand-text span { font-size: 0.75rem; }

.headline-block { max-width: 720px; position: relative; z-index: 2; }
.headline-block h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.8rem); font-weight: 800;
  color: #002D69; letter-spacing: 0.01em; line-height: 1.12;
  font-family: 'Montserrat', sans-serif;
}
.headline-block p {
  margin-top: 14px; color: #6B7280; font-size: 1.15rem; font-weight: 400;
}

/* HERO BADGES WITH BLUE ICONS */
.badge-row {
  display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; max-width: 620px;
  list-style: none;
}
.badge-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 18px 0 0;
  text-align: center;
}
.badge-item:last-child { border-right: none; padding-right: 0; }
.badge-item i { font-size: 28px; color: #002D69; }
.badge-item span {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em;
  color: #002D69; text-transform: uppercase; line-height: 1.2;
  font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 20px 0; background: #ffffff; }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; list-style: none; }
.info-card {
  text-align: center; padding: 24px 18px; border-radius: 8px; background: #ffffff;
  transition: background 0.3s ease, color 0.3s ease; border: 1px solid #E4E7EE;
}
.info-card:hover { background: #002D69; border-color: #002D69; cursor: pointer; }
.info-card:hover .icon-wrap { background: rgba(255,255,255,0.15); }
.info-card:hover .icon-wrap i { color: #ffffff; }
.info-card:hover h3 { color: #E8622C; }
.info-card:hover p { color: rgba(255,255,255,0.85); }
.info-card .icon-wrap {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #F5F6FA;
  display: flex; align-items: center; justify-content: center; transition: background 0.3s ease;
}
.info-card .icon-wrap i { font-size: 26px; color: #002D69; transition: color 0.3s ease; }
.info-card h3 {
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #E8622C; margin-bottom: 10px; transition: color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}
.info-card p { font-size: 0.85rem; color: #6B7280; line-height: 1.65; transition: color 0.3s ease; }

/* ============================================================
   BRANDS
   ============================================================ */
.brands { padding: 20px 0; background: #F5F6FA; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  list-style: none;
}
.brand-tile {
  background: #ffffff; border: 1px solid #E4E7EE; border-radius: 6px; height: 80px;
  display: flex; align-items: center; justify-content: center; padding: 8px;
}
.brand-tile img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}
.brands-more { text-align: center; margin-top: 24px; color: #6B7280; font-size: 0.85rem; font-style: italic; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { padding: 20px 0; background: #ffffff; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px 16px;
  list-style: none;
}
.product-card {
  text-align: center;
  border: 1px solid #E4E7EE;
  border-radius: 6px;
  padding: 10px 6px;
  background: #ffffff;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-card .icon-wrap {
  height: 36px;
  margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
}
.product-card .icon-wrap i {
  font-size: 28px;
  color: #002D69;
}
.product-card span {
  font-size: 0.6rem;
  font-weight: 800;
  color: #002D69;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  line-height: 1.1;
  font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 20px 0; background: #F5F6FA; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  list-style: none;
}
.service-card {
  background: #ffffff;
  border: 1px solid #E4E7EE;
  border-radius: 6px;
  padding: 26px 18px;
  text-align: center;
}
.service-card .icon-wrap {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.service-card .icon-wrap i {
  font-size: 40px;
  color: #002D69;
}
.service-card h3 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #002D69;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}
.service-card p {
  font-size: 0.78rem;
  color: #6B7280;
  line-height: 1.55;
}

/* ============================================================
   REACH
   ============================================================ */
.reach {
  padding: 50px 0;
  background: #002D69;
  color: #ffffff;
}

.reach-grid {
  display: flex;
  flex-wrap: wrap;
}

.left-half {
  width: 60%;
  display: flex;
  padding-right: 30px;
  position: relative;
  align-items: stretch;
}

.right-half {
  width: 40%;
  padding-left: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.vertical-divider {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.country-text-col {
  width: 22%;
}

.map-col {
  width: 78%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.reach h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.map-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-art {
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

.country-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  list-style: none;
}
.country-list li {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: rgba(255,255,255,0.9);
}

.client-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  list-style: none;
  margin-top: 5px;
}
.client-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.95);
}
.client-list i {
  font-size: 18px;
  color: #E8622C;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact {
  background: #ffffff;
  color: #002D69;
  padding: 36px 0 40px;
  border-top: 1px solid #E4E7EE;
}

.contact-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 40px;
}

.contact-copy h2 {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #002D69;
  font-family: 'Montserrat', sans-serif;
}
.contact-copy h2 span { color: #E8622C; }
.contact-copy p {
  font-size: 0.88rem;
  color: #6B7280;
  max-width: 340px;
  margin: 10px 0px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.contact-links a {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700;
  color: #002D69; text-decoration: none;
}
.contact-links i { font-size: 17px; color: #E8622C; flex-shrink: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}
/* Footer logo — same size as the hero logo at every breakpoint */
.footer-brand .brand-mark {
  flex-shrink: 0;
  width: auto;
  height: 72px;
  max-width: 260px;
}
.footer-brand .brand-copy { text-align: left; }
.footer-brand .brand-copy strong { display: block; color: #002D69; font-size: 1.15rem; font-weight: 800; line-height: 1; font-family: 'Montserrat', sans-serif; }
.footer-brand .brand-copy .sub { display: block; color: #E8622C; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; margin-top: 2px; font-family: 'Montserrat', sans-serif; }
.footer-brand .brand-copy .tagline {
  color: #9AA3B2; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
}

.btn-full {
 display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 7px 19px;
    border-radius: 6px;
    background: #002D69;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 38px;
    font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-tech-bg { width: 60%; }
  .top-bar .brand-mark { height: 56px; }
  .footer-brand .brand-mark { height: 56px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }

  .reach { padding: 32px 0; }
  .left-half, .right-half { width: 100%; padding: 0; }
  .vertical-divider { display: none; }
  .left-half { flex-direction: column; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 24px; }
  .country-text-col, .map-col { width: 100%; padding: 0; }
  .map-wrapper { margin-top: 12px; justify-content: center; }
  .map-art { max-height: 220px; }

  .contact-top { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .contact-copy p { margin: 10px auto; }
  .btn-full { margin: 0 auto; }
  .contact-links { align-items: center; }
  .footer-brand { justify-content: center; justify-self: center; }
  .footer-brand .brand-copy { text-align: center; }
  .badge-row { max-width: 100%; }
}

/* NEW BREAKPOINT: Fade the image out before removing it completely */
@media (max-width: 820px) and (min-width: 751px) {
  .hero-tech-bg {
    opacity: 0.6; /* Fade it out on larger tablets */
    width: 50%;
  }
}

/* UPDATED BREAKPOINT: Remove background image completely at 750px */
@media (max-width: 750px) {
  .hero-tech-bg { display: none; }
  .hero-section { min-height: 380px; }
  .hero-wrap { min-height: 340px; }
  .badge-row { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .top-bar .brand-mark { height: 46px; max-width: 190px; }
  .footer-brand .brand-mark { height: 46px; max-width: 190px; }
  .about-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .client-list { grid-template-columns: 1fr; }
  .reach { padding: 26px 0; }
  .left-half { margin-bottom: 18px; padding-bottom: 18px; }
  .map-wrapper { margin-top: 8px; }
  .map-art { max-height: 180px; }
  .badge-row {
    gap: 16px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .badge-item {
    padding: 0;
    border-right: none;
    padding-bottom: 12px;
  }
  .badge-item:nth-last-child(1), .badge-item:nth-last-child(2) {
    border-bottom: none;
  }
  .badge-item span { font-size: 0.6rem; }
  .headline-block h1 { font-size: 2rem; }
  .section-title { font-size: 1rem; gap: 10px; }
}

@media (max-width: 480px) {
  .top-bar .brand-mark { height: 38px; max-width: 150px; }
  .footer-brand .brand-mark { height: 38px; max-width: 150px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .hero-section { min-height: 320px; }
  .hero-wrap { gap: 40px; }
  .headline-block h1 { font-size: 1.7rem; }
  .badge-item i { font-size: 22px; }
  .badge-item span { font-size: 0.55rem; }
  .map-art { max-height: 140px; }
}