/* ============================================================
   LEONORE — Fine Jewellery
   Shared design system
   ============================================================ */

:root {
  /* Surfaces — deep gloss black */
  --ink:      #060607;
  --ink-2:    #0a0a0c;
  --panel:    #0e0e11;
  --panel-2:  #14141a;
  --raise:    #1a1a21;

  /* Lines / metal */
  --line:        rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.18);
  --silver-1: #ffffff;
  --silver-2: #c9c9d1;
  --silver-3: #9a9aa4;
  --silver-4: #e9e9ee;

  /* Text */
  --text:   #e9e9ec;
  --muted:  #8d8d95;
  --faint:  #6a6a72;
  --white:  #f6f6f7;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Bodoni Moda", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Metric */
  --maxw: 1280px;
  --gut: clamp(20px, 5vw, 64px);
  --nav-h: 74px;

  --silver-grad: linear-gradient(180deg, #ffffff 0%, #d8d8de 22%, #9a9aa4 48%, #f2f2f5 60%, #b4b4bd 80%, #e9e9ee 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Helpers ---------- */
.metal {
  background: var(--silver-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.eyebrow {
  font-family: var(--sans); font-weight: 400;
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--silver-3); padding-left: .42em; white-space: nowrap;
}
.serif-h {
  font-family: var(--serif); font-weight: 400;
  line-height: 1.02; letter-spacing: .01em;
  color: var(--white);
  text-wrap: balance;
}
.lead { color: var(--muted); font-weight: 300; max-width: 56ch; text-wrap: pretty; }
.hairline { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent); }

/* faceted diamond mark reused everywhere via .dia svg */
.dia { display: inline-block; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .85em;
  font-family: var(--sans); font-weight: 400;
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid var(--line-strong);
  color: var(--white); background: transparent;
  position: relative; overflow: hidden;
  transition: color .5s ease, border-color .5s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--silver-grad); transform: translateY(101%);
  transition: transform .5s cubic-bezier(.22,.61,.36,1); z-index: -1;
}
.btn:hover { color: #07070a; border-color: transparent; }
.btn:hover::after { transform: translateY(0); }
.btn.solid { background: var(--silver-grad); color: #07070a; border-color: transparent; }
.btn.solid::after { background: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--silver-2); padding-bottom: 3px; position: relative;
}
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--silver-3); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .ar { transition: transform .45s ease; }
.link-arrow:hover .ar { transform: translateX(5px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: clamp(20px, 3.5vw, 52px);
  padding-inline: var(--gut);
  transition: background .5s ease, border-color .5s ease, backdrop-filter .5s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(6,6,7,0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 30px; }
.nav-right { justify-content: flex-end; }
.nav-link {
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text); font-weight: 300; position: relative; padding: 6px 0; white-space: nowrap;
  transition: color .35s ease;
}
.nav-link::after { content:""; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background: var(--silver-2); transform: scaleX(0); transform-origin:center; transition: transform .4s ease; }
.nav-link:hover { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* ---- Mega-menu (Kolekcje) ---- */
.nav-item { display: flex; align-items: center; height: var(--nav-h); position: static; }
.mega-trigger { display: inline-flex; align-items: center; gap: 7px; }
.mega-caret { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px,-2px); transition: transform .35s ease; opacity: .7; }
.nav-item:hover .mega-caret, .nav-item:focus-within .mega-caret { transform: rotate(-135deg) translate(-1px,-1px); opacity: 1; }
.mega {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 95;
  background: rgba(8,8,10,0.94); backdrop-filter: blur(20px) saturate(120%); -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .42s cubic-bezier(.22,.61,.36,1), transform .42s cubic-bezier(.22,.61,.36,1);
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 56px; padding-block: 46px 50px; align-items: start; }
.mega-col { display: flex; flex-direction: column; gap: 15px; }
.mega-col h5 { font-family: var(--sans); font-weight: 400; font-size: 10.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--silver-3); margin: 0 0 7px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mega-col a { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--text);
  letter-spacing: .01em; text-transform: none; transition: color .3s ease, padding-left .35s ease; }
