/* ============================================================
   AstroEnergy — Dla Domu Page Styles
   ============================================================ */

/* --- Hero --- */
.dladomu-hero {
  position: relative;
  overflow: hidden;
}

.dladomu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/tlo-zmieniamy-planete-astroenergy.jpg') center/cover no-repeat;
  opacity: 0.22;
  z-index: 0;
}

.dladomu-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 0;
}

.dladomu-hero .container {
  position: relative;
  z-index: 1;
}

/* --- Service Cards Grid (2 columns, horizontal cards) --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

/* --- Service Card with BG Image --- */
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: none;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-bg) center/cover no-repeat;
  z-index: 0;
  transition: transform 0.5s;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

.service-card:hover::before {
  transform: scale(1.05);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.service-card__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 1.375rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.service-card__desc {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.service-card__link {
  position: relative;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--transition), color var(--transition);
}

.service-card__link:hover {
  color: rgba(255, 255, 255, 0.9);
  gap: 0.625rem;
}

.service-card__icon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  color: white;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* --- CTA Card (Bezplatna konsultacja) --- */
.service-card--cta::before {
  display: none;
}

.service-card--cta::after {
  display: none;
}

.service-card--cta {
  background: var(--gradient);
}

.service-card--cta:hover {
  box-shadow: 0 12px 40px rgba(104, 41, 106, 0.35);
}

/* --- About Text Under Cards --- */
.dladomu-about {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray-600);
  margin-bottom: 4rem;
}

.dladomu-about p {
  margin-bottom: 1.5rem;
}

.dladomu-about p:last-child {
  margin-bottom: 0;
}

.dladomu-about strong {
  color: var(--gray-800);
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}
