/* ─────────────────────────────────────────────────────────────────────────
   site-extras.css
   Cookie banner + kontakt form + redakcja page styles.
   ───────────────────────────────────────────────────────────────────────── */

/* ── 1. Cookie banner ─────────────────────────────────────────────────── */

.mz-cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: var(--bg-el, #FBF7F0);
  color: var(--ink, #1C1C1E);
  border: 1px solid var(--rule, #E4DACA);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  display: none;
  max-width: 760px;
  margin: 0 auto;
}

.mz-cookie-banner.is-visible {
  display: block;
}

.mz-cookie-banner__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.mz-cookie-banner__text {
  flex: 1 1 320px;
  margin: 0;
}

/* Short copy is mobile-only; full copy shows on desktop (toggled in @media). */
.mz-cookie-banner__text--short { display: none; }

.mz-cookie-banner__text a {
  color: var(--gold-deep, #6E5424);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.mz-cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mz-cookie-banner__btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mz-cookie-banner__btn--accept {
  background: var(--ink, #1C1C1E);
  color: var(--bg, #F8F4ED);
}

.mz-cookie-banner__btn--accept:hover {
  background: var(--gold-deep, #6E5424);
}

.mz-cookie-banner__btn--essential {
  background: transparent;
  color: var(--ink, #1C1C1E);
  border-color: var(--rule, #E4DACA);
}

.mz-cookie-banner__btn--essential:hover {
  border-color: var(--ink, #1C1C1E);
}

@media (max-width: 600px) {
  .mz-cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.8rem 0.9rem;
    font-size: 0.85rem;
    line-height: 1.4;
    max-height: 60vh;        /* never eat half the viewport */
    overflow-y: auto;
  }

  .mz-cookie-banner__body { gap: 0.6rem; }

  /* swap to the short copy on phones */
  .mz-cookie-banner__text       { flex-basis: 100%; }
  .mz-cookie-banner__text--full  { display: none; }
  .mz-cookie-banner__text--short { display: inline; }

  /* two buttons side-by-side, equal width, one readable row */
  .mz-cookie-banner__actions {
    width: 100%;
    gap: 0.5rem;
  }

  .mz-cookie-banner__btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* ── 2. /kontakt/ page ────────────────────────────────────────────────── */

.main--kontakt {
  padding: 2rem 0 4rem;
}

.page-header--kontakt {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0.4rem 0 0.8rem;
  font-weight: 700;
}

.page-header__lead {
  max-width: 520px;
  margin: 0 auto;
  color: var(--ink-soft, #4A4540);
  font-size: 1.05rem;
  line-height: 1.55;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── 2a. Contact form ─────────────────────────────────────────────────── */

.kontakt-form h2,
.kontakt-aside h2 {
  font-size: 1.3rem;
  margin: 0 0 1.2rem;
  font-weight: 700;
}

.kontakt-form__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kontakt-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kontakt-form__field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #1C1C1E);
}

.kontakt-form__field .req {
  color: var(--gold-deep, #6E5424);
}

.kontakt-form__field small {
  font-size: 0.82rem;
  color: var(--ink-soft, #6E6C68);
  line-height: 1.4;
}

.kontakt-form__field input[type="text"],
.kontakt-form__field input[type="email"],
.kontakt-form__field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-el, #FBF7F0);
  border: 1px solid var(--rule, #E4DACA);
  border-radius: 4px;
  color: var(--ink, #1C1C1E);
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.kontakt-form__field input:focus,
.kontakt-form__field textarea:focus {
  outline: none;
  border-color: var(--gold, #A48140);
  background: var(--bg, #F8F4ED);
}

.kontakt-form__field textarea {
  resize: vertical;
  min-height: 140px;
}

.kontakt-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kontakt-form__submit {
  display: inline-block;
  margin-top: 0.5rem;
  align-self: flex-start;
  background: var(--ink, #1C1C1E);
  color: var(--bg, #F8F4ED);
  border: 1px solid var(--ink, #1C1C1E);
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.kontakt-form__submit:hover:not([disabled]) {
  background: var(--gold-deep, #6E5424);
  border-color: var(--gold-deep, #6E5424);
}

.kontakt-form__submit[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.kontakt-form__legal {
  font-size: 0.82rem;
  color: var(--ink-soft, #6E6C68);
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

.kontakt-form__legal a {
  color: var(--gold-deep, #6E5424);
  text-decoration: underline;
}

/* ── 2b. Aside ────────────────────────────────────────────────────────── */

.kontakt-aside {
  background: var(--bg-el, #FBF7F0);
  border: 1px solid var(--rule, #E4DACA);
  border-radius: 6px;
  padding: 1.5rem 1.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.kontakt-aside__email {
  font-size: 1.1rem;
  margin: 0.4rem 0 1.6rem;
}

.kontakt-aside__email a {
  color: var(--gold-deep, #6E5424);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.kontakt-aside h3 {
  font-size: 1rem;
  margin: 1.4rem 0 0.4rem;
  font-weight: 700;
}

.kontakt-aside__list {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.kontakt-aside p {
  margin: 0.3rem 0;
}

/* ── 3. Form messages ─────────────────────────────────────────────────── */

.form-message {
  padding: 0.95rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid;
}

.form-message strong {
  font-weight: 700;
}

.form-message--success {
  background: #F1F8EC;
  border-color: #C6E1B0;
  color: #355218;
}

.form-message--warning {
  background: #FCF6E5;
  border-color: #E7D9A8;
  color: #6E5424;
}

.form-message--error {
  background: #FBEEEE;
  border-color: #E7BFBF;
  color: #7A2828;
}

/* ── 4. Wrap narrow modifier ──────────────────────────────────────────── */

.wrap--narrow {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── 5. HOTFIX: blog-card image overflow on mobile ─────────────────────
   Force img max-width here (loaded after main.css). */

.blog-card__img,
.blog-card__media img,
img.blog-card__img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
}

.blog-card--feature .blog-card__media,
.blog-card__media {
  max-width: 100%;
  overflow: hidden;
}
