/* ==========================================================================
   Home page (index.html) – page-specific sections.
   Depends on tokens.css + base.css + components.css.
   ========================================================================== */

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(181, 206, 173, .22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(168, 131, 95, .12) 0%, transparent 60%),
    var(--color-bg);
}
.hero-left {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 5vw var(--space-8) var(--gutter);
}
.hero-left > * { animation: fadeUp .8s ease both; }
.hero-left > *:nth-child(1) { animation-delay: .1s; }
.hero-left > *:nth-child(2) { animation-delay: .25s; }
.hero-left > *:nth-child(3) { animation-delay: .4s; }
.hero-left > *:nth-child(4) { animation-delay: .55s; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  width: fit-content;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4rem var(--space-4);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}
.hero-badge::before { content: '✦'; font-size: .7rem; }
.hero-sub {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-right {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem var(--gutter-nav) var(--space-8) 2vw;
  animation: fadeUp 1s ease .3s both;
}
.hero-illustration { width: min(420px, 90%); position: relative; }
.hero-circle {
  width: 100%; padding-bottom: 100%;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 35% 35%, var(--sage-pale), var(--bark-pale));
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(90, 64, 48, .12);
}
.hero-circle svg {
  position: absolute;
  bottom: -4%; left: 50%;
  transform: translateX(-50%);
  width: 80%;
}
.stat-cards {
  position: absolute;
  bottom: var(--space-7); left: -2rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.stat-card {
  display: flex; align-items: center; gap: .8rem;
  min-width: 180px;
  background: var(--color-surface);
  border-radius: 1rem;
  padding: .8rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 38px; height: 38px;
  border-radius: .7rem;
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.stat-card strong { display: block; font-size: .9rem; font-weight: var(--fw-medium); color: var(--color-heading); }
.stat-card span { font-size: var(--fs-label); color: var(--color-text-muted); }

/* ── About ── */
.about {
  background: var(--color-surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
/* The text is long: keep the photo in view while it scrolls past. */
.about-visual { position: sticky; top: var(--space-9); }
.about-img-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--sage-pale) 0%, var(--bark-pale) 100%);
}
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* About photo slider: a horizontal scroll-snap track (swipe on touch),
   with dots driven by a few lines of JS. */
.about-slider { position: relative; }
.about-slides {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.about-slides::-webkit-scrollbar { display: none; }
.about-slides:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: -4px; }
.about-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; }
/* The portrait is nearly square: keep the face (left of centre) in the 3:4 crop. */
.about-slide-portrait img { object-position: 30% top; }
.slider-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
}
.slider-dot {
  width: .6rem; height: .6rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  opacity: .6;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.slider-dot.active { opacity: 1; background: var(--color-accent); }
@media (prefers-reduced-motion: reduce) { .about-slides { scroll-behavior: auto; } }
.about-tag {
  position: absolute;
  top: var(--space-6); right: -1.5rem;
  background: var(--color-accent);
  color: var(--white);
  padding: var(--space-4) 1.4rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(138, 171, 126, .4);
}
.about-tag strong { display: block; font-size: 1.6rem; font-weight: var(--fw-medium); }
.about-tag span { font-size: var(--fs-label); letter-spacing: .08em; }
.about-text blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-accent-strong);
  border-left: 3px solid var(--color-accent-soft);
  padding-left: 1.2rem;
  margin: var(--space-5) 0 var(--space-6);
  line-height: 1.8;
}
.about-text p + p { margin-top: 1.2rem; }
.about-text .about-intro {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--color-text);
  margin-top: var(--space-6);
}
.about-text .about-closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-h3);
  color: var(--color-accent-strong);
  margin-top: var(--space-6);
}

