/*
Theme Name: Netexo
Theme URI: https://netexo.pl
Description: Czysty, lekki theme dla Netexo
Version: 1.0.0
Author: Netexo
License: GPL v2 or later
Text Domain: netexo
*/

/* NETEXO BRANDBOOK 2026-2028 COLORS */
:root {
  /* PRIMARY */
  --dark-compass: #062018;      /* Hero, Footer, tło */
  --compass-green: #145844;     /* Logo, ikony, nagłówki */

  /* ACCENTS */
  --growth-green: #6BCB77;      /* Słowo "przewaga", wykresy, wyniki */
  --mint-cta: #EAF3EF;          /* Główny przycisk CTA */
  --accent-orange: #E54C1C;     /* Tylko promocje, alerty */

  /* SUPPORT */
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --border-light: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

/* TYPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-compass);
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 700; }
h4 { font-size: 1.5rem; font-weight: 700; }
h5 { font-size: 1.25rem; font-weight: 700; }
h6 { font-size: 1rem; font-weight: 700; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--compass-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--growth-green);
}

/* BUTTONSY - BRANDBOOK */
/* PRIMARY CTA: Mint na białym */
.btn, button, input[type="submit"] {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--mint-cta);     /* #EAF3EF - Mint CTA */
  color: var(--dark-compass);             /* #062018 - Dark Compass */
  border: none;
  border-radius: 12px;                    /* Zaokrąglenie z brandbook */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.btn:hover, button:hover, input[type="submit"]:hover {
  background-color: var(--growth-green); /* #6BCB77 - Hover color */
  color: var(--white);
  transform: translateY(-2px);
}

/* SECONDARY CTA: Border z Growth Green */
.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--growth-green); /* #6BCB77 - Border */
  color: var(--compass-green);            /* #145844 - Link color */
  border-radius: 12px;                    /* Zaokrąglenie z brandbook */
}

.btn-secondary:hover {
  background-color: var(--growth-green); /* #6BCB77 */
  border-color: var(--growth-green);
  color: var(--white);
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER - BRANDBOOK */
header {
  background-color: var(--dark-compass); /* #062018 - Dark Compass */
  color: var(--white);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  color: var(--compass-green); /* #145844 - Compass Green (logo color) */
}

/* NAVIGACJA */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--white);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--growth-green);
}

nav a.active {
  color: var(--growth-green);
  border-bottom: 2px solid var(--growth-green);
  padding-bottom: 0.25rem;
}

/* MAIN CONTENT */
main {
  min-height: calc(100vh - 300px);
}

.page-title {
  text-align: center;
  padding: 4rem 0 2rem;
}

/* SEKCJE */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--growth-green);  /* #6BCB77 - Growth Green */
  border-radius: 2px;
}

/* GRID */
.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* KARTY - BRANDBOOK */
.card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 18px;                    /* Zaokrąglenie z brandbook */
  transition: all 0.3s ease;
  border: 1px solid var(--border-light); /* #e0e0e0 */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--growth-green);      /* #6BCB77 - Growth Green */
}

.card h3 {
  color: var(--dark-compass);             /* #062018 - Dark Compass */
  margin-bottom: 1rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  background-color: var(--growth-green); /* #6BCB77 - Growth Green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--white);
}

/* FOOTER - BRANDBOOK */
footer {
  background-color: var(--dark-compass); /* #062018 - Dark Compass */
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--growth-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* FORMULARZE */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--growth-green); /* #6BCB77 - Growth Green */
  box-shadow: 0 0 0 3px rgba(107, 203, 119, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  nav ul {
    gap: 1rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 0;
  }
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pt-4 { padding-top: 4rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }
.pb-4 { padding-bottom: 4rem; }



.nx-site-header__inner{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:2rem !important;
}



/* FIX: białe tło w edytorze Gutenberg */
html.block-editor-iframe__html,
body.block-editor-iframe__body,
body.block-editor-iframe__body .editor-styles-wrapper,
body.block-editor-iframe__body .is-root-container,
body.block-editor-iframe__body .block-editor-block-list__layout {
  background: #ffffff !important;
  color: #111111 !important;
}

/* Teksty w edytorze */
body.block-editor-iframe__body h1,
body.block-editor-iframe__body h2,
body.block-editor-iframe__body h3,
body.block-editor-iframe__body h4,
body.block-editor-iframe__body h5,
body.block-editor-iframe__body h6,
body.block-editor-iframe__body p {
  color: #111111 !important;
}

.nx-knowledge {
  --nx-knowledge-bg: none;
  background: #eaf3ef;
  color: #062018;
  font-family: Inter, system-ui, sans-serif;
}

.nx-knowledge * {
  box-sizing: border-box;
}

.nx-section-kicker {
  display: block;
  margin-bottom: 18px;
  color: #6bcb77;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nx-knowledge-hero {
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(6,32,24,.94) 0%, rgba(6,32,24,.72) 48%, rgba(6,32,24,.2) 100%),
    var(--nx-knowledge-bg) center / cover no-repeat,
    linear-gradient(135deg, #062018, #145844);
  color: #fff;
}

.nx-knowledge-hero__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 120px 40px 90px;
}

.nx-knowledge-hero__content {
  max-width: 760px;
}

.nx-knowledge h1,
.nx-knowledge h2,
.nx-knowledge h3 {
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: 0;
}

.nx-knowledge-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 6vw, 92px);
  line-height: .95;
}

