/* ================================================
   DONGLEER — Fine Jewellery
   Direction A: The Noir   (warm black + gold)
   Direction B: The Classique (cool black + platinum)
   ================================================ */

/* === CUSTOM PROPERTIES === */
:root {
  --bg:        #070706;
  --bg2:       #0e0d0a;
  --surf:      #141310;
  --border:    #201e18;
  --accent:    #c9a84c;
  --accent-l:  #dcc570;
  --accent-m:  #7a6530;
  --accent-d:  #3d2e10;
  --text:      #f4f0e8;
  --text2:     #a09070;
  --text3:     #504838;
  --hero-glow: #1c1600;
  --fd: 'Cormorant Garamond', Georgia, serif;
  --fb: 'EB Garamond', Georgia, serif;
  --fl: 'Cinzel', 'Times New Roman', serif;
}

body.dir-b {
  --bg:        #faf6f0;
  --bg2:       #f2ece2;
  --surf:      #e8e0d4;
  --border:    #d4ccc0;
  --accent:    #8a6830;
  --accent-l:  #a07838;
  --accent-m:  #c9a84c;
  --accent-d:  #6a5020;
  --text:      #1a1510;
  --text2:     #6a5840;
  --text3:     #a09070;
  --hero-glow: #e8d8b0;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.section-label {
  display: inline-block;
  font-family: var(--fl);
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--fd);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 24px;
  text-wrap: pretty;
}
.section-sub {
  font-family: var(--fb);
  font-size: 17px;
  color: var(--text2);
  line-height: 1.85;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-sub { max-width: 560px; margin: 0 auto; }

/* Image placeholder */
.ph {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    var(--surf) 0, var(--surf) 12px,
    var(--bg2) 12px, var(--bg2) 24px
  );
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  text-align: center;
  padding: 20px;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.25; }
  50%       { transform: scaleY(1);   opacity: 0.9; }
}
@keyframes breathe {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.22; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.48s; }

/* === HEADER === */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(7,7,6,.95);
  backdrop-filter: blur(14px);
}
body.dir-b .site-header.scrolled { background: rgba(250,246,240,.97); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}
.header-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
  position: relative;
  z-index: 901;
  line-height: 1;
}
.header-logo:hover { opacity: 0.72; }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
  font-family: var(--fl);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text2);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
  z-index: 901;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--text);
  transition: all 0.3s;
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mob-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px;
}
.mob-logo { font-family: var(--fl); font-size: 13px; letter-spacing: 6px; color: var(--text); }
.mob-close {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text2);
  line-height: 1;
  cursor: pointer;
}
.mobile-menu a {
  font-family: var(--fd);
  font-size: 38px;
  font-style: italic;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, var(--hero-glow) 0%, var(--bg) 64%);
}
.hero-watermark {
  position: absolute;
  width: min(580px, 78vmin);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-d);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--fl);
  font-size: 10px;
  letter-spacing: 7px;
  color: var(--accent-m);
  margin-bottom: 32px;
  animation: fadeUp 1s ease both;
}
.hero-logo-script {
  text-align: center;
  margin-bottom: 36px;
  animation: fadeUp 1s ease 0.12s both;
}
.hero-script-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(58px, 9vw, 96px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: 2px;
}
.hero-script-tag {
  font-family: var(--fl);
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--accent-m);
  margin-top: 12px;
}
.hero-title {
  font-family: var(--fd);
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.02;
  color: var(--text);
  margin-bottom: 28px;
  animation: fadeUp 1s ease 0.22s both;
  text-wrap: pretty;
}
.hero-sub {
  font-family: var(--fb);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 52px;
  animation: fadeUp 1s ease 0.38s both;
}
.hero-cta {
  display: inline-block;
  font-family: var(--fl);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--accent);
  text-decoration: none;
  padding: 15px 44px;
  border: 1px solid var(--accent);
  transition: background 0.35s, color 0.35s;
  animation: fadeUp 1s ease 0.52s both;
}
.hero-cta:hover { background: var(--accent); color: var(--bg); }

.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeUp 1s ease 0.72s both;
}
.hero-scroll-label {
  font-family: var(--fl);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--text3);
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform-origin: top;
  animation: scrollPulse 2.5s ease-in-out infinite;
}

