/*
 * VALIORÈ — The Obsidian Gallery
 * Dark Luxury Minimalism CSS
 * Pure CSS, no frameworks. Pixel-perfect luxury design.
 */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --color-bg: #121212;
  --color-bg-deep: #0d0d0d;
  --color-bg-darker: #0a0a0a;
  --color-text: #FAFAFA;
  --color-text-muted: rgba(250, 250, 250, 0.55);
  --color-text-subtle: rgba(250, 250, 250, 0.35);
  --color-gold: #C5A059;
  --color-gold-light: #E5C18A;
  --color-gold-dark: #A08040;
  --color-border: rgba(197, 160, 89, 0.10);
  --color-border-hover: rgba(197, 160, 89, 0.30);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Tenor Sans', sans-serif;
  --font-script: 'Pinyon Script', cursive;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --container-max: 1400px;
  --nav-height: 80px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
  font-feature-settings: "liga" 1, "kern" 1;
}

::selection {
  background-color: rgba(197, 160, 89, 0.3);
  color: var(--color-text);
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); letter-spacing: 0.03em; }
h3 { font-size: clamp(1.3rem, 2vw, 2rem); letter-spacing: 0.02em; }

.text-display { font-family: var(--font-display); }
.text-body { font-family: var(--font-body); }
.text-ui {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.text-script { font-family: var(--font-script); }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 640px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background-color 0.7s var(--ease-out), border-color 0.7s;
  display: flex;
  align-items: center;
}

.nav.scrolled {
  background-color: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav__logo svg { width: 28px; height: 28px; }

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  transition: color 0.5s;
}

.nav__wordmark:hover { color: var(--color-gold-light); }

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.5);
  transition: color 0.5s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width 0.5s var(--ease-out);
}

.nav__link:hover { color: var(--color-gold); }
.nav__link:hover::after { width: 100%; }
.nav__link--active { color: var(--color-gold); }
.nav__link--active::after { width: 100%; }

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.5s;
}

@media (min-width: 1024px) { .nav__toggle { display: none; } }

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__crest { margin-bottom: -16px; }

.mobile-menu__wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  color: rgba(250, 250, 250, 0.5);
  transition: color 0.5s;
}

.mobile-menu__link:hover,
.mobile-menu__link--active { color: var(--color-gold); }

.mobile-menu__link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.mobile-menu.open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: 0.32s; }
.mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: 0.40s; }
.mobile-menu.open .mobile-menu__link:nth-child(6) { transition-delay: 0.48s; }
.mobile-menu.open .mobile-menu__link:nth-child(7) { transition-delay: 0.56s; }
.mobile-menu.open .mobile-menu__link:nth-child(8) { transition-delay: 0.64s; }
.mobile-menu.open .mobile-menu__link:nth-child(9) { transition-delay: 0.72s; }
.mobile-menu.open .mobile-menu__link:nth-child(10) { transition-delay: 0.80s; }
.mobile-menu.open .mobile-menu__link:nth-child(11) { transition-delay: 0.88s; }

/* ===== GOLD LINE ===== */
.gold-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.gold-line--center { margin: 0 auto; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s var(--ease-out), transform 1.5s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr repeat(3, auto);
    gap: 64px;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.footer__brand-logo svg { width: 24px; height: 24px; }

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

.footer__brand-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-subtle);
  line-height: 1.6;
  max-width: 320px;
}

.footer__col-title {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.footer__col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-subtle);
  transition: color 0.5s;
}

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

.footer__divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 64px auto;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__bottom p {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.25);
}

.footer__bottom p:last-of-type {
  font-family: var(--font-body);
  text-transform: none;
  font-style: italic;
}

.footer__bottom-crest {
  opacity: 0.3;
}

/* ===== WATERMARK ===== */
.watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
}

/* ===== UTILITY CLASSES ===== */
.gold-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  padding-bottom: 4px;
  transition: color 0.5s, border-color 0.5s;
}

.gold-cta:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
}

.gold-cta--subtle {
  color: rgba(250, 250, 250, 0.4);
  border-color: rgba(250, 250, 250, 0.2);
}

.gold-cta--subtle:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #121212; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #C5A059; }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 40px;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  padding: 12px 0;
  transition: border-color 0.5s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(250, 250, 250, 0.2);
}

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

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C5A059' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form-group select option {
  background: #121212;
  color: var(--color-text);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== IMAGE EFFECTS ===== */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame {
  position: relative;
}

.img-frame::after {
  content: '';
  position: absolute;
  width: 96px;
  height: 96px;
  border-color: rgba(197, 160, 89, 0.4);
}

.img-frame--br::after {
  bottom: -16px;
  right: -16px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.img-frame--tl::after {
  top: -16px;
  left: -16px;
  border-top: 1px solid;
  border-left: 1px solid;
}

/* ===== RESPONSIVE HELPERS ===== */
@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}
@media (max-width: 1023px) {
  .show-desktop { display: none !important; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ===== FORM INPUTS (inline classes) ===== */
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  padding: 12px 0;
  transition: border-color 0.5s;
  outline: none;
}

.form-input::placeholder { color: rgba(250, 250, 250, 0.2); }

.form-input:focus { border-color: var(--color-gold); }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C5A059' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form-select option { background: #121212; color: var(--color-text); }

.form-textarea { resize: vertical; min-height: 120px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 16px 32px;
  border: 1px solid var(--color-gold);
  background: var(--color-bg-deep);
  color: var(--color-gold);
  opacity: 0;
  z-index: 10000;
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== STAGGERED FADE-IN ===== */
.stagger-in {
  opacity: 0;
  transform: translateY(16px);
}

.stagger-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* ===== HERITAGE TIMELINE ===== */
.timeline-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CUSTOM PROCESS STEPS ===== */
.process-step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GEMSTONE CARD ===== */
.gemstone-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.gemstone-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== COLLECTION CARD ===== */
.collection-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.collection-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO PARALLAX ===== */
.hero__bg {
  will-change: transform;
}

/* ===== SMOOTH LINK TRANSITIONS ===== */
a { transition: color 0.4s var(--ease-out); }

/* ===== PULSE ANIMATION ===== */
@keyframes pulse-gold {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

.pulse-gold {
  animation: pulse-gold 4s ease-in-out infinite;
}

/* ===== LINE DRAW ANIMATION ===== */
@keyframes line-draw {
  from { width: 0; }
  to { width: 60px; }
}

.gold-line--animate {
  animation: line-draw 1.2s var(--ease-out) forwards;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.wa-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9998;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.82);
  color: var(--color-gold);
  border: 1px solid rgba(197, 160, 89, 0.32);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: wa-fade 0.6s ease 0.8s forwards;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(197, 160, 89, 0.25);
}

.wa-float svg {
  display: block;
  width: 28px;
  height: 28px;
}

@keyframes wa-fade {
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .wa-float {
    width: 50px;
    height: 50px;
    right: 18px;
    bottom: 18px;
  }
}