.nx-knowledge-hero h1 span {
  color: #6bcb77;
}

.nx-knowledge-hero p {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.7;
}

.nx-knowledge-search {
  margin-top: 38px;
  width: min(100%, 520px);
  height: 58px;
  display: flex;
  border: 1px solid rgba(234,243,239,.35);
  border-radius: 10px;
  background: rgba(6,32,24,.45);
  overflow: hidden;
}

.nx-knowledge-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 20px;
  font: 700 15px Inter, sans-serif;
  outline: 0;
}

.nx-knowledge-search input::placeholder {
  color: rgba(255,255,255,.68);
}

.nx-knowledge-search button {
  border: 0;
  padding: 0 22px;
  background: #6bcb77;
  color: #062018;
  font-weight: 900;
  cursor: pointer;
}

.nx-knowledge-categories {
  background: #fff;
  border-bottom: 1px solid rgba(6,32,24,.08);
}

.nx-knowledge-categories__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 40px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
}

.nx-knowledge-categories a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  color: #062018;
  background: transparent;
  text-decoration: none;
  font-weight: 900;
  transition: .2s ease;
}

.nx-knowledge-categories a:hover,
.nx-knowledge-categories a.is-active {
  background: #eaf3ef;
  color: #145844;
}

.nx-knowledge-main {
  padding: 62px 40px 100px;
}

.nx-knowledge-main__inner {
  max-width: 1500px;
  margin: 0 auto;
}

.nx-knowledge-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(420px, .85fr);
  gap: 28px;
}

.nx-knowledge-featured {
  position: relative;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: #062018;
  box-shadow: 0 24px 70px rgba(6,32,24,.12);
}

.nx-knowledge-featured__image {
  position: absolute;
  inset: 0;
}

.nx-knowledge-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-knowledge-featured__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,32,24,.94), rgba(6,32,24,.42));
}

.nx-knowledge-featured__content {
  position: relative;
  z-index: 2;
  min-height: 520px;
  padding: 46px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.nx-featured-label {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 8px 14px;
  border: 1px solid #6bcb77;
  border-radius: 999px;
  color: #6bcb77;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nx-knowledge-featured h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}

.nx-knowledge-featured h2 a {
  color: #fff;
  text-decoration: none;
}

.nx-knowledge-featured p {
  max-width: 560px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.65;
}

.nx-knowledge-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.nx-knowledge-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #6bcb77;
  color: #062018;
  font-weight: 900;
}

.nx-knowledge-author strong,
.nx-knowledge-author span {
  display: block;
  color: #fff;
}

.nx-knowledge-author span {
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

.nx-knowledge-arrow {
  position: absolute;
  right: 42px;
  bottom: 42px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #6bcb77;
  color: #062018;
  font-size: 26px;
  font-weight: 900;
  text-decoration: none;
}

.nx-knowledge-side {
  display: grid;
  gap: 18px;
}

.nx-knowledge-side-card {
  min-height: 154px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(6,32,24,.08);
  box-shadow: 0 20px 50px rgba(6,32,24,.06);
}

.nx-knowledge-side-card span,
.nx-latest-card__cat {
  color: #145844;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.nx-knowledge-side-card h3 {
  margin: 12px 0;
  font-size: 24px;
  line-height: 1.18;
}

.nx-knowledge-side-card h3 a {
  color: #062018;
  text-decoration: none;
}

.nx-knowledge-side-card small {
  color: rgba(6,32,24,.55);
  font-weight: 700;
}

.nx-knowledge-side-card__image {
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  background: #eaf3ef;
}

.nx-knowledge-side-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-newsletter {
  margin: 50px 0 58px;
  padding: 44px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(360px, 520px);
  gap: 34px;
  align-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 48%, rgba(107,203,119,.22), transparent 24%),
    #f7fbf9;
  border: 1px solid rgba(6,32,24,.08);
}

.nx-newsletter__icon {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ef;
  color: #145844;
  font-size: 42px;
}

.nx-newsletter h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.nx-newsletter p {
  margin: 14px 0 0;
  color: rgba(6,32,24,.65);
  line-height: 1.65;
}

.nx-newsletter__form {
  display: flex;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(6,32,24,.08);
}

.nx-newsletter__form input {
  flex: 1;
  border: 0;
  padding: 0 20px;
  outline: 0;
}

.nx-newsletter__form button {
  border: 0;
  padding: 0 24px;
  background: #6bcb77;
  color: #062018;
  font-weight: 900;
}

.nx-latest-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.nx-latest-heading h2 {
  margin: 0;
  font-size: 36px;
}

.nx-latest-heading a {
  color: #145844;
  font-weight: 900;
  text-decoration: none;
}

.nx-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.nx-latest-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(6,32,24,.08);
  box-shadow: 0 20px 50px rgba(6,32,24,.06);
}

