/* ══════════════════════════════════════════════════════════
   CADENCE CREATURES — MASTER STYLE SHEET (SHARED)
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:       #0E0C09;
  --ink:      #1C1612;
  --ink-mid:  #252018;
  --ink-soft: #2e2419;
  --gold:     #C9A84C;
  --goldl:    #E8D08A;
  --gold-light: var(--goldl); /* Compatibility alias */
  --petal:    #E8A0B0;
  --deep-pink:#C96880;
  --teal:     #5BBFD4;
  --cream:    #FAF6F0;
  --dim:      #C4BCB2;
  --cream-dim: var(--dim); /* Compatibility alias */
  --faded:    #7A6B58;
  --forest:   #6B9E6E;
  --ocean:    #5BBFD4;
  --fantasy:  #9B8AC4;
  --holiday:  #C9614A;
  --space:    #4A7AA8;

  /* Fonts */
  --fd: 'Playfair Display', Georgia, serif;
  --fi: 'IM Fell English', Georgia, serif;
  --fb: 'Tenor Sans', Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--cream); font-family: var(--fb); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* Grain Overlay */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px; opacity: 0.038; pointer-events: none; z-index: 5;
}

/* Common Utils */
.lbl { font-family: var(--fb); font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold); }
.grule { display: inline-block; height: 1px; background: var(--gold); vertical-align: middle; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(0.16, 1, 0.3, 1), transform .9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.on { opacity: 1; transform: translateY(0); }

/* Premium Micro-animations */
@keyframes soft-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76, 0); } 50% { box-shadow: 0 0 15px 2px rgba(201,168,76, 0.15); } }
.btn-p:hover { animation: soft-pulse 2s infinite; }

.hover-lift { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* Common Buttons */
.btn-p { font-family: var(--fb); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 15px 36px; display: inline-block; transition: background .3s; cursor: pointer; text-decoration: none; border: none; }
.btn-p:hover { background: var(--goldl); }
.btn-g { font-family: var(--fb); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); border: 1px solid rgba(201,168,76,.3); padding: 15px 36px; display: inline-block; transition: border-color .3s,color .3s; cursor: pointer; text-decoration: none; background: transparent; }
.btn-g:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════
   NOTIFICATION BAR
   ═══════════════════════════════════ */
.notif-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--ink-soft), var(--ink-mid), var(--ink-soft));
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding: 10px 48px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: transform 0.4s ease;
}
.notif-bar.hidden { transform: translateY(-100%); }
.notif-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--petal); animation: dpulse 2s ease-in-out infinite; }
@keyframes dpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.72)} }
.notif-text { font-family: var(--fb); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim); }
.notif-text strong { color: var(--gold); font-weight: normal; }
.notif-cta { font-family: var(--fb); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 5px 14px; transition: background 0.3s; white-space: nowrap; text-decoration: none; display: inline-block; }
.notif-cta:hover { background: var(--goldl); }
.notif-close { position: absolute; right: 20px; background: none; border: none; color: rgba(201,168,76,0.4); font-size: 16px; cursor: pointer; line-height: 1; padding: 4px 8px; transition: color 0.3s; }
.notif-close:hover { color: var(--gold); }

@media(max-width: 768px) { 
  .notif-bar { padding: 10px 40px 10px 16px; } 
  .notif-long { display: none; } 
}
@media(min-width: 769px) { 
  .notif-short { display: none; } 
}

