/* --------------------------- */
/* GLOBAL RESET & BASE STYLES  */
/* --------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0f172a;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

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

/* Wrap container */
.wrap {
  width: 92%;
  max-width: 1100px;
  margin: auto;
}

/* --------------------------- */
/* NAVIGATION & HEADER         */
/* --------------------------- */
header {
  background: #020617;
  border-bottom: 1px solid #1e293b;
  padding: .75rem 0;
}

header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 1rem;
  font-size: .95rem;
  transition: .2s ease;
}

nav a:hover {
  color: #f97316;
}

.nav-active {
  color: #f97316 !important;
  font-weight: 600;
}

/* --------------------------- */
/* SOCIAL BAR (OPTIONAL)       */
/* --------------------------- */
.social-bar {
  background: #020617;
  border-bottom: 1px solid #1e293b;
  padding: .4rem 0;
}

.social-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #9ca3af;
}

.social-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.social-links a {
  padding: .15rem .6rem;
  font-size: .8rem;
  border-radius: 20px;
  border: 1px solid #374151;
  color: #e5e7eb;
  text-decoration: none;
  transition: .2s;
}

.social-links a:hover {
  color: #f97316;
  border-color: #f97316;
}

/* --------------------------- */
/* HERO SECTION                */
/* --------------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 0 2rem 0;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f8fafc;
}

.hero-text p {
  margin-bottom: 1.25rem;
  color: #cbd5e1;
}

.hero-text ul {
  margin-left: 1.1rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  color: #e5e7eb;
}

.hero-image img {
  width: 460px;
  max-width: 100%;
  border-radius: .75rem;
  border: 1px solid #1e293b;
  box-shadow: 0 0 20px rgba(0,0,0,.4);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: .55rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

.btn-primary {
  background: #f97316;
  color: #0f172a;
}

.btn-primary:hover {
  background: #fb923c;
}

.btn-secondary {
  border: 1px solid #f97316;
  color: #f97316;
}

.btn-secondary:hover {
  background: #f97316;
  color: #0f172a;
}

/* --------------------------- */
/* SECTION BASE STYLES         */
/* --------------------------- */
.section {
  padding: 2rem 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: .75rem;
}

.section-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

/* --------------------------- */
/* SINGLE AVERAGE PM TILE      */
/* --------------------------- */
.avg-pm-card {
  border-radius: .75rem;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  padding: 1.25rem;
  margin-top: 1rem;
}

.avg-pm-card h3 {
  margin-bottom: .5rem;
}

.avg-pm-card ul {
  margin-left: 1.1rem;
  margin-top: .35rem;
}

/* --------------------------- */
/* SERVICES GRID (used on Services page) */
/* --------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1rem;
  border-radius: .75rem;
  border: 1px solid #1f2937;
  background: #0f172a;
}

.service-card h3 {
  margin-bottom: .5rem;
}

/* --------------------------- */
/* BLOG PAGE                   */
/* --------------------------- */
.blog-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  gap: .9rem;
}

.blog-list li a {
  font-weight: 600;
  color: #e5e7eb;
  text-decoration: none;
}

.blog-list li a:hover {
  color: #f97316;
}

.blog-meta-inline {
  display: block;
  color: #9ca3af;
  font-size: .8rem;
}

/* Callout box */
.blog-intro-callout {
  margin-top: 1rem;
  border-radius: .75rem;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  padding: 1rem;
  font-size: .9rem;
}

/* --------------------------- */
/* TRUSTED BY SECTION          */
/* --------------------------- */
.trusted-by {
  text-align: center;
  padding: 2.5rem 0;
  background: #020617;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  margin-top: 2rem;
}

.trusted-by h2 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

.trusted-by p {
  font-size: .95rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.trusted-logos a {
  display: inline-block;
  padding: .4rem .9rem;
  background: #0b1120;
  border: 1px solid #1f2937;
  border-radius: 999px;
  text-decoration: none;
  font-size: .85rem;
  color: #e5e7eb;
  transition: .2s ease;
}

.trusted-logos a:hover {
  background: #f97316;
  border-color: #f97316;
  color: #020617;
}

/* --------------------------- */
/* CASE STUDIES / GALLERY ETC. */
/* --------------------------- */
.case-card {
  padding: 1rem;
  border-radius: .75rem;
  border: 1px solid #1f2937;
  background: #0f172a;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  border-radius: .5rem;
  border: 1px solid #1e293b;
}

/* --------------------------- */
/* CONTACT BOX                 */
/* --------------------------- */
.contact-box {
  border: 1px solid #1e293b;
  padding: 1rem;
  border-radius: .75rem;
  background: #0f172a;
}

/* --------------------------- */
/* FOOTER                      */
/* --------------------------- */
footer {
  background: #020617;
  border-top: 1px solid #1e293b;
  margin-top: 2rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: .85rem;
  color: #94a3b8;
}

footer .wrap div {
  margin-bottom: .35rem;
}

/* --------------------------- */
/* RESPONSIVE TWEAKS           */
/* --------------------------- */
@media (max-width: 768px) {
  header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
  }

  nav a {
    margin: .25rem .75rem 0 0;
  }

  .hero {
    flex-direction: column;
  }
}
