:root {
  --max-width: 88rem;
  --border-radius: 12px;

  --font-sans: "Montserrat Variable", system-ui, sans-serif;
  --font-mono: ui-monospace, "Courier New", monospace;

  --antiflash-white: #f0f0f0ff;
  --platinum: #e6e6e6ff;
  --night: #0e0e0eff;

  --primary-color: #0062af;
  --secondary-color: #36aa3e;
  --tertiary-color: #ffaf00;

  --main-gradient: linear-gradient(
    120deg,
    var(--primary-color) 0 49%,
    var(--secondary-color) 50% 100%
  );

  --main-background: var(--antiflash-white);
}

/* ——————————————
   Load the variable font
—————————————— */
@font-face {
  font-family: "Montserrat Variable";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat Variable";
  src: url("../fonts/Montserrat-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
}

/* ——————————————
     Apply globally
  —————————————— */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  font-family: var(--font-sans);
  font-weight: 400;
  scroll-behavior: smooth;
  max-width: 100vw;
}

body {
  background: var(--main-background);
  color: var(--night);
  max-width: 100vw;
  margin: 0 auto;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 600;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  /* letter-spacing: -2.1px; */
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.8rem;
}

h5,
h6 {
  font-size: 1.5rem;
}

p {
  font-weight: 500;
  margin-bottom: 12px;
}

button {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
}

/* === Header & Logo === */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid var(--platinum);
  z-index: 200;
}

.site-header__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
}

.custom-logo {
  width: 205px;
}

.site-logo__main {
  font-size: 2em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

/* === Navigation === */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.site-nav .nav-list {
  display: none; /* mobile hidden */
  list-style: none;
}

.site-nav .nav-item {
  position: relative;
}

.site-nav .nav-item__label {
  display: inline-flex;
  font-size: 1em;
  font-weight: 600;
  padding: 1.5rem 1rem;
  width: 100%;
  justify-content: space-between;
  line-height: 1rem;
  gap: 0.4rem;
}

.site-nav .nav-item__label svg {
  transition: transform 0.2s ease-in-out;
}

.nav-sub-list {
  display: none;
  position: relative;
  top: 100%;
  left: 0;
  transform: initial;
  border: 1px solid #f2f2f2;
  border-radius: 0.5rem;
  background-color: #fff;
  padding: 1rem;
  gap: 0.75rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  width: 100%;
}

/* Submenu wrapper */

.nav-sub-list a {
  display: block;
  padding: 0.5rem 1rem;
  margin: 0;
  border-bottom: none;
  border-radius: 0.25rem;
}

/* Active state for sumbenu */
.nav-toggle .icon {
  display: none;
}
/* gdy menu zamknięte – pokaz hamburger */
.nav-toggle[aria-expanded="false"] .icon--hamburger {
  display: inline-block;
}

/* gdy menu otwarte – pokaz X */
.nav-toggle[aria-expanded="true"] .icon--close {
  display: inline-block;
}

.site-nav .nav-item[data-active="true"] .nav-sub-list {
  display: flex;
}

.site-nav .nav-item[data-active="true"] .nav-item__label svg {
  transform: rotate(180deg);
}

/* mobile: */
.site-nav .nav-list.nav-list--open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-nav .nav-list.nav-list--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%; /* -> zawsze zaraz pod headerem */
  padding: 1rem;
  background: #fff; /* żeby było widać tło menu */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 100; /* ponad innymi elementami */
}

/* Submenu items */
.nav-sub-list > .nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

/* Submenu links */
.nav-sub-list > .nav-item > a.nav-item__label {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.5rem;
  margin: 0 1rem;
  font-weight: 600;
}

/* Hover state */
.nav-sub-list > .nav-item > a.nav-item__label:hover {
  background-color: #edeef8;
}

/* Link content layout */
.nav-sub-list > .nav-item > a.nav-item__label span {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
}

/* Sub-label text (e.g. <small>) */
.nav-sub-list > .nav-item > a.nav-item__label small {
  font-size: 0.75em;
  line-height: 1.16;
  font-weight: 400;
  color: #767680;
  margin-block-start: 0.188rem;
}

/* Desktop layout */
@media (min-width: 1060px) {
  .site-header .nav-toggle {
    display: none;
  }

  .site-nav .nav-list {
    display: flex;
    gap: 2rem;
  }
  .site-nav .nav-list .nav-item__label {
    border-bottom: none;
    padding: 0;
    margin: 0;
    justify-content: center;
  }

  .nav-sub-list {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
  }
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* === Header Actions (Buttons) === */
/* .header-actions .btn {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: opacity 0.2s ease-in-out;
}

.btn--login {
  border: 2px solid #e2e4;
  background-color: #fff;
  color: rgb(var(--night-rgb));
}

.btn--login:hover,
.btn--login:focus {
  opacity: 0.7;
}

.btn--signup {
  background-color: rgb(var(--blue-rgb));
  border: 2px solid rgb(var(--blue-rgb));
  color: #fff;
}

.btn--signup:hover,
.btn--signup:focus {
  opacity: 0.7;
} */

.site-main {
  padding-bottom: 6rem;
}

/* Buttons */
.btn {
  padding: 18px;
  font-weight: 500;
  border-radius: 16px;
  line-height: 18px;
  display: inline-block;
  border: 1px solid;
  background-color: var(--platinum);
}
.btn:hover {
  opacity: 0.85;
}
.btn--primary {
  background-color: var(--primary-color);
  color: var(--platinum);
  border-color: var(--primary-color);
}
.btn--secondary {
  background-color: var(--secondary-color);
  color: var(--platinum);
  border-color: var(--secondary-color);
}
.btn--teritary {
  background-color: var(--teritary-color);
  border-color: var(--teritary-color);
}

/* Features */
.features .wp-block-column {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0.5rem 1.7rem 0 var(--primary-color);
}

.features .feature-heading {
  margin-bottom: 25px;
}

/* Footer */
.site-footer {
  background: #222;
  color: #eee;
  padding: 2rem 1rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__logo img {
  max-height: 50px;
  width: auto;
}

.site-footer__nav .footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.site-footer__nav .footer-menu li a {
  color: #eee;
  text-decoration: none;
  font-weight: 500;
}

.site-footer__nav .footer-menu li a:hover {
  color: #fff;
}

.site-footer__credits p {
  font-size: 0.9rem;
  margin: 0;
}

@media screen and (max-width: 88rem) {
  .site-main {
    margin: 0 12px;
  }
}
