/* ════════════════════════════════════════════════════════════════
   BASE — reset, color tokens, header, footer, glass card, loading
   spinner. Loaded on every page (home + all detail pages).
   ════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #020617; color: #f7f1e5; line-height: 1.5; overflow-x: hidden }
a { color: inherit }

:root {
  --gold: #d6b36a;
  --gold-light: #e2d2aa;
  --bg-deep: #020617;
  --bg-card: #101010;
  --text-warm: #f7f1e5;
  --text-muted: rgba(247, 241, 229, 0.68);
}

/* ── Section heading pattern (shared by home + detail) ── */
.dg-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--gold-light); font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 0 18px rgba(214, 179, 106, 0.60) }
.dg-heading { margin: 0 0 16px; color: var(--text-warm); font-size: clamp(34px, 5vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.04em }
.dg-desc { max-width: 620px; margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.8 }
.dg-section { padding: 100px 24px; position: relative }
.dg-inner { max-width: 1520px; margin: 0 auto; position: relative; z-index: 1 }
.dg-header-block { max-width: 760px; margin: 0 0 60px; text-align: left }

/* ── Glass card base ── */
.dg-glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.dg-glass:hover { transform: translateY(-8px); border-color: rgba(226, 210, 170, 0.38); box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42) }
.dg-glass::before {
  content: ""; position: absolute; inset: 0; z-index: 4;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 48%, transparent 100%);
  opacity: 0; transform: translateX(-120%); pointer-events: none;
  transition: opacity .45s ease, transform .9s ease;
}
.dg-glass:hover::before { opacity: 1; transform: translateX(120%) }

/* ── Header ── */
.dg-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 99999; width: 100%; padding: 0 20px; pointer-events: none; transition: transform 260ms ease }
.dg-header__inner {
  pointer-events: auto; width: 100%; max-width: 1520px; min-height: 72px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; border-radius: 22px;
  background: rgba(10, 10, 15, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.25); border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 48px rgba(2, 6, 23, 0.1);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.dg-header__brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text-warm); font-size: 22px; font-weight: 800; letter-spacing: 0 }
.dg-header__brand span { color: var(--gold) }
.dg-header__nav { display: flex; align-items: center; gap: 4px }
.dg-header__link { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; color: var(--text-warm); text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 1px; transition: transform 260ms ease, color 260ms ease, background 260ms ease }
.dg-header__link:hover { color: var(--gold-light); background: rgba(255, 255, 255, 0.16); transform: translateY(-2px) }
.dg-header__cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 999px; color: var(--text-warm); background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); text-decoration: none; font-size: 14px; font-weight: 800; white-space: nowrap; transition: transform 260ms ease, background 260ms ease }
.dg-header__cta:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.27); border-color: rgba(255, 255, 255, 0.58) }
.dg-header__toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.30); background: rgba(255, 255, 255, 0.14); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px }
.dg-header__toggle span { display: block; width: 18px; height: 2px; border-radius: 999px; background: var(--text-warm); transition: transform 220ms ease, opacity 220ms ease }
.dg-header--open .dg-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.dg-header--open .dg-header__toggle span:nth-child(2) { opacity: 0 }
.dg-header--open .dg-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }
.dg-header__mobile { pointer-events: auto; display: none; position: absolute; top: 82px; left: 20px; right: 20px; padding: 12px; border-radius: 22px; background: rgba(10, 10, 15, 0.5); border: 1px solid rgba(255, 255, 255, 0.26); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 18px 56px rgba(2, 6, 23, 0.22) }
.dg-header--open .dg-header__mobile { display: flex; flex-direction: column; gap: 8px }
.dg-header__mobile-link, .dg-header__mobile-cta { min-height: 46px; padding: 0 14px; border-radius: 16px; display: flex; align-items: center; color: var(--text-warm); background: rgba(255, 255, 255, 0.12); text-decoration: none; font-size: 15px; font-weight: 750 }
.dg-header__mobile-cta { justify-content: center; background: rgba(255, 255, 255, 0.20) }

/* ── Footer ── */
.dg-footer { background: #020617; padding: 40px 24px; text-align: center; color: var(--text-muted); font-size: 13px }
.dg-footer h2 { color: var(--text-warm); font-size: 28px; font-weight: 700; margin-bottom: 8px }

/* ── Loading overlay (home page only, but kept here as a shared utility) ── */
.dg-loading { position: fixed; inset: 0; z-index: 999999; background: #020617; display: flex; align-items: center; justify-content: center; transition: opacity .6s ease }
.dg-loading.hide { opacity: 0; pointer-events: none }
.dg-loading__inner { text-align: center }
.dg-loading__spinner { width: 48px; height: 48px; margin: 0 auto 22px; border: 2px solid rgba(255, 255, 255, 0.1); border-top-color: var(--gold); border-radius: 50%; animation: dgSpin .8s linear infinite }
.dg-loading__text { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .4em }
@keyframes dgSpin { to { transform: rotate(360deg) } }
@keyframes dgPulse { 0%, 100% { opacity: 0.40; transform: scale(0.94) } 50% { opacity: 1; transform: scale(1.08) } }

@media (max-width: 768px) {
  .dg-header { top: 10px; padding: 0 12px }
  .dg-header__inner { min-height: 58px; padding: 0 14px; border-radius: 20px }
  .dg-header__nav, .dg-header__cta { display: none }
  .dg-header__toggle { display: inline-flex }
  .dg-header__brand { font-size: 18px }
  .dg-section { padding: 60px 14px }
  .dg-header-block { margin-bottom: 36px }
  .dg-header-block .dg-heading { font-size: clamp(28px, 8vw, 40px) }
  .dg-desc { font-size: 14px }
  .dg-footer { padding: 30px 14px }
  .dg-footer h2 { font-size: 22px }
}
@media (max-width: 480px) {
  .dg-section { padding: 50px 12px }
  .dg-header-block .dg-heading { font-size: clamp(24px, 7vw, 32px) }
}
