/*
Theme Name: Recilo
Theme URI: https://recilo.pl
Author: Leadaris sp. z o.o.
Description: Dedykowany, lekki motyw marki Recilo.
Version: 1.0.3
Text Domain: recilo
*/

:root {
  --recilo-ink: #183421;
  --recilo-green: #214b2d;
  --recilo-green-dark: #142d1c;
  --recilo-sage: #dfe7d7;
  --recilo-cream: #f7f3e9;
  --recilo-paper: #fffdf8;
  --recilo-copper: #c88942;
  --recilo-muted: #5c6d61;
  --recilo-line: rgba(24, 52, 33, .15);
  --recilo-shadow: 0 24px 70px rgba(24, 52, 33, .12);
  --recilo-radius: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--recilo-ink);
  background: var(--recilo-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--recilo-copper); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: .8rem 1rem;
  color: var(--recilo-ink);
  background: white;
  border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(1rem, 5vw, 5rem);
  background: rgba(247, 243, 233, .94);
  border-bottom: 1px solid var(--recilo-line);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-weight: 800;
  letter-spacing: .22em;
}
.site-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); }
.site-nav a { font-size: .9rem; font-weight: 700; }
.site-nav a:not(.nav-cta):hover { color: var(--recilo-copper); }
.nav-cta {
  padding: .72rem 1.15rem;
  color: white;
  background: var(--recilo-green);
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--recilo-ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(520px, .92fr) minmax(0, 1.08fr);
  min-height: 680px;
  max-height: 790px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(4rem, 6vw, 6.5rem) clamp(2.5rem, 5vw, 6rem);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--recilo-copper);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.quality h2,
