/* Kezdőoldal – webshop szekciók */

/* Hero – magasabb, látványosabb háttérkép */
.home-hero {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.home-hero > img {
  object-fit: cover;
  object-position: 52% 50%;
}

.home-hero > div.relative {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex: 1;
  min-height: 100%;
  box-sizing: border-box;
  padding: 2rem 1.25rem 2.5rem;
}

.home-hero > div.relative > .max-w-3xl {
  width: 100%;
  max-width: 42rem;
  margin-left: 0;
  margin-right: auto;
}

@media (min-width: 640px) {
  .home-hero {
    min-height: 480px;
  }

  .home-hero > div.relative {
    padding: 2.5rem 2rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .home-hero {
    min-height: 560px;
  }

  .home-hero > img {
    object-position: 62% 45%;
  }

  .home-hero > div.relative {
    padding: 5rem 3rem 3.5rem;
  }
}

.home-section {
  padding: 2.5rem 0;
}

.home-section__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.home-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.home-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.home-section__title--center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.home-section__lead {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: #475569;
  max-width: 42rem;
  line-height: 1.5;
}

.home-section__lead--muted {
  margin-bottom: 1rem;
  color: #64748b;
}

.home-section__more {
  font-size: 0.875rem;
  color: #166534;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.home-section__more:hover {
  color: #14532d;
}

.home-section__note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.home-section--categories {
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  border-top: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
}

.home-section--available {
  background: #ffffff;
}

.home-section--featured {
  background: linear-gradient(180deg, #fafaf5 0%, #f5f7f0 100%);
  border-top: 1px solid #e7e5e4;
  border-bottom: 1px solid #e7e5e4;
}

.home-section--trust {
  background: #ffffff;
}

.home-section--steps {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.home-section--help {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #fafaf9 100%);
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
}

.home-section--guides {
  background: #fafafa;
  border-top: 1px solid #f1f5f9;
}

.home-section--bottom-cta {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

/* Kategória kártyák */

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-cat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem 1rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid #bbf7d0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  color: inherit;
  min-height: 8.5rem;
}

.home-cat-card:hover {
  border-color: #86efac;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.1);
  transform: translateY(-1px);
}

.home-cat-card__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.home-cat-card__img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.home-cat-card__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #14532d;
  line-height: 1.25;
}

.home-cat-card__sub {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  flex: 1;
}

.home-cat-card__link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
  margin-top: 0.25rem;
}

/* Termék rács */

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .home-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-product-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-section--available .home-product-card {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

.home-product-card:hover {
  border-color: #86efac;
  box-shadow: 0 6px 18px rgba(22, 101, 52, 0.12);
}

.home-product-card__body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.home-product-card__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #0f172a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-product-card__tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.home-product-card__meta {
  font-size: 0.75rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-product-card__price {
  margin-top: auto;
  padding-top: 0.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #14532d;
}

/* Bizalom */

.home-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-trust-card {
  padding: 1.15rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.home-trust-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.home-trust-card p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

/* Lépések */

.home-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .home-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-step-card {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.home-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #166534;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-step-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.home-step-card p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

/* CTA */

.home-help-cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-help-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.home-help-cta__actions,
.home-bottom-cta .home-help-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.home-bottom-cta {
  text-align: center;
}

.home-bottom-cta .home-section__lead {
  margin-left: auto;
  margin-right: auto;
}

.home-bottom-cta .home-help-cta__actions {
  justify-content: center;
  margin-top: 0.5rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.home-btn--primary {
  background: #14532d;
  color: #fff;
}

.home-btn--primary:hover {
  opacity: 0.92;
}

.home-btn--secondary {
  background: #fff;
  color: #14532d;
  border: 1px solid #86efac;
}

.home-btn--secondary:hover {
  background: #f0fdf4;
}

/* Kertötletek */

.home-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-guide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 0.875rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.home-guide-card:hover {
  border-color: #cbd5e1;
}

.home-guide-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.home-guide-card__link {
  font-size: 0.75rem;
  color: #64748b;
}

.home-empty-hint {
  font-size: 0.875rem;
  color: #94a3b8;
}
