/* ═══════════════════════════════════════════════════════════════
   FORGEDWORKS · Kovaštvo Kalčič - design system
   Warm charcoal + forged gold · Cormorant Garamond + Barlow
   Shared by every page on kovacija.si and forged-works.com
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Barlow:wght@300;400;500;600&display=swap");

:root {
  /* color */
  --bg: #0E0C09;
  --bg-raised: #16130E;
  --bg-card: #191510;
  --bg-inset: #0A0806;
  --line: #292217;
  --line-soft: #201A11;
  --gold: #C5A55A;
  --gold-bright: #DCBE78;
  --gold-dim: #8B7340;
  --ink: #EAE3D2;
  --ink-mute: #A89E8B;
  --ink-faint: #6E6656;
  /* type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  /* layout */
  --w-wide: 1240px;
  --w-text: 720px;
  --sp-section: clamp(64px, 10vw, 112px);
  --sp-gutter: clamp(18px, 4vw, 32px);
  /* motion */
  --ease: cubic-bezier(.33, .1, .2, 1);
}

/* ── base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: clamp(22px, 2.6vw, 27px); }
p  { margin: 0 0 1.1em; }

.wrap      { max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--sp-gutter); }
.wrap-text { max-width: var(--w-text); margin: 0 auto; padding: 0 var(--sp-gutter); }
.section   { padding: var(--sp-section) 0; }
.section-raised { background: var(--bg-raised); }
.section-inset  { background: var(--bg-inset); }

.eyebrow {
  font: 500 12px/1 var(--sans);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.lede { font-size: 17.5px; color: var(--ink-mute); max-width: 640px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.rule {
  width: 56px; height: 1px; border: 0; margin: 26px 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.center .rule, .rule.center { margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ── buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font: 600 13px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--gold);
  transition: all .25s var(--ease);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: #14100A !important; }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--gold) !important; }
.btn-ghost:hover { background: rgba(197,165,90,.08); color: var(--gold-bright) !important; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── header / nav (identical on every page - see CLAUDE.md) ───── */
nav.topnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 8, 6, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topnav-inner {
  max-width: var(--w-wide); margin: 0 auto;
  padding: 0 var(--sp-gutter);
  display: flex; align-items: center; gap: 28px;
  min-height: 74px;
}
.wordmark { display: flex; flex-direction: column; gap: 2px; line-height: 1; margin-right: auto; }
.wordmark .wm-main {
  font: 600 21px/1 var(--serif);
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
}
.wordmark .wm-sub {
  font: 500 8.5px/1 var(--sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  font: 500 12.5px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-cta { margin-left: 4px; padding: 12px 22px; font-size: 12px; }
.nav-langs { display: flex; gap: 2px; align-items: center; }
.nav-lang {
  font: 600 11px/1 var(--sans); letter-spacing: .1em;
  color: var(--ink-faint); padding: 6px 7px;
}
.nav-lang.active { color: var(--gold); }
.nav-lang:hover { color: var(--ink); }
.nav-lang + .nav-lang { border-left: 1px solid var(--line-soft); }

.nav-burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  margin: 5px 0; transition: transform .25s var(--ease), opacity .2s;
}
.nav-drawer { display: none; }

@media (max-width: 1020px) {
  .nav-links, .topnav-inner > .nav-langs, .topnav-inner > .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-drawer {
    display: block; position: fixed; inset: 74px 0 0 0; z-index: 55;
    background: rgba(10,8,6,.98);
    padding: 36px var(--sp-gutter);
    transform: translateX(102%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .nav-drawer.open { transform: translateX(0); visibility: visible; }
  .nav-drawer .nav-link { display: block; font-size: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-drawer .nav-cta { display: inline-block; margin: 22px 0 0; }
  .nav-drawer .nav-langs { margin-top: 26px; }
  .nav-drawer .nav-lang { font-size: 14px; padding: 8px 12px; }
  body.drawer-open { overflow: hidden; }
  .drawer-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .drawer-open .nav-burger span:nth-child(2) { opacity: 0; }
  .drawer-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ── hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex; align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(75deg, rgba(10,8,6,.93) 0%, rgba(10,8,6,.72) 38%, rgba(10,8,6,.25) 72%, rgba(10,8,6,.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero-content { max-width: 660px; padding: 120px 0; }
@media (max-width: 720px) {
  .hero { min-height: 74vh; }
  .hero-content { padding: 84px 0 64px; }
  .hero-bg::after {
    background: linear-gradient(0deg, var(--bg) 6%, rgba(10,8,6,.8) 48%, rgba(10,8,6,.34) 100%);
  }
}
.hero-content .lede { font-size: clamp(16px, 2vw, 19px); margin-bottom: 36px; }
.hero-content h1 { margin-bottom: 20px; }

/* subpage hero (world / category / about) */
.hero-sub { min-height: 44vh; }
.hero-sub .hero-content { padding: 90px 0 64px; }

/* ── trust strip ──────────────────────────────────────────────── */
.trust-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-inset);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--sp-gutter);
}
.trust-item { padding: 30px 26px 30px 0; }
.trust-item + .trust-item { border-left: 1px solid var(--line-soft); padding-left: 26px; }
.trust-item b {
  display: block; font: 500 19px/1.3 var(--serif); color: var(--ink); margin-bottom: 4px;
}
.trust-item span { font-size: 13.5px; color: var(--ink-mute); }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item { border-top: 1px solid var(--line-soft); }
  .trust-item:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line-soft); }
  .trust-item:first-child { border-top: 0; }
}

/* ── world tiles ──────────────────────────────────────────────── */
.world-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 52px;
}
.world-card {
  position: relative; display: block; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--line);
}
.world-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), opacity .4s;
  opacity: .88;
}
.world-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,6,4,.92) 0%, rgba(8,6,4,.28) 46%, transparent 70%);
}
.world-card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 22px 24px;
}
.world-card-body h3 { margin: 0 0 3px; font-size: 25px; color: #F2ECDD; }
.world-card-body span { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.world-card:hover img { transform: scale(1.045); opacity: 1; }
.world-card:hover { border-color: var(--gold-dim); }
@media (max-width: 900px) { .world-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .world-grid { grid-template-columns: 1fr; } }

/* ── product cards ────────────────────────────────────────────── */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 48px;
}
.product-card {
  display: block; background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.product-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-inset); }
