/* ============================================================
   Biuro Rachunkowe mgr Teresa Ślusarczyk
   Design: trust-first, modern-calm. Pine-green accent on warm
   paper. Space Grotesk (display) + Manrope (body).
   No framework. Single theme (light), reduced-motion aware.
   ============================================================ */

:root {
  /* palette */
  --paper: #fbfaf7;
  --paper-2: #f2efe7;
  --ink: #16211c;
  --ink-soft: #4d5852;
  --pine: #123c2e;
  --pine-2: #1d5540;
  --gold: #c79a3a;
  --line: rgba(22, 33, 28, 0.12);

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* scale */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --maxw: 1200px;
  --nav-h: 68px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.1vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; margin-bottom: 0.35em; }

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-2);
  margin: 0 0 1.1rem;
}
.eyebrow-light { color: var(--gold); }

.lead-body { color: var(--ink-soft); max-width: 46ch; }
.lead-body-light { color: rgba(251, 250, 247, 0.82); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--gold); color: #1f1809; }
.btn-light:hover { background: #d3a848; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--pine);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.brand-text { font-size: 0.86rem; line-height: 1.2; color: var(--ink-soft); }
.brand-text strong { color: var(--ink); font-weight: 600; font-size: 0.95rem; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.18s var(--ease);
}
.nav-links > a:hover { color: var(--ink); }
.nav-cta { color: #fff !important; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(48px, 9vw, 96px);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(29, 85, 64, 0.10), transparent 55%),
    var(--paper);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.hero-copy h1 { margin-bottom: 0.5rem; }
.hero-copy .lede {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
}
/* Portrait framing: the photo is a full-length 3:4 studio shot. */
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 4 / 5;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-tint { background: var(--paper-2); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.grid-2.align-end { align-items: end; }

.media-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 560 / 440; }

/* ---------- bento (usługi) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 16px;
}
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 30px);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 33, 28, 0.08); border-color: rgba(22, 33, 28, 0.2); }
.tile h3 { margin-bottom: 0.35em; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.tile-lg { background: linear-gradient(150deg, var(--pine), var(--pine-2)); }
.tile-lg h3, .tile-lg p { color: #fff; }
.tile-lg p { color: rgba(255, 255, 255, 0.85); }
.tile-accent { background: rgba(199, 154, 58, 0.12); border-color: rgba(199, 154, 58, 0.4); }
.tile-accent h3 { color: var(--pine); }

/* ---------- chips (dla kogo) ---------- */
.chips {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 500;
  font-size: 0.96rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chips li:hover { background: var(--pine); color: #fff; border-color: var(--pine); transform: translateY(-2px); }

/* ---------- values (dlaczego) ---------- */
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.values li { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.value-num { font-family: var(--font-display); font-weight: 600; color: var(--pine); font-size: 1.1rem; }
.values li h3 { margin: 0 0 0.3rem; }
.values li p { margin: 0; color: var(--ink-soft); max-width: 40ch; }

/* ---------- contact ---------- */
.contact { background: var(--pine); color: #fff; }
.contact h2, .contact .lead-body-light { color: #fff; }
.contact h2 { color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact .lead-body-light { margin-bottom: 1.6rem; }

.contact-card { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  align-items: baseline;
}
.contact-row dt { font-family: var(--font-display); font-weight: 500; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.contact-row dd { margin: 0; font-size: 1.12rem; color: #fff; }
.contact-row a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.contact-row a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-brand { color: var(--ink); margin: 0; }
.footer-brand strong { font-family: var(--font-display); }
.footer-meta { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links > a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 10px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 10px;
    cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner, .grid-2, .contact-inner { grid-template-columns: 1fr; }
  .grid-2.align-end { align-items: start; }
  .hero-media { order: -1; max-height: 320px; }
  .hero-copy .lede { max-width: none; }

  .bento { grid-template-columns: 1fr; }
  .tile-lg { grid-column: span 1; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .contact-row dt { margin-bottom: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.001ms !important; }
}
