/* ==========================================================================
   Homepage only (v2, Lovable layout). Composes components from
   components.css; only arrangement lives here.
   ========================================================================== */

/* ---------- Hero ---------- */

.home-hero__checks {
  margin-top: var(--space-5);
}

/* ---------- Services: 1 → 2 → 3 columns (Lovable col-md-6 col-lg-4) ---------- */

.home-services .grid {
  grid-template-columns: 1fr;
}

@media (min-width: 48em) {
  .home-services .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .home-services .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- About (teal brand panel) ---------- */

.home-about {
  padding-top: 0;
  /* Keeps the original Coris green here and swaps teal (#12908e) for orange;
     the rest of the site uses teal. Derived tokens are re-declared so they
     resolve against these values. */
  --coris-teal:               #fff3b0;
  --coris-teal-10:            rgba(255, 243, 176, 0.1);
  --color-primary:            var(--coris-teal);
  --color-primary-subtle:     var(--coris-teal-10);
  --color-link:               var(--coris-teal);
  --color-brand-panel:        #12908e;   /* panel background stays teal */
  --coris-green:              #8cb61e;
  --coris-green-dark:         #6f9412;
  --coris-green-12:           rgba(140, 182, 30, 0.14);
  --color-secondary:          var(--coris-green-dark);
  --color-secondary-subtle:   var(--coris-green-12);
  --color-secondary-deco:     var(--coris-green);
  --color-accent:             #fff3b0;   /* "Повече за нас" button */
  --color-accent-hover:       #f5e08a;
  --color-on-accent:          var(--coris-brown);
  --color-inverse-accent:     var(--coris-green);
  --color-brand-panel-stat:   #fff3b0;   /* eyebrow, stat numbers, timeline years */
  --cta-band-bg: linear-gradient(120deg, var(--coris-green), var(--coris-green-dark));
  --color-pulse:              rgba(140, 182, 30, 0.55);
  --color-pulse-end:          rgba(140, 182, 30, 0);
}

.home-about__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 64em) {
  .home-about__grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-8);
  }
}

.home-about__text > * + * {
  margin-top: var(--space-4);
}

.home-about__text .btn {
  margin-top: var(--space-5);
}

.home-about__history {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: var(--border-w) solid var(--color-inverse-border);
}

.home-about__history-title {
  margin-bottom: var(--space-4);
  font-size: var(--fs-lg);
}

/* Milestone text under the years: 30% smaller */
.home-about__history .timeline__text {
  font-size: 0.7em;
}

@media (min-width: 64em) {
  /* Timeline runs horizontally on wide screens, 4 per row. Each item draws
     its own segment of the line (bridging the column gap), so every row
     has a line however many items wrap. */
  .home-about__history .timeline {
    --timeline-gap: var(--space-5);
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-7) var(--timeline-gap);
    border-left: 0;
  }

  .home-about__history .timeline__item {
    padding: var(--space-5) 0 0;
  }

  .home-about__history .timeline__item::after {
    content: "";
    position: absolute;
    top: calc(var(--border-w-strong) / -2);
    left: 0;
    right: calc(-1 * var(--timeline-gap));
    border-top: var(--border-w-strong) solid var(--color-inverse-border);
  }

  .home-about__history .timeline__item:nth-child(4n)::after,
  .home-about__history .timeline__item:last-child::after {
    right: 0;
  }

  .home-about__history .timeline__item::before {
    top: calc(-0.5rem - 1px);
    left: 0;
    z-index: 1; /* circle sits on top of the line */
  }
}

/* ---------- Network ---------- */

.home-network__visual {
  max-width: 28rem;
  margin-inline: auto;
}

.home-network__visual img {
  width: 100%;
  aspect-ratio: 1;
}

.home-network__points {
  padding-left: 1.25em;
}

.home-network__points li + li {
  margin-top: var(--space-2);
}

/* ---------- Products: tiles 2 per row at every width (4 tiles = 2 × 2) ---------- */

.home-products .grid {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
