/* ============================================================
   Agronas – JAVELO landing page
   Czysty HTML/CSS, fonty self-hosted (Allenoire + Plus Jakarta Sans)
   ============================================================ */

/* ---------- Fonty ---------- */

@font-face {
  font-family: "Allenoire";
  src: url("../assets/fonts/allenoire-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-v12-latin_latin-ext-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-v12-latin_latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-v12-latin_latin-ext-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-v12-latin_latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Zmienne ---------- */

:root {
  --c-dark: #121212;
  --c-muted: #999999;
  --c-green: #267F37;
  --c-green-deep: #003719;
  --c-yellow: #FFD500;
  --c-pill-alt: #D0E7BD;
  --c-pill: #E4F5D6;
  --c-card: #F1F1F1;
  --c-band: #F5F5F5;
  --c-form-card: #EBEBEB;
  --font-display: "Allenoire", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --container: 1200px;
}

/* ---------- Baza ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 26px;
  color: var(--c-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--c-green);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(3rem, 5.1vw, 4.5625rem); line-height: 1; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.05; }

p { margin: 0 0 1em; }

a { color: var(--c-green); }

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

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

/* ---------- Animacja pojawiania (jak we Framerze) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-block;
  padding: 16px 24px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: filter 0.2s ease, background-color 0.2s ease;
}

.btn--primary {
  background: var(--c-green);
  color: #fff;
}
.btn--primary:hover { filter: brightness(0.92); }

.btn--white {
  background: #fff;
  color: #151515;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.btn--white:hover { background: #f3f3f3; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.btn-row--center { justify-content: center; margin-top: 48px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 651px;
  background:
    linear-gradient(90deg, #fff 0%, #fff 28%, rgba(255, 255, 255, 0.65) 42%, rgba(255, 255, 255, 0) 62%),
    url("../assets/img/hero-kukurydza.webp") right center / cover no-repeat;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  min-height: 651px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.hero__logo { display: block; width: 78px; }
.hero__logo img { width: 100%; }

.hero__content {
  max-width: 560px;
  padding-top: 48px;
}

.hero h1 { margin-bottom: 24px; }

.hero__lead {
  font-size: 18px;
  line-height: 26px;
  color: var(--c-dark);
  max-width: 430px;
}

/* ---------- Sekcje ---------- */

.section { padding: 72px 0; }
.section--band { background: var(--c-band); }

.section__head {
  max-width: 1060px;
  text-align: center;
}
.section__head h2 { margin-bottom: 28px; }
.section__head p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- Tabele pigułkowe ---------- */

.spec-table {
  max-width: 970px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec-table__label,
.spec-table__value {
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-table__label {
  background: var(--c-pill-alt);
  font-weight: 600;
}

.spec-table__value {
  background: var(--c-pill);
  font-weight: 400;
}

/* Tabela wielokolumnowa (obsada) */

.grid-table {
  max-width: 970px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grid-table__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.grid-table__cell {
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  text-align: center;
  background: var(--c-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-table__cell--hdr {
  background: var(--c-pill-alt);
  font-weight: 600;
}

/* ---------- Split (tekst + zdjęcie) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.split:last-child { margin-bottom: 0; }

.split__media { margin: 0; }
.split__media img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* ---------- Checklisty ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.checklist__icon {
  flex-shrink: 0;
  width: 24px;
  height: auto;
  margin-top: 3px;
}

.checklist p {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
}

.checklist--grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 64px;
  max-width: 1080px;
  margin: 72px auto 0;
}
.checklist--grid li {
  flex-direction: column;
  gap: 14px;
}
.checklist--grid .checklist__icon { width: 26px; margin-top: 0; }

/* ---------- Galeria ---------- */

.gallery__caption {
  text-align: center;
  font-size: 18px;
  margin: 56px 0 24px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Współpraca ---------- */

.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  margin-top: 56px;
}
.partners img { width: 100%; max-width: 1116px; }
.partners img + img { max-width: 820px; }

/* ---------- Nagłówek doradców ---------- */

.advisors-title {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-green);
  text-align: center;
  margin-bottom: 56px;
}
.advisors-title .display {
  font-family: var(--font-body);
  font-weight: 700;
}

/* ---------- Karty doradców ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--c-card);
  border-radius: 8px;
  padding: 32px;
}

.card__map {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 28px;
}

.card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 2px;
}

.card__role {
  font-size: 16px;
  margin-bottom: 24px;
}

.card__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.card__contact a {
  display: inline-block;
  background: var(--c-yellow);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-dark);
  text-decoration: none;
  word-break: break-all;
}
.card__contact a:hover { filter: brightness(0.95); }

.card__region {
  font-size: 15px;
  margin: 0;
}
.card__region span {
  display: block;
  font-weight: 700;
}

/* ---------- Sekcja formularza ---------- */

.form-section {
  position: relative;
  padding: 110px 0;
  color: #fff;
  background:
    linear-gradient(rgba(0, 30, 12, 0.45), rgba(0, 30, 12, 0.45)),
    url("../assets/img/formularz-tlo.webp") center / cover no-repeat;
}

.form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.form-section__lead {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  max-width: 300px;
}
.form-section__lead strong { font-weight: 700; }

.form-section__contact { margin-top: 96px; font-size: 16px; }
.form-section__contact-title {
  font-weight: 700;
  margin-bottom: 32px;
}
.form-section__contact p { line-height: 1.6; }
.form-section__contact a {
  color: #fff;
  font-weight: 700;
}

.contact-form {
  background: var(--c-form-card);
  color: var(--c-dark);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-green-deep);
  margin: 0 0 10px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff;
  color: var(--c-dark);
  resize: vertical;
}
.contact-form input { height: 48px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--c-muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--c-green);
  outline-offset: -1px;
}

.contact-form button[type="submit"] {
  margin-top: 6px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--c-green-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.contact-form button[type="submit"]:hover { filter: brightness(1.2); }
.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

.contact-form__status {
  margin: 0;
  font-size: 14px;
  min-height: 20px;
}
.contact-form__status.is-error { color: #c0392b; }
.contact-form__status.is-success { color: var(--c-green); }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Stopka ---------- */

.footer {
  background: #fff;
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__copy {
  font-size: 14px;
  color: var(--c-muted);
  margin: 0;
}

.footer__left { display: flex; flex-direction: column; gap: 2px; }
.footer__credit a { color: var(--c-muted); font-weight: 600; text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; color: var(--c-green); }


.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
}

.footer__nav a,
.footer__cookies {
  color: var(--c-dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}
.footer__nav a:hover { text-decoration: underline; }

.footer__cookies {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.footer__cookies:hover { text-decoration: underline; }

.footer__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social img { width: 25px; height: 25px; }
.footer__social a:hover { opacity: 0.8; }

.footer__logo { width: 44px; }

/* ---------- Baner cookies ---------- */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  padding: 24px;
  z-index: 100;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-banner__actions .btn { padding: 10px 24px; font-size: 14px; }
.cookie-banner__actions .btn--outline {
  background: transparent;
  border: 1px solid var(--c-green);
  color: var(--c-green);
}


/* ---------- Strona polityki prywatności ---------- */

.legal-header { padding: 32px 0; }

.legal {
  max-width: 800px;
  padding-bottom: 80px;
}

.legal h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--c-dark);
  margin-bottom: 4px;
}

.legal h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--c-dark);
  letter-spacing: 0;
  margin: 40px 0 12px;
}

.legal p {
  font-size: 16px;
  line-height: 26px;
}

.legal__updated {
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal__back {
  display: inline-block;
  margin-top: 32px;
  font-weight: 600;
}

/* ---------- Responsywność ---------- */

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
      url("../assets/img/hero-kukurydza.webp") center / cover no-repeat;
  }
  .split,
  .form-section__inner { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: -1; }
  .checklist--grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .spec-table__row { grid-template-columns: 1fr 1fr; }
  .form-section__contact { margin-top: 48px; }
  .footer__inner { flex-wrap: wrap; justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .grid-table__row { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 24px 20px; }
}
