/*
Theme Name: Bogdan Huk — Emerald Prestige
Theme URI: https://bogdanhuk.info
Author: Igor
Author URI: https://bogdanhuk.info
Description: Editorial single-column theme dla strony tłumacza Bogdana Huka. Paleta Emerald Prestige, typografia Lora + Nunito Sans.
Version: 5.2
Requires at least: 5.6
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bogdanhuk
*/

:root {
  --emerald-deep: #064e3b;
  --emerald-mid: #0d7a5f;
  --gold: #c9a84c;
  --gold-soft: #f5f0e0;
  --parchment: #faf7f0;
  --ink: #1a2420;
  --muted: #5c6b66;
  --border: #e2ddce;
  --card: #fefdf8;
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Nunito Sans", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--emerald-deep);
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(226, 221, 206, 0.6);
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(8px);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
/* Header container is wider than the content column, so the nav has room to breathe */
.site-header .inner.container { max-width: 64rem; }
.brand { font-family: var(--font-serif); font-size: 1.125rem; color: var(--emerald-deep); }
.brand span { color: var(--gold); }
.nav-toggle-checkbox { display: none; }
.nav-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; cursor: pointer; color: var(--emerald-deep);
}
.nav-main { display: none; }
.nav-main a {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted);
  transition: color .2s;
}
.nav-main a:hover { color: var(--emerald-deep); }
.nav-main a {
  position: relative; padding-bottom: .35rem;
}
.nav-main a.is-active { color: var(--emerald-deep); }
.nav-main a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
}
.nav-toggle-checkbox:checked ~ .nav-main a.is-active::after { bottom: .75rem; }

/* Mobile: menu opens as a dropdown panel when hamburger is checked */
.nav-toggle-checkbox:checked ~ .nav-main {
  display: flex; flex-direction: column; gap: 0; position: absolute;
  top: 100%; left: 0; right: 0; background: var(--parchment);
  border-bottom: 1px solid var(--border); padding: .5rem 1.5rem 1rem;
}
.nav-toggle-checkbox:checked ~ .nav-main a { padding: .75rem 0; border-bottom: 1px solid rgba(226, 221, 206, 0.6); }
.nav-toggle-checkbox:checked ~ .nav-main a:last-child { border-bottom: 0; }
.site-header .inner { position: relative; }

@media (min-width: 900px) {
  .nav-main { display: flex; gap: 1.25rem; flex-wrap: nowrap; }
  .nav-main a { white-space: nowrap; }
  .nav-toggle-btn { display: none; }
  .brand { flex-shrink: 0; }
  .btn-outline { flex-shrink: 0; }
}

.btn-outline, .btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  transition: all .2s; cursor: pointer;
}
.btn-outline {
  border: 1px solid rgba(6, 78, 59, 0.7); color: var(--emerald-deep); background: transparent;
}
.btn-outline:hover { background: var(--emerald-deep); color: var(--gold-soft); }
.btn-primary {
  background: var(--emerald-deep); color: var(--gold-soft); border: none;
  padding: .9rem 1.75rem;
}
.btn-primary:hover { background: var(--emerald-mid); }
.btn-ghost {
  display: inline-flex; padding: .9rem 1.75rem; border-radius: 9999px;
  border: 1px solid rgba(6, 78, 59, 0.4); color: var(--emerald-deep);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--emerald-deep); background: var(--gold-soft); }

/* Sections */
.section { padding: 6rem 0; border-top: 1px solid rgba(226, 221, 206, 0.6); }
.section:first-of-type { border-top: 0; }
.section-label {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.section-label .num { font-family: var(--font-serif); font-style: italic; font-size: .875rem; color: var(--gold); }
.rule-gold {
  display: inline-block; width: 3rem; height: 1px; background: var(--gold); vertical-align: middle;
}
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold);
}

/* Hero */
.hero { text-align: center; }
.hero .rules { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.hero .rules em { font-family: var(--font-serif); font-style: italic; font-size: .875rem; color: var(--muted); }
.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem); line-height: 1.05; margin-top: 2.5rem;
}
.hero .lead {
  max-width: 36rem; margin: 2rem auto 0;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.55; color: var(--muted);
}
.hero .sub { max-width: 32rem; margin: 1.5rem auto 0; color: var(--muted); }
.hero .cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 40rem; margin: 4rem auto 0; padding: 2rem 0;
  border-top: 1px solid rgba(226, 221, 206, 0.7); border-bottom: 1px solid rgba(226, 221, 206, 0.7);
}
.stats .num { font-family: var(--font-serif); font-size: 1.875rem; color: var(--emerald-deep); text-align: center; }
.stats .lbl { margin-top: .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); text-align: center; }

/* Prose */
.h-lg { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.25; }
.prose { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.125rem; line-height: 1.7; color: rgba(26, 36, 32, 0.88); }
.prose .drop::first-letter {
  float: left; margin: .5rem .75rem 0 0;
  font-family: var(--font-serif); font-size: 3.75rem; line-height: 1; color: var(--gold);
}
.pull {
  border-left: 2px solid var(--gold); padding-left: 1.25rem;
  font-family: var(--font-serif); font-style: italic; color: var(--emerald-deep);
}