/* === ABOUT === */
.about { padding: 120px 0; background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image { height: 540px; }
.about-rule { width: 40px; height: 1px; background: var(--accent); margin-bottom: 24px; }
.about-body { font-family: var(--fb); font-size: 17px; color: var(--text2); line-height: 1.9; }
.about-pullquote {
  margin: 36px 0;
  padding-left: 24px;
  border-left: 1px solid var(--accent);
  font-family: var(--fd);
  font-size: 26px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  font-weight: 300;
}

/* === COLLECTION === */
.collection { padding: 120px 0; background: var(--bg2); }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.c-card { background: var(--surf); transition: transform 0.45s ease; }
.c-card:hover { transform: translateY(-5px); }
.c-img { height: 280px; }
.c-body { padding: 26px; }
.c-name {
  font-family: var(--fd);
  font-size: 22px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 8px;
}
.c-range {
  font-family: var(--fl);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 10px;
}
.c-desc { font-family: var(--fb); font-size: 14px; color: var(--text2); line-height: 1.65; }

/* === GEMSTONES === */
.gemstones { padding: 120px 0; background: var(--bg); }
.gems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gem-card { position: relative; height: 440px; overflow: hidden; }
.gem-ph {
  position: absolute; inset: 0;
  transition: transform 0.65s ease;
}
.gem-card:hover .gem-ph { transform: scale(1.05); }
.gem-ruby {
  background: radial-gradient(ellipse at 50% 65%, #8b1212 0%, #3a0606 50%, #180203 100%);
}
.gem-sapphire {
  background: radial-gradient(ellipse at 50% 65%, #121888 0%, #060670 50%, #010212 100%);
}
.gem-emerald {
  background: radial-gradient(ellipse at 50% 65%, #0e5c2a 0%, #063b18 50%, #021408 100%);
}
.gem-tanzanite {
  background: radial-gradient(ellipse at 50% 65%, #5012a8 0%, #300868 50%, #120224 100%);
}
.gem-ph::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px,
    transparent 1px, transparent 22px
  );
}
.gem-ph::after {
  content: attr(data-ph);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.12);
  letter-spacing: 1px;
  white-space: nowrap;
}
.gem-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.88), transparent);
}
.gem-name {
  font-family: var(--fd);
  font-size: 30px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
}
.gem-origin { font-family: var(--fl); font-size: 9px; letter-spacing: 3px; color: var(--text2); }

/* === CRAFTSMANSHIP === */
.craftsmanship { padding: 120px 0; background: var(--bg2); }
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.craft-step { padding: 48px 36px; border-right: 1px solid var(--border); }
.craft-step:last-child { border-right: none; }
.craft-num {
  font-family: var(--fd);
  font-size: 60px;
  font-style: italic;
  color: var(--accent);
  opacity: 0.28;
  line-height: 1;
  margin-bottom: 28px;
}
.craft-name { font-family: var(--fd); font-size: 22px; font-style: italic; color: var(--text); margin-bottom: 16px; }
.craft-body { font-family: var(--fb); font-size: 15px; color: var(--text2); line-height: 1.9; }

/* === CERTIFICATIONS === */
.certifications {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cert-row { display: flex; justify-content: center; align-items: center; gap: 80px; flex-wrap: wrap; }
.cert-item { text-align: center; }
.cert-icon {
  width: 58px; height: 58px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--fl);
  font-size: 11px; letter-spacing: 1px;
  color: var(--accent);
}
.cert-name { font-family: var(--fl); font-size: 10px; letter-spacing: 3px; color: var(--text); margin-bottom: 8px; }
.cert-desc { font-family: var(--fb); font-size: 13px; color: var(--text2); max-width: 160px; line-height: 1.65; }

