/* ==========================================================================
   SECOND HAND AC PAGE SPECIFIC STYLES
   ========================================================================== */

/* Hero parallax section */
#ac-hero {
  position: relative;
  height: calc(100vh - 70px); /* Full desktop size minus navbar */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background-image: url('https://plus.unsplash.com/premium_photo-1682088021638-01fdf53d147e?auto=format&fit=crop&w=1600&q=80'); /* Wall-mounted split AC room */
  background-attachment: fixed;
  background-size: cover;
  background-position: center top; /* Align to top to show the AC unit */
  margin-top: 70px; /* navbar offset */
}

#ac-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45); /* Lighter dark overlay */
  z-index: 1;
}

.ac-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 24px;
}

.ac-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.25;
  text-transform: capitalize;
}

.ac-hero-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.95;
  line-height: 1.7;
  margin-bottom: 35px;
}

.ac-hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ac-outline-btn {
  border: 2px solid var(--white) !important;
  color: var(--white) !important;
  background: transparent;
}

.ac-outline-btn:hover {
  background: var(--white);
  color: var(--green-dark) !important;
}

/* Products Section */
.ac-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.ac-product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.ac-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.ac-product-img {
  height: 280px;
  overflow: hidden;
}

.ac-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ac-product-card:hover .ac-product-img img {
  transform: scale(1.05);
}

.ac-product-info {
  padding: 24px;
  text-align: center;
}

.ac-product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.ac-call-banner {
  text-align: center;
  margin-top: 40px;
  padding: 28px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px dashed var(--green-light);
}

.ac-call-banner h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
}

/* Checklist Grid */
.ac-checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.ac-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green);
  transition: var(--transition);
}

.ac-check-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--green-dark);
}

.ac-check-item i {
  color: var(--green);
  font-size: 1.1rem;
}

.ac-check-item span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* Other Services Cards Grid */
.services-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 35px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card-content {
  padding: 24px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.service-card-content p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Gallery Grid */
.ac-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.gallery-card {
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 163, 74, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 1.8rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .ac-checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ac-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #ac-hero {
    height: auto;
    padding: 100px 0 60px;
  }
  .ac-products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ac-checklist-grid {
    grid-template-columns: 1fr;
  }
  .services-card-grid {
    grid-template-columns: 1fr;
  }
  .ac-gallery-grid {
    grid-template-columns: 1fr;
  }
}
