/* ═══════════════════════════════════════════════════════════════
   GEM LUXE — Premium Design System (Vide Infra Inspired)
   Ultra-luxury, minimal editorial presentation.
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@200;300;400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── Color Palette ── */
  --color-midnight:       #0d0d12;
  --color-charcoal:       #13131a;
  --color-gold:           #c9a96e;
  --color-gold-light:     #dcc48e;
  --color-ivory:          #f5f0e8;
  --color-ivory-dim:      #e5dfd6;
  
  /* ── Typography ── */
  --font-serif:           'Cormorant Garamond', 'Georgia', serif;
  --font-sans:            'Inter', sans-serif;

  --fs-hero:              clamp(3rem, 8vw, 6.5rem);
  --fs-section-title:     clamp(2.5rem, 5vw, 4.2rem);
  --fs-body:              1rem;
  --fs-small:             0.875rem;

  --lh-tight:             1.05;
  --lh-snug:              1.3;
  --lh-body:              1.65;

  /* ── Layout & Spacing ── */
  --container-max:        1400px;
  --container-pad:        clamp(20px, 6vw, 100px);
  --header-height:        100px;
  --radius-md:            12px;
  --radius-lg:            24px;

  /* ── Transitions & Eases ── */
  --ease-out-expo:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart:       cubic-bezier(0.25, 1, 0.5, 1);
  
  /* ── Ambient Spotlight ── */
  --mouse-x:              50%;
  --mouse-y:              50%;
}

/* ═══════════════════════════════════════════════════════════════
   2. RESET & GLOBAL SETUP
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--color-ivory);
  background-color: var(--color-midnight);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hide Default Cursor when custom cursor is active */
html.custom-cursor-enabled,
html.custom-cursor-enabled * {
  cursor: none !important;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--lh-tight);
}

/* ═══════════════════════════════════════════════════════════════
   3. CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  display: none; /* Enabled via JS on fine pointer devices */
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background-color: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  transition: transform 0.2s var(--ease-out-expo), opacity 0.2s ease;
}

.cursor-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 50%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 
    width 0.4s var(--ease-out-expo), 
    height 0.4s var(--ease-out-expo), 
    margin 0.4s var(--ease-out-expo), 
    background-color 0.3s ease, 
    border-color 0.3s ease;
}

.cursor-text {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-midnight);
}

/* Hover States */
.custom-cursor.hover-active .cursor-ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: var(--color-gold);
}

.custom-cursor.has-text .cursor-ring {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  background-color: var(--color-gold);
  border-color: transparent;
}

.custom-cursor.has-text .cursor-text {
  display: block;
}

.custom-cursor.has-text .cursor-dot {
  opacity: 0;
  transform: scale(0);
}

/* ═══════════════════════════════════════════════════════════════
   4. LAYOUT SYSTEM & GRID
   ═══════════════════════════════════════════════════════════════ */
.container-h {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -20px;
  margin-right: -20px;
}

.row--pad {
  padding-top: 40px;
  padding-bottom: 40px;
}

.col {
  flex: 1 1 0;
  padding-left: 20px;
  padding-right: 20px;
}

.col--md-10 { flex: 0 0 83.33%; max-width: 83.33%; }
.col--md-8 { flex: 0 0 66.66%; max-width: 66.66%; }
.col--md-7 { flex: 0 0 58.33%; max-width: 58.33%; }
.col--md-6 { flex: 0 0 50%; max-width: 50%; }
.col--md-5 { flex: 0 0 41.66%; max-width: 41.66%; }
.col--md-4 { flex: 0 0 33.33%; max-width: 33.33%; }
.col--md-3 { flex: 0 0 25%; max-width: 25%; }

.offset--md-2 { margin-left: 16.66%; }
.offset--md-1 { margin-left: 8.33%; }

