/* ==========================================================================
   ZIP — Page-specific styles
   ========================================================================== */

/* ===== HOME =============================================================== */

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--zip-pink);
}
.hero__inner {
  max-width: calc(1200px + 32px);
  margin-inline: auto;
  padding: 80px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.hero__title {
  margin: 0;
  font-size: var(--fs-hero);          /* 80px */
  line-height: 1.1;
  font-weight: 800;
  color: var(--zip-black);
}
.hero__sub {
  margin: 0;
  font-size: var(--fs-lead);          /* 24px */
  line-height: 1.33;
  font-weight: 400;
  color: var(--zip-black);
}

/* ---- About (home) -------------------------------------------------------- */
.about-home__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
}
.about-home__desc {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.about-home__text {
  font-size: var(--fs-lead);          /* 24px */
  line-height: 1.33;
  color: var(--zip-black);
}
.about-home__cta { margin: 16px 0 0; }

/* ---- News (home, red section) ------------------------------------------- */
.news-home {
  background: var(--zip-red);
  color: var(--zip-white);
}
.news-home__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}
.news-home__title {
  flex: 1 0 0;
  min-width: 0;
  margin: 0;
  font-size: clamp(2rem, 1.1rem + 2.6vw, 3.5rem); /* 56px */
  line-height: 1.14;
  font-weight: 800;
  color: var(--zip-white);
  text-decoration: underline;
  text-decoration-color: var(--zip-white);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.news-home__all { flex: none; }
.news-home__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ===== NEWS ARCHIVE ====================================================== */
.news-archive { background: var(--zip-pink); }
.news-archive__title { margin-bottom: 40px; }
.news-archive__body { display: flex; flex-direction: column; gap: 32px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-archive__empty { font-size: var(--fs-lead); }

/* ---- Pagination ---------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 48px;
  padding: 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 24px;
  color: var(--zip-black);
  transition: background var(--t-fast), color var(--t-fast);
}
.pagination a.page-numbers:hover { color: var(--zip-red); }
.pagination .page-numbers.current { background: var(--zip-red); color: var(--zip-white); }
.pagination .page-numbers.dots { min-width: 24px; }
.pagination .prev,
.pagination .next { color: var(--zip-black); }
.pagination .prev:hover,
.pagination .next:hover { color: var(--zip-red); }
.pagination .page-numbers .icon { width: 24px; height: 24px; }

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

/* ===== PAGE HERO (image + white title) =================================== */
.page-hero {
  position: relative;
  min-height: clamp(360px, 40vw, 640px);
  background: var(--zip-red);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  padding: 40px;
  text-align: center;
}
.page-hero__title {
  margin: 0;
  font-size: var(--fs-hero);
  line-height: 1.1;
  font-weight: 800;
  color: var(--zip-white);
}

/* ===== ABOUT PAGE ======================================================== */
.about-page { background: var(--zip-white); }
.about-page .container { max-width: calc(1200px + var(--gutter) * 2); }
.about-page__intro { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.about-page__lead { font-size: 1.125rem; line-height: 1.6; }
.about-page__outro { margin-top: 48px; font-size: 1.125rem; line-height: 1.6; }

.building-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.building-card {
  background: var(--zip-red);
  color: var(--zip-white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.building-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zip-white);
}
.building-card__label {
  flex: 1 0 0;
  font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem); /* 40px */
  line-height: 1.2;
  font-weight: 700;
}
.building-card__letter {
  flex: 1 0 0;
  text-align: right;
  font-size: clamp(4.5rem, 2rem + 6vw, 7.5rem); /* 120px */
  line-height: 1;
  font-weight: 700;
}
.building-card__area {
  margin: 0;
  font-size: 1.5rem;
  line-height: 32px;
  font-weight: 700;
}
.building-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0; padding: 0;
  list-style: none;
}
.building-card__tag {
  margin: 0;
  background: var(--zip-white);
  color: var(--zip-red);
  padding: 4px 12px;
  font-size: 1rem;
  line-height: 24px;
  font-weight: 400;
}

@media (max-width: 800px) {
  .building-cards { grid-template-columns: 1fr; }
}

/* ===== GENERIC PAGE (privacy, etc.) ===================================== */
.page-head { background: var(--zip-pink); padding: clamp(48px, 6vw, 96px) 0; }
.page-head__title {
  margin: 0;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--zip-black);
  overflow-wrap: break-word;
}
.page-content { background: var(--zip-white); }
.page-content__body { font-size: var(--fs-body); line-height: 1.7; }
.page-content__body h2 {
  font-size: var(--fs-h3);
  margin: 1.8em 0 .6em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--zip-red);
}
.page-content__body h3 { font-size: 1.375rem; margin: 1.6em 0 .5em; }
.page-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 1rem;
}
.page-content__body th,
.page-content__body td {
  border: 1px solid var(--zip-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.page-content__body thead th { background: var(--zip-red); color: var(--zip-white); font-weight: 700; }
.page-content__body .wp-block-table { overflow-x: auto; }
.page-content__body a { word-break: break-word; }

/* ===== CONTACT =========================================================== */
.contact-hero { background: var(--zip-pink); }
.contact-hero__title {
  margin: 0 0 48px;
  font-size: var(--fs-hero);          /* 80px */
  line-height: 1.1;
  font-weight: 800;
  color: var(--zip-black);
}
.contact-grid {
  display: grid;
  grid-template-columns: 568px 1fr;
  gap: 32px;
  align-items: start;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-details__address { margin: 0; font-size: 1.25rem; line-height: 28px; color: #1c1c1c; }
.contact-details__address strong { font-weight: 700; }
.contact-details__email { margin: 0; }
.contact-details__email a {
  font-size: 1.25rem;
  line-height: 28px;
  color: var(--zip-red);
  text-decoration: underline;
}

/* Form */
.contact-form-wrap { padding-left: 48px; }
.contact-form__intro { margin: 0 0 24px; font-size: 1.25rem; line-height: 28px; color: #1c1c1c; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form__row { display: flex; gap: 16px; }
.contact-form__row .field { flex: 1 1 0; min-width: 0; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field input,
.field textarea {
  width: 100%;
  padding: 16px;
  font-family: var(--zip-font);
  font-size: 1rem;
  line-height: 24px;
  color: #1c1c1c;
  background: var(--zip-white);
  border: 1px solid var(--zip-black);
  border-radius: 0;
  transition: border-color var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #1c1c1c; opacity: 1; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--zip-red); }
.field.has-error input,
.field.has-error textarea { border-color: var(--zip-red); }
.field-error { font-size: 1rem; line-height: 24px; color: var(--zip-red); }

/* Honeypot hidden */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consent checkbox */
.field--consent { margin-top: 8px; }
.consent { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid #1c1c1c;
  background: var(--zip-white);
}
.consent__box .icon { width: 18px; height: 18px; color: var(--zip-red); opacity: 0; transition: opacity var(--t-fast); }
.consent input:checked ~ .consent__box .icon { opacity: 1; }
.consent input:focus-visible ~ .consent__box { outline: 2px solid var(--zip-red); outline-offset: 2px; }
.consent__text { font-size: 0.875rem; line-height: 22px; color: #1c1c1c; }
.consent__text a { text-decoration: underline; }
.field--consent.has-error .consent__box { border-color: var(--zip-red); }

.contact-form__cta { display: flex; justify-content: center; padding-top: 40px; }

/* Form messages */
.form-message {
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 24px;
  border: 1px solid transparent;
}
.form-message--success { color: #146c2e; background: #eaf7ee; border-color: #b7e1c2; }
.form-message--error { color: var(--zip-red); background: #fdeaea; border-color: #f3c2c4; }

/* Map */
.contact-map { width: 100%; height: clamp(360px, 38vw, 640px); background: var(--zip-grey-200); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding-left: 0; }
}
@media (max-width: 520px) {
  .contact-form__row { flex-direction: column; }
}

/* ===== SINGLE ARTICLE ==================================================== */
.single-article {
  background: var(--zip-pink);
  padding: clamp(56px, 7vw, 120px) 0 var(--space-section);
}
.single-article__grid {
  display: grid;
  grid-template-columns: 328px minmax(0, 688px) 328px;
  justify-content: center;
  gap: 32px;
  align-items: start;
}
.single-article__rail { padding-left: 16px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 28px;
  color: var(--zip-black);
}
.back-link .icon { width: 24px; height: 24px; color: var(--zip-red); }
.back-link:hover { color: var(--zip-red); }

.single-article__image {
  margin: 0 0 32px;
  aspect-ratio: 688 / 550;
  overflow: hidden;
  background: #e0e0e0;
}
.single-article__image img { width: 100%; height: 100%; object-fit: cover; }
.single-article__title {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2rem); /* 32px */
  line-height: 1.25;
  font-weight: 700;
  color: #1c1c1c;
}
.single-article__body { color: #1c1c1c; }
.single-article__body p { margin-bottom: 1.5em; }

.single-article__share { padding-top: 48px; }
.single-article__share-label {
  margin: 0 0 16px;
  font-size: 1.125rem;
  line-height: 26px;
  font-weight: 700;
  color: #1c1c1c;
}
.single-article__share-icons { display: flex; align-items: center; gap: 16px; }
.share-icon {
  display: inline-flex;
  width: 24px; height: 24px;
  padding: 0; border: 0; background: none;
  color: var(--zip-red);
  transition: color var(--t-fast), transform var(--t-fast);
}
.share-icon svg { width: 24px; height: 24px; }
.share-icon:hover { color: var(--zip-red-dark); transform: translateY(-2px); }
.share-icon.is-copied { color: #1c8a3b; }

/* Right sidebar */
.single-sidebar { padding-left: 16px; }
.single-sidebar__title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  line-height: 32px;
  font-weight: 700;
  color: #1c1c1c;
}
.single-sidebar__list { display: flex; flex-direction: column; gap: 24px; }
.sidebar-news {
  border-bottom: 1px solid var(--zip-red);
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-news__title {
  margin: 0;
  font-size: 1rem;
  line-height: 24px;
  font-weight: 700;
}
.sidebar-news__title a {
  color: var(--zip-black);
  text-decoration: underline;
  text-decoration-color: var(--zip-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.sidebar-news__title a:hover { color: var(--zip-red); }
.sidebar-news__date { margin: 0; font-size: 0.875rem; line-height: 22px; color: var(--zip-black); }
.single-sidebar__all { margin-top: 16px; padding-top: 12px; }

/* Responsive: single */
@media (max-width: 1180px) {
  .single-article__grid {
    grid-template-columns: minmax(0, 688px) 300px;
    justify-content: center;
  }
  .single-article__rail { grid-column: 1 / -1; padding-left: 0; }
}
@media (max-width: 880px) {
  .single-article__grid { grid-template-columns: minmax(0, 720px); }
  .single-sidebar { padding-left: 0; }
}

/* ---- Responsive: home ---------------------------------------------------- */
@media (max-width: 1000px) {
  .about-home__grid { gap: 56px; }
  .news-home__grid { gap: 24px; }
}
@media (max-width: 820px) {
  .about-home__grid { grid-template-columns: 1fr; gap: 40px; }
  .about-home__graphic { max-width: 420px; margin-inline: auto; }
  .news-home__grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 56px 16px; }
}

/* Large display headings: wrap gracefully on small screens */
.hero__title, .page-hero__title, .contact-hero__title {
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 600px) {
  :root { --fs-hero: clamp(1.875rem, 1rem + 5vw, 2.75rem); }
  .news-home__head { flex-wrap: wrap; }
}
