/* ============================================================
   REPOWER — Campaign landing page
   Light base · green/blue accents · campaign bracket language
   ============================================================ */

@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdLight.woff2") format("woff2"), url("../fonts/AvertaStdLight.woff") format("woff"), url("../fonts/AvertaStdLight.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdLightItalic.woff2") format("woff2"), url("../fonts/AvertaStdLightItalic.woff") format("woff"), url("../fonts/AvertaStdLightItalic.otf") format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdRegular.woff2") format("woff2"), url("../fonts/AvertaStdRegular.woff") format("woff"), url("../fonts/AvertaStdRegular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdItalic.woff2") format("woff2"), url("../fonts/AvertaStdItalic.woff") format("woff"), url("../fonts/AvertaStdItalic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdSemiBold.woff2") format("woff2"), url("../fonts/AvertaStdSemiBold.woff") format("woff"), url("../fonts/AvertaStdSemiBold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdSemiBoldItalic.woff2") format("woff2"), url("../fonts/AvertaStdSemiBoldItalic.woff") format("woff"), url("../fonts/AvertaStdSemiBoldItalic.otf") format("opentype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdBold.woff2") format("woff2"), url("../fonts/AvertaStdBold.woff") format("woff"), url("../fonts/AvertaStdBold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdBoldItalic.woff2") format("woff2"), url("../fonts/AvertaStdBoldItalic.woff") format("woff"), url("../fonts/AvertaStdBoldItalic.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdExtraBold.woff2") format("woff2"), url("../fonts/AvertaStdExtraBold.woff") format("woff"), url("../fonts/AvertaStdExtraBold.otf") format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdExtraBoldItalic.woff2") format("woff2"), url("../fonts/AvertaStdExtraBoldItalic.woff") format("woff"), url("../fonts/AvertaStdExtraBoldItalic.otf") format("opentype"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdBlack.woff2") format("woff2"), url("../fonts/AvertaStdBlack.woff") format("woff"), url("../fonts/AvertaStdBlack.otf") format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Averta"; src: url("../fonts/AvertaStdBlackItalic.woff2") format("woff2"), url("../fonts/AvertaStdBlackItalic.woff") format("woff"), url("../fonts/AvertaStdBlackItalic.otf") format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  /* Base */
  --bg:           #F6F7F2;          /* very pale energy tint */
  --bg-alt:       #FFFFFF;
  --bg-soft:      #EEF2EB;
  --ink:          #14181A;
  --ink-2:        #3B4347;
  --muted:        #596267;
  --line:         #E1E5DD;
  --focus:        #FFBF47;
  --on-dark-soft: #DDE5DF;

  /* Brand */
  --green:        #247D3C;          /* accessible REPOWER green */
  --green-700:    #1E6F35;
  --green-50:     #E8F5EC;
  --blue:         #124f8a;          /* EU blue family */
  --blue-700:     #0d3d6e;
  --blue-50:      #ddeaf5;
  --brown:        #5B4A40;          /* YPEN brown */
  --warn:         #C8451E;

  /* Layout */
  --radius:       16px;
  --radius-sm:    10px;
  --radius-pill:  999px;
  --shadow:       0 6px 20px rgba(20,24,26,.06);
  --shadow-lg:    0 20px 50px rgba(20,24,26,.10);

  --container:    1340px;
  --bar-h:        84px;
  --btn-min-width: 280px;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h, 84px) + 32px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Averta", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h, 84px) + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .16em;
  text-decoration-thickness: .08em;
}
a:hover { text-decoration-thickness: .12em; }
.btn[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  background: url('../images/external-link.svg') center / contain no-repeat;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

h1,h2,h3,h4 { color: var(--ink); margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-weight: 600; font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink-2); }

ul, ol { margin: 0; padding: 0; list-style: none; }

