/* ───────────────────────────────────────────────────────────────
   ahtaajankuja.fi — site styles. Reproduces the Claude Design mockup
   "Rakennushanke Green Park" as production HTML/CSS.
   ─────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: #fff; }
img, svg { max-width: 100%; }
input, textarea { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); }
a { color: var(--blue); }

@keyframes kpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 92, 255, .45); }
  50%      { box-shadow: 0 0 0 5px rgba(0, 92, 255, 0); }
}

/* ─── Layout helpers ─── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.pad { padding-block: 80px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.mono { font-family: var(--font-mono); }

h1, h2, h3, h4 { margin: 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 32px;
  margin: 0 0 12px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { color: #fff; background: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--outline { color: var(--ink); background: #fff; border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--block { width: 100%; text-align: center; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 24px; height: 24px; background: var(--blue); display: inline-block; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.brand__sub { font-family: var(--font-mono); font-size: 11px; color: var(--text); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: 14px; color: var(--text); text-decoration: none; }
.nav__link:hover { color: var(--blue); }
.nav__cta {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 9px 16px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav__cta:hover { background: var(--blue-dark); }

/* ─── Hero ─── */
.hero { background: #fff; border-bottom: 1px solid var(--line-soft); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-block: 72px 56px;
}
.hero__eyebrow { margin-bottom: 18px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: 56px;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero__lead { font-size: 19px; line-height: 1.45; color: var(--text); max-width: 30em; margin: 0 0 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}
.stat__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat__num span { font-size: 15px; color: var(--muted); }
.stat__label { font-size: 13px; color: var(--text); margin-top: 4px; }

/* ─── Site plan card ─── */
.siteplan { background: var(--panel); border: 1px solid var(--line); padding: 24px; }
.siteplan__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.siteplan__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.siteplan__compass { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.siteplan__svg { width: 100%; height: auto; display: block; background: var(--map-bg); }
.siteplan__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  gap: 12px;
}
.siteplan__addr { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.siteplan__maplink { font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: none; }
.siteplan__maplink:hover { text-decoration: underline; }

/* ─── Disclaimer banner ─── */
.disclaimer { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); }
.disclaimer__inner { display: flex; align-items: flex-start; gap: 14px; padding-block: 18px; }
.disclaimer__dot { width: 9px; height: 9px; border-radius: 999px; background: var(--warn-dot); margin-top: 6px; flex: none; }
.disclaimer__text { margin: 0; font-size: 14px; color: var(--warn-text); line-height: 1.5; }
.disclaimer__text strong { font-weight: 700; }

/* ─── Overview ─── */
.overview { background: #fff; }
.overview__lead { font-size: 18px; color: var(--text); max-width: 46em; margin: 0 0 40px; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact { background: #fff; padding: 24px; }
.fact__key {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.fact__val { font-size: 16px; color: var(--ink); line-height: 1.4; }
.fact__val .mono { font-size: 13px; color: var(--text); }

/* ─── Timeline ─── */
.timeline { background: var(--panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.timeline__title { margin-bottom: 44px; }
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phase { background: #fff; border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; }
.phase--lead { border-color: var(--blue); box-shadow: 0 2px 6px rgba(0, 14, 45, .08), 0 4px 14px rgba(0, 14, 45, .06); }
.phase__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.phase__no { font-family: var(--font-mono); font-size: 13px; color: var(--blue); }
.phase__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--tag-bg);
  padding: 5px 10px;
}
.phase__badge--lead { color: #fff; background: var(--blue); }
.phase__name { font-family: var(--font-body); font-weight: 700; font-size: 22px; margin: 0 0 8px; color: var(--ink); }
.phase__desc { font-size: 15px; color: var(--text); margin: 0 0 24px; }
.phase__meta { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 20px; display: grid; gap: 14px; }
.meta-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.meta-row__k { font-size: 13px; color: var(--muted); }
.meta-row__v { font-size: 14px; color: var(--ink); text-align: right; }
.meta-row__v.mono { font-family: var(--font-mono); }
.meta-row__v--accent { color: var(--blue); font-weight: 700; }
.meta-row__v--soft { color: var(--text); }

.keydates { margin-top: 40px; background: #fff; border: 1px solid var(--line); }
.keydates__head {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.keydate { display: flex; gap: 28px; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line-soft); }
.keydate__date { font-family: var(--font-mono); font-size: 15px; color: var(--blue); min-width: 150px; flex: none; }
.keydate__label { font-size: 15px; color: var(--ink); }
.keydates__note { padding: 14px 28px; font-size: 12px; color: var(--muted); }

/* ─── Participate / forms ─── */
.participate { background: #fff; }
.participate__grid, .qa__grid { display: grid; gap: 56px; }
.participate__grid { grid-template-columns: .85fr 1.15fr; }
.participate__lead { font-size: 17px; color: var(--text); margin: 0 0 24px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.checklist li::before { content: ""; width: 7px; height: 7px; background: var(--blue); margin-top: 7px; flex: none; }

.card-form { background: var(--panel); border: 1px solid var(--line); padding: 32px; }
.card-form--plain { background: #fff; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: block; margin-bottom: 16px; }
.field--last { margin-bottom: 20px; }
.field__label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.input, .textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  border-radius: 0;
  color: var(--ink);
}
.input--mono { font-family: var(--font-mono); }
.textarea { resize: vertical; }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 92, 255, .15);
}
.choices__label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.choices { display: flex; gap: 20px; flex-wrap: wrap; }
.choice { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); cursor: pointer; }
.choice input { width: 16px; height: 16px; accent-color: var(--blue); }
.form-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.form-error { font-size: 13px; color: #B00020; margin: 12px 0 0; }

/* Success panels (shown by JS after submit) */
.is-hidden { display: none !important; }
.success { text-align: center; padding: 32px 12px; }
.success__icon {
  width: 44px; height: 44px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: #fff; font-size: 22px; line-height: 1;
  animation: kpulse 2.2s ease-in-out infinite;
}
.success__icon--green { width: 40px; height: 40px; background: var(--green); margin-bottom: 16px; font-size: 20px; animation: none; }
.success__title { font-family: var(--font-body); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.success__text { font-size: 15px; color: var(--text); margin: 0 auto; max-width: 30em; }
.success--sm .success__title { font-size: 17px; margin-bottom: 6px; }
.success--sm { padding: 24px 8px; }
.success--sm .success__text { font-size: 14px; }

/* ─── Q&A ─── */
.qa { background: var(--panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.qa__grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
.qa__title { margin-bottom: 28px; }
.faq { background: #fff; border: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item:last-child { border-bottom: none; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  font-family: inherit;
}
.faq__q:hover { background: var(--panel); }
.faq__q-text { font-size: 16px; font-weight: 700; color: var(--ink); }
.faq__sign { font-family: var(--font-mono); font-size: 20px; color: var(--blue); flex: none; line-height: 1; }
.faq__a { padding: 0 24px 22px; font-size: 15px; color: var(--text); line-height: 1.55; max-width: 48em; }
.qa-form__title { font-family: var(--font-body); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.qa-form__lead { font-size: 14px; color: var(--text); margin: 0 0 22px; }

/* ─── Procuring parties ─── */
.tilaaja { background: #fff; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.party { border: 1px solid var(--line); padding: 32px; }
.party__name { font-family: var(--font-body); font-weight: 700; font-size: 20px; margin: 0 0 10px; }
.party__desc { font-size: 15px; color: var(--text); margin: 0; }

/* ─── Footer ─── */
.site-footer { background: var(--ink-dark); color: var(--on-dark); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 56px 24px 40px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer__brand span.brand__mark { background: var(--blue); }
.site-footer__brand-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--on-dark-strong); }
.site-footer__about { font-size: 13px; color: var(--on-dark-soft); line-height: 1.55; max-width: 30em; margin: 0; }
.footcol__head { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 14px; }
.footcol__body { font-size: 14px; color: var(--on-dark-strong); line-height: 1.7; }
.footcol__body a { color: var(--blue-soft); text-decoration: none; }
.footcol__body a:hover { text-decoration: underline; }
.footcol__body .mono { font-family: var(--font-mono); color: var(--on-dark); }
.site-footer__bar { border-top: 1px solid var(--line-dark); }
.site-footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 18px; }
.site-footer__bar span { font-size: 12px; color: var(--on-dark-soft); }
.site-footer__bar .mono { font-family: var(--font-mono); }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; padding-block: 48px 40px; }
  .hero__title { font-size: 42px; }
  .participate__grid, .qa__grid { grid-template-columns: 1fr; gap: 36px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .pad { padding-block: 56px; }
  .nav { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  .nav__link { font-size: 13px; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 17px; }
  .section-title { font-size: 26px; }
  .phases, .parties { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .keydate { flex-direction: column; align-items: flex-start; gap: 6px; }
  .keydate__date { min-width: 0; }
}
/* Show the desktop nav links only on wider screens; CTA always visible */
@media (max-width: 560px) {
  .nav__link { display: none; }
}
