:root {
  --bg: #0f0e0d;
  --bg-elevated: #1a1816;
  --bg-card: #211e1b;
  --text: #f2ece4;
  --text-muted: #a89f94;
  --accent: #c17f3a;
  --accent-light: #dba56a;
  --border: rgba(242, 236, 228, 0.08);
  --success: #6b9e6b;
  --warning: #c9a227;
  --sold: #8b4040;
  --radius: 12px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --header-height: 76px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(15, 14, 13, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(193, 127, 58, 0.12);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 14, 13, 0.35) 0%, rgba(15, 14, 13, 0.92) 100%),
    url("../images/homemade_prosojno03.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 4rem 1rem 3rem;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
}

.hero p {
  margin: 0 auto 2rem;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(193, 127, 58, 0.35);
  background: rgba(193, 127, 58, 0.08);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.center {
  text-align: center;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.section-header p {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
}

.section-header.center p {
  margin-inline: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--text);
}

.about-highlight {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(193, 127, 58, 0.08), rgba(255, 255, 255, 0.02));
}

.about-highlight h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.about-highlight p {
  margin: 0;
  color: var(--text-muted);
}

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text);
  border-color: rgba(193, 127, 58, 0.45);
  background: rgba(193, 127, 58, 0.1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.knife-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.knife-card:hover {
  transform: translateY(-4px);
  border-color: rgba(193, 127, 58, 0.25);
}

.knife-card.no-image .knife-image {
  display: grid;
  place-items: center;
  min-height: 280px;
  background: linear-gradient(160deg, #2a2520, #171412);
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knife-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
}

.knife-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.knife-card:hover .knife-image img {
  transform: scale(1.04);
}

.knife-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem 1.3rem;
  flex: 1;
}

.knife-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.knife-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-in-stock {
  background: rgba(107, 158, 107, 0.16);
  color: #9fd49f;
}

.status-in-making {
  background: rgba(201, 162, 39, 0.16);
  color: #e8c85a;
}

.status-sold {
  background: rgba(139, 64, 64, 0.18);
  color: #d88;
}

.price {
  font-weight: 700;
  color: var(--accent-light);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact-card,
.form-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.contact-card h3,
.form-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-list a {
  color: var(--accent-light);
}

.contact-list a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: var(--text);
  border-color: rgba(193, 127, 58, 0.45);
  background: rgba(193, 127, 58, 0.08);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.form-group {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(193, 127, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(193, 127, 58, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.form-message.visible {
  display: block;
}

.form-message.success {
  background: rgba(107, 158, 107, 0.14);
  color: #b8e0b8;
}

.form-message.error {
  background: rgba(139, 64, 64, 0.18);
  color: #efb0b0;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 4.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(193, 127, 58, 0.06), transparent);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.page-hero p {
  margin: 0;
  max-width: 620px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #0b0a09;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand img {
  width: 64px;
  margin-bottom: 1rem;
}

.footer-brand p,
.footer-col p {
  margin: 0;
  color: var(--text-muted);
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Utilities */
.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .about-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    padding: 1.25rem;
    background: rgba(15, 14, 13, 0.98);
    border-top: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}