@media (max-width: 768px) {
  .col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }
  .row--pad {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   5. DYNAMIC THEMING
   ═══════════════════════════════════════════════════════════════ */
.ui-background {
  transition: background-color 0.8s var(--ease-out-expo), color 0.8s var(--ease-out-expo);
}

.ui-dark {
  --t-background: var(--color-midnight);
  --t-text: var(--color-ivory-dim);
  --t-heading: var(--color-ivory);
  --t-primary: var(--color-gold);
  --t-line: rgba(245, 240, 232, 0.08);
  background-color: var(--t-background);
  color: var(--t-text);
}

.ui-light {
  --t-background: var(--color-ivory);
  --t-text: var(--color-midnight);
  --t-heading: var(--color-midnight);
  --t-primary: var(--color-midnight);
  --t-line: rgba(13, 13, 18, 0.08);
  background-color: var(--t-background);
  color: var(--t-text);
}

/* ═══════════════════════════════════════════════════════════════
   6. SCROLL REVEAL (TEXT OVERFLOW MASKS)
   ═══════════════════════════════════════════════════════════════ */
.reveal-container {
  overflow: hidden;
  display: block;
}

.reveal-text, .reveal-text-delayed {
  display: block;
  transform: translateY(102%);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.reveal-text-delayed {
  transition-delay: 0.25s;
}

.reveal-text.visible,
.reveal-text-delayed.visible {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   7. ANIMATED BUTTONS & CLONED LINKS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  height: 48px;
  padding: 0 32px;
  border-radius: 24px;
  transition: color 0.6s var(--ease-out-expo), background-color 0.6s var(--ease-out-expo);
}

.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-midnight);
}

.btn--primary:hover {
  background-color: var(--color-gold-light);
}

.btn--secondary {
  background-color: transparent;
  color: var(--t-text);
  border: 1px solid var(--t-line);
}

.btn--secondary:hover {
  background-color: var(--t-text);
  color: var(--t-background);
}

.btn--link {
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

/* Cloned animation logic */
.btn--cloned .btn__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 20px; /* Exact height for single line of text */
  overflow: hidden;
}

.btn--cloned .btn__content {
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.btn--cloned .btn__content:nth-child(2) {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  pointer-events: none;
  user-select: none;
}

.btn--cloned:hover .btn__content {
  transform: translateY(-100%);
}

/* ═══════════════════════════════════════════════════════════════
   8. HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: height 0.4s var(--ease-out-expo), background-color 0.4s var(--ease-out-expo);
}

.header--sticky.scrolled {
  height: 80px;
  background-color: rgba(13, 13, 18, 0.85);
  backdrop-filter: blur(20px);
}

.header__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.col--logo {
  flex: 0 0 auto;
}

.logo-img {
  height: 24px;
}

.col--dropdown-trigger {
  flex: 0 0 auto;
  margin-left: 60px;
}

.col--nav {
  flex: 0 0 auto;
}

.header__nav__list {
  display: flex;
  gap: 40px;
}

/* Mobile Toggle */
.menu-toggle {
  background: none;
  border: none;
  width: 24px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-ivory);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu-toggle.active span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   9. CATEGORIES DROPDOWN DRAWER
   ═══════════════════════════════════════════════════════════════ */
.menu-dropdown {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  z-index: 990;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.menu-dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-dropdown__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 13, 18, 0.9);
  backdrop-filter: blur(25px);
  z-index: 1;
}

.menu-dropdown__content {
  position: relative;
  width: 100%;
  background-color: var(--color-midnight);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0;
  z-index: 2;
  transform: translateY(-20px);
  transition: transform 0.4s var(--ease-out-expo);
}

.menu-dropdown.is-open .menu-dropdown__content {
  transform: translateY(0);
}

.dropdown-links-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dropdown-link-item {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.8rem);
  color: rgba(245, 240, 232, 0.3);
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.dropdown-link-item:hover {
  color: var(--color-gold);
  padding-left: 15px;
}

.col--menu-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-box {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background-color: rgba(0, 0, 0, 0.2);
  position: relative;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out-expo);
}

.preview-img.active {
  opacity: 1;
  transform: scale(1);
}

body.menu-lock {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   10. HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(13, 13, 18, 0.5) 0%, var(--color-midnight) 100%);
}

.hero .intro {
  margin-top: 60px;
  width: 100%;
}

.text--h1 {
  font-size: var(--fs-hero);
  margin-bottom: 20px;
}

.text--color-primary {
  color: var(--color-gold);
}

.text--t1 {
  font-size: 1.8rem;
  line-height: var(--lh-snug);
  margin-bottom: 30px;
  color: var(--color-ivory-dim);
}

.hero-cta-wrapper {
  margin-top: 40px;
}

/* SVG Geometric Art */
.hero-decor-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-svg-decor {
  opacity: 0.85;
}

.decor-circle {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transform-origin: center;
  animation: drawStroke 2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.decor-circle-1 {
  animation-delay: 0.3s;
}

.decor-circle-2 {
  animation-delay: 0.6s;
}

.decor-diamond {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawStroke 2s forwards cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: 0.9s;
}

.decor-dot-center {
  opacity: 0;
  animation: fadeIn 1s forwards ease;
  animation-delay: 1.5s;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(245, 240, 232, 0.3);
  border-radius: 12px;
}

.scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollAnim 1.8s infinite ease-in-out;
}