.text-green { color: var(--green); }
.soft-bold {
  color: inherit;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.skip-link:focus-visible { transform: translateY(0); }

#main-content:focus { outline: none; }

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  inline-size: auto;
  min-inline-size: min(100%, var(--btn-min-width));
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 12px 18px; font-size: .95rem; }
.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn--primary:hover { background: var(--green-700); border-color: var(--green-700); }
@keyframes hero-pulse {
  0%   { box-shadow: 0 14px 30px rgba(36,125,60,.24), 0 0 0 0 rgba(36,125,60,.45); }
  70%  { box-shadow: 0 14px 30px rgba(36,125,60,.24), 0 0 0 14px rgba(36,125,60,0); }
  100% { box-shadow: 0 14px 30px rgba(36,125,60,.24), 0 0 0 0 rgba(36,125,60,0); }
}
.btn--hero-primary {
  position: relative;
  background:
    linear-gradient(135deg, var(--green), var(--green-700)),
    var(--green);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(36, 125, 60, .24);
  transform: translateY(-1px);
  animation: hero-pulse 2s ease-out infinite;
}
.btn--hero-primary:hover {
  background:
    linear-gradient(135deg, var(--green-700), #155c2d),
    var(--green-700);
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(36, 125, 60, .30);
  transform: translateY(-3px);
  animation-play-state: paused;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ----------------------------------------------------------
   Urgency strip
   ---------------------------------------------------------- */
.urgency-strip {
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
}
.urgency-strip__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  flex-wrap: wrap;
}
.urgency-strip p { margin: 0; color: #fff; }
.urgency-strip__link {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
}
.urgency-strip__link:hover { border-bottom-color: #fff; text-decoration: none; }

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,242,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__ypen { height: 44px; width: auto; border-radius: 6px; }
.brand__divider {
  width: 1px; height: 28px; background: var(--line);
}
.brand__campaign {
  height: 44px;
  width: auto;
}
.brand__bracket { color: var(--green); }

.site-nav { margin-left: auto; min-width: 0; }
.site-nav ul {
  display: flex; gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a::before,
.site-nav a::after {
  color: var(--green);
  font-weight: 900;
  line-height: 1;
}
.site-nav a::before { content: "["; }
.site-nav a::after { content: "]"; }
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.menu-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 26, .45);
  z-index: 49;
  animation: fade-in .15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 8px 24px 16px;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav a.btn { border-bottom: 0; margin-top: 10px; }

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  background:
    url("../images/bg_blue_energy.webp") center / cover no-repeat;
}
.hero .hero__title { color: #fff; }
.hero .text-green { color: #6EE89A; }
.hero .hero__lead { color: rgba(255,255,255,.88); }
.hero .hero__lead strong { color: rgba(255,255,255,.88); }
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.hero .btn--ghost:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.hero__logo {
  height: 48px;
  width: auto;
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: .35em;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  max-width: 72ch;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero__ctas {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.hero__stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
.stamp img {
  /* logo-phr-light.webp — keep visible on dark */
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.2));
}
.stamp__bracket {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green);
}
.stamp__caption {
  margin: 14px 0 0;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   Programmes selector
   ---------------------------------------------------------- */
.programmes {
  padding: clamp(40px, 6vw, 80px) 0;
}
.deadlines-overview {
  padding: clamp(40px, 6vw, 80px) 0;
  background:
    linear-gradient(180deg, rgba(31,71,59,.04), rgba(31,71,59,0)),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.deadlines-overview__programmes {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.65fr);
  gap: 20px;
  align-items: stretch;
}
.deadlines-program {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.deadlines-program__title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 850;
  line-height: 1.15;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: none;
  margin-bottom: 36px;
}

.programmes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}
.programme-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .15s ease, transform .15s ease;
}
.programme-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.programme-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  margin: 0;
}
.programme-card > p { margin: 0; color: var(--ink-2); }

.programme-card__meta {
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: .9rem;
}
.programme-card__meta strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.programme-card .btn { align-self: flex-start; margin-top: auto; }

/* ----------------------------------------------------------
   Persistent bottom action bar
   ---------------------------------------------------------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 -10px 30px rgba(20,24,26,.18);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  flex-wrap: wrap;
}
.action-bar__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}
.action-bar__copy strong {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.005em;
}
.action-bar__copy span {
  font-size: .88rem;
  color: var(--on-dark-soft);
}
.action-bar__ctas {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.action-bar .btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.action-bar .btn--primary:hover { background: var(--green-700); border-color: var(--green-700); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.back-to-top-wrap {
  position: fixed;
  right: 24px;
  bottom: calc(var(--bar-h, 84px) + 20px);
  z-index: 80;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}
.back-to-top:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

/* ----------------------------------------------------------
   Programme sections
   ---------------------------------------------------------- */
.programme-section {
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.programme-section--green {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(45,168,79,.08), transparent 60%),
    var(--bg);
}
.programme-section--blue {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(18,79,138,.08), transparent 60%),
    linear-gradient(rgba(255,255,255,.91), rgba(255,255,255,.91)),
    url("../images/bg-allazw.webp") center / cover no-repeat;
}
.programme-section--warm {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(200,69,30,.07), transparent 60%),
    var(--bg);
}
#promitheftes .programme-section__head {
  max-width: none;
}
.programme-section__head {
  max-width: 78ch;
  margin-bottom: 28px;
}
.programme-section__head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 8px 0 12px;
  text-wrap: balance;
}
.title-bracket {
  color: var(--green);
  font-weight: 300;
  margin: 0 .15em;
  opacity: .85;
}

