body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: #0b0f14;
  color: #e8eef8;
}

.wrap {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  background: #6ee7ff;
  color: #000;
  padding: 10px;
  border-radius: 10px;
  font-weight: 800;
}

.nav a {
  margin-left: 10px;
  text-decoration: none;
  color: #e8eef8;
}

.btn {
  background: #6ee7ff;
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: #111826;
  border-radius: 14px;
  padding: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

input, textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: none;
}

.footer {
  margin-top: 40px;
  text-align: center;
  color: #a9b4c7;
}

.muted {
  color: #a9b4c7;
}
/* ===== FINAL MOBILE LAYOUT FIX ===== */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /* Header cleanup */
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo {
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .nav .btn {
    padding: 8px 12px;
  }

  /* Hero stack */
  .hero {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 20px;
  }

  /* Text first */
  .hero > div:first-child {
    order: 1;
  }

  /* Contact card second */
  .hero .card {
    order: 2;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .hero .btn {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 18px;
    font-size: 1rem;
  }

  /* Services & cards */
  section {
    margin-top: 44px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

}
/* ===== Mobile header/nav: links left, Contact hard-right ===== */
@media (max-width: 768px) {

  /* Make header stack: brand row then nav row */
  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Brand row stays left */
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Nav row is full width */
  .nav {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;           /* prevents wrapping/overlap weirdness */
  }

  /* Services/Process readable + not cramped */
  .nav a:not(.btn) {
    font-size: 1rem;
    line-height: 1;
    padding: 10px 0;
    opacity: 0.95;
    white-space: nowrap;
  }

  /* Push Contact all the way right */
  .nav .btn {
    margin-left: auto;           /* key: pins it to far right */
    padding: 10px 14px;
    font-size: 1rem;
    white-space: nowrap;
  }
}