/* Oferta grid */
.oferta-grid {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: .5rem; overflow: hidden;
}
@media (min-width: 768px) { .oferta-grid { grid-template-columns: 1fr 1fr; } }
.oferta-grid li { background: var(--card); padding: 1.5rem; }
.oferta-grid .t { font-family: var(--font-serif); font-size: 1.25rem; color: var(--emerald-deep); }
.oferta-grid .d { margin-top: .5rem; font-size: .875rem; color: var(--muted); }

/* Klienci */
.klienci { margin-top: 2.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.klienci li {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.klienci li:last-child { border-bottom: 0; }
.klienci .n { width: 2rem; flex-shrink: 0; font-family: var(--font-serif); font-style: italic; font-size: .875rem; color: var(--gold); }
.klienci .name { font-family: var(--font-serif); }
.klienci-note { margin-top: 1.5rem; font-size: .875rem; font-style: italic; color: var(--muted); }

/* Cennik */
.cennik-card {
  border: 1px solid rgba(6, 78, 59, 0.2); background: var(--card);
  padding: 2.5rem; border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.cennik-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.cennik-head .title { font-family: var(--font-serif); font-size: 1.875rem; color: var(--emerald-deep); margin-top: .75rem; }
.cennik-head .hours { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold); }
.cennik-body { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; color: rgba(26, 36, 32, 0.88); }
.cennik-tag { padding-top: .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--emerald-deep); }

/* Kontakt */
.kontakt-card {
  margin-top: 2.5rem; padding: 2.5rem; border-radius: 1rem;
  background: var(--emerald-deep); color: var(--gold-soft);
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 768px) { .kontakt-card { grid-template-columns: repeat(3, 1fr); } }
.kontakt-card .lbl { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); }
.kontakt-card .val { display: block; margin-top: .75rem; font-family: var(--font-serif); font-size: 1.25rem; }
.kontakt-card .val.big { font-size: 1.5rem; }
.kontakt-card a.val { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.kontakt-card a.val:hover { color: var(--gold); }
.kontakt-card .sub { margin-top: .25rem; font-size: .875rem; color: rgba(245, 240, 224, 0.7); }
.kontakt h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .inner {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 2.5rem 0; text-align: center;
}
.site-footer .brand-lg { font-family: var(--font-serif); font-size: 1.25rem; color: var(--emerald-deep); }
.site-footer .brand-lg span { color: var(--gold); }
.site-footer .tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .24em; color: var(--muted); }
.site-footer .copy { font-size: .75rem; color: var(--muted); }

/* Iconography */
.icon {
  width: 1.5rem; height: 1.5rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 1.125rem; height: 1.125rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-gold { color: var(--gold); }
.icon-emerald { color: var(--emerald-deep); }
.icon-muted { color: var(--muted); }

/* Hero badges */
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-top: 2.5rem;
}
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 9999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--emerald-deep);
  transition: border-color .2s, box-shadow .2s;
}
.badge:hover { border-color: var(--gold); box-shadow: 0 1px 4px rgba(201, 168, 76, .15); }
.badge .icon { width: 1rem; height: 1rem; color: var(--gold); }

/* Oferta cards with icons */
.oferta-grid li { display: flex; flex-direction: column; gap: .75rem; }
.oferta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: .75rem;
  background: var(--gold-soft); color: var(--emerald-deep);
}
.oferta-icon .icon { width: 1.5rem; height: 1.5rem; }

/* Attributes grid (translator qualities) */
.atrybuty {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 768px) { .atrybuty { grid-template-columns: repeat(3, 1fr); } }
.atrybut {
  padding: 1.75rem 1.5rem; border-radius: .75rem;
  background: var(--card); border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.atrybut:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(6, 78, 59, .06); }
.atrybut .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: .625rem;
  background: var(--emerald-deep); color: var(--gold-soft);
  margin-bottom: 1rem;
}
.atrybut .ico .icon { width: 1.375rem; height: 1.375rem; }
.atrybut .t { font-family: var(--font-serif); font-size: 1.125rem; color: var(--emerald-deep); }
.atrybut .d { margin-top: .5rem; font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* Delegacje border-crossing chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: 9999px;
  background: var(--gold-soft); border: 1px solid rgba(201, 168, 76, .35);
  font-size: .75rem; font-weight: 600; color: var(--emerald-deep);
}
.chip .icon { width: .875rem; height: .875rem; color: var(--gold); }

/* Kontakt card icons */
.kontakt-card .ico-row { display: inline-flex; align-items: center; gap: .5rem; }
.kontakt-card .ico-row .icon { width: 1.125rem; height: 1.125rem; color: var(--gold); }

/* Footer social row */
.footer-contact {
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
  margin-top: .5rem;
}
.footer-contact a {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--muted);
  transition: color .2s;
}
.footer-contact a:hover { color: var(--emerald-deep); }
.footer-contact .icon { width: 1rem; height: 1rem; }

/* WordPress required classes */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