.mega-col a:hover { color: var(--white); padding-left: 6px; }
.mega-feature { position: relative; display: block; max-width: 380px; width: 100%; justify-self: end; }
.mega-feature image-slot { width: 100%; aspect-ratio: 16/10; }
.mega-feat-cap { position: absolute; left: 22px; bottom: 20px; z-index: 3; }
.mega-feat-cap span { display: block; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--silver-2); margin-bottom: 7px; }
.mega-feat-cap strong { font-family: var(--serif); font-weight: 500; font-size: 26px; color: #fff; line-height: 1; }
@media (max-width: 1080px) { .mega-feature { display: none; } .mega-grid { grid-template-columns: repeat(3, 1fr); } }

.brand {
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; letter-spacing: .26em; padding-left: .26em;
  display: inline-flex; align-items: center; gap: 11px; white-space: nowrap;
}
.brand .dia { transform: translateY(-1px); }
.brand-noir { font-family: var(--sans); font-weight: 300; font-size: .38em; letter-spacing: .34em;
  padding-left: .3em; color: var(--silver-3); align-self: center; white-space: nowrap; }

.nav-tools { display: flex; align-items: center; gap: 22px; }
.icon-btn { background: none; border: 0; color: var(--text); padding: 4px; line-height: 0; transition: color .3s ease; }
.icon-btn:hover { color: var(--white); }

.lang {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong);
  border-radius: 2px; overflow: hidden;
}
.lang button {
  background: none; border: 0; color: var(--faint); font-family: var(--sans);
  font-size: 10.5px; letter-spacing: .14em; padding: 6px 9px; font-weight: 400; transition: all .3s ease;
}
.lang button.on { background: var(--silver-grad); color: #08080a; }

/* mobile nav toggle */
.burger { display: none; background: none; border: 0; color: var(--text); padding: 6px; }
.mobile-menu { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-2); border-top: 1px solid var(--line); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 48px; padding-block: 80px 56px; }
.footer h4 { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--silver-3); margin: 0 0 22px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer li a { font-size: 13.5px; color: var(--muted); transition: color .3s ease; }
.footer li a:hover { color: var(--white); }
.footer-brand .brand { font-size: 30px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 34ch; }
.news { display: flex; border: 1px solid var(--line-strong); margin-top: 18px; max-width: 340px; }
.news input { flex: 1; background: transparent; border: 0; color: var(--white); padding: 13px 15px; font-family: var(--sans); font-size: 13px; letter-spacing: .04em; outline: none; }
.news input::placeholder { color: var(--faint); }
.news button { background: var(--silver-grad); border: 0; color: #08080a; padding: 0 18px; font-size: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom, .footer-bottom a { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.footer-bottom a:hover { color: var(--muted); }

/* ============================================================
   SECTIONS / generic
   ============================================================ */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); }

/* image slot base look */
image-slot {
  --is-bg: #0c0c10;
  background: repeating-linear-gradient(135deg, #0c0c10 0 14px, #0f0f14 14px 28px);
  border: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--sans) !important;
  touch-action: pan-y;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.grid { display: grid; gap: 2px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--panel); position: relative; overflow: hidden; }
.card .media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card .media image-slot { width: 100%; height: 100%; transition: transform 1.1s cubic-bezier(.22,.61,.36,1); }
.card:hover .media image-slot { transform: scale(1.05); }
.card .tag { position: absolute; top: 16px; left: 16px; z-index: 3;
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--white);
  background: rgba(8,8,10,.55); border: 1px solid var(--line-strong); padding: 6px 11px; backdrop-filter: blur(6px); }