.form-copy h2 {
  margin: 0 0 1.4rem;
  font-weight: 680;
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 {
  max-width: 720px;
  font-size: clamp(3.6rem, 4.6vw, 5.5rem);
}
.hero h1 em,
.quality h2 em {
  color: var(--recilo-copper);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.lead {
  max-width: 650px;
  margin: 0;
  color: var(--recilo-muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.35rem;
  border: 1px solid var(--recilo-green);
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--recilo-green); }
.button-primary:hover { background: var(--recilo-green-dark); }
.button-secondary:hover { background: var(--recilo-paper); }
.micro { margin: 1rem 0 0; color: #69776c; font-size: .79rem; }
.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 680px;
  overflow: hidden;
  background-color: var(--recilo-green);
  background-position: 56% center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 52, 33, .06), transparent 30%),
              linear-gradient(0deg, rgba(20, 45, 28, .12), transparent 38%);
  content: "";
  pointer-events: none;
}
.hero-visual img {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: white;
  background: var(--recilo-green);
}
.trust-strip div {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: 112px;
  padding: 1.4rem clamp(1rem, 2.5vw, 2.5rem);
  border-right: 1px solid rgba(255,255,255,.14);
}
.trust-strip strong { color: #e1b77c; font-size: .73rem; letter-spacing: .1em; }
.trust-strip span { font-size: .9rem; line-height: 1.4; }

.section { padding: clamp(4.5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7rem); }
.section-heading { max-width: 650px; }
.section-heading h2,
.quality h2,
.form-copy h2 { font-size: clamp(2.55rem, 4.4vw, 4.8rem); }
.section-heading > p:last-child,
.quality-copy > p,
.form-copy > p { color: var(--recilo-muted); }

.process {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 9rem);
}
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--recilo-line);
}
.step {
  min-width: 0;
  min-height: 225px;
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--recilo-line);
}
.step:nth-child(odd) { border-right: 1px solid var(--recilo-line); }
.step:nth-child(even) { padding-left: 2rem; }
.step-number { color: var(--recilo-copper); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.step h3 { margin: 1.5rem 0 .5rem; font-size: 1.22rem; line-height: 1.3; }
.step p { margin: 0; color: #607066; font-size: .92rem; }

.quality {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 9rem);
  color: white;
  background: var(--recilo-green);
}
.quality-copy > p { max-width: 670px; color: #d6dfd7; }
.quality-points { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.quality-points span {
  padding: .52rem .88rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: .8rem;
}
.quality-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.quality-list {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  color: var(--recilo-ink);
  background: var(--recilo-paper);
  border-radius: 22px;
}
.quality-list.muted { background: #dce3d6; }
.list-kicker {
  margin: 0;
  color: var(--recilo-copper);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.quality-list ul { margin: 1.7rem 0 0; padding: 0; list-style: none; }
.quality-list li {
  position: relative;
  padding: .72rem 0 .72rem 1.35rem;
  border-bottom: 1px solid var(--recilo-line);
  font-size: .88rem;
}
.quality-list li::before {
  position: absolute;
  top: 1.17rem;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--recilo-copper);
  border-radius: 50%;
  content: "";
}

.impact { background: var(--recilo-paper); }
.impact-card {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  background: linear-gradient(135deg, #f1eddf, #fffdf8 65%);
  border: 1px solid var(--recilo-line);
  border-radius: 30px;
}
.impact-number {
  margin: 0;
  font-size: clamp(3.15rem, 7vw, 7rem);
  font-weight: 720;
  line-height: .95;
  letter-spacing: -.075em;
}
.impact-number span { color: var(--recilo-copper); font-family: Georgia, serif; }
.impact-copy h2 { margin: 0 0 1rem; font-size: clamp(2rem, 3vw, 3.25rem); line-height: 1.08; letter-spacing: -.04em; }
.impact-copy > p { color: var(--recilo-muted); }
.campaign {
  margin-top: 1.8rem;
  padding: 1.35rem 1.5rem;
  background: var(--recilo-sage);
  border-left: 3px solid var(--recilo-copper);
  border-radius: 0 14px 14px 0;
}
.campaign-label { margin: 0 0 .45rem; color: var(--recilo-copper); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.campaign h3 { margin: 0 0 .45rem; font-size: 1.18rem; line-height: 1.35; }
.campaign p:last-child { margin: 0; font-size: .85rem; }

.form-section {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  background: #e5eadf;
}
.form-panel {
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--recilo-paper);
  border-radius: 26px;
  box-shadow: var(--recilo-shadow);
}
.form-panel h3 { margin: 0 0 1rem; font-size: clamp(1.65rem, 2.6vw, 2.4rem); line-height: 1.15; }
.form-panel p { color: var(--recilo-muted); }
.form-note {
  margin: 1.7rem 0;
  padding: 1.15rem 1.25rem;
  background: var(--recilo-cream);
  border-left: 3px solid var(--recilo-copper);
  border-radius: 0 12px 12px 0;
  font-size: .88rem;
}
.form-note strong { display: block; margin-bottom: .3rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.documents { background: var(--recilo-paper); }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.document-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  border: 1px solid var(--recilo-line);
  border-radius: 20px;
  transition: transform .2s ease, border-color .2s ease;
}
.document-card:hover { transform: translateY(-4px); border-color: var(--recilo-copper); }
.document-card > span { color: var(--recilo-copper); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.document-card h3 { margin: 2rem 0 .7rem; font-size: 1.55rem; line-height: 1.3; }
.document-card p { color: #647268; font-size: .9rem; }
.document-card strong { margin-top: auto; font-size: .84rem; }

.faq {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 9rem);
}
.faq-list { border-top: 1px solid var(--recilo-line); }
.faq-list details { border-bottom: 1px solid var(--recilo-line); }
.faq-list summary {
  position: relative;
  padding: 1.35rem 2.5rem 1.35rem 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: .25rem; color: var(--recilo-copper); font-size: 1.5rem; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 760px; margin: 0; padding: 0 2rem 1.5rem 0; color: var(--recilo-muted); font-size: .92rem; }

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr .7fr;
  gap: 3rem;
  padding: clamp(3rem, 6vw, 6rem);
  color: white;
  background: var(--recilo-green-dark);
  font-size: .84rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 1.1rem; letter-spacing: .2em; }
.footer-brand span { color: #b8c4ba; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a:hover { color: #e1b77c; }
.copyright {
  grid-column: 1 / -1;
  margin: 1.6rem 0 0;
  padding-top: 1.3rem;
  color: #96a499;
  border-top: 1px solid rgba(255,255,255,.12);
}

.legal-page { width: min(920px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0; }
.legal-page h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-copy { min-height: 590px; }
  .hero-visual { min-height: 460px; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process, .quality, .form-section, .faq { grid-template-columns: 1fr; }
  .quality-lists { max-width: 760px; }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { min-height: 68px; padding: 0 1rem; }
  .site-brand img { width: 40px; height: 40px; }
  .site-brand span { font-size: .82rem; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1rem 1rem;
    background: var(--recilo-cream);
    border-bottom: 1px solid var(--recilo-line);
    box-shadow: 0 20px 35px rgba(24, 52, 33, .1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .85rem 1rem; }
  .nav-cta { margin-top: .4rem; text-align: center; }
  .hero-copy { min-height: 0; padding: 4.5rem 1.25rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.45rem); }
  .hero-visual { min-height: 320px; background-position: 61% center; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { min-height: 82px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .steps, .quality-lists, .document-grid { grid-template-columns: 1fr; }
  .step:nth-child(odd) { border-right: 0; }
  .step:nth-child(even) { padding-left: 0; }
  .impact-card { grid-template-columns: 1fr; }
  .impact-number { font-size: clamp(3.1rem, 16vw, 5rem); }
  .form-panel { padding: 1.5rem; border-radius: 18px; }
  .site-footer { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