/* ═══════════════════════════════════
   NAVBAR
   ═══════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(28,22,18,0.97) 0%, transparent 100%);
  transition: background 0.35s ease, top 0.25s ease;
}
nav.nav-scrolled {
  background: rgba(28,22,18,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.nav-brand { display: flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; cursor: pointer; }
.nav-brand:hover .nav-cadence { color: var(--cream); }
.nav-crown-row { display: flex; align-items: center; gap: 7px; margin-bottom: 1px; justify-content: center; }
.nav-cadence { font-family: var(--fd); font-weight: 700; font-size: 17px; letter-spacing: 0.22em; color: var(--goldl); text-transform: uppercase; line-height: 1; text-align: center; }
.nav-dots { display: flex; gap: 3px; margin: 2px 0; justify-content: center; align-items: center; }
.nav-dot { border-radius: 50%; width: 3px; height: 3px; }
.nav-creatures { font-family: var(--fb); font-size: 8.5px; letter-spacing: 0.52em; color: var(--petal); text-transform: uppercase; text-align: center; }

.nav-links { display: flex; gap: 16px; list-style: none; }
.nav-links a { font-family: var(--fb); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); transition: color 0.3s; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta { font-family: var(--fb); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 10px 24px; transition: background 0.3s; text-decoration: none; white-space: nowrap; display: inline-block; }
.nav-cta:hover { background: var(--goldl); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--dim); transition: all 0.2s; }

.mobile-nav {
  display: none; position: fixed; top: 58px; left: 0; right: 0; bottom: 0;
  background: rgba(14,12,9,0.97); backdrop-filter: blur(16px);
  flex-direction: column; gap: 16px; padding: 32px 28px;
  border-top: 1px solid rgba(201,168,76,0.1); z-index: 850;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--fb); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); padding: 10px 0; border-bottom: 1px solid rgba(201,168,76,0.08); transition: color 0.2s; text-decoration: none; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .nav-cta { text-align: center; margin-top: 8px; padding: 14px; }

@media(max-width: 1100px) {
  nav { padding: 12px 22px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
@media(max-width: 768px) {
  nav { padding: 12px 20px; }
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
footer, .site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 64px 48px 40px; position: relative; z-index: 1; }
.ft-inner, .footer-inner { max-width: 1120px; margin: 0 auto; }
.ft-top, .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 70px; margin-bottom: 48px; }

.footer-brand-name { font-family: var(--fd); font-size: 22px; color: var(--gold); line-height: 1.15; margin-bottom: 10px; }
.ft-tl, .footer-tagline { font-family: var(--fi); font-style: italic; font-size: 11.5px; color: rgba(250,246,240,.32); line-height: 1.78; margin-bottom: 22px; text-align: center; }

.ft-soc, .footer-social { display: flex; gap: 14px; justify-content: center; }
.ft-si { width: 33px; height: 33px; border: 1px solid rgba(201,168,76,0.16); display: flex; align-items: center; justify-content: center; font-size: 8.5px; color: var(--dim); transition: all 0.3s; text-decoration: none; }
.ft-si:hover { border-color: var(--gold); color: var(--gold); }

.ft-ct, .footer-col-label { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(201,168,76,0.4); margin-bottom: 14px; display: block; }
.ft-links, .footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.ft-links a, .footer-link { font-size: 12px; color: rgba(196,188,178,0.45); text-decoration: none; transition: color 0.2s; }
.ft-links a:hover, .footer-link:hover { color: var(--gold); }

.ft-bot, .footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ft-bot span, .footer-copy { font-size: 11px; color: rgba(196,188,178,0.25); }
.ft-mem, .footer-memorial { font-family: var(--fi); font-style: italic; font-size: 11px; color: rgba(232,160,176,0.3) !important; }

@media(max-width: 960px) {
  .ft-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .ft-soc { justify-content: center; }
  .ft-bot { justify-content: center; flex-direction: column; }
}

/* ═══════════════════════════════════
   MODAL BASE
   ═══════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: rgba(9,8,6,0.9); backdrop-filter: blur(10px); z-index: 1500; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--ink-mid); max-width: 400px; width: 100%; border: 1px solid rgba(201,168,76,0.18); position: relative; padding: 40px 34px 34px; }
.modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--petal), var(--gold), var(--petal)); }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; cursor: pointer; color: var(--faded); font-size: 20px; line-height: 1; transition: color 0.2s; }

.modal-field { margin-bottom: 12px; text-align: left; }
.modal-field label { display: block; font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.modal-field input { width: 100%; background: var(--ink); border: 1px solid rgba(201,168,76,0.18); color: var(--cream); font-family: var(--fb); font-size: 13px; padding: 10px 13px; outline: none; transition: border-color 0.2s; }

.modal-submit { width: 100%; padding: 14px; font-family: var(--fb); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; margin-top: 6px; background: rgba(232,160,176,0.1); border: 1px solid rgba(232,160,176,0.28); color: var(--petal); transition: all 0.22s; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--ink-mid); border: 1px solid rgba(201,168,76,0.22); color: var(--goldl); font-size: 11px; letter-spacing: 0.1em; padding: 10px 20px; opacity: 0; transition: all 0.3s; pointer-events: none; z-index: 2000; white-space: nowrap; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
