/* Transparent navbar */
.navbar-transparent {
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar-transparent .nav-link {
  color: #fff;
  font-weight: 500;
}

.navbar-transparent .nav-link:hover {
  color: #ddd;
}

.navbar {
  z-index: 1050;
}

body {
  margin: 0;
}

/* Hero carousel background */
.hero-carousel-wrapper {
  position: relative;
  height: 75vh;
  min-height: 520px;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-img {
  height: 75vh;
  min-height: 520px;
  object-fit: cover;
}

.hero-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
}

.hero-content a,
.hero-content button {
  pointer-events: auto;
}

/* Homepage: no top padding so hero touches the top */
.is-home main {
  padding-top: 0;
}

@media (max-width: 991.98px) {
  .navbar-transparent {
    background-color: rgba(0, 0, 0, 0.9);
  }
}

.is-home .navbar .nav-link {
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Default navbar style (non-home pages) */
body:not(.is-home) .navbar {
  background-color: #212529; /* Bootstrap dark */
}

body:not(.is-home) .navbar .nav-link {
  color: #fff;
}

body:not(.is-home) .navbar .nav-link:hover {
  color: #ddd;
}

.team-photo {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Gallery card styling */
.gallery-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
}

/* Square tile wrapper (bulletproof) */
.gallery-img-wrapper {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;   /* square */
  position: relative;    /* REQUIRED for absolute child */
  overflow: hidden;
  background: #f2f2f2;
}

/* Image fills the square */
.gallery-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}

header.page-header-dark {
  padding-top: calc(4rem + 80px);
  padding-bottom: 4rem;
  background-color: #f8f9fa;
  color: #212529;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

header.page-header-dark h1 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

header.page-header-dark p {
  max-width: 640px;
  margin: 0 auto;
  color: #6c757d;
}


/* Optional: if your navbar is taller on mobile */
@media (max-width: 991.98px) {
  main { padding-top: 72px; }
  header.page-header-dark {
    margin-top: -72px;
    padding-top: calc(4.0rem + 72px);
  }
}


/* Inventory: sticky header + nicer scrolling */
.inventory-table-wrap {
  max-height: 75vh;
}

.inventory-thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f9fa;
}

/* Make sortable headers feel clickable */
.sortable {
  user-select: none;
  white-space: nowrap;
}

.sortable:hover {
  background: rgba(0,0,0,0.03);
}

.sort-indicator {
  display: inline-block;
  width: 1rem;
}

th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th.sortable:hover {
  text-decoration: underline;
}

th.sortable .sort-icon {
  font-size: 0.85em;
  opacity: 0.8;
}

iframe {
  filter: saturate(1.05) contrast(1.05);
}

body {
  overflow-x: hidden;
}

/* Make sure the table scrolls horizontally on mobile */
#inventoryScroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent long text from blowing up the width */
#inventoryTable td,
#inventoryTable th {
  white-space: nowrap;
}

/* Let the “Color Name” column wrap instead of forcing scroll too much */
#inventoryTable td:nth-child(2),
#inventoryTable th:nth-child(2) {
  white-space: normal;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icons a img {
  height: 28px;
  width: auto;
  display: block;
}

/* Remove focus/active outlines (icons only) */
.social-icons a:focus,
.social-icons a:active {
  outline: none;
  box-shadow: none;
}

/* Optional subtle hover effect */
.social-icons a:hover img {
  opacity: 0.85;
}

/* Footer base */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Contact heading as link */
.footer-link-heading {
  color: #ffffff;
  text-decoration: none;
}

.footer-link-heading:hover {
  text-decoration: underline;
}

/* Footer text links */
.footer-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Social icons */
.social-icons {
  margin-top: 0.25rem;
}

.social-pill {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.social-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-pill:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.14);
}

/* subtle diagonal feel */
@media (min-width: 992px) {
  .feature-offset-down { margin-top: 2rem; }
}

/* ===== MOBILE NAV FIX ===== */
@media (max-width: 991px) {

  /* Make dropdown look like a clean card */
  .navbar-collapse {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  /* Make links readable */
  .navbar-nav .nav-link {
    color: #222 !important;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 0;
  }

  /* Contact button full width */
  .navbar .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Prevent menu covering whole hero */
  .navbar-collapse.show {
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* ===== MOBILE TYPOGRAPHY ===== */
@media (max-width: 768px) {

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  .lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  p {
    font-size: 0.98rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
  }
}
