@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:        #0A0908;
  --surface:   #111008;
  --card:      #252210;
  --border:    #46422A;
  --gold:      #C9A44A;
  --gold-l:    #E6C070;
  --cream:     #F2EBD8;
  --muted:     #ADA08A;
  --green:     #3A5028;
}

[x-cloak] { display: none !important; }

/* Fallback: ak AOS JS nie je načítaný, obsah zostane viditeľný */
[data-aos]:not(.aos-init) { opacity: 1 !important; transform: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Selection */
::selection { background: var(--gold); color: #000; }

/* Typography */
.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* Gold divider */
.gold-line {
  display: inline-block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* Section label */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Card */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--gold);
}
.product-card img {
  transition: transform 0.6s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}

/* Gold button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--gold);
  color: #0A0908;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: background 0.25s, transform 0.2s;
}
.btn-gold:hover { background: var(--gold-l); transform: translateY(-1px); }

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

/* Nav */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream);
  opacity: 0.75;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s ease;
}
.nav-link:hover { opacity: 1; color: var(--gold); }
.nav-link:hover::after { right: 0; }

/* Hero */
.hero-img-mosaic {
  display: none;
}
@media (min-width: 1024px) {
  .hero-img-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
.hero-img-mosaic img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}
.hero-img-mosaic img:nth-child(2) { margin-top: 30px; }
.hero-img-mosaic img:nth-child(4) { margin-top: -30px; }

/* Filter tabs */
.filter-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s;
}
.filter-tab:hover { border-color: var(--gold); color: var(--cream); }
.filter-tab.active { background: var(--gold); border-color: var(--gold); color: #0A0908; }

/* Process step */
.process-step {
  position: relative;
  padding-left: 1.5rem;
}
.process-step::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* Care card */
.care-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.care-card:hover { border-color: var(--gold); transform: translateY(-3px); }

/* Gallery grid */
.gallery-grid { display: grid; gap: 8px; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.3s;
}
.gallery-grid img:hover { opacity: 0.85; transform: scale(1.02); }

/* Grain overlay (subtle texture on dark sections) */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* Kill browser autofill white background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #161410 inset !important;
  -webkit-text-fill-color: #F2EBD8 !important;
  caret-color: #F2EBD8;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