.product-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card-body { padding: 15px 17px 17px; }
.product-card-body h3 {
  font-size: 19px; margin: 0 0 4px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-body .p-meta {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.product-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.product-card:hover img { transform: scale(1.05); }
@media (max-width: 1020px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 400px)  { .product-grid { grid-template-columns: 1fr; } }

/* category card variant (photo + name + count) */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ── breadcrumbs ──────────────────────────────────────────────── */
.crumbs {
  font-size: 12.5px; letter-spacing: .06em; color: var(--ink-faint);
  padding: 18px 0 0;
}
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 8px; color: var(--ink-faint); }

/* ── product page ─────────────────────────────────────────────── */
.product-layout {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px);
  align-items: start; padding-top: 34px;
}
.gallery-hero {
  border: 1px solid var(--line); background: var(--bg-inset);
  overflow: hidden; cursor: zoom-in;
}
.gallery-hero img { width: 100%; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs a {
  border: 1px solid var(--line); overflow: hidden; aspect-ratio: 1; background: var(--bg-inset);
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.gallery-thumbs a:hover img { opacity: 1; }
.product-info h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 10px; }
.product-info .p-sku {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 22px;
}
.product-info .p-desc { color: var(--ink-mute); font-size: 16.5px; }
.spec-table { margin: 30px 0; border-top: 1px solid var(--line); }
.spec-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.spec-row dt { color: var(--ink-faint); letter-spacing: .04em; }
.spec-row dd { margin: 0; color: var(--ink); }
.price-line { font: 500 22px/1.3 var(--serif); margin: 26px 0 6px; }
.price-line small { font-size: 14px; font-family: var(--sans); color: var(--ink-mute); }
.p-bullets { list-style: none; margin: 26px 0 30px; padding: 0; }
.p-bullets li {
  padding: 9px 0 9px 26px; position: relative;
  color: var(--ink-mute); font-size: 14.5px;
}
.p-bullets li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 10px; height: 1px; background: var(--gold);
}
.cta-block { border: 1px solid var(--line); background: var(--bg-raised); padding: 26px; }
.cta-block .btn { width: 100%; text-align: center; }
.cta-block .cta-sub { font-size: 13px; color: var(--ink-faint); margin: 12px 0 0; text-align: center; }
@media (max-width: 880px) {
  .product-layout { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(6, 1fr); }
}

/* ── process steps ────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.step .step-n {
  font: 400 52px/1 var(--serif); color: var(--gold);
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 23px; margin-bottom: 8px; }
.step p { color: var(--ink-mute); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 30px; } }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq { max-width: var(--w-text); margin: 44px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 44px 22px 2px; position: relative;
  font: 500 19px/1.4 var(--serif); color: var(--ink);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font: 300 26px/1 var(--sans); color: var(--gold);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-bright); }
.faq .faq-a { padding: 0 2px 24px; color: var(--ink-mute); font-size: 15.5px; max-width: 640px; }

/* ── split section (photo + text) ─────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.split-img { border: 1px solid var(--line); overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ── bespoke banner ───────────────────────────────────────────── */
.bespoke-banner {
  border: 1px solid var(--gold-dim);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  max-width: 780px; margin: 0 auto;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(197,165,90,.07), transparent 60%),
    var(--bg-raised);
}

/* ── inquiry form ─────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .form-full { grid-column: 1 / -1; }
.field label {
  display: block; font: 500 11.5px/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; padding: 14px 15px;
  background: var(--bg-inset); border: 1px solid var(--line);
  color: var(--ink); font: 400 15px/1.5 var(--sans);
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-dim); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 15px; display: none; }
.form-status.ok { display: block; color: #A8C68F; }
.form-status.err { display: block; color: #C68F8F; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ── footer (identical on every page - see CLAUDE.md) ─────────── */
footer.site-footer {
  background: var(--bg-inset);
  border-top: 1px solid var(--line-soft);
  margin-top: var(--sp-section);
}
.footer-inner {
  max-width: var(--w-wide); margin: 0 auto;
  padding: 64px var(--sp-gutter) 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .wm-main {
  font: 600 19px/1 var(--serif); letter-spacing: .3em;
  color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 6px;
}
.footer-brand .wm-sub {
  font: 500 8.5px/1 var(--sans); letter-spacing: .34em;
  text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 20px;
}
.footer-brand address { font-style: normal; font-size: 14px; color: var(--ink-mute); line-height: 1.9; }
.footer-col h4 {
  font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-mute); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-faint);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── lightbox ─────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,5,3,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: 0; color: var(--ink); font-size: 34px; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid var(--line); color: var(--ink);
  font-size: 22px; width: 46px; height: 46px; cursor: pointer;
}
.lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ── misc ─────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #14100A; padding: 10px 18px;
}
.skip-link:focus { left: 0; }
::selection { background: var(--gold); color: #14100A; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
