/*
Theme Name: SmartPallet v1
Theme URI: https://smartpallet-preview.avismedical.de
Author: Codex
Description: Motyw SmartPallet dla robotów paletyzujących i automatyzacji paletyzacji.
Version: 0.5.5
Text Domain: smartpallet
*/

:root {
  --color-white: #ffffff;
  --color-background: #f5f8fc;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-text-muted: #5f6b7a;
  --color-navy: #0b1f3a;
  --color-blue: #0b5ed7;
  --color-blue-light: #eaf3ff;
  --color-blue-glow: #4da3ff;
  --color-orange: #f97316;
  --color-orange-hover: #ea580c;
  --color-border: #dce5ef;
  --shadow-soft: 0 18px 50px rgba(11, 31, 58, 0.10);
  --shadow-header: 0 14px 34px rgba(11, 31, 58, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: Inter, Manrope, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-is-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-shell {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
}

.narrow-copy {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 229, 239, 0.72);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  width: 218px;
}

.site-logo img,
.footer-logo img {
  width: 100%;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--color-navy);
  font-size: 15px;
  font-weight: 650;
}

.primary-nav a:not(.button) {
  position: relative;
  color: var(--color-navy);
}

.primary-nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:not(.button):hover::after {
  transform: scaleX(1);
}

.nav-consult {
  color: var(--color-blue) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-navy);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span:not(.screen-reader-text) {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 750;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

.button--primary:hover {
  background: var(--color-orange-hover);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(11, 94, 215, 0.28);
  color: var(--color-navy);
}

.button--secondary:hover {
  background: var(--color-blue-light);
  border-color: var(--color-blue);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-section {
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at 18% 16%, rgba(77, 163, 255, 0.20), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--color-background) 100%);
}

.sales-hero {
  padding: 72px 0 70px;
  background:
    radial-gradient(circle at 16% 12%, rgba(77, 163, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--color-background) 100%);
}

.sales-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(540px, 1.24fr);
  gap: clamp(34px, 4.4vw, 64px);
  align-items: stretch;
}

.sales-hero h1,
.sales-hero h2,
.finance-section h2,
.calculator-section h2,
.process-section h2,
.products-section h2,
.features-section h2,
.buying-section h2,
.funding-teaser h2,
.faq-section h2 {
  margin: 0;
  color: var(--color-navy);
  line-height: 1.04;
  letter-spacing: 0;
}

.sales-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 760;
}

.sales-hero__copy > p:not(.section-kicker):not(.fine-print) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-size: 18px;
}

.fine-print {
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-bullets span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 750;
}

.sales-hero__media,
.split-section > img,
.gallery-grid img {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.sales-hero__media {
  min-height: clamp(520px, 43vw, 650px);
  align-self: stretch;
}

.sales-hero__media img,
.split-section > img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finance-section .split-section > img {
  aspect-ratio: 16 / 10;
  object-position: center;
}

.benefit-strip,
.finance-section,
.process-section,
.features-section,
.buying-section,
.faq-section {
  padding: 72px 0;
  background: var(--color-white);
}

.benefit-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit-strip article,
.process-steps article,
.feature-grid article,
.faq-grid article,
.comparison-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.benefit-strip article {
  padding: 22px;
}

.benefit-strip span,
.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-weight: 850;
}

.benefit-strip h2,
.process-steps h3,
.feature-grid h3,
.faq-grid h3 {
  margin: 0;
  color: var(--color-navy);
  line-height: 1.2;
}

.benefit-strip h2 {
  font-size: 18px;
}

.benefit-strip p,
.process-steps p,
.feature-grid p,
.faq-grid p,
.comparison-card li {
  color: var(--color-text-muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.finance-section {
  background: var(--color-background);
}

.finance-section h2,
.calculator-section h2,
.process-section h2,
.features-section h2,
.buying-section h2,
.funding-teaser h2,
.faq-section h2 {
  max-width: 760px;
  font-size: clamp(30px, 3.4vw, 48px);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

.calculator-section,
.products-section,
.comparison-section,
.funding-teaser {
  padding: 78px 0;
  background: var(--color-background);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.05fr);
  gap: 48px;
  align-items: start;
}

.roi-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.roi-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.roi-form label {
  display: grid;
  gap: 8px;
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 750;
}

.roi-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: var(--color-white);
  color: var(--color-text);
}

.roi-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
}

