/* ============================================================
   IGIE — style.css
   Paleta: off-white #F5F0E8, ink #1A1612, gold #8B7355
   Typografia: Fraunces (display) + Source Serif 4 (body)
   Estetyka: papierowy minimalizm, editorial, grain 0.04
   ============================================================ */

/* 1. RESET & CUSTOM PROPERTIES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper:        #F5F0E8;
  --paper-warm:   #F0EAD8;
  --ink:          #1A1612;
  --ink-mid:      #3D3530;
  --ink-muted:    #7A7068;
  --gold:         #8B7355;
  --border:       rgba(26, 22, 18, 0.1);
  --white:        #FFFFFF;
  --dark:         #111009;
  --dark-mid:     #1E1A14;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'Courier New', Courier, monospace;

  --section-gap:  clamp(5rem, 11vw, 9.5rem);
  --container:    1200px;
  --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* 2. UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* 3. SCROLL REVEAL — 300ms
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4. HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-muted);
  padding: 0.5rem 0.875rem;
  border-radius: 2px;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--ink);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Mobile overlay nav */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 98;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav__overlay.is-open {
  display: flex;
}

.nav__overlay .nav__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  padding: 0.5rem 1rem;
}

/* 5. HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 8vh, 6rem);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero__content {
  max-width: 820px;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0;
}

.hero__heading em {
  font-style: italic;
  font-weight: 300;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.8vw, 1.375rem);
  font-style: italic;
  color: var(--ink-muted);
  max-width: 560px;
  line-height: 1.6;
  margin-top: 2.25rem;
}

.hero__scroll {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--ink-muted);
  animation: scrollBob 2.2s ease-in-out infinite;
  align-self: flex-start;
  margin-top: 1rem;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* 6. AKT — shared section styles
   ============================================================ */
.akt {
  padding-block: var(--section-gap);
  border-bottom: 1px solid var(--border);
}

.akt__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.akt__heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 680px;
}

.akt__lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-style: italic;
  color: var(--ink-muted);
  max-width: 600px;
  line-height: 1.7;
}

.akt__blocks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.akt__block {
  max-width: 720px;
}

.akt__block p {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.75;
  color: var(--ink-mid);
}

.akt__block strong {
  color: var(--ink);
  font-weight: 600;
}

/* 7. AKT 2 — nie robimy (alternating bg) */
.akt--nie-robimy {
  background: var(--paper);
}

/* 8. AKT 3 — co robimy */
.akt--co-robimy {
  background: var(--paper);
}

/* 9. AKT 4 — OPIEKA (slightly warmer bg)
   ============================================================ */
.akt--opieka {
  background: var(--paper-warm);
}

.akt__footnote {
  font-size: 0.875rem;
  color: var(--ink-muted);
  max-width: 540px;
  line-height: 1.6;
}

.akt__closer {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  max-width: 580px;
  line-height: 1.5;
}

/* Care card */
.care-card {
  border: 1.5px solid var(--border);
  background: var(--paper);
  max-width: 600px;
  padding: 2.5rem;
  margin-inline: auto;
}

.care-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.care-card__name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.care-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.care-card__per {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-muted);
}

.care-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.care-card__item {
  font-size: 0.9375rem;
  color: var(--ink-mid);
  padding-left: 1.25rem;
  position: relative;
}

.care-card__item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.care-card__for {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* 10. AKT 5 — DOWÓD / DEMÓWKI
   ============================================================ */
.akt--dowod {
  background: var(--paper);
}

.demos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.demo-item {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s;
}

.demo-item:hover {
  background: rgba(26, 22, 18, 0.025);
}

.demo-item__meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-item__name {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
}

.demo-item__category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.demo-item__desc {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.55;
}

.demo-item__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 0.25rem;
  transition: opacity 0.2s;
  word-break: break-all;
}

.demo-item__link:hover {
  opacity: 0.65;
}

/* 11. AKT 6 — FINAŁ (ciemna sekcja)
   ============================================================ */
.final {
  background: var(--dark);
  color: rgba(245, 240, 232, 0.85);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(5rem, 12vh, 8rem) 3rem;
}

.final__quote-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.final__quote {
  max-width: 680px;
}

.final__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.25;
  color: rgba(245, 240, 232, 0.92);
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.final__cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.4);
}

.final__contact {
  padding-block: clamp(5rem, 12vh, 8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.final__email {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(245, 240, 232, 0.95);
  transition: opacity 0.25s;
  width: fit-content;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(245, 240, 232, 0.25);
}

.final__email:hover {
  opacity: 0.65;
  text-decoration-color: rgba(245, 240, 232, 0.6);
}

.final__note {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.72);
}

.final__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
}

.final__copy {
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.35);
}

.final__footer-nav {
  display: flex;
  gap: 1.5rem;
}

.final__footer-link {
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.35);
  transition: color 0.2s;
}

.final__footer-link:hover {
  color: rgba(245, 240, 232, 0.7);
}

/* 12. MOBILE
   ============================================================ */
@media (max-width: 680px) {
  .nav__menu {
    display: none;
  }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 99;
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__overlay .nav__link {
    display: block;
    padding: 0.75rem 1.5rem;
    text-align: center;
  }

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

  .final__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .care-card {
    padding: 1.5rem;
  }

  .care-card__header {
    flex-direction: column;
    gap: 0.5rem;
  }
}
