/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0f;
  color: #e8e6e3;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ Typography ============ */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #c9a961; font-weight: 500; }

/* ============ Layout ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
main { flex: 1; }
section { padding: 4rem 0; }

/* ============ Navbar ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 500; letter-spacing: 0.05em; color: #c9a961; }
.logo span { color: #e8e6e3; font-weight: 300; }
.logo-mark { width: 1.4em; height: 1.4em; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; letter-spacing: 0.05em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #c9a961; }
.menu-toggle { display: none; font-size: 1.5rem; }
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; right: 0; left: 0; background: #0a0a0f; flex-direction: column; padding: 1rem 1.5rem; border-bottom: 1px solid rgba(201, 169, 97, 0.15); display: none; }
  .nav-links.open { display: flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.08), transparent 60%), #0a0a0f;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a961' fill-opacity='0.04'%3E%3Cpath d='M30 0l5 10 10 2-7.5 7.5L40 30l-10-5-10 5 2.5-10.5L15 12l10-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 0 1.5rem; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { color: #c9a961; font-style: italic; }
.hero p { font-size: 1.1rem; color: #b8b6b3; margin-bottom: 2rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: #c9a961; color: #0a0a0f; font-weight: 500; }
.btn-primary:hover { background: #d4b876; transform: translateY(-1px); }
.btn-outline { border-color: #c9a961; color: #c9a961; }
.btn-outline:hover { background: #c9a961; color: #0a0a0f; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ============ Section Header ============ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow { display: block; margin-bottom: 0.75rem; }
.section-header p { color: #b8b6b3; max-width: 600px; margin: 0.75rem auto 0; }

/* ============ Gem Grid ============ */
.gem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.gem-card {
  background: #14141c;
  border: 1px solid rgba(201, 169, 97, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.gem-card:hover {
  border-color: rgba(201, 169, 97, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.gem-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a0a0f;
  overflow: hidden;
}
.gem-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gem-card:hover .gem-card-image img { transform: scale(1.05); }
.gem-card-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(201, 169, 97, 0.95);
  color: #0a0a0f;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.gem-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.gem-card-type { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: #c9a961; margin-bottom: 0.5rem; }
.gem-card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin-bottom: 0.5rem; color: #e8e6e3; }
.gem-card-specs { font-size: 0.85rem; color: #8a8884; margin-bottom: 1rem; }
.gem-card-price { font-size: 1.1rem; color: #c9a961; margin-top: auto; font-weight: 500; }

/* ============ Filters ============ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: #14141c;
  border: 1px solid rgba(201, 169, 97, 0.1);
}
.filter-group { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 160px; }
.filter-group label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #c9a961; }
.filter-group select, .filter-group input {
  background: #0a0a0f;
  border: 1px solid rgba(201, 169, 97, 0.2);
  color: #e8e6e3;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
}
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: #c9a961; }
.filter-reset {
  align-self: flex-end;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(201, 169, 97, 0.4);
  color: #c9a961;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.filter-reset:hover { background: rgba(201, 169, 97, 0.1); }

/* ============ Gem Detail ============ */
.gem-detail { padding: 3rem 0; }
.gem-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
@media (max-width: 880px) { .gem-detail-grid { grid-template-columns: 1fr; gap: 2rem; } }
.gem-detail-images { position: static; }
.gem-detail-main-image {
  aspect-ratio: 1 / 1;
  background: #14141c;
  border: 1px solid rgba(201, 169, 97, 0.15);
  overflow: hidden;
}
.gem-detail-main-image img { width: 100%; height: 100%; object-fit: cover; }
.gem-detail-thumbs { display: flex; gap: 0.75rem; margin-top: 1rem; }
.gem-detail-thumbs button {
  width: 70px; height: 70px;
  border: 1px solid rgba(201, 169, 97, 0.2);
  overflow: hidden;
  padding: 0;
}
.gem-detail-thumbs button.active { border-color: #c9a961; }
.gem-detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gem-detail-info h1 { margin-bottom: 0.5rem; }
.gem-detail-id { font-size: 0.85rem; letter-spacing: 0.15em; color: #8a8884; margin-bottom: 2rem; }
.gem-detail-price { font-size: 2rem; color: #c9a961; font-family: 'Cormorant Garamond', serif; margin-bottom: 2rem; }
.gem-detail-desc { color: #b8b6b3; margin-bottom: 2.5rem; line-height: 1.8; }
.spec-table { width: 100%; margin-bottom: 2.5rem; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid rgba(201, 169, 97, 0.1); }
.spec-table td { padding: 0.85rem 0; font-size: 0.95rem; }
.spec-table td:first-child { color: #8a8884; width: 40%; letter-spacing: 0.05em; }
.spec-table td:last-child { color: #e8e6e3; }
.gem-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.gem-actions .btn { flex: 1; min-width: 200px; text-align: center; }

/* ============ Forms ============ */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #c9a961; }
.form-field input, .form-field textarea, .form-field select {
  background: #14141c;
  border: 1px solid rgba(201, 169, 97, 0.2);
  color: #e8e6e3;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: #c9a961; }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: #8a8884; margin-top: 1rem; text-align: center; }

/* ============ About / Static pages ============ */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin-bottom: 1.2rem; color: #b8b6b3; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; color: #c9a961; }

/* ============ Footer ============ */
.footer {
  background: #06060a;
  border-top: 1px solid rgba(201, 169, 97, 0.1);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: #c9a961; margin-bottom: 1rem; font-weight: 600; }
.footer p, .footer li { color: #8a8884; font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer ul { list-style: none; }
.footer a:hover { color: #c9a961; }
.footer-bottom { border-top: 1px solid rgba(201, 169, 97, 0.1); padding-top: 1.5rem; text-align: center; color: #6a6864; font-size: 0.85rem; }

/* ============ Utility ============ */
.empty-state { text-align: center; padding: 4rem 1rem; color: #8a8884; }
.loading { text-align: center; padding: 4rem 1rem; color: #c9a961; }
.success-message { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac; padding: 1rem; margin-top: 1rem; text-align: center; }
