/* =========================================================
   Digital Envisioned - Production Stylesheet
   No build step, no CDN, no Node. Pure hand-written CSS.
   ========================================================= */

:root {
  --navy: #0b101e;
  --navy-90: rgba(11, 16, 30, 0.9);
  --dark: #05080f;
  --gold: #d4af37;
  --gold-light: #f9d976;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --green-bg: rgba(6, 78, 59, 0.3);
  --green-border: #22c55e;
  --green-text: #86efac;
  --red-bg: rgba(127, 29, 29, 0.3);
  --red-border: #ef4444;
  --red-text: #fca5a5;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --max-width: 1280px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--gray-200);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand-link { display: flex; align-items: center; gap: 0.5rem; }
.brand-badge {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-weight: 900;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 0.9rem; color: var(--white); line-height: 1.1; margin: 0; }
.brand-tag { font-size: 0.6rem; color: var(--gold); font-family: var(--font-mono); }

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--gold); }
@media (min-width: 768px) {
  .main-nav { display: flex; }
}

.btn-nav-cta {
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--gold-light); }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--white);
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(212,175,55,0.15);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.6rem 0.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ---------- Layout helpers ---------- */
main { flex: 1 0 auto; }

.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

h1, h2, h3, h4 { color: var(--white); margin: 0 0 0.75rem; line-height: 1.15; }
.h1 { font-size: 2.25rem; font-weight: 900; letter-spacing: -0.02em; }
.h1 .accent, h1 .accent { color: var(--gold); }
@media (min-width: 640px) { .h1 { font-size: 3.75rem; } }

.lead-text {
  font-size: 1rem;
  color: var(--gray-300);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
@media (min-width: 640px) { .lead-text { font-size: 1.125rem; } }

.max-narrow { max-width: 42rem; margin: 0 auto; }
.max-medium { max-width: 56rem; margin: 0 auto; }
.max-wide { max-width: 64rem; margin: 0 auto; }

/* ---------- Cards / panels ---------- */
.panel {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
@media (min-width: 640px) { .panel { padding: 2.5rem; } }
.panel-gold-border { border-color: rgba(212, 175, 55, 0.3); }

.card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--gold); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
}

/* ---------- Item Share Cards (Added) ---------- */
.de-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.de-share-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.15s ease;
}

.de-share-card:hover {
    border-color: var(--gold);
}

.de-share-card h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.de-share-card p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.de-card-actions {
    display: flex;
    gap: 10px;
}

.de-btn-primary, .de-btn-secondary {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.de-btn-primary {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    color: var(--navy);
}

.de-btn-primary:hover {
    opacity: 0.95;
}

.de-btn-secondary {
    background: var(--gray-800);
    color: var(--white);
    border: 1px solid var(--gray-700);
}

.de-btn-secondary:hover {
    background: var(--gray-700);
}

/* ---------- Forms ---------- */
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-300);
  margin-bottom: 0.35rem;
}

.field-input,
.field-textarea {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--gray-700);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--white);
  font-family: var(--font-sans);
}
.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field-textarea { resize: vertical; min-height: 8rem; }

/* Honeypot field - hidden from real users, visible to bots that ignore CSS */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.btn {
  display: inline-block;
  text-align: center;
  font-weight: 800;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn-gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(212,175,55,0.15);
}
.btn-gold:hover { opacity: 0.95; }
.btn-block { width: 100%; }
.btn-outline {
  background: var(--gray-800);
  color: var(--white);
  border: 1px solid var(--gray-700);
}
.btn-sm { padding: 0.65rem 1.25rem; font-size: 0.8rem; border-radius: 0.5rem; }

.field-error {
  color: var(--red-text);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.alert {
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.alert-success { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green-text); }
.alert-error { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red-text); }

/* ---------- Buttons row ---------- */
.btn-row { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* ---------- Check circle ---------- */
.check-circle {
  width: 4rem; height: 4rem;
  background: rgba(212,175,55,0.2);
  border: 1px solid var(--gold);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--gray-400);
  padding: 2.5rem 0;
  margin-top: 4rem;
  font-size: 0.75rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-col h3 { color: var(--white); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-col a { display: block; }
.footer-col a:hover { color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.text-gold { color: var(--gold); }

/* ---------- Utility ---------- */
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.25rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.muted { color: var(--gray-400); }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }
