/* =========================================================
   ROD-MET — Kowalstwo artystyczne
   Lekki, statyczny motyw. Bez zewnętrznych zależności.
   ========================================================= */

:root {
  --bg:        #141210;   /* węgiel */
  --bg-2:      #1c1916;   /* ciemny brąz-grafit */
  --bg-3:      #241f1a;
  --surface:   #211c18;
  --line:      #35302a;
  --text:      #ece7df;   /* ciepła biel */
  --muted:     #a89f92;
  --ember:     #e07a3c;   /* rozżarzone żelazo */
  --ember-2:   #c85a24;
  --ember-soft:#f0a86a;
  --radius:    14px;
  --shadow:    0 18px 50px rgba(0,0,0,.45);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

/* ---------- Reset / bazowe ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .3px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }

.container { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding-block: 3rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ember);
  margin: 0 0 .8rem;
}
.section__head { max-width: 620px; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; }
.section__sub { color: var(--muted); margin-top: .6rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ember); color: #1a1512; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, var(--ember), var(--ember-2)); color: #1a1210; }
.btn--primary:hover { filter: brightness(1.07); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--ember); color: var(--ember-soft); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,18,16,.78);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand__mark { color: var(--ember); display: grid; place-items: center; }
.brand__text strong { display: block; font-family: var(--serif); font-size: 1.35rem; letter-spacing: 2px; line-height: 1; }
.brand__text small { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a { padding: .5rem .9rem; border-radius: 8px; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav__menu a:hover { color: var(--text); }
.nav__cta a { border: 1px solid var(--line); color: var(--ember-soft) !important; font-weight: 600; }
.nav__cta a::before { content: "✆ "; }
.nav__cta a:hover { border-color: var(--ember); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("../images/kategorie/bramy.jpg") center 40% / cover no-repeat;
  transform: scale(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,13,11,.94) 0%, rgba(15,13,11,.72) 45%, rgba(15,13,11,.35) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 40%);
}
.hero__content { position: relative; z-index: 2; max-width: 640px; padding-block: 5rem; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: var(--ember-soft); margin: 0 0 1.2rem; }
.hero__title { font-size: clamp(2.8rem, 7vw, 5rem); }
.hero__title em { color: var(--ember); font-style: italic; }
.hero__lead { font-size: 1.15rem; color: #d8cfc3; margin: 1.5rem 0 2.2rem; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: 1.4rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ---------- O nas ---------- */
.about { background: var(--bg-2); }
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__text p { color: #cfc7bb; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: cover; }
.features { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; }
.features li { display: flex; gap: .8rem; align-items: flex-start; }
.features__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(224,122,60,.12); color: var(--ember); border: 1px solid rgba(224,122,60,.3); }
.features strong { color: var(--text); }
.features div { font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* ---------- Kategorie ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); cursor: pointer; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,12,10,.85), rgba(0,0,0,0) 60%); }
.cat-card span { position: absolute; left: 1rem; bottom: .9rem; z-index: 2; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.cat-card span::after { content: " →"; color: var(--ember); opacity: 0; transition: opacity .25s, transform .25s; }
.cat-card:hover span::after { opacity: 1; }

/* ---------- Galeria ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer;
  transition: .2s;
}
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter.is-active { background: var(--ember); color: #1a1210; border-color: var(--ember); font-weight: 600; }

.masonry { columns: 3 260px; column-gap: 14px; }
.masonry__item {
  break-inside: avoid; margin-bottom: 14px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); cursor: zoom-in; position: relative; background: var(--surface);
}
.masonry__item img { width: 100%; transition: transform .5s ease, opacity .4s ease; }
.masonry__item:hover img { transform: scale(1.05); }
.masonry__item::after {
  content: attr(data-label); position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem; font-size: .82rem; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  opacity: 0; transition: opacity .25s;
}
.masonry__item:hover::after { opacity: 1; }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-2); }
.contact__inner { text-align: center; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact__list {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem;
  text-align: left;
}
.contact__card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.contact__card strong { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.contact__card a:hover { color: var(--ember-soft); }
.contact__ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(224,122,60,.12); color: var(--ember); border: 1px solid rgba(224,122,60,.3); font-weight: 700; }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 2.5rem 0; }
.footer__inner { display: grid; gap: .6rem; text-align: center; }
.footer__brand { font-family: var(--serif); font-size: 1.1rem; }
.footer__meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.footer__meta a:hover { color: var(--ember-soft); }
.footer__copy { color: #6f675c; font-size: .82rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,7,6,.94); display: none; align-items: center; justify-content: center; padding: 3vw; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--ember); color: #1a1210; }
.lightbox__close { top: 4vw; right: 4vw; }
.lightbox__prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 3vw; left: 0; right: 0; text-align: center; color: #cfc7bb; font-size: .9rem; }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); }
  .nav__cta a { margin-top: .6rem; text-align: center; border-radius: 999px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 16/10; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .masonry { columns: 2 140px; }
  .hero { min-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
