/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BASE */
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  background: #fff;
}

/* LAYOUT */
.container {
  max-width: 920px; /* 👈 FIXED (prevents upscaling past ~895px images) */
  margin: auto;
  padding: 20px;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #222;
  font-weight: bold;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  nav {
    width: 100%;
    margin-top: 10px;
  }

  nav a {
    display: inline-block;
    margin: 10px;
  }
}

/* =========================
   HERO SLIDER (917 x 398)
========================= */

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 917 / 398;
  margin-bottom: 40px;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   CONTENT
========================= */

section {
  margin-bottom: 50px;
}

/* BUTTON */
.button {
  display: inline-block;
  padding: 12px 20px;
  background: black;
  color: white;
  text-decoration: none;
  margin-top: 15px;
  margin-bottom: 40px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* =========================
   GRID (BEFORE/AFTER)
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* DESKTOP: ONE PER ROW */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* IMAGE FIX (NO UPSCALING) */
.ba-item img {
  width: 100%;
  max-width: 895px;   /* 👈 prevents stretching */
  height: auto;
  display: block;
  margin: 0 auto;     /* center images */
  cursor: pointer;
  transition: opacity 0.2s ease;
  touch-action: manipulation;
}

/* =========================
   FOOTER
========================= */

footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  font-size: 14px;
}

/* CLIENTS LEFT */
.footer-clients {
  font-size: 12px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 10px;
  text-align: left;
}

/* COPYRIGHT CENTER */
.footer-inner p:last-child {
  text-align: center;
}

/* =========================
   CLIENT LIST (IF USED)
========================= */

.client-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 20px;
  line-height: 2;
  font-size: 16px;
}

@media (min-width: 768px) {
  .client-list {
    font-size: 12px;
    line-height: 1.8;
  }
}

.client-list span {
  white-space: nowrap;
  color: #666;
}

.client-list span:hover {
  color: #000;
}

/* =========================
   OPTIONAL POLISH
========================= */

.grid img {
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.01);
}

/* =========================
   TYPOGRAPHY REFINEMENT
========================= */

h1 {
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h2 {
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

p {
  margin-bottom: 6px;
}

/* LISTS */
ul {
  margin-top: 15px;
}

li {
  margin-bottom: 10px;
  line-height: 1.5;
}