#service-and-repair{
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap:3rem;
}

#example-photos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* ============================
   Services TOC
============================ */
#services-toc {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 2rem;
}

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

.service-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--simple-lift);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor:pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.service-title {
  font-size: 1.4rem;
  font-weight: var(--semi-bold);
  color: var(--color-dark-blue);
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-light-blue);
  padding-bottom: 0.5rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: #333;
  font-size: 1rem;
}

.service-card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-light-blue);
  font-size: 0.9rem;
}


/* ============================
   Inverted Service Card
============================ */
.service-card-inv {
  background: var(--color-dark-blue);
  color: white;
  border-radius: 8px;
  box-shadow: var(--simple-lift);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-inv:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  cursor: pointer;
}

.service-title-inv {
  font-size: 1.5rem;
  font-weight: var(--semi-bold);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#maintenance-cleaning-image{
  object-position:top;
}




.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item.dual, .gallery-item.single {
    cursor: pointer;
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-label {
    opacity: 1;
}

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

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

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

/* Popup styling */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow: auto;
    padding: 1rem;
}

.popup-overlay.hidden {
    display: none;
}

.popup-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

#popup-title {
    font-weight: 800;
    font-size: 1.6rem;
    text-align: center;
    color: #444;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-orange, #ff7a00);
    padding-bottom: 0.5rem;
    flex-shrink: 0;
}

.image-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
    gap: 1rem;
    overflow: auto;
}

.image-comparison img {
    width: 100%;
    max-width: 48%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

#close-popup {
    align-self: center;
    flex-shrink: 0;
}
