/* /livrare/ — real body appended under the compact hero.
   Reuses site.css components (.subpage-section, .section-head, .cards-3-grid,
   .cta-row, .faq). This file only: trims the tall stub hero, adds the cream
   benefit/zone cards, the green "cum funcționează" band, and scopes the filled
   primary CTA to --green-deep (white-on---green fails AA). */

@layer pages {
  /* Stub hero was sized for a hero-only page (220/140px). With a body below,
     trim its bottom padding — page-scoped, never the shared base. */
  .livrare .page-hero--compact {
    padding-bottom: 64px;
  }

  @media (max-width: 768px) {
    .livrare .page-hero--compact {
      padding-bottom: 48px;
    }
  }

  .livrare__wrap {
    max-width: var(--container);
    margin: 0 auto;
  }

  /* Zone list — the 6 sectoare as a simple readable grid */
  .livrare__zones {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .livrare__zones li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--green-deep);
    font-weight: 700;
    font-size: 16px;
  }

  .livrare__zones svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--green);
  }

  .livrare__note {
    max-width: 760px;
    margin: 24px auto 0;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
  }

  /* Benefit / step cards on cream */
  .livrare-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    height: 100%;
  }

  .livrare-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(var(--green-rgb), 0.12);
    color: var(--green-deep);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
  }

  .livrare-card h3 {
    margin: 0 0 10px;
    color: var(--green-deep);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
  }

  .livrare-card p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 15px;
    line-height: 1.65;
  }

  /* Green band — the 80/20 honour. Cream text on --green-deep. */
  .livrare-band {
    background: var(--green-deep);
    color: var(--warm-cream);
  }

  .livrare-band .section-head h2,
  .livrare-band .section-head h2 em {
    color: var(--warm-cream);
  }

  .livrare-band .section-head p {
    color: rgba(249, 240, 201, 0.88);
  }

  .livrare-band .livrare-card {
    background: rgba(252, 250, 246, 0.06);
    border-color: rgba(249, 240, 201, 0.18);
  }

  .livrare-band .livrare-card__num {
    background: rgba(249, 240, 201, 0.14);
    color: var(--warm-cream);
  }

  .livrare-band .livrare-card h3 {
    color: var(--warm-cream);
  }

  .livrare-band .livrare-card p {
    color: var(--warm-cream);
  }

  /* Closing CTA — filled primary scoped to --green-deep (AA on white text).
     Site base paints .cta--primary with --green; override on this page only. */
  .livrare__cta {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .livrare__cta .cta-row {
    justify-content: center;
  }

  .livrare__cta .cta-row .cta--primary {
    background: var(--green-deep);
  }

  .livrare__cta .cta-row .cta--primary:hover,
  .livrare__cta .cta-row .cta--primary:focus-visible {
    background: var(--green-hover);
  }

  @media (max-width: 768px) {
    .livrare__zones {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 430px) {
    .livrare__zones {
      grid-template-columns: 1fr;
    }
  }
}
