/* ── ZMIENNE ── */
:root {
  color-scheme: only light;

  --color-bg: #f5f0e8;
  --color-surface: #faf6ee;
  --color-surface-2: #fdfaf4;
  --color-surface-offset: #ede6d6;
  --color-divider: #ddd5c2;
  --color-text: #2c1a0e;
  --color-text-muted: #7a6352;
  --color-text-faint: #b8a896;
  --color-text-inverse: #faf6ee;
  --color-primary: #2c1a0e;
  --color-primary-hover: #1a0f08;
  --color-primary-highlight: #e8dece;

  --radius-sm: .375rem;
  --radius-md: .5rem;
  --radius-lg: .75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.15 0.03 50 / 0.07);
  --shadow-md: 0 4px 12px oklch(0.15 0.03 50 / 0.10);
  --shadow-lg: 0 12px 36px oklch(0.15 0.03 50 / 0.15);

  --content-narrow: 640px;
  --content-default: 960px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --text-xs: clamp(.75rem, .7rem + .25vw, .875rem);
  --text-sm: clamp(.875rem, .8rem + .35vw, 1rem);
  --text-base: clamp(1rem, .95rem + .25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + .75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --nav-offset: 84px;

  /* kontakt */
  --contact-card-height: 76px;
  --contact-card-gap: var(--space-4);
  --pickup-head-height: 52px;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color .3s ease, color .3s ease;
}

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

iframe {
  display: block;
  width: 100%;
  border: 0;
}

ul[role="list"] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
  line-height: 1.15;
}

p,
li {
  text-wrap: pretty;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

::selection {
  background: oklch(from var(--color-primary) l c h / .15);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── ANIMACJE SCROLL ── */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  transition: top var(--transition-interactive);
  z-index: 9999;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  background: oklch(from var(--color-bg) l c h / .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / .08);
  transition: background var(--transition-interactive);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  transition: opacity var(--transition-interactive);
}

.logo-wrap:hover {
  opacity: .75;
}

.logo-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: .10em;
  text-transform: uppercase;
  transition: color var(--transition-interactive);
}

.nav-links a:hover {
  color: var(--color-text);
}

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── WSPÓLNE ELEMENTY SEKCJI ── */
.section-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--color-text-faint);
  border: none;
}

/* ── STOPKA ── */
footer {
  padding: var(--space-8);
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  text-align: center;
}

footer p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: .08em;
}

/* ── UTYLITARNE ── */
.is-hidden {
  display: none !important;
}

/* ── RESPONSYWNOŚĆ ── */
@media (max-width: 900px) {
  :root {
    --nav-offset: 110px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: var(--space-4);
    overflow: visible;
  }

  .nav-right {
    position: relative;
    gap: var(--space-4);
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 102;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 2 * var(--space-4)));
    margin: 0;
    padding: var(--space-3);
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    list-style: none;
    background: var(--color-surface);
    border: 1px solid oklch(from var(--color-text) l c h / .08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: var(--color-surface-2);
    border: 1px solid oklch(from var(--color-text) l c h / .08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    font-size: var(--text-lg);
    color: var(--color-text);
    text-align: center;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: var(--color-surface-offset);
    border-color: oklch(from var(--color-text) l c h / .16);
  }
}
