/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* =========================
   HEADER / NAV
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar {
  background: #002b5c;
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
}

.toplogo {
  height: 130px;
}

.company {
  flex: 1;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact {
  text-align: right;
  font-size: 16px;
  line-height: 1.4;
}

.contact .phone {
  font-weight: 700;
}

.navbar {
  background: #002b5c;
  text-align: center;
  padding: 12px 0;
  position: sticky;
  top: 150px;
  z-index: 999;
}

.navbar a {
  color: white;
  margin: 0 20px;
  text-decoration: none;
  font-size: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.navbar a:hover {
  border-bottom: 2px solid white;
}

/* =========================
   HERO
========================= */
.hero {
  height: 70vh;
  min-height: 450px;
  background-image: url("img/dock-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.herotext {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 900px;
}

.quoteBtn {
  display: inline-block;
  margin-top: 20px;
  background: white;
  color: #002b5c;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* =========================
   SERVICES
========================= */
.services {
  padding: 40px;
}

.services ul {
  columns: 2;
  font-size: 20px;
}

/* =========================
   GALLERY – FINAL CLEAN BUILD
   (5 per row, framed, small)
========================= */

.gallerygrid {
  max-width: 1200px;
  margin: 30px auto 60px;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(5, 1fr); /* EXACTLY 5 */
  gap: 14px;
}

/* FRAME */
.gallery-item {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
}

/* IMAGE */
.gallery-item img {
  width: 100%;
  height: 95px;            /* SMALL & CONSISTENT */
  object-fit: cover;        /* NO DISTORTION */
  border-radius: 4px;
  display: block;
}

/* CAPTION */
.gallery-caption {
  margin-top: 6px;
  font-size: 11px;
  color: #444;
  line-height: 1.2;
}

/* HOVER (SUBTLE) */
.gallery-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
/* =========================
   FOOTER (BASE – ALL DEVICES)
========================= */
.footer {
  background: #002b5c;
  color: #ffffff;
  text-align: center;
  padding: 50px 20px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.footer p,
.footer-contact,
.credentials,
.copyright {
  color: #ffffff;
}

/* =========================
   RESPONSIVE FALLBACKS
========================= */

@media (max-width: 1000px) {
  .gallerygrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 750px) {
  .gallerygrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .gallerygrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =========================
   MOBILE & TABLET TUNING
========================= */

/* ---------- TABLETS ---------- */
@media (max-width: 1024px) {

  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 20px;
    text-align: center;
  }

  .toplogo {
    height: 90px;
    margin-bottom: 10px;
  }

  .company {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .contact {
    width: 100%;
    text-align: center;
    font-size: 15px;
  }

  .navbar a {
    font-size: 16px;
    margin: 0 12px;
  }

  /* Galleries */
  .gallerygrid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item img {
    height: 110px;
  }
}

/* ---------- PHONES ---------- */
@media (max-width: 600px) {

  /* Header */
  .topbar {
    padding: 15px;
  }

  .toplogo {
    height: 70px;
  }

  .company {
    font-size: 18px;
    line-height: 1.2;
  }

  .contact {
    font-size: 14px;
  }

  /* Nav */
  .navbar {
    padding: 10px 0;
  }

  .navbar a {
    display: inline-block;
    margin: 6px 10px;
    font-size: 15px;
  }

  /* Hero */
  .hero {
    min-height: 320px;
  }

  .herotext h1 {
    font-size: 24px;
  }

  .quoteBtn {
    padding: 10px 18px;
    font-size: 15px;
  }

  /* Galleries */
  .gallerygrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item img {
    height: 95px;
  }

  .gallery-caption {
    font-size: 11px;
  }

  /* Footer */
  .footer {
    padding: 30px 15px;
    font-size: 14px;
  }
}
/* =========================
   LIGHTBOX (FULL IMAGE VIEW)
========================= */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

#lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
