/* -----------------------------------------------------------------------------
   MFTD 2027 - home page

   Loaded on top of base.css by Home::index() only (see Public_Controller::css()).
   Shared chrome (header, footer, hero skeleton, buttons) lives in base.css;
   everything here is specific to this page's sections.
   ----------------------------------------------------------------------------- */

/* --- Countdown --------------------------------------------------------------
   Populated by assets/js/main.js from the data-start/data-end attributes.
   Markup renders "00" in every cell before JS runs, so a blocked script still
   leaves a readable (if static) countdown instead of an empty box. */

.countdown {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-7);
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.countdown__title {
  margin: 0;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--c-muted);
}

.countdown__grid {
  display: flex;
  gap: var(--s-6);
}

.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}

.countdown__value {
  font-family: var(--font-title);
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  color: var(--c-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  margin-top: var(--s-2);
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--c-muted);
}

@media (max-width: 560px) {
  .countdown__grid { gap: var(--s-4); }
  .countdown__cell { min-width: 2.75rem; }
  .countdown__value { font-size: var(--fs-h3); }
}

/* --- Key figures --------------------------------------------------------
   Full-bleed tinted band (the section, not .container, carries the
   background) so the page reads as alternating white/tinted bands instead
   of one flat white sheet top to bottom. */

.figures-band {
  background: var(--c-surface);
}

.figures {
  padding-block: var(--s-8);
}

.figures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  text-align: center;
}

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

.figure__value {
  display: block;
  font-family: var(--font-title);
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  color: var(--c-primary);
}

.figure__label {
  display: block;
  margin-top: var(--s-2);
  color: var(--c-muted);
  font-size: var(--fs-small);
}

/* --- Strategic pillars: see base.css - shared with the Edition page. ------- */

/* --- Three ways to take part ------------------------------------------------
   Teaser for the participation hub - deliberately compact (icon + title +
   one line) since the full description lives on /participation itself. */

.ways-band {
  background: var(--c-surface);
  padding-block: var(--section-y);
}

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 900px) { .ways-grid { grid-template-columns: 1fr; } }

.way-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.way-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  text-decoration: none;
}
.ways-grid .way-card:nth-child(1) { transition-delay: 0ms; }
.ways-grid .way-card:nth-child(2) { transition-delay: 90ms; }
.ways-grid .way-card:nth-child(3) { transition-delay: 180ms; }

.way-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-accent-text);
}
.way-card__icon .icon { width: 1.5rem; height: 1.5rem; }

.way-card h3 { color: var(--c-primary); margin: 0; }
.way-card p { color: var(--c-muted); font-size: var(--fs-small); margin: 0; }

/* --- Programme preview ----------------------------------------------------- */

.home-program-preview {
  padding-block: var(--section-y);
}

.home-program-preview__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: var(--container-narrow);
  margin: 0 auto var(--s-6);
}

.home-program-preview__item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.home-program-preview__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-accent-text);
}
.home-program-preview__icon .icon { width: 1.25rem; height: 1.25rem; }

.home-program-preview__time {
  font-family: var(--font-title);
  font-weight: var(--fw-semibold);
  color: var(--c-primary);
  min-width: 3.5rem;
}

.home-program-preview__title {
  color: var(--c-ink);
}

.home-program-preview__cta {
  text-align: center;
}

/* --- Partner logos ---------------------------------------------------------- */

.home-partners {
  padding-block: var(--section-y);
  text-align: center;
}

.home-partners__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
}

.home-partners__logo img {
  max-height: 3rem;
  width: auto;
  filter: grayscale(1);
  opacity: .7;
  transition: opacity var(--t-base) var(--ease), filter var(--t-base) var(--ease);
}
.home-partners__logo:hover img {
  filter: none;
  opacity: 1;
}

/* --- CTA banner: see base.css - shared with the Edition page. -------------- */

/* --- Newsletter ------------------------------------------------------------ */

.newsletter {
  padding-block: var(--section-y);
  max-width: var(--container-narrow);
  text-align: center;
}

.newsletter__intro {
  color: var(--c-muted);
}

.newsletter__form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.newsletter__form input[type="email"] {
  flex: 1 1 20rem;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}
.newsletter__form input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: var(--focus-ring);
}