@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  80% { transform: translateY(16px); opacity: 0; }
  100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   11. TRUST BAR
   ═══════════════════════════════════════════════════════════════ */
.trust-bar {
  border-top: 1px solid var(--t-line);
  border-bottom: 1px solid var(--t-line);
}

.trust-bar__row {
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: 4rem;
  color: var(--t-heading);
}

.stat-label {
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--t-text);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   12. GALLERY SECTION (STAGGERED GRID)
   ═══════════════════════════════════════════════════════════════ */
.gallery {
  padding: 120px 0;
}

.section-subtitle {
  font-size: 2.2rem;
  line-height: var(--lh-snug);
  margin-top: 20px;
  margin-bottom: 60px;
  color: var(--t-text);
  max-width: 700px;
}

.gallery-staggered-grid {
  display: flex;
  flex-wrap: wrap;
}

.gem-card-col {
  margin-bottom: 80px;
}

/* Stagger every second column downward (Vide Infra project style) */
@media (min-width: 769px) {
  .gem-card-col:nth-child(even) {
    transform: translateY(60px);
  }
}

.gem-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.6s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.gem-card:hover {
  transform: translateY(-8px);
}

.gem-image-wrapper {
  position: relative;
  height: 380px;
  overflow: hidden;
  background-color: #000;
}

.gem-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}

.gem-card:hover .gem-image-wrapper img {
  transform: scale(1.05);
}

.gem-info {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gem-specs {
  display: flex;
  gap: 8px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.gem-title {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: #fff;
}

.gem-desc {
  font-size: 1.5rem;
  line-height: var(--lh-snug);
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 24px;
}

.gem-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}

.price-label {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
}

/* ═══════════════════════════════════════════════════════════════
   13. ABOUT / CURATOR SECTION
   ═══════════════════════════════════════════════════════════════ */
.about {
  padding: 140px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.about-image-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text-content p {
  margin-bottom: 24px;
  color: var(--color-ivory-dim);
}

.text--lead {
  font-size: 2.2rem;
  line-height: var(--lh-snug);
  color: inherit;
}

.is-hidden {
  display: none !important;
}

.credentials-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.credentials-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ivory-dim);
}

.credentials-list li span {
  color: var(--color-gold);
  font-weight: 600;
}

@media (max-width: 768px) {
  .credentials-list {
    grid-template-columns: 1fr;
  }
  .about-image-col {
    margin-bottom: 40px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   14. CONTACT / CONSULTATION
   ═══════════════════════════════════════════════════════════════ */
.contact {
  padding: 160px 0;
  text-align: center;
}

.contact-description {
  margin: 30px auto;
  max-width: 760px;
}

.contact-cta-wrapper {
  margin-top: 40px;
}

.contact-details-row {
  margin-top: 60px;
  border-top: 1px solid var(--t-line);
  padding-top: 60px !important;
}

.contact-details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-details-label {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 0;
  display: block;
}

.contact-details-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: var(--lh-snug);
  color: var(--t-text);
  margin-bottom: 0;
  display: block;
}

.contact-details-value a {
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.contact-details-value a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.contact-details-value a:hover {
  color: var(--color-gold);
}

.contact-details-value a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 768px) {
  .contact-details-col:not(:last-child) {
    margin-bottom: 40px;
  }
  .contact-details-row {
    margin-top: 40px;
    padding-top: 40px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   15. FOOTER
   ═══════════════════════════════════════════════════════════════ */
#footer {
  padding: 60px 0;
  border-top: 1px solid var(--t-line);
}

#footer a {
  transition: color 0.3s ease;
}

#footer a:hover {
  color: var(--color-gold);
}

.footer-row {
  display: flex;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   16. AMBIENT BACKGROUND GLOW
   ═══════════════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background: 
    radial-gradient(
      800px circle at var(--mouse-x) var(--mouse-y),
      rgba(201, 169, 110, 0.05) 0%,
      transparent 100%
    );
  pointer-events: none;
}

/* Ambient line highlights on body */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -4;
  background-color: var(--color-midnight);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   17. PAGE LOADER STYLING
   ═══════════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  background-color: var(--color-midnight);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s var(--ease-out-expo);
}

.loader-content {
  text-align: center;
  width: 200px;
}

.loader-logo {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  display: block;
  margin-bottom: 20px;
  animation: pulseLogo 2s infinite ease-in-out;
}

