/* ================================================================
   ARTNALYSE — Le Vernissage
   Common Styles
   ================================================================ */

/* ---- Variables ---- */
:root {
  --gold:          #c9a55c;
  --gold-light:    #d4b896;
  --gold-lightest: #e8d5a8;
  --gold-dark:     #a08040;
  --gold-darkest:  #7a6030;
  --gold-warm:     #d4a843;
  --copper:        #b08968;
  --bronze:        #8b7355;

  --bg:        #080808;
  --bg-2:      #111113;
  --bg-card:   #1a1a1c;
  --bg-raised: #222224;

  --text:     #f0efe9;
  --text-2:   #a8a8a0;
  --text-3:   #5c5c58;
  --text-4:   #3a3a38;

  --gold-glow-sm:  0 4px 20px rgba(201,165,92,.2);
  --gold-glow-md:  0 8px 40px rgba(201,165,92,.3);
  --gold-glow-lg:  0 16px 64px rgba(201,165,92,.35);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --nav-h: 72px;
  --max-w: 1200px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Selection ---- */
::selection { background: rgba(201,165,92,.2); color: var(--text); }

/* ---- Custom cursor ---- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  border-radius: 50%;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  transition: width .15s, height .15s, opacity .2s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(201,165,92,.45);
  transition: width .3s var(--ease-out), height .3s var(--ease-out),
              border-color .3s, opacity .3s;
}
body:not(:hover) .cursor-dot,
body:not(:hover) .cursor-ring { opacity: 0; }
.cursor-hover .cursor-dot   { width: 12px; height: 12px; background: var(--gold-warm); }
.cursor-hover .cursor-ring  { width: 50px; height: 50px; border-color: rgba(201,165,92,.25); }

@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p  { color: var(--text-2); line-height: 1.8; }
a  { color: inherit; text-decoration: none; }

/* ---- Gold text ---- */
.text-gold {
  background: linear-gradient(135deg, var(--gold-lightest) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-shimmer {
  background: linear-gradient(90deg,
    var(--gold-dark) 0%,
    var(--gold-lightest) 30%,
    var(--gold-warm) 50%,
    var(--gold-lightest) 70%,
    var(--gold-dark) 100%);
  background-size: 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s ease infinite;
}
@keyframes shimmer {
  0%   { background-position: 250% center; }
  100% { background-position: -250% center; }
}

/* ---- Section wrapper ---- */
.section {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad-x);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 20px; height: 1px;
  background: var(--gold);
  opacity: .5;
}

.section-title { margin-bottom: 1.25rem; }
.section-title span { color: var(--gold); -webkit-text-fill-color: initial; }

.section-desc {
  max-width: 540px;
  font-size: .975rem;
  margin-bottom: 3rem;
}

/* ---- Gold divider ---- */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 3rem;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,165,92,.25), transparent);
}
.gold-divider-diamond {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(201,165,92,.6);
}

/* ---- Buttons ---- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: .875rem 2.25rem;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 55%, var(--gold-warm) 100%);
  color: #080808;
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  text-decoration: none;
}
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 60%);
  opacity: 0;
  transition: opacity .2s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--gold-glow-md); }
.btn-gold:hover::after { opacity: 1; }
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: .875rem 2.25rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,165,92,.3);
  border-radius: 3px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.btn-outline:hover {
  background: rgba(201,165,92,.07);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ---- Card ---- */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(201,165,92,.09);
  border-radius: 10px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,165,92,.05), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  border-color: rgba(201,165,92,.28);
  transform: translateY(-5px);
  box-shadow: var(--gold-glow-sm);
}
.card:hover::before { opacity: 1; }

/* ---- Ornament corners ---- */
.ornament {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
}
.ornament-tl { top: 12px; left: 12px; border-top: 1.5px solid rgba(201,165,92,.35); border-left: 1.5px solid rgba(201,165,92,.35); }
.ornament-tr { top: 12px; right: 12px; border-top: 1.5px solid rgba(201,165,92,.35); border-right: 1.5px solid rgba(201,165,92,.35); }
.ornament-bl { bottom: 12px; left: 12px; border-bottom: 1.5px solid rgba(201,165,92,.35); border-left: 1.5px solid rgba(201,165,92,.35); }
.ornament-br { bottom: 12px; right: 12px; border-bottom: 1.5px solid rgba(201,165,92,.35); border-right: 1.5px solid rgba(201,165,92,.35); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  gap: 2rem;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,8,.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(201,165,92,.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
}
.nav-logo img { width: 38px; height: 38px; border-radius: 9px; }
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: linear-gradient(135deg, var(--gold-lightest), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .45rem 1.1rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #080808 !important;
  -webkit-text-fill-color: #080808 !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  transition: transform .2s, box-shadow .2s;
}
.nav-pill:hover { transform: translateY(-1px); box-shadow: var(--gold-glow-sm); }
.nav-pill::after { display: none !important; }

/* ---- Hamburger ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all .3s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Mobile menu ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,.97);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--text-2);
  transition: color .2s;
  position: relative;
}
.mobile-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav a:hover::after { width: 80%; }

/* ---- Footer ---- */
footer {
  background: var(--bg-2);
  border-top: 1px solid rgba(201,165,92,.08);
  padding: clamp(3rem,7vw,5rem) var(--pad-x) 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: .85rem;
  max-width: 270px;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--serif);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.footer-col a {
  font-size: .85rem;
  color: var(--text-2);
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(201,165,92,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---- Intersection observer animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
.reveal-fade {
  opacity: 0;
  transition: opacity 1s;
}
.reveal-fade.in { opacity: 1; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 4rem) var(--pad-x) 4rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(201,165,92,.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.8rem); margin-top: 1rem; }
.page-hero p {
  max-width: 520px;
  margin-top: 1rem;
  font-size: .975rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
