/* ─── Custom properties ───────────────────────────────────────────────────── */
:root {
  --gold:         #C9A84C;
  --gold-light:   #E8C97A;
  --gold-dim:     #A07830;
  --gold-ink:     #7A5C20;
  --gold-surface: oklch(94% 0.03 80);

  --anthracite:      #2B2B2B;
  --anthracite-deep: #1A1A1A;

  --off-white:  oklch(97% 0.012 80);
  --white:      oklch(99% 0.005 80);

  --text-muted:   #6B6157;
  --text-on-dark: #9E9088;

  --border:   oklch(88% 0.025 80);
  --nav-link: #B0A89A;

  --font-serif: 'Gilda Display', Georgia, serif;
  --font-sans:  'Cabin', 'Helvetica Neue', Arial, sans-serif;

  --max-width:   960px;
  --section-gap: 6rem;
}

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

html { font-size: 16px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background-color: var(--off-white);
  color: var(--anthracite);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: normal;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--anthracite-deep);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  color: var(--anthracite-deep);
  margin-bottom: 0.4rem;
}

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* ─── Goldline ───────────────────────────────────────────────────────────── */
.goldline {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0.9rem 0 1.6rem;
}
.goldline--center { margin-left: auto; margin-right: auto; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--section-gap) 0; }

/* ─── Visually hidden ────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: var(--anthracite-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 200;
  transition: top 0.15s ease-out;
}
.skip-link:focus { top: 0; }

/* ─── Focus ──────────────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--anthracite-deep) 97%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid color-mix(in oklch, var(--gold) 25%, transparent);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__logo span { color: var(--white); font-weight: normal; }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nav-link);
  transition: color 0.2s ease-out;
}
.nav__links a:hover { color: var(--gold-light); }

/* ─── Hamburger ──────────────────────────────────────────────────────────── */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.25s ease-out, opacity 0.2s ease-out;
  transform-origin: center;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
#hero {
  min-height: 90svh;
  background-color: var(--anthracite-deep);
  background-image:
    linear-gradient(to bottom, oklch(15% 0.01 80 / 0.72) 0%, oklch(12% 0.01 80 / 0.55) 60%, oklch(10% 0.01 80 / 0.78) 100%),
    var(--hero-bg, url('https://images.unsplash.com/photo-1611652022419-a9419f74343d?w=1600&q=85'));
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  text-align: center;
  position: relative;
}

.hero__inner { padding: 3rem 1.5rem 2rem; width: 100%; }

/* ─── Eyebrow ────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.5rem;
}
#hero .eyebrow    { margin-bottom: 1rem; color: var(--gold-light); }
#proces .eyebrow  { color: var(--gold); }

h1.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: normal;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}
h1.hero__title em { display: block; font-style: normal; color: var(--gold); }

.hero__goldline {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem auto 0;
}

.hero__subtitle {
  margin: 1.4rem auto 0;
  max-width: 480px;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--text-on-dark);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid color-mix(in oklch, var(--gold) 60%, transparent);
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero__badge::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero__cta {
  display: inline-block;
  background: var(--gold);
  color: var(--anthracite-deep);
  padding: 0.85rem 2.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--gold-dim);
  transition: background-color 0.2s ease-out, transform 0.2s ease-out, border-color 0.2s ease-out;
}
.hero__cta:hover  { background-color: var(--gold-light); border-color: var(--gold); transform: translateY(-2px); }
.hero__cta:active { background-color: var(--gold-dim); border-color: var(--gold-ink); transform: translateY(0); transition-duration: 0.05s; }

/* ─── Scroll indicator ───────────────────────────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s ease-out;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll-arrow {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0);   opacity: 0.7; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ─── O nas ──────────────────────────────────────────────────────────────── */
#o-nas { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 4rem;
  align-items: stretch;
}

.about__visual {
  position: relative;
  display: flex;
  flex-direction: column;
}

.about__frame {
  width: 100%;
  flex: 1;
  min-height: 420px;
  background: var(--anthracite-deep);
  overflow: hidden;
  position: relative;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.about__accent {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold);
  z-index: -1;
}

.about__signature {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-dim);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.about__mobile-accent {
  display: none;
  align-items: baseline;
  gap: 1.25rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.about__mobile-num {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 18vw, 5.5rem);
  color: var(--gold-dim);
  line-height: 1;
  letter-spacing: -0.02em;
}
.about__mobile-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Usługi ─────────────────────────────────────────────────────────────── */
#uslugi { background: var(--off-white); }

.services__header { text-align: center; margin-bottom: 3.5rem; }
.services__header p { max-width: 520px; margin-left: auto; margin-right: auto; }

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  align-items: start;
}

.service-card--featured {
  border: 1px solid var(--gold);
  background: var(--anthracite-deep);
  padding: 2.5rem 2rem;
  position: relative;
}
.service-card--featured h3 { color: var(--off-white); font-size: 1.2rem; }
.service-card--featured p  { color: var(--text-on-dark); }

