/* ===========================
   CR&Co — Global & Homepage Styles
   =========================== */

/* --- Base Theme & Color Tokens --- */
:root {
  --bg: #000000;
  --card-bg: #1a1a1a; /* Default dark card */
  --text: #f5f5f5;
  --muted: #cfcfcf;
  --line: rgba(255, 255, 255, .15);

  /* Brand Accents */
  --gold-light: #e2c88f;
  --gold-dark: #c1965c;
  --accent: var(--gold-dark);
  --peach-glow: rgba(226, 200, 143, 0.45); /* More prominent glow */
  --peach-glow-hover: rgba(226, 200, 143, 0.6); /* More prominent hover glow */
}

/* --- Global Resets & Typography --- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: #f5f5f5; /* Default text color for content outside panels */
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center; /* Center text by default */
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', Georgia, "Times New Roman", serif;
  margin: 0 auto 1rem auto;
  color: var(--gold-light);
  text-align: center;
  max-width: 900px;
}
h1 { font-size: clamp(28px, 4vw, 40px); }
p, li { line-height: 1.7; opacity: .95; max-width: 70ch; margin: 0 auto 1em auto; text-align: center; }
a { color: var(--gold-light); text-decoration: none; transition: all 0.2s ease-out; }
a:hover { text-decoration: none; }

/* --- Layout --- */
.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.section { padding: 60px 0; }
.section:first-child { padding-top: 20px; }
.center { text-align: center; }
.center p, .center li { text-align: center; margin-left: auto; margin-right: auto; }

/* --- Beta Banner --- */
.beta-banner { background-color: var(--gold-dark); color: #000; text-align: center; padding: 12px; font-weight: 700; }
.beta-banner p { margin: 0; text-align: center; }

/* --- UNIFIED GLOBAL HEADER --- */
.site-header { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.brand-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; color: var(--text); }
.brand-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; border: 1px solid rgba(193,150,92,.28); background: rgba(193,150,92,.06); }
.site-header nav { display: flex; gap: 10px; flex-wrap: wrap; }
/* Make all links inside header nav elegant buttons */
.site-header nav a {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 15px; color: #000 !important; text-shadow: none; text-align: center; padding: 10px 20px; border-radius: 4px; border: none; background: var(--gold-light); box-shadow: 0 2px 4px rgba(0,0,0,0.4); cursor: pointer; text-decoration: none; display: inline-block;
}
.site-header nav a:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.5); text-decoration: none; }
.site-header nav a:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }

/* --- UNIFIED BUTTONS & LINKS --- */
/* Style all links that are not part of other components as buttons */
a:not(.brand-logo):not(.footer-links a), .btn {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 15px; color: #000 !important; text-shadow: none; text-align: center; padding: 12px 28px; border-radius: 4px; border: none; background: var(--gold-light); box-shadow: 0 4px 8px rgba(0,0,0,0.4); cursor: pointer; transition: all 0.2s ease-out; text-decoration: none; display: inline-block; margin: 5px;
}
a:not(.brand-logo):not(.footer-links a):hover, .btn:hover {
  transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.5); text-decoration: none;
}
a:not(.brand-logo):not(.footer-links a):active, .btn:active {
  transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* --- CARDS --- */
.card {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 24px;
  background: #ffffff; /* White interior */
  color: #000000; /* Black text */
  margin-bottom: 20px;
  box-shadow: 0 15px 35px var(--peach-glow), 0 5px 15px rgba(0,0,0,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px var(--peach-glow-hover), 0 8px 20px rgba(0,0,0,0.15); }
.card p, .card li { text-align: left; color: #333; }
.card h1, .card h2, .card h3 { color: #111; }
/* Links inside cards should be a darker peach for contrast */
.card a { color: var(--gold-dark) !important; background: transparent; box-shadow: none; padding: 0; display: inline; }
.card a:hover { text-decoration: underline; }

/* --- FORMS & TEXT BOXES --- */
input, textarea, select {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ccc;
  box-shadow: 0 0 15px var(--peach-glow);
  border-radius: 4px;
  padding: 10px;
  width: 100%;
}

/* --- Homepage Specific --- */
.logo-main { display: grid; place-items: center; padding: 40px 0; }
.logo-main img { width: 100%; max-width: 280px; height: auto; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin: 30px 0; flex-wrap: wrap; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-grid .card { text-decoration: none; }
.feature-grid .card h3 { margin-bottom: .5rem; }
.feature-grid .card p { font-size: .95rem; }

.news-card .num { font-family: 'Cinzel', serif; font-size: 2.5em; font-weight: 700; color: var(--gold-dark); }
.news-card .label { font-size: 1.1em; margin-top: 8px; }

/* --- Footer --- */
.site-footer { padding: 40px 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.site-footer p { margin: 0; }
.footer-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold-light); }