/*
Theme Name: INCIA — Pracownia Rozwoju i Komunikacji
Theme URI: https://incia.pl/
Author: INCIA
Description: Responsywny, jednąstronicowy motyw dla pracowni INCIA w stylu Soft Neo-Brutalism.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: incia
*/


/* INCIA Soft Neo-Brutalism theme */
:root {
  --paper: #fffaf0;
  --paper-deep: #f6eedc;
  --ink: #18372e;
  --ink-soft: #36534b;
  --white: #fffef9;
  --mint: #bde3cc;
  --mint-light: #e0f3e6;
  --yellow: #ffd966;
  --peach: #ffb99f;
  --pink: #f4b8cf;
  --lilac: #c9baf3;
  --blue: #b9dcef;
  --line: var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-md: 7px 7px 0 var(--ink);
  --shadow-lg: 11px 11px 0 var(--ink);
  --sans: "Manrope", Arial, sans-serif;
  --serif: "Lora", Georgia, serif;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: clamp(24px, 2.5vw, 42px);
  --border: 2px solid var(--line);
  --section-space: clamp(76px, 8vw, 148px);
  --space-xs: clamp(14px, 0.4vw + 12px, 20px);
  --space-sm: clamp(18px, 0.8vw + 14px, 28px);
  --space-md: clamp(24px, 1.4vw + 18px, 42px);
  --space-lg: clamp(34px, 2.4vw + 22px, 66px);
  --container: 1700px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(84px, 7vw, 112px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10px 10px, rgb(24 55 46 / 8%) 1.2px, transparent 1.2px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 0.35vw + 14.5px, 20px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

h1 {
  max-width: 1000px;
  margin-bottom: clamp(26px, 2.2vw, 40px);
  font-size: clamp(43px, 5vw, 96px);
}

h2 {
  font-size: clamp(36px, 3.45vw, 70px);
}

h3 {
  font-size: clamp(23px, 1.55vw, 32px);
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 62px);
}

.section {
  padding-block: var(--section-space);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: clamp(18px, 1.5vw, 28px);
  padding: 8px 14px;
  transform: rotate(-1.5deg);
  border: var(--border);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: clamp(11px, 0.3vw + 10px, 14px);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-heading {
  max-width: 900px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: var(--border);
  background: rgb(255 250 240 / 94%);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(245px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  min-height: clamp(80px, 6vw, 104px);
  gap: var(--space-sm);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: clamp(42px, 2.8vw, 54px);
  height: auto;
  flex: 0 0 auto;
  padding: 5px;
  transform: rotate(-5deg);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
}

.logo-mark__embrace {
  fill: var(--ink);
}

.logo-mark__growth {
  fill: var(--white);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  color: var(--ink);
  font-size: clamp(24px, 1.5vw, 31px);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand-copy small {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 1.5vw, 31px);
}

.desktop-nav a {
  position: relative;
  color: var(--ink);
  font-size: clamp(12px, 0.3vw + 10px, 15px);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 4px;
  transform: scaleX(0) rotate(-1deg);
  border-radius: 99px;
  background: var(--peach);
  content: "";
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1) rotate(-1deg);
}

.header-action {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 13px var(--space-xs);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: clamp(14px, 0.25vw + 13px, 17px);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button--primary {
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--peach);
  color: var(--white);
}

.button--primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--peach);
}

.button--secondary {
  background: var(--white);
  color: var(--ink);
}

.button--secondary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--yellow);
}

.button--text {
  min-height: auto;
  justify-content: flex-start;
  padding: 0 0 5px;
  border-width: 0 0 2px;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
}

.button--text:hover {
  gap: var(--space-xs);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

footer {
  padding-block: var(--space-md);
  border-top: var(--border);
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand--footer .logo-mark {
  border-color: var(--white);
  box-shadow: none;
}

.brand--footer .brand-copy strong,
.brand--footer .brand-copy small {
  color: var(--white);
}

.footer-inner p {
  margin: 0;
  color: var(--white);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-action {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 50px;
    height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: var(--border);
    border-radius: 14px;
    background: var(--yellow);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    z-index: 49;
    top: clamp(80px, 6vw, 104px);
    right: 0;
    left: 0;
    max-height: calc(100dvh - clamp(80px, 6vw, 104px));
    overflow-y: auto;
    border-bottom: var(--border);
    background: var(--paper);
    box-shadow: 0 7px 0 var(--ink);
  }

  .mobile-nav--open {
    display: block;
    animation: mobile-menu-in 180ms ease-out both;
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: var(--space-xs) var(--space-sm);
  }

  .mobile-nav-inner > a:not(.button) {
    padding: 14px 4px;
    border-bottom: 2px dashed var(--ink);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-nav .button {
    margin-top: var(--space-xs);
  }

  @keyframes mobile-menu-in {
    from {
      transform: translateY(-12px);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

}

@media (max-width: 820px) {
}

@media (max-width: 560px) {
  :root {
    --shadow-md: 5px 5px 0 var(--ink);
    --shadow-lg: 7px 7px 0 var(--ink);
  }

  .brand {
    gap: 9px;
  }

  .brand-copy small {
    max-width: 200px;
    font-size: 8px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* WordPress integration */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