.service__icon { margin-bottom: 1.25rem; display: block; color: var(--gold); }

.service__tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid color-mix(in oklch, var(--gold) 40%, transparent);
  padding: 0.25rem 0.6rem;
  margin-top: 1rem;
  border-radius: 1px;
}

.services__list { border-top: 1px solid var(--border); }
.services__list-item {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.services__list-marker {
  color: var(--gold);
  font-size: 0.5rem;
  padding-top: 0.45rem;
  line-height: 1;
  flex-shrink: 0;
}
.services__list-item h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.services__list-item p  { font-size: 0.875rem; line-height: 1.65; margin-bottom: 0; }

/* ─── Galeria ────────────────────────────────────────────────────────────── */
#galeria { background: var(--anthracite-deep); padding: 0; overflow: hidden; }

.gallery__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 520px;
  gap: 3px;
}
.gallery__item { overflow: hidden; position: relative; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  transition: transform 0.6s ease-out;
}
.gallery__item:hover img { transform: scale(1.04); }

/* ─── Proces ─────────────────────────────────────────────────────────────── */
#proces {
  background: var(--anthracite-deep);
  background-image: radial-gradient(ellipse at 70% 50%, color-mix(in oklch, var(--gold) 8%, transparent) 0%, transparent 55%);
}
#proces h2      { color: var(--white); }
#proces p       { color: var(--text-on-dark); }
#proces .goldline { background: var(--gold); }

.process__inner { max-width: 680px; margin: 0 auto; text-align: center; }

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}
.process__steps::before {
  content: '';
  position: absolute;
  height: 1px;
  background: color-mix(in oklch, var(--gold) 30%, transparent);
  top: calc(2.6rem + 0.6rem + 4px);
  left: calc(100% / 8);
  right: calc(100% / 8);
  pointer-events: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem 2rem;
}
.step__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: color-mix(in oklch, var(--gold) 55%, transparent);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.step__node {
  display: block;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--gold);
  background: var(--anthracite-deep);
  border-radius: 50%;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.step__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.process__note {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid color-mix(in oklch, var(--gold) 30%, transparent);
  background: color-mix(in oklch, var(--gold) 6%, transparent);
  font-size: 0.9rem;
  color: var(--white) !important;
  line-height: 1.8;
}

/* ─── Kontakt ────────────────────────────────────────────────────────────── */
#kontakt { background: var(--white); }

.contact__header { margin-bottom: 3rem; }
.contact__header p { max-width: 520px; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__address { font-style: normal; }

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: color-mix(in oklch, var(--gold) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--gold) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
}

.contact__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.2rem;
}

.contact__value { font-size: 1rem; color: var(--anthracite); margin: 0; }
.contact__value a {
  color: var(--gold-ink);
  border-bottom: 1px solid color-mix(in oklch, var(--gold-ink) 30%, transparent);
  transition: border-bottom-color 0.2s ease-out, opacity 0.2s ease-out;
}
.contact__value a:hover { border-bottom-color: var(--gold-ink); opacity: 0.75; }

.contact__map {
  background: var(--off-white);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.contact__cta-box {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--gold-surface);
  border: 1px solid color-mix(in oklch, var(--gold-dim) 25%, transparent);
}
.contact__cta-box p { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }
.contact__cta-strong { color: var(--anthracite); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--anthracite-deep);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 1.2rem;
}
.footer__copy { font-size: 0.78rem; color: var(--text-on-dark); margin: 0; }
.footer__copy--small { margin-top: 0.75rem; }

/* ─── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-gap: 4rem; }

  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: color-mix(in oklch, var(--anthracite-deep) 98%, transparent);
    backdrop-filter: blur(6px);
    border-top: 1px solid color-mix(in oklch, var(--gold) 15%, transparent);
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0 0.5rem;
  }
  .nav__links.is-open { display: flex; }

  .nav__links li { border-bottom: 1px solid color-mix(in oklch, var(--gold) 8%, transparent); }
  .nav__links li:last-child { border-bottom: none; }
  .nav__links a { display: flex; align-items: center; padding: 0.9rem 1.5rem; min-height: 44px; font-size: 0.82rem; }

  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .contact__map { aspect-ratio: 4 / 3; }

  .about__grid          { display: flex; flex-direction: column; }
  .about__visual        { order: -1; }
  .about__frame         { min-height: 0; height: 280px; }
  .about__accent        { display: none; }
  .about__mobile-accent { display: flex; }

  .services__grid { grid-template-columns: 1fr; gap: 2rem; }

  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__steps::before { display: none; }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 300px;
  }
  .gallery__item:first-child { grid-column: span 2; }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 260px);
  }
  .gallery__item:first-child { grid-column: span 1; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal            { opacity: 1 !important; transform: none !important; }
  .hero__scroll-arrow { animation: none; }
}
