/* ==========================================================================
   Home sections: services grid, CTA band, news grid, newsletter
   (Matched to the original site's section list.)
   ========================================================================== */

/* --- Section heading block --- */
.section-head { max-width: 64ch; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { text-transform: uppercase; font-weight: 900; letter-spacing: -0.02em; }

/* --- Services: step-flow journey --- */
.journey { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: step; }

/* The connecting spine */
.journey::before {
  content: "";
  position: absolute;
  left: 27px; top: 12px; bottom: 12px;
  width: 3px;
  background: linear-gradient(to bottom, var(--brand-accent), var(--green-bright, #0ca94b), var(--brand));
  border-radius: var(--r-pill);
}

.journey__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-7);
}
.journey__step:last-child { padding-bottom: 0; }

.journey__marker {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--bg);
}
.journey__num {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.25rem; letter-spacing: -0.02em;
}

.journey__body { padding-top: var(--sp-1); }
.journey__body h3 { font-size: var(--fs-600); margin-bottom: var(--sp-2); text-transform: none; }
.journey__body p { color: var(--text-muted); max-width: 60ch; }

/* Desktop: roomier, larger numbers, content offset for an editorial feel */
@media (min-width: 768px) {
  .journey::before { left: 39px; }
  .journey__step { grid-template-columns: 80px 1fr; gap: var(--sp-7); padding-bottom: var(--sp-8); }
  .journey__marker { width: 80px; height: 80px; }
  .journey__num { font-size: 1.9rem; }
  .journey__body { padding-top: var(--sp-3); }
}

@media (prefers-reduced-motion: no-preference) {
  .journey__step { opacity: 0; transform: translateY(16px); animation: journey-rise 0.6s var(--ease-out) forwards; }
  .journey__step:nth-child(1) { animation-delay: 0.05s; }
  .journey__step:nth-child(2) { animation-delay: 0.15s; }
  .journey__step:nth-child(3) { animation-delay: 0.25s; }
  .journey__step:nth-child(4) { animation-delay: 0.35s; }
}
@keyframes journey-rise { to { opacity: 1; transform: none; } }

/* --- CTA band --- */
.cta-band { background: var(--brand-accent); color: #fff; }
.cta-band h2 { color: #fff; text-transform: uppercase; font-weight: 900; letter-spacing: -0.02em; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 50ch; }
.cta-band .btn { margin-top: var(--sp-5); }
.cta-band__inner {
  display: grid; gap: var(--sp-6); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .cta-band__inner { grid-template-columns: 280px 1fr; gap: var(--sp-8); }
}
.cta-band__media img {
  width: 100%; max-width: 280px; height: auto;
  border-radius: var(--r-lg);
  margin-inline: auto; display: block;
}

/* --- News grid --- */
.news-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: box-shadow var(--dur-mid) var(--ease); }
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card__media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.news-card__date { font-size: var(--fs-300); color: var(--text-muted); }
.news-card h3 { font-size: var(--fs-500); }
.news-card__link { margin-top: auto; font-weight: 600; color: var(--brand); text-decoration: none; }
.news-card__link:hover { text-decoration: underline; }

/* --- Newsletter --- */
.newsletter { background: var(--brand); color: #fff; }
.newsletter__inner {
  display: grid; gap: var(--sp-6); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .newsletter__inner { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); } }
.newsletter__copy h2 { color: #fff; text-transform: uppercase; font-weight: 900; letter-spacing: -0.02em; }
.newsletter__copy .eyebrow { color: var(--orange-300); }
.newsletter__copy p { color: rgba(255,255,255,0.85); margin-top: var(--sp-3); max-width: 52ch; }

.newsletter__form { display: grid; gap: var(--sp-3); }
.newsletter__field input {
  width: 100%; min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.newsletter__field input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter__field input:focus-visible { outline: var(--focus-ring); outline-offset: 2px; background: rgba(255,255,255,0.14); }
.newsletter__form .btn { width: 100%; }
.newsletter__note { font-size: var(--fs-300); min-height: 1.2em; }
.newsletter__note[data-state="ok"] { color: var(--orange-300); }
.newsletter__note[data-state="error"] { color: #ffd2c2; }

.news-grid--trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5, 1.5rem);
    align-items: stretch;
}
@media (max-width: 900px) { .news-grid--trio { grid-template-columns: 1fr; } }

.news-card--x { display: flex; flex-direction: column; overflow: hidden; }

.xcard__head {
    display: flex; align-items: center; gap: var(--sp-2, 0.5rem);
    padding: var(--sp-4, 1rem) var(--sp-4, 1rem) var(--sp-2, 0.5rem);
}
.xcard__logo { color: #000; flex-shrink: 0; }
.xcard__name { color: var(--ink, #111); font-size: var(--fs-300, 0.9rem); }
.xcard__name strong { color: var(--brand, #07542b); }

.xcard__embed {
    flex: 1; min-height: 0; overflow: hidden; position: relative;
    padding: 0 var(--sp-3, 0.75rem);
}
.xcard__embed .twitter-tweet { margin: 0 auto !important; }
.xcard__embed::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}

.xcard__more {
    display: block;
    padding: var(--sp-3, 0.75rem) var(--sp-4, 1rem);
    border-top: 1px solid var(--border, #e5e7eb);
    font-weight: 700; color: var(--brand-accent, #f47d20);
    text-decoration: none; background: #fff;
}
.xcard__more:hover { text-decoration: underline; }