.nx-latest-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  background: #062018;
}

.nx-latest-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-latest-card__content {
  min-height: 230px;
  padding: 24px;
}

.nx-latest-card h3 {
  margin: 14px 0 20px;
  font-size: 22px;
  line-height: 1.2;
}

.nx-latest-card h3 a {
  color: #062018;
  text-decoration: none;
}

.nx-latest-card__content > span {
  color: rgba(6,32,24,.55);
  font-weight: 700;
}

.nx-latest-card__arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  color: #145844;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.nx-pagination {
  margin-top: 42px;
  text-align: center;
}

.nx-pagination a,
.nx-pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin: 4px;
  border-radius: 999px;
  background: #fff;
  color: #145844;
  font-weight: 900;
  text-decoration: none;
}

.nx-knowledge-cta {
  padding: 80px 40px;
  background:
    linear-gradient(90deg, rgba(6,32,24,.96), rgba(6,32,24,.78)),
    #062018;
  color: #fff;
}

.nx-knowledge-cta__inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 560px) auto;
  gap: 42px;
  align-items: center;
}

.nx-knowledge-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1;
}

.nx-knowledge-cta h2 span {
  color: #6bcb77;
}

.nx-knowledge-cta p {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  line-height: 1.6;
}

.nx-knowledge-cta__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.nx-knowledge-cta__stats div {
  padding: 0 22px;
  border-left: 1px solid rgba(255,255,255,.18);
}

.nx-knowledge-cta__stats strong {
  display: block;
  color: #fff;
  font-family: Poppins, Inter, sans-serif;
  font-size: 32px;
}

.nx-knowledge-cta__stats span {
  color: rgba(255,255,255,.74);
  font-size: 14px;
}

.nx-knowledge-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 10px;
  background: #6bcb77;
  color: #062018;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .nx-knowledge-top,
  .nx-newsletter,
  .nx-knowledge-cta__inner {
    grid-template-columns: 1fr;
  }

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

  .nx-knowledge-cta__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nx-knowledge-hero__inner,
  .nx-knowledge-categories__inner,
  .nx-knowledge-main,
  .nx-knowledge-cta {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nx-knowledge-hero h1 {
    font-size: 44px;
  }

  .nx-knowledge-top {
    display: block;
  }

  .nx-knowledge-featured {
    min-height: 480px;
    margin-bottom: 22px;
  }

  .nx-knowledge-featured__content {
    padding: 28px;
  }

  .nx-knowledge-side-card {
    grid-template-columns: 1fr;
  }

  .nx-knowledge-side-card__image {
    height: 180px;
  }

  .nx-newsletter {
    padding: 28px;
  }

  .nx-newsletter__form {
    height: auto;
    display: grid;
  }

  .nx-newsletter__form input,
  .nx-newsletter__form button {
    min-height: 54px;
  }

  .nx-latest-grid {
    grid-template-columns: 1fr;
  }

  .nx-latest-heading {
    display: block;
  }
}


