/* =========================================================================
   Gabinet Holistyczny — system designu (sync z app OpenOpus: forest cabinet)
   Chłodny len + głęboka zieleń + miedź. Fonty systemowe (zero zewnętrznych CDN).
   ========================================================================= */

:root {
  --color-bg: #eef2ee;
  --color-bg-alt: #e2eae3;
  --color-sage: #3d6b54;
  --color-sage-dark: #284536;
  --color-terracotta: #c46a2e;
  --color-terracotta-dark: #9a4a1c;
  --color-copper: #c46a2e;
  --color-text: #1f2a22;
  --color-text-muted: #5d6b60;
  --color-border: #c9d4cb;
  --color-card: #ffffff;
  --color-hero-ink: #f4faf5;

  --font-heading: 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Source Sans 3', Helvetica, Arial, sans-serif;

  --radius: 14px;
  --shadow-soft: 0 10px 36px rgba(21, 32, 25, 0.07);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-sage-dark);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--color-terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- Nawigacja --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 242, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  letter-spacing: 0.01em;
}
.logo span { color: var(--color-terracotta); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a.active { color: var(--color-terracotta-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-sage-dark);
}

/* --- Przyciski --- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-terracotta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(193, 112, 79, 0.35);
}
.btn-primary:hover { background: var(--color-terracotta-dark); }

.btn-secondary {
  background: transparent;
  border-color: var(--color-sage);
  color: var(--color-sage-dark);
}
.btn-secondary:hover { background: var(--color-sage); color: #fff; }

.btn-on-dark {
  border-color: rgba(247, 243, 234, 0.75);
  color: var(--color-hero-ink);
}
.btn-on-dark:hover {
  background: rgba(247, 243, 234, 0.14);
  color: #fff;
}

/* --- Hero (klasyczny, tekstowy) --- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-sage);
  margin-bottom: 14px;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Hero full-bleed (Start) --- */
.hero-bleed {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--color-hero-ink);
  overflow: hidden;
  background: #2a332c;
}

.hero-bleed__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.02);
  animation: hero-kenburns 18s ease-out forwards;
}

.hero-bleed__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 30, 26, 0.18) 0%, rgba(24, 30, 26, 0.28) 40%, rgba(24, 30, 26, 0.78) 100%),
    linear-gradient(90deg, rgba(24, 30, 26, 0.45) 0%, rgba(24, 30, 26, 0.1) 55%, rgba(24, 30, 26, 0.35) 100%);
}

.hero-bleed__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 64px;
  text-align: left;
}

.hero-bleed .brand-mark {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-bleed .brand-mark span { color: #e8b59a; }

.hero-bleed h1 {
  color: var(--color-hero-ink);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 500;
  max-width: 16ch;
  margin-bottom: 14px;
}

.hero-bleed .lead {
  color: rgba(247, 243, 234, 0.9);
  font-size: 1.12rem;
  max-width: 34rem;
  margin: 0 0 28px;
}

.hero-bleed .hero-actions { justify-content: flex-start; }

@keyframes hero-kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1.0); }
}

/* --- Split foto + tekst --- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.photo-frame {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
  background: var(--color-bg-alt);
}
.photo-frame img,
.photo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
}
.photo-frame.landscape img,
.photo-frame.landscape video {
  aspect-ratio: 16 / 10;
}
.photo-frame.square img {
  aspect-ratio: 1 / 1;
}

.photo-caption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* --- Sekcje / Karty --- */
section { padding: 72px 0; }
section.alt { background: var(--color-bg-alt); }
section.tight { padding: 48px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--color-text-muted); }

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}
.card .icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-muted); margin: 0; }

.pill {
  display: inline-block;
  background: var(--color-sage);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pill.terracotta { background: var(--color-terracotta); }

/* --- Pas zdjęć (bez kart) --- */
.photo-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}
.photo-band figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 220px;
}
.photo-band img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.photo-band figure:hover img { transform: scale(1.03); }
@media (max-width: 860px) {
  .photo-band { grid-template-columns: 1fr; }
  .photo-band img { min-height: 220px; }
}

/* --- Cytat --- */
.quote-block {
  border-left: 4px solid var(--color-sage);
  padding: 8px 0 8px 24px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-sage-dark);
  font-style: italic;
  margin: 32px 0;
}

/* --- Formularze --- */
.form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  max-width: 640px;
  margin: 0 auto;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 18px 0 6px;
  color: var(--color-sage-dark);
}
label:first-of-type { margin-top: 0; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-sage);
}
.field-hint { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 4px; }
.radio-row { display: flex; gap: 20px; margin: 8px 0; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.radio-row input { width: auto; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-msg { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.form-msg.success { display: block; background: #eaf3ec; color: var(--color-sage-dark); }
.form-msg.error { display: block; background: #fbeae5; color: var(--color-terracotta-dark); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-info-list li { margin-bottom: 12px; font-size: 1.05rem; }
.contact-info-list .label { color: var(--color-text-muted); font-size: 0.85rem; display: block; }

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

/* --- Stopka --- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
footer a { color: var(--color-text-muted); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }

  .hero-bleed {
    min-height: min(88vh, 720px);
    align-items: flex-end;
  }
  .hero-bleed__content { padding-bottom: 40px; text-align: left; }
  .hero-bleed h1 { max-width: none; }
}
