/* =========================================================
   OPRAWA MOBILNA — style.css
   Motyw: rzemiosło introligatorskie — skóra, płótno, tłoczenie
   ========================================================= */

:root {
  --paper: #F2E9D8;
  --paper-dark: #E4D6BA;
  --paper-darker: #D6C6A0;
  --ink: #241811;
  --ink-soft: #3B2A1E;
  --leather: #6E2A34;
  --leather-dark: #4E1D25;
  --gold: #A67C3D;
  --gold-light: #C9A15C;
  --gold-shine: #E8CE94;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;

  --max-width: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--leather);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--gold); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

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

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--leather);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.9em;
}

/* ---------- Skip link (dostępność) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--paper-darker);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo span { color: var(--leather); }
.logo:hover { color: var(--ink); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--leather);
  border-bottom-color: var(--gold);
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .main-nav ul { gap: 16px 20px; }
  .main-nav a { font-size: 0.92rem; }
}

/* ---------- Botton / CTA ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 14px 30px;
  border: 1px solid var(--leather);
  border-radius: var(--radius);
  color: var(--leather);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--leather);
  color: var(--paper);
}
.btn-primary {
  background: var(--leather);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--leather-dark);
  color: var(--paper);
}
.btn-gold {
  border-color: var(--gold);
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-shine), var(--gold-light));
}
.btn-gold:hover {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--ink);
}

/* ---------- Hero — "okładka tomu" ---------- */
.hero {
  padding: 64px 0 76px;
  position: relative;
}
.hero-frame {
  border: 1px solid var(--gold);
  outline: 1px solid var(--paper-darker);
  outline-offset: 6px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 60px);
  text-align: center;
  position: relative;
  background: var(--paper);
}
.hero-frame::before,
.hero-frame::after,
.hero-frame .corner-tl,
.hero-frame .corner-br {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold);
}
.hero-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.hero-frame .corner-tl { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.hero-frame .corner-br { bottom: -1px; left: -1px; border-right: none; border-top: none; }

.hero h1 {
  background: linear-gradient(180deg, var(--ink) 55%, var(--leather-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.01em;
}
.hero .stamped {
  background: linear-gradient(180deg, var(--gold-shine), var(--gold) 60%, var(--gold-dark, var(--gold)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  max-width: 640px;
  margin: 0 auto 2em;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6em;
}
.hero-meta {
  margin-top: 2.2em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Sekcje ogólne ---------- */
section { padding: 68px 0; }
.section-alt { background: var(--paper-dark); }
.section-leather {
  background: var(--leather);
  color: var(--paper);
}
.section-leather h2, .section-leather h3 { color: var(--paper); }
.section-leather .eyebrow { color: var(--gold-shine); }
.section-leather a { color: var(--gold-shine); }

.section-head { max-width: 680px; margin: 0 0 2.6em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Karty procesu (numerowane — realny proces w krokach) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--gold);
  padding-top: 18px;
}
.step .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

/* ---------- Siatka kart ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--paper-darker);
  padding: 30px 28px;
  border-radius: var(--radius);
}
.section-leather .card {
  background: var(--leather-dark);
  border-color: rgba(230, 206, 148, 0.25);
}
.card h3 { margin-bottom: 0.5em; }
.card .icon-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 18px;
}

/* ---------- Lista z ozdobnym znacznikiem ---------- */
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tick-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
}
.tick-list li::before {
  content: "❧";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--gold);
  font-size: 1.1em;
}

/* ---------- Tabela cennika prostego / zakresu ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--paper-darker);
}
.info-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--leather);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--paper-darker);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { margin-top: 14px; color: var(--ink-soft); }

/* ---------- CTA pas ---------- */
.cta-strip {
  text-align: center;
  padding: 60px 0;
}
.cta-strip h2 { margin-bottom: 0.4em; }
.cta-strip p { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Formularz kontaktowy ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leather);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 1px solid var(--paper-darker);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.contact-card {
  background: var(--ink);
  color: var(--paper);
  padding: 34px 30px;
  border-radius: var(--radius);
}
.contact-card h3 { color: var(--gold-shine); }
.contact-card a { color: var(--paper); }
.contact-card .cline { margin-bottom: 10px; }
.map-embed {
  border: 0;
  width: 100%;
  height: 260px;
  margin-top: 24px;
  filter: sepia(15%) contrast(0.95);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper-dark);
  padding: 52px 0 34px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.site-footer h4 {
  color: var(--gold-shine);
  font-size: 1rem;
  margin-bottom: 0.9em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--paper-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-shine); }
.footer-bottom {
  border-top: 1px solid rgba(242,233,216,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(242,233,216,0.55);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--leather); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.88rem; color: var(--ink-soft); }
