/* ═══════════════════════════════════════════════════════
   CLOCKWORK CREATIONS – shared.css
   Import this in every page
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=IM+Fell+English:ital@0;1&family=Cinzel:wght@400;600;700&family=Cinzel+Decorative:wght@400;700&display=swap');

/* ─── TOKENS ─── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e8cb7a;
  --gold-dark:   #8a6320;
  --parchment:   #e8dfc0;
  --bg-dark:     #0d0b09;
  --bg-panel:    #13100c;
  --bg-card:     #1a1510;
  --text-body:   #c8bfa8;
  --text-muted:  #7a6e5e;
  --border:      #3d3020;
  --shadow-gold: 0 0 30px rgba(201,168,76,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-body);
  font-family: 'IM Fell English', Georgia, serif;
  overflow-x: hidden;
}

/* ─── NOISE ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: 0.45;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ─── ORNAMENT LINE ─── */
.ornament-line {
  display: flex; align-items: center; gap: 12px; font-size: 0;
  color: var(--gold-dark);
}
.ornament-line::before,
.ornament-line::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark) 40%, var(--gold) 50%, var(--gold-dark) 60%, transparent);
}
.ornament-line span { font-size: 18px; color: var(--gold); flex-shrink: 0; }

/* ─── NAVIGATION ─── */
.nav-ornament {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold) 50%, var(--gold-dark) 80%, transparent 100%);
}

nav {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(10,8,6,0.98) 0%, rgba(13,11,9,0.94) 100%);
  border-bottom: 1px solid var(--gold-dark);
  box-shadow: 0 2px 40px rgba(0,0,0,0.8), var(--shadow-gold);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 88px;
}

/* Logo image spin */
.logo-icon-wrap {
  width: 56px; height: 56px; flex-shrink: 0;
  animation: spin-slow 20s linear infinite;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
}
.logo-img { width: 56px; height: 56px; object-fit: contain; display: block; }
.logo-icon-wrap .logo-icon { width: 56px; height: 56px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
  animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.logo-text .line1 {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 28px; color: var(--gold-light);
  text-shadow: 0 0 20px rgba(201,168,76,0.5);
  display: block; line-height: 1;
}
.logo-text .line2 {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 24px; color: var(--gold); display: block;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-divider { width: 1px; height: 20px; background: var(--gold-dark); opacity: 0.6; margin: 0 4px; }
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--text-body); text-decoration: none;
  padding: 8px 18px; position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }

/* ─── PAGE HEADER (subpages) ─── */
.page-hero {
  padding: 160px 60px 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(40,25,8,0.7) 0%, transparent 70%);
  border-bottom: 1px solid var(--gold-dark);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark) 30%, var(--gold) 50%, var(--gold-dark) 70%, transparent);
}
.page-tag {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.4em;
  color: var(--gold-dark); text-transform: uppercase;
  display: block; margin-bottom: 16px;
}
.page-title {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(44px, 7vw, 80px);
  color: var(--gold-light);
  text-shadow: 0 0 50px rgba(201,168,76,0.35), 2px 2px 0 rgba(0,0,0,0.7);
  margin-bottom: 20px;
}
.page-subtitle {
  font-family: 'IM Fell English', serif;
  font-style: italic; font-size: 16px; line-height: 1.8;
  color: var(--text-muted); max-width: 600px; margin: 0 auto;
}

/* ─── SECTION SHARED ─── */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 80px 60px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.4em; color: var(--gold-dark);
  text-transform: uppercase; display: block; margin-bottom: 16px;
}
.section-title {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(32px, 4vw, 52px); color: var(--gold-light);
  text-shadow: 0 0 30px rgba(201,168,76,0.25); margin-bottom: 20px;
}
.section-desc {
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 15px; color: var(--text-muted); max-width: 560px;
  margin: 16px auto 0; line-height: 1.8;
}

/* ─── BUTTONS ─── */
.btn-primary {
  font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.2em;
  color: var(--gold-light); background: transparent;
  border: 1px solid var(--gold); padding: 14px 44px;
  cursor: pointer; text-decoration: none; position: relative; display: inline-block;
  transition: all 0.3s;
}
.btn-primary::before { content: ''; position: absolute; top: -3px; left: -3px; width: 10px; height: 10px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.btn-primary::after  { content: ''; position: absolute; bottom: -3px; right: -3px; width: 10px; height: 10px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.btn-primary:hover { background: rgba(201,168,76,0.08); box-shadow: 0 0 30px rgba(201,168,76,0.2); letter-spacing: 0.25em; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--gold-dark);
  padding: 40px 60px; text-align: center;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-logo { font-family: 'UnifrakturMaguntia', cursive; font-size: 28px; color: var(--gold-dark); margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 32px; list-style: none; margin-bottom: 24px; }
.footer-links a { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.15em; color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 12px; color: var(--text-muted); font-style: italic; }

/* ─── Footer social icons ─── */
.footer-socials {
  display: flex; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.social-icon {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}
.social-icon:hover { color: var(--gold); transform: translateY(-3px); }
.social-icon svg { width: 26px; height: 26px; }
.social-icon span {
  font-family: 'Cinzel', serif;
  font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .section-inner { padding: 60px 24px; }
  .page-hero { padding: 130px 24px 60px; }
}