.roi-results article {
  padding: 20px 24px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.roi-results span {
  display: block;
  color: var(--color-text-muted);
  font-size: 13px;
}

.roi-results strong {
  display: block;
  margin-top: 8px;
  color: var(--color-navy);
  font-size: 24px;
}

.process-steps,
.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.process-steps article,
.feature-grid article,
.faq-grid article {
  padding: 24px;
}

.gallery-section {
  padding: 26px 0 78px;
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 18px;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
}

.products-section .split-section > img {
  max-height: 620px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.comparison-card {
  padding: 30px;
}

.comparison-card--accent {
  border-color: rgba(11, 94, 215, 0.32);
  background: linear-gradient(180deg, var(--color-white), var(--color-blue-light));
}

.funding-teaser .split-section {
  grid-template-columns: minmax(0, 1fr) auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-section__grid,
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.hero-section h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 740;
}

.page-hero h1 {
  font-size: clamp(38px, 4.8vw, 64px);
}

.hero-title span {
  display: inline;
}

.hero-section p,
.page-hero p,
.content-section p,
.contact-section p {
  color: var(--color-text-muted);
}

.hero-section__copy > p:not(.section-kicker),
.page-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-section__media,
.page-hero__grid > img {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.hero-section__media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.hero-section__media img,
.page-hero__grid > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-strip {
  padding: 64px 0 82px;
  background: var(--color-white);
}

.home-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-strip article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.home-strip span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--color-orange);
  font-weight: 800;
}

.home-strip h2,
.content-section h2,
.contact-section h2,
.site-footer h2 {
  margin: 0;
  color: var(--color-navy);
  line-height: 1.12;
}

.home-strip h2 {
  font-size: 24px;
}

.home-strip p {
  margin: 14px 0 0;
  color: var(--color-text-muted);
}

.page-hero {
  padding: 84px 0;
  background:
    linear-gradient(120deg, rgba(234, 243, 255, 0.9), rgba(255, 255, 255, 0.94)),
    var(--color-background);
}

.page-hero--simple {
  padding: 92px 0 76px;
}

.content-section,
.contact-section {
  padding: 74px 0;
  background: var(--color-white);
}

.content-section--muted {
  background: var(--color-background);
}

.content-section h2,
.contact-section h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.contact-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.86fr);
  gap: 54px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.contact-form > label,
.contact-form > .form-row {
  min-width: 0;
}

.contact-form > label:nth-of-type(7),
.contact-form > .form-row,
.contact-form > label:nth-of-type(n+8),
.contact-form > .button {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: var(--color-white);
  color: var(--color-text);
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
}

.contact-form input[type="file"] {
  max-width: 100%;
}

.contact-form > .button {
  width: auto;
  justify-self: start;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(77, 163, 255, 0.22);
  border-color: var(--color-blue);
}

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
  gap: 42px;
  padding: 58px 0 44px;
}

.footer-logo {
  display: inline-flex;
  width: 220px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.footer-brand p,
.footer-cta p {
  margin: 18px 0 0;
  max-width: 420px;
}

.footer-nav,
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer h2 {
  margin-bottom: 8px;
  color: var(--color-white);
  font-size: 16px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-cta .button {
  margin-top: 10px;
}

.site-footer__bottom {
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 24px 20px;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .primary-nav .button {
    margin-top: 18px;
    border-bottom: 0;
  }

  .hero-section__grid,
  .page-hero__grid,
  .contact-section__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero-section__copy,
  .page-hero__grid > div,
  .hero-section__media,
  .page-hero__grid > img {
    min-width: 0;
    width: 100%;
  }

  .home-strip__grid {
    grid-template-columns: 1fr;
  }

  .sales-hero__grid,
  .split-section,
  .calculator-grid,
  .funding-teaser .split-section,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .sales-hero__media {
    min-height: 420px;
  }

  .benefit-strip__grid,
  .process-steps,
  .feature-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: calc(100% - 28px);
    max-width: 1200px;
  }

  .site-logo {
    width: 180px;
  }

  .site-header__inner {
    min-height: 74px;
  }

  .primary-nav {
    top: 74px;
  }

  .hero-section,
  .page-hero,
  .page-hero--simple {
    padding: 58px 0;
  }

  .hero-section h1,
  .page-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.06;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-section__copy {
    max-width: 320px;
  }

  .hero-title span {
    display: block;
  }

  .hero-section__copy > p:not(.section-kicker),
  .page-hero p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 16px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .sales-hero {
    padding: 48px 0;
  }

  .sales-hero__copy {
    width: 100%;
    max-width: 340px;
    min-width: 0;
    overflow: hidden;
  }

  .sales-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.7vw, 36px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .sales-hero__copy > p:not(.section-kicker):not(.fine-print),
  .sales-hero .fine-print,
  .sales-hero .section-kicker {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-bullets {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-bullets span {
    width: 100%;
  }

  .sales-hero__media {
    min-height: 280px;
  }

  .benefit-strip__grid,
  .process-steps,
  .feature-grid,
  .faq-grid,
  .roi-form,
  .roi-results,
  .contact-form,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form > .button {
    width: 100%;
    justify-self: stretch;
  }

  .benefit-strip,
  .finance-section,
  .calculator-section,
  .process-section,
  .features-section,
  .buying-section,
  .faq-section,
  .products-section,
  .comparison-section,
  .funding-teaser {
    padding: 52px 0;
  }
}
