@charset "UTF-8";

:root {
  --color-black: #111111;
  --color-teal-border: #1D5F63;
  --color-teal-accent: #2F7E83;
  --color-teal-soft: #E8F3F2;
  --color-travertine: #F7F6F2;
  --color-ice: #F5FAFA;
  --color-gold: #C29B38;
  --color-leather-teal: #143F43;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #FFFFFF;
  color: var(--color-black);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.font-cormorant {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-cinzel {
  font-family: 'Cinzel', Georgia, serif;
}

.font-instrument {
  font-family: 'Instrument Serif', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #FFFFFF;
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal-border);
}

/* Top Announcement Marquee */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* Product Card Hover & Secondary Photo Crossfade */
.product-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease;
}
.product-card:hover {
  border-color: var(--color-teal-accent) !important;
  box-shadow: 0 16px 36px -12px rgba(29, 95, 99, 0.18);
}
.product-img-wrap {
  overflow: hidden;
  position: relative;
}
.product-img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.product-img-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img-secondary {
  opacity: 1;
  transform: scale(1.06);
}
.product-card:hover .product-img {
  transform: scale(1.06);
}

/* Slide-Over Drawers */
.mhl-drawer-right {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100dvh;
}
.mhl-drawer-right.open {
  transform: translateX(0) !important;
}

.mhl-drawer-left {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100dvh;
}
.mhl-drawer-left.open {
  transform: translateX(0) !important;
}

/* Custom Checkbox */
.filter-checkbox {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #9CA3AF;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.filter-checkbox:checked {
  background-color: var(--color-teal-border);
  border-color: var(--color-teal-border);
}
.filter-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 10px;
  top: -1px;
  left: 2px;
  font-weight: bold;
}

/* Interactive Stone Links inside Product Descriptions */
.stone-lexicon-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background-color: var(--color-teal-soft);
  color: var(--color-teal-border);
  border-bottom: 1px solid var(--color-teal-accent);
  padding: 0 5px;
  margin: 0 1px;
  font-weight: 600;
  font-size: 0.94em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stone-lexicon-link:hover {
  background-color: var(--color-teal-border);
  color: #FFFFFF;
}

/* Long-Form Journal & Policy Typography */
.article-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--color-black);
  margin: 2.25rem 0 0.85rem;
  line-height: 1.2;
}
.article-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-teal-border);
  margin: 1.65rem 0 0.6rem;
  line-height: 1.25;
}
.article-body p {
  font-size: 0.94rem;
  line-height: 1.85;
  color: #2A2E33;
  margin-bottom: 1.1rem;
  font-weight: 300;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}
.article-body ul {
  list-style-type: disc;
}
.article-body ol {
  list-style-type: decimal;
}
.article-body li {
  font-size: 0.92rem;
  line-height: 1.78;
  color: #2A2E33;
  margin-bottom: 0.55rem;
  font-weight: 300;
}
.article-body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--color-teal-border);
  background: var(--color-travertine);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--color-black);
}
.article-body a {
  color: var(--color-teal-border);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover {
  color: var(--color-black);
}

/* Prevent iOS zoom on small screens */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Mineral Card Fallback Emblem */
.mineral-fallback {
  background: radial-gradient(circle at 30% 25%, #F5FAFA 0%, #D9ECEB 55%, #B8D8D6 100%);
  color: #164E52;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