.loader-line {
  height: 1px;
  background-color: rgba(201, 169, 110, 0.2);
  position: relative;
  overflow: hidden;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background-color: var(--color-gold);
  animation: loadingBar 1.2s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes loadingBar {
  0% { left: -50%; }
  100% { left: 100%; }
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   18. MODAL DIALOGUE
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 13, 18, 0.85);
  backdrop-filter: blur(20px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 90%;
  max-width: 540px;
  background-color: var(--color-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 3rem;
  color: rgba(245, 240, 232, 0.5);
  transition: color 0.3s;
  line-height: 1;
}

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

.modal-title {
  margin-bottom: 8px;
}

.modal-subtitle {
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  color: var(--color-gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 1.4rem;
  color: var(--color-ivory);
  transition: border-color 0.3s, background-color 0.3s;
  outline: none;
}

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

.modal-form button[type="submit"] {
  margin-top: 10px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   19. RESPONSIVE REFINEMENTS & UTILITIES (iPhones & Androids)
   ═══════════════════════════════════════════════════════════════ */

/* ── Visibility & Hidden States ── */
@media (max-width: 768px) {
  .is-hidden--sm-down {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .is-hidden--md-up {
    display: none !important;
  }
}

/* ── Spacing Utilities ── */
.mt-auto { margin-top: auto !important; }
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 10px !important; }
.pt-2 { padding-top: 20px !important; }
.pt-3 { padding-top: 30px !important; }
.pt-4 { padding-top: 40px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 10px !important; }
.pb-2 { padding-bottom: 20px !important; }
.pb-3 { padding-bottom: 30px !important; }
.pb-4 { padding-bottom: 40px !important; }

@media (min-width: 769px) {
  .pt-0\:md { padding-top: 0 !important; }
  .pt-1\:md { padding-top: 10px !important; }
  .pt-2\:md { padding-top: 20px !important; }
  .pt-3\:md { padding-top: 30px !important; }
  .pt-4\:md { padding-top: 40px !important; }

  .pb-0\:md { padding-bottom: 0 !important; }
  .pb-1\:md { padding-bottom: 10px !important; }
  .pb-2\:md { padding-bottom: 20px !important; }
  .pb-3\:md { padding-bottom: 30px !important; }
  .pb-4\:md { padding-bottom: 40px !important; }
}

/* ── Alignment Utilities ── */
.text--center { text-align: center !important; }
.text--right { text-align: right !important; }
.text--left { text-align: left !important; }

@media (min-width: 769px) {
  .text--right\:md { text-align: right !important; }
  .text--left\:md { text-align: left !important; }
  .text--center\:md { text-align: center !important; }
}

/* ── Mobile Layout Adjustments (iPhone 12-17 & Android) ── */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --container-pad: 20px;
  }

  .header {
    height: 70px;
  }

  .header--sticky.scrolled {
    height: 60px;
  }

  .logo-img {
    height: 18px;
  }

  /* Section Padding */
  .gallery, .about, .contact {
    padding: 80px 0;
  }

  /* Hero Adjustments */
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
  }

  .hero .intro {
    margin-top: 30px;
  }

  .hero-footer-row {
    flex-direction: column;
    gap: 30px;
  }

  .hero-decor-col {
    justify-content: center !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  /* Trust Bar 2x2 Grid */
  .trust-bar__row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .stat-number {
    font-size: 3rem !important;
  }

  /* Gemstone Cards Stacking */
  .gem-card-col {
    margin-bottom: 40px;
  }

  .gem-image-wrapper {
    height: 280px !important;
  }

  /* Dropdown Categories Drawer */
  .menu-dropdown {
    top: 70px;
    height: calc(100vh - 70px);
    height: calc(100svh - 70px);
  }

  .menu-dropdown__content {
    padding: 40px 0;
    max-height: 100%;
    overflow-y: auto;
  }

  .dropdown-links-list {
    gap: 20px;
  }

  /* Modal Form Layout */
  .modal-box {
    padding: 30px 20px !important;
    width: 92%;
  }

  .modal-title {
    font-size: 2.2rem !important;
  }
}

/* ── Extra Small Devices (Under 360px - e.g. iPhone SE / small Androids) ── */
@media (max-width: 360px) {
  :root {
    --container-pad: 15px;
  }

  .text--h1 {
    font-size: 2.8rem !important;
  }

  .stat-number {
    font-size: 2.6rem !important;
  }

  .gem-image-wrapper {
    height: 230px !important;
  }
}