/* ==========================================================================
   Biżuteria Maranatha — Naszyjniki tęsknoty
   Editorial design system: warm alabaster, espresso ink, brushed antique gold
   ========================================================================== */

:root {
  --bg: #faf7f2;
  --bg-alt: #f3ede2;
  --surface: #ffffff;
  --surface-warm: #fdfbf7;
  --ink: #241e19;
  --ink-muted: #5c5147;
  --ink-soft: #7b6f63;
  --gold: #9a702c;
  --gold-light: #b88e44;
  --gold-tint: rgba(154, 112, 44, 0.1);
  --border: rgba(36, 30, 25, 0.1);
  --border-strong: rgba(36, 30, 25, 0.18);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(36, 30, 25, 0.04);
  --shadow-md: 0 12px 32px rgba(36, 30, 25, 0.08);
  --shadow-lg: 0 24px 60px rgba(36, 30, 25, 0.14);

  --container: 1200px;
  --header-h: 76px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 16px;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #3a3028;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Hero */
.hero {
  padding: 56px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.06;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-motto {
  margin: 24px 0 18px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
}

.hero-desc {
  margin: 0 0 32px;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-meta strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-meta span {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 16px;
  align-items: end;
}

.hero-frame-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 2 / 3;
  background: var(--bg-alt);
}

.hero-frame-main img,
.hero-frame-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame-side {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 2 / 3;
  margin-bottom: 32px;
  border: 4px solid var(--surface);
  background: var(--bg-alt);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.center .eyebrow::before {
  display: none;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.section-subtitle {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

/* Story / Manifesto */
.story-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.story-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 2 / 3;
  background: var(--bg);
}

.story-photo.offset {
  margin-top: 40px;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body p {
  margin: 0 0 18px;
  color: var(--ink-muted);
}

.scripture-quote {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.scripture-quote p {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}

.scripture-quote cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Stones Collection Grid */
.stones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stone-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(154, 112, 44, 0.35);
}

.stone-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-alt);
}

.stone-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stone-card:hover .stone-card-media img {
  transform: scale(1.04);
}

.stone-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.stone-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stone-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stone-card-title {
  font-size: 1.5rem;
}

.stone-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.stone-card-desc {
  margin: 10px 0 18px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
}

.stone-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

.stone-card-footer span {
  transition: transform var(--transition);
}

.stone-card:hover .stone-card-footer span {
  transform: translateX(4px);
}

/* Gallery / Lookbook */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--bg-alt);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(24, 19, 15, 0.72), transparent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
}

/* Values / Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.pillar-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Contact / Order */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  font: inherit;
  color: var(--ink);
  transition: border-color var(--transition), background-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
}

.form-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-tint);
  color: var(--ink);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* Stone Detail Page */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.stone-hero {
  padding: 48px 0 72px;
}

.stone-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.stone-specs {
  margin: 28px 0;
  border-top: 1px solid var(--border);
}

.stone-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.stone-spec-row dt {
  color: var(--ink-soft);
}

.stone-spec-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 16, 13, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 760px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 12px;
  color: rgba(250, 247, 242, 0.85);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-btn {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: background-color 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Footer */
.site-footer {
  background: #1d1814;
  color: #e7dfd3;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.footer-motto {
  margin: 12px 0 0;
  color: rgba(231, 223, 211, 0.72);
  max-width: 360px;
  font-size: 0.9375rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-list a {
  color: rgba(231, 223, 211, 0.78);
  transition: color var(--transition);
}

.footer-list a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(231, 223, 211, 0.56);
}

/* Responsive */
@media (max-width: 1024px) {
  .stones-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid,
  .story-grid,
  .contact-grid,
  .stone-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pillars-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero {
    padding: 36px 0 64px;
  }
  .section {
    padding: 64px 0;
  }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stones-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .contact-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .stones-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