/* === GALLERY === */
.gallery { padding: 120px 0; background: var(--bg2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 270px 270px 300px;
  gap: 4px;
}
.g1 { grid-column: 1 / 6;  grid-row: 1 / 3; }
.g2 { grid-column: 6 / 13; grid-row: 1; }
.g3 { grid-column: 6 / 10; grid-row: 2; }
.g4 { grid-column: 10 / 13; grid-row: 2; }
.g5 { grid-column: 1 / 5;  grid-row: 3; }
.g6 { grid-column: 5 / 9;  grid-row: 3; }
.g7 { grid-column: 9 / 13; grid-row: 3; }
.gallery-grid .ph { transition: opacity 0.35s; }
.gallery-grid .ph:hover { opacity: 0.75; }

/* === CONTACT === */
.contact { padding: 120px 0; background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-rule { width: 40px; height: 1px; background: var(--accent); margin: 28px 0; }
.contact-address { font-family: var(--fb); font-size: 16px; color: var(--text2); line-height: 2.2; font-style: normal; }

.c-form { display: flex; flex-direction: column; gap: 28px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { display: flex; flex-direction: column; gap: 10px; }
.f-label { font-family: var(--fl); font-size: 9px; letter-spacing: 3px; color: var(--text2); }
.f-input, .f-select, .f-textarea {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: var(--fb);
  font-size: 17px;
  padding: 14px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.f-input:focus, .f-select:focus, .f-textarea:focus { border-color: var(--accent); }
.f-textarea { height: 150px; resize: vertical; }
.f-select-wrap { position: relative; }
.f-select-wrap::after {
  content: '↓';
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text2);
  font-size: 13px;
  pointer-events: none;
}
.f-submit {
  font-family: var(--fl);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 16px 44px;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
  align-self: flex-start;
  text-transform: uppercase;
}
.f-submit:hover { background: transparent; color: var(--accent); }

/* === FOOTER === */
.site-footer { padding: 60px 0; background: var(--bg2); border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: var(--fl); font-size: 13px; letter-spacing: 6px; color: var(--text2); }
.footer-links { display: flex; gap: 36px; }
.footer-links a {
  font-family: var(--fl);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-family: var(--fb); font-size: 13px; color: var(--text3); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-dir-label { font-family: var(--fl); font-size: 9px; letter-spacing: 4px; color: var(--text3); }
.footer-dir-btns { display: flex; gap: 8px; }
.dir-page-btn {
  font-family: var(--fl);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 9px 20px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.dir-page-btn.active { border-color: var(--accent); color: var(--accent); }

/* === TWEAKS PANEL === */
.tweaks-panel {
  display: none;
  position: fixed;
  bottom: 24px; right: 24px;
  width: 284px;
  background: #1a1916;
  border: 1px solid #2a2820;
  z-index: 9999;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
}
body.dir-b .tweaks-panel { background: #f0ebe3; border-color: #d4ccc0; box-shadow: 0 8px 40px rgba(0,0,0,0.12); }
body.dir-b .hero-watermark { color: #c9a84c; opacity: 0.18; }
.tp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2820;
}
body.dir-b .tp-head { border-color: #d4ccc0; }
.tp-title { font-family: var(--fl); font-size: 10px; letter-spacing: 5px; color: var(--text); }
.tp-close { background: none; border: none; color: var(--text2); font-size: 18px; line-height: 1; padding: 0; cursor: pointer; }
.tp-body { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.tp-label { font-family: var(--fl); font-size: 9px; letter-spacing: 3px; color: var(--text2); margin-bottom: 10px; }
.dir-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dir-btn {
  padding: 11px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text2);
  font-family: var(--fl);
  font-size: 9px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.dir-btn.active { border-color: var(--accent); color: var(--accent); }
.tp-note { font-family: var(--fb); font-size: 13px; color: var(--text3); line-height: 1.6; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .container { padding: 0 28px; }
  .nav-inner { padding: 24px 28px; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .gems-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-step:nth-child(2) { border-right: none; }
  .craft-step:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .craft-step:nth-child(4) { border-top: 1px solid var(--border); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { height: 380px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .g1,.g2,.g3,.g4,.g5,.g6,.g7 { grid-column: auto; grid-row: auto; min-height: 260px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 20px; }
  .about, .collection, .gemstones, .craftsmanship, .gallery, .contact { padding: 80px 0; }
  .section-header { margin-bottom: 40px; }
  .collection-grid { grid-template-columns: 1fr; }
  .c-img { height: 240px; }
  .gems-grid { grid-template-columns: 1fr 1fr; }
  .gem-card { height: 320px; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-step { border-right: none !important; border-top: 1px solid var(--border); }
  .craft-step:first-child { border-top: none; }
  .certifications { padding: 60px 0; }
  .cert-row { gap: 44px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .g1,.g2,.g3,.g4,.g5,.g6,.g7 { min-height: 220px; }
  .f-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .gems-grid { grid-template-columns: 1fr; }
  .cert-row { gap: 36px; }
  .hero-title { font-size: clamp(42px, 13vw, 72px); }
}
