/* ==========================================================================
   pages/home.css — Home page styles matching home.html classes
   ========================================================================== */

/* --- About Section --- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid__text p {
  color: var(--steel);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.about-grid__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-grid__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* --- Stats Row --- */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stats-row__item {
  text-align: center;
  min-width: 140px;
}

.stats-row__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
}

.stats-row__plus {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--brand-blue);
}

.stats-row__label {
  display: block;
  margin-top: 8px;
  color: var(--steel);
  font-size: 15px;
}

/* --- Category Cards Grid --- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }
}

.category-card:active {
  transform: scale(0.98);
}

.category-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--brand-blue);
}

.category-card__icon svg {
  width: 100%;
  height: 100%;
}

.category-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.category-card__desc {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.category-card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: color var(--transition-fast);
}

/* --- Advantage Cards --- */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  text-align: center;
  padding: 32px 20px;
}

.advantage-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--brand-blue);
}

.advantage-card__icon svg {
  width: 100%;
  height: 100%;
}

.advantage-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--white);
}

.advantage-card__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* --- Process Timeline --- */

.process-timeline {
  display: flex;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.process-step__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 2px;
  background-color: var(--border);
}

.process-step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step__desc {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.6;
}

/* --- Gallery Preview --- */

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-preview__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--light-bg);
  transition: transform var(--transition-base);
}

@media (hover: hover) {
  .gallery-preview__item:hover img {
    transform: scale(1.05);
  }
}

.section__actions {
  text-align: center;
  margin-top: 32px;
}

/* --- Contact Section --- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-grid__info {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.contact-grid__info p {
  margin-bottom: 20px;
}

.contact-grid__phones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .contact-phone:hover {
    color: var(--white);
  }
}

/* --- Responsive --- */

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

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-grid__image {
    order: -1;
  }
  .stats-row {
    gap: 24px;
  }
  .stats-row__item {
    min-width: 120px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .process-timeline {
    flex-direction: column;
    gap: 24px;
  }
  .process-step {
    display: flex;
    text-align: left;
    gap: 16px;
    padding: 0;
  }
  .process-step__number {
    margin: 0;
    flex-shrink: 0;
  }
  .process-step:not(:last-child)::after {
    display: none;
  }
  .gallery-preview {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .gallery-preview {
    grid-template-columns: 1fr;
  }
  .stats-row {
    flex-direction: column;
    gap: 20px;
  }
}