/* ── Mission ── */
.mission {
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(138, 171, 126, .12) 0%, transparent 70%),
    var(--color-surface-soft);
}
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.mission .lead { margin-bottom: var(--space-6); }
.mission-features { display: flex; flex-direction: column; gap: var(--space-5); }
.feature-item {
  display: flex; gap: var(--space-4);
  padding: 1.4rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform .25s, box-shadow .25s;
}
.feature-item:hover { transform: translateX(6px); box-shadow: 0 6px 24px rgba(90, 64, 48, .1); }
.feature-dot {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: .8rem;
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.feature-item h4 { font-weight: var(--fw-medium); font-size: .95rem; margin-bottom: var(--space-1); color: var(--color-heading); }
.feature-item p { font-size: .85rem; color: var(--color-text-muted); line-height: 1.6; }

.mission-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-9);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(138, 171, 126, .25);
}

/* ── Products ("A természet doktorai" + full catalog) ── */
.mushrooms { background: var(--color-surface); }
.catalog {
  margin-top: var(--space-9);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-accent-soft);
  scroll-margin-top: 4rem;
}

/* ── Philosophy + legal notice ── */
.philosophy {
  background:
    radial-gradient(ellipse 55% 70% at 85% 30%, rgba(181, 206, 173, .2) 0%, transparent 65%),
    var(--color-bg);
}
.philosophy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}
.philosophy-head h2 { margin-bottom: var(--space-6); }
.philosophy-text { padding-top: 2.6rem; }
.philosophy-text .lead { margin-bottom: var(--space-5); }
.philosophy-text .btn-secondary { margin-top: var(--space-2); }

/* ── Services ── */
.services { background: var(--rose-deep); }
.services .section-label { color: var(--rose); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.service-card {
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 1.4rem;
  padding: var(--space-6) 1.6rem;
  transition: background .25s, border-color .25s;
}
.service-card:hover { background: rgba(255, 255, 255, .85); border-color: var(--rose); }
.service-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--rose);
  margin-bottom: .8rem;
  line-height: 1;
}
.service-card h3 { font-weight: var(--fw-medium); font-size: .95rem; color: var(--color-heading); margin-bottom: .6rem; }
.service-card p { font-size: .85rem; color: var(--color-text-muted); line-height: var(--lh-body); }

/* ── Register CTA banner ── */
.register-banner {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
  padding: var(--space-8) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.register-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255, 255, 255, .12) 0%, transparent 60%);
}
.register-banner > * { position: relative; z-index: 1; }
.register-banner .section-label { color: rgba(255, 255, 255, .7); }
.register-banner h2 { color: var(--white); margin-bottom: var(--space-4); }
.register-banner h2 em { color: rgba(255, 255, 255, .75); }
/* direct children only: the .perk-box inside has its own colours */
.register-banner > p { color: rgba(255, 255, 255, .85); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.8; }

/* ── Contact ── */
.contact {
  background:
    radial-gradient(ellipse 50% 70% at 20% 50%, rgba(181, 206, 173, .18) 0%, transparent 60%),
    var(--color-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-info { padding-top: var(--space-4); }
.contact-info p { color: var(--color-text-muted); line-height: var(--lh-relaxed); margin-bottom: var(--space-6); }
.info-item { display: flex; align-items: center; gap: .8rem; margin-bottom: var(--space-4); }
.info-icon {
  width: 40px; height: 40px;
  border-radius: .7rem;
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.info-item span, .info-link { font-size: .9rem; color: var(--color-text-muted); }
.info-link { text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.info-link:hover, .info-link:focus-visible { color: var(--color-accent-strong); text-decoration: underline; }
.leaf-divider {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: .5rem;
  color: var(--sage-light);
  padding-top: var(--space-4);
  margin-top: var(--space-5);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right, .stat-cards { display: none; }
  .hero-left { padding: 9rem var(--gutter) var(--space-8); }
  .about, .mission-inner, .contact, .philosophy-inner, .mission-video { grid-template-columns: 1fr; gap: var(--space-7); }
  .mission-video { gap: var(--space-5); margin-top: var(--space-8); padding-top: var(--space-7); }
  .philosophy-text { padding-top: 0; }
  /* Photo above the text, centred, not sticky; the tag moves inside the frame. */
  .about-visual { position: relative; top: auto; width: min(100%, 24rem); margin-inline: auto; }
  .about-img-frame { aspect-ratio: 4 / 5; }
  .about-tag { top: var(--space-4); right: var(--space-4); }
}