.card .quick {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: center; padding: 18px;
  transform: translateY(120%); transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.card:hover .quick { transform: translateY(0); }
.card .quick button { width: 100%; }
.card .info { padding: 22px 22px 26px; text-align: center; }
.card .info .name { font-family: var(--serif); font-size: 23px; color: var(--white); font-weight: 500; letter-spacing: .01em; }
.card .info .meta { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.card .info .price { font-size: 13.5px; letter-spacing: .06em; color: var(--silver-2); margin-top: 12px; font-variant-numeric: tabular-nums; font-weight: 400; }

/* ============================================================
   QUICKVIEW MODAL
   ============================================================ */
.modal-root { position: fixed; inset: 0; z-index: 300; display: none; }
.modal-root.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(3,3,4,.82); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s ease; }
.modal-root.open .modal-bg { opacity: 1; }
.modal-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%);
  width: min(880px, 92vw); background: var(--panel); border: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1fr 1fr; opacity: 0; transition: opacity .45s ease, transform .45s ease;
}
.modal-root.open .modal-card { opacity: 1; transform: translate(-50%, -50%); }
.modal-card .m-media { aspect-ratio: 4/5; }
.modal-card .m-media image-slot { width: 100%; height: 100%; }
.modal-card .m-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.modal-card .m-name { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); color: var(--white); font-weight: 500; line-height: 1.05; }
.modal-card .m-price { color: var(--silver-2); letter-spacing: .12em; margin: 14px 0 22px; }
.modal-card .m-desc { color: var(--muted); font-size: 14.5px; }
.modal-card .m-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--white); font-size: 22px; line-height: 1; padding: 6px; }
.modal-card .m-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-left { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-left.tools-only { display: flex; }
  .burger { display: inline-flex; }
  .nav-right .nav-link { display: none; }
  .modal-card { grid-template-columns: 1fr; max-height: 88vh; overflow: auto; }
  .modal-card .m-media { aspect-ratio: 16/10; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90;
    background: var(--ink); transform: translateY(-100%); transition: transform .5s cubic-bezier(.22,.61,.36,1);
    padding: 40px var(--gut); overflow: auto;
  }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { display: block; font-family: var(--serif); font-size: 34px; color: var(--white); padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cards-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .card .media { aspect-ratio: 1/1; }
  .card .info { padding: 12px 8px 16px; }
  .card .info .name { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .card .info .meta { font-size: 9.5px; letter-spacing: .14em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .card .info .price { font-size: 12px; letter-spacing: .08em; margin-top: 8px; font-variant-numeric: tabular-nums; }
  .section { padding-block: clamp(48px, 8vw, 100px); }
}

/* ---- Active filter pill (collections) ---- */
.active-filter { text-align: center; margin: 4px 0 38px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.active-filter[hidden] { display: none; }
.active-filter .af-label { color: var(--faint); text-transform: uppercase; letter-spacing: .24em; font-size: 10.5px; }
.active-filter strong { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--white); letter-spacing: .02em; }
.active-filter .af-clear { background: none; border: 1px solid var(--line-strong); color: var(--muted);
  width: 24px; height: 24px; border-radius: 50%; font-size: 11px; line-height: 1; cursor: pointer; transition: color .3s ease, border-color .3s ease; }
.active-filter .af-clear:hover { color: var(--white); border-color: var(--silver-3); }

/* ---- Mobile layout fixes (home + about) ---- */
@media (max-width: 860px) {
  .nav-tools { gap: 16px; }
}
@media (max-width: 820px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 44px); padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { max-width: 440px; }
  .hero-scroll { display: none; }
  .feat { grid-template-columns: 1fr !important; }
  .philo { grid-template-columns: 1fr !important; gap: 40px; }
  .values { grid-template-columns: 1fr !important; }
  .split { grid-template-columns: 1fr !important; gap: 36px; }
  .split.flip image-slot { order: 0; }
}
@media (max-width: 560px) {
  .nav-tools .icon-btn { display: none; }
  .filters { gap: 8px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-inline: var(--gut); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { padding: 10px 15px; font-size: 10px; white-space: nowrap; flex-shrink: 0; }
  .active-filter strong { font-size: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   AUTHORIZED DEALER BADGE (Parker)
   ============================================================ */
.auth-badge {
  text-align: center; padding: 14px var(--gut);
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--silver-3); border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

/* ============================================================
   CATEGORY PILLARS (Homepage)
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pillar { position: relative; display: block; overflow: hidden; }
.pillar image-slot { width: 100%; aspect-ratio: 3/4; transition: transform 1.2s cubic-bezier(.22,.61,.36,1); }
.pillar:hover image-slot { transform: scale(1.06); }
.pillar .pillar-ov {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px;
  background: linear-gradient(to top, rgba(5,5,6,.78) 0%, rgba(5,5,6,0) 55%);
}
.pillar .pillar-ov .pillar-name { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--white); }
.pillar .pillar-ov .pillar-desc { font-size: 12.5px; color: var(--silver-3); margin-top: 8px; letter-spacing: .04em; }
.pillar .pillar-ov .go { margin-top: 14px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  display: flex; justify-content: center; align-items: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap;
  padding: 28px var(--gut); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-3);
}
.trust-item svg { flex-shrink: 0; }

/* ============================================================
   HERITAGE / EDITORIAL (watches + parker)
   ============================================================ */
.heritage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.heritage image-slot { width: 100%; aspect-ratio: 4/5; }
.heritage h2 { font-size: clamp(32px, 4.6vw, 56px); margin: 22px 0 26px; }
.heritage-points { list-style: none; margin: 32px 0 0; padding: 0; }
.heritage-points li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.heritage-points li strong { color: var(--white); font-weight: 400; display: block; margin-bottom: 4px; }
@media (max-width: 820px) { .heritage { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   GIFT / OCCASION CARDS
   ============================================================ */
.occasion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.occasion-card {
  background: var(--panel); border: 1px solid var(--line); padding: clamp(34px, 4vw, 52px); text-align: center;
  transition: background .35s ease;
}
.occasion-card:hover { background: var(--panel-2); }
.occasion-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--white); margin: 18px 0 10px; }
.occasion-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 20px; }
@media (max-width: 820px) { .occasion-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CROSS-SELL
   ============================================================ */
.cross-sell { padding-block: clamp(72px, 11vw, 140px); background: var(--ink-2); border-top: 1px solid var(--line); }
.crosssell .section-head { margin-bottom: 40px; }
@media (max-width: 560px) {
  .crosssell .grid { display: flex; overflow-x: auto; gap: 10px; padding-inline: var(--gut); scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .crosssell .grid .card { flex: 0 0 70vw; scroll-snap-align: start; }
  .crosssell .grid .card .media { aspect-ratio: 4/5; }
  .crosssell .grid .card .info .name { font-size: 18px; }
}