.deadline-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  margin-bottom: 36px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.deadline-banner--green { border-left: 0; }
.deadline-banner__label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.deadline-banner__date {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.deadline-banner__icon { display: none; }

.subsection-title {
  margin: 48px 0 24px;
  padding-top: 48px;
  font-size: 1.3rem;
  border-top: 1px solid rgba(20, 24, 26, .08);
}
.subsection-title::before {
  content: '▶';
  color: #38a169;
  font-size: .75em;
  margin-right: .45em;
  vertical-align: middle;
}
.programme-section--blue .subsection-title::before {
  color: #3182ce;
}
.programme-section--blue .title-bracket {
  color: var(--blue);
}
#allazo .btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(18,79,138,.22);
  animation: none;
}
#allazo .btn--primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: 0 12px 30px rgba(18,79,138,.30);
}
#allazo .deadline-banner__date { color: var(--blue-700); }
#allazo .deadline-card header strong { color: var(--blue-700); }
.programme-section__head + .deadline-banner + .subsection-title,
.programme-section__head + .subsection-title {
  margin-top: 48px;
}

/* Step grid */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.step-grid { counter-reset: step-counter; }
.step-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  counter-increment: step-counter;
}
.step-card::before {
  content: counter(step-counter, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
  opacity: .45;
  letter-spacing: .03em;
}
.step-card__icon {
  display: inline-flex;
  color: var(--green);
}
.step-card__icon svg { width: 22px; height: 22px; stroke-width: 2; }
.step-card h4 { margin: 0; }
.step-card p { margin: 0; font-size: .95rem; }

/* Deadline grid (Programme 2) */
.deadline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.deadline-grid--overview { grid-template-columns: repeat(2, minmax(0,1fr)); }
.deadline-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.deadline-card--overview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.deadline-card__cta {
  align-self: flex-start;
  margin-top: auto;
}
.deadline-card--green .deadline-card__pill {
  background: var(--green-50);
  color: var(--green-700);
}
.deadline-card--green .deadline-list strong {
  color: var(--green-700);
}
.deadline-card--blue .btn--primary {
  background: var(--blue);
  border-color: var(--blue);
}
.deadline-card--blue .btn--primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
}
.deadline-card--blue .cta-block__countdown {
  background: var(--blue);
}
.deadline-card__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}
.deadline-card__column {
  min-width: 0;
}
.deadline-card__column header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.deadline-card__column h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.deadline-card__column time {
  color: var(--blue-700);
  font-size: .94rem;
  font-weight: 800;
}
.deadline-card__intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 400;
}
.deadline-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.deadline-card__pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.deadline-card header strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}
.deadline-list { display: flex; flex-direction: column; gap: 0; }
.deadline-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .98rem;
}
.deadline-list li:last-child { border-bottom: 0; }
.deadline-list strong { color: var(--blue-700); font-weight: 800; }
.is-past-deadline {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: .08em;
  text-decoration-color: currentColor;
}
.deadline-list .is-past-deadline strong {
  color: var(--muted);
}

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
  list-style: none;
  margin-bottom: 48px;
  padding: 0;
  counter-reset: stepper-counter;
}
.stepper li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
  counter-increment: stepper-counter;
}
.stepper li::before {
  content: counter(stepper-counter, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
  opacity: .45;
  letter-spacing: .03em;
}
.stepper__icon {
  display: inline-flex;
  color: var(--blue);
}
.stepper__icon svg { width: 22px; height: 22px; stroke-width: 2; }
.stepper h4 { margin: 0; }
.stepper p { margin: 0; font-size: .95rem; }

.note {
  margin-top: 16px;
  color: var(--muted);
}
.note--inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-style: italic;
}
.note--inline svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: .18em;
  color: var(--blue);
}

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; counter-reset: faq-counter; }
.accordion details {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  counter-increment: faq-counter;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: counter(faq-counter, decimal-leading-zero);
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 22px;
  flex-shrink: 0;
}
.accordion summary > span:not(.chev) { flex: 1; }
.accordion summary .q { flex: 1; }
.chev {
  width: 14px; height: 14px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-right: 4px;
}
.accordion details[open] .chev { transform: rotate(-135deg); }
.accordion details:hover { border-color: var(--ink); }
.accordion details[open] {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.acc-body {
  padding: 0 20px 20px 56px; /* 20px edge + 22px counter + 14px gap */
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.acc-body p { margin: 0 0 .8em; }
.acc-body ul, .acc-body ol {
  padding-left: 1.2em;
  margin: .4em 0 .8em;
  color: var(--ink-2);
}
.acc-body ul li { list-style: disc; margin-bottom: 4px; }
.acc-body ol li { list-style: decimal; margin-bottom: 4px; }

.date-pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
#tab-allazo .date-pill,
#tab-supp   .date-pill {
  background: var(--blue-50);
  color: var(--blue-700);
}

/* CTA block */
.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-top: 36px;
  padding: 0;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta-block--green,
.cta-block--blue { border-left: 1px solid var(--line); }
.cta-block__content {
  width: 100%;
}
.cta-block h3 {
  margin: 0;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.cta-block--blue h3 {
  background: var(--bg-soft);
}
.cta-block--blue .cta-block__countdown {
  background: var(--blue);
}
.cta-block p {
  margin: 0;
  max-width: 56ch;
  padding: 18px 20px 0;
}
.cta-block__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
}
.cta-block__countdown {
  width: 100%;
  background: var(--green);
  border-top: none;
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}
.deadline-card .cta-block__countdown {
  width: calc(100% + 48px);
  margin: 0 -24px -24px;
  padding: 16px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.countdown__days {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.countdown__label,
.countdown__unit {
  color: #fff;
}

/* Exoikonomo two-column sticky layout */
.exo-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.exo-layout__sidebar {
  position: sticky;
  top: 80px;
}
.exo-layout__sidebar .cta-block {
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
}

/* ----------------------------------------------------------
   Reminder section
   ---------------------------------------------------------- */
.reminder {
  background:
    linear-gradient(rgba(20,24,26,.65), rgba(20,24,26,.65)),
    url("../images/bg-cta.webp") center / cover no-repeat;
  color: #fff;
  padding: clamp(56px, 8vw, 110px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.reminder::before,
.reminder::after { content: none; }

.reminder__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.reminder h2 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.reminder p {
  color: var(--on-dark-soft);
  font-size: 1.1rem;
  max-width: 60ch;
}
.reminder__brackets {
  display: none; /* decorative; brackets shown in stamp instead */
}
.reminder__stamp {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reminder__stamp img { max-width: 260px; }
.reminder__stamp .stamp__bracket {
  display: none;
}
.reminder .btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.reminder .btn--primary:hover { background: var(--green-700); border-color: var(--green-700); }
.reminder .text-green { color: #6EE89A; }

/* ----------------------------------------------------------
   FAQ tabs
   ---------------------------------------------------------- */
.faq { padding: clamp(48px, 7vw, 96px) 0; background: var(--bg); }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 48px;
  padding: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
}
.tab {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-2);
  font-size: .92rem;
}
.tab.is-active {
  background: var(--ink);
  color: #fff;
}
.tab:not(.is-active):hover { background: var(--bg-soft); color: var(--ink); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }


/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  color: var(--ink-2);
  padding: 48px 0 calc(28px + var(--bar-h, 84px));
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.site-footer__top {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.site-footer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo--ypen { height: 56px; width: auto; }
.footer-logo--e20  { height: 56px; width: auto; }

.site-footer__note {
  margin: 24px 0 16px;
  font-size: .9rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px auto 20px;
  padding: 0;
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-style: normal;
  font-size: .92rem;
}
.footer-contact a {
  color: var(--ink);
  font-weight: 700;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-decoration: none;
}
.footer-social a:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.footer-social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.footer-social a:nth-child(2) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.footer-social a:nth-child(3) svg path:last-child {
  fill: var(--bg-alt);
}
.footer-social a:nth-child(3):hover svg path:last-child {
  fill: var(--green);
}

.site-footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer__lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.site-footer__lockup img {
  height: 28px;
  width: auto;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Large tablet — collapse nav, step/stepper intermediate columns */
@media (max-width: 1280px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; margin-left: auto; }

  .step-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stepper { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Tablet — sidebar collapses before main column gets too narrow */
@media (max-width: 960px) {
  .exo-layout { grid-template-columns: 1fr; }
  .exo-layout__sidebar { position: static; }

  .stepper { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Mobile */
@media (max-width: 720px) {
  body {
    font-size: 16px;
    padding-bottom: 0;
  }

  .container { padding: 0 16px; }

  .urgency-strip__inner { font-size: .82rem; gap: 8px; justify-content: center; text-align: center; }
  .urgency-strip__link { margin-left: 0; font-size: .82rem; }

  .site-header__inner { gap: 12px; padding: 10px 16px; }
  .brand { gap: 8px; min-width: 0; }
  .brand__divider {
    display: block;
    height: 24px;
  }
  .brand__ypen { height: 34px; }
  .brand__campaign { display: block; height: 34px; }

  .hero { padding: 40px 0 24px; }
  .hero__logo { height: 40px; }
  .hero__ctas { flex-wrap: wrap; }

  .programmes { padding: 28px 0 36px; }
  .programmes__grid { grid-template-columns: 1fr; }

  .action-bar__inner { padding: 12px 16px; gap: 8px; flex-wrap: nowrap; align-items: center; }
  .action-bar__copy { width: auto; margin-right: auto; min-width: 0; }
  .action-bar__copy strong { font-size: .88rem; }
  .action-bar__copy span { display: none; }
  .action-bar__ctas { flex-shrink: 0; width: auto; }
  .action-bar__ctas .btn {
    flex: 0 1 auto;
    min-inline-size: 0;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: .82rem;
  }
  .back-to-top {
    width: 46px;
    height: 46px;
  }
  .back-to-top-wrap {
    right: 16px;
    bottom: 148px;
  }

  .step-grid { grid-template-columns: 1fr; }
  .deadline-grid { grid-template-columns: 1fr; }
  .deadlines-overview__programmes { grid-template-columns: 1fr; }
  .deadline-card__columns { grid-template-columns: 1fr; }
  .deadlines-overview .deadline-card__cta { width: 100%; text-align: center; }

  .deadline-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .stepper { grid-template-columns: 1fr; }
  .stepper li { padding: 12px 14px; }

  .cta-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-block__buttons { width: 100%; }
  .cta-block__buttons .btn { flex: 1; }

  .accordion summary { padding: 14px 16px; gap: 10px; font-size: .95rem; }
  .acc-body { padding: 16px 16px 20px 48px; } /* 16px edge + 22px counter + 10px gap */

  .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .tab { flex-shrink: 0; }

  .reminder { padding: 56px 0 72px; }
  .reminder__stamp img { max-width: 180px; }

  .site-footer__top { flex-direction: column; align-items: center; }
  .footer-logo--ypen { height: 44px; }
  .footer-logo--e20  { height: 44px; }
  .site-footer__bottom { flex-direction: column; align-items: center; }
  .site-footer { padding-bottom: 170px; }
}

/* Very small */
@media (max-width: 400px) {
  .hero__ctas .btn { flex: 1; }
  .deadline-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
