/* Joey Rios — Political Consulting homepage
   Black + gold, matched to Joey's proven taste. */

:root {
  --bg: #000000;
  --panel: #141518;
  --panel-2: #1b1c1f;
  --ink: #f7f3ea;
  --muted: #b9b3a7;
  --faint: #8f8a80;
  --line: rgba(255, 255, 255, .11);
  --gold: #ffcf3f;
  --gold-soft: #ffe066;
  --gold-deep: #d99a06;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar: Connect app button, top-left ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, .92);
  border-bottom: 1px solid var(--line);
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px 6px 6px;
}

.app-btn:hover { border-color: var(--gold); }

.app-btn img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: block;
}

.app-btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.app-btn-text small { color: var(--muted); font-size: .62rem; letter-spacing: .04em; }
.app-btn-text strong { font-size: .95rem; font-weight: 700; }
.app-btn-text em { color: var(--gold); font-size: .66rem; font-style: normal; font-weight: 600; }

.topnav { display: flex; gap: 18px; }
.topnav a {
  color: #e8e6df;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
}
.topnav a:hover { color: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-photo {
  width: 210px;
  height: 262px;
  margin: 0 auto 24px;
  border-radius: 20px;
  padding: 4px;
  background: conic-gradient(from 210deg, var(--gold-soft), var(--gold-deep), var(--gold), var(--gold-soft));
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 32%;
  background: #24262a;
}

.eyebrow {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.05;
}

.hero-title {
  margin-top: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.rule {
  width: 120px;
  height: 3px;
  margin: 22px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid #55555e;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #171400;
  border-color: transparent;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-gold:hover { filter: brightness(1.06); }

/* ---------- Sections ---------- */
.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 20px 8px;
}

.section h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  margin: 18px 0 20px;
  font-size: 1rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.card p { color: var(--muted); font-size: .96rem; }

a.card-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
a.card-link:hover { border-color: var(--gold); }
a.card-link:hover h3 { color: var(--gold-soft); }

.card-more {
  color: var(--gold) !important;
  font-size: .85rem !important;
  font-weight: 700;
  margin-top: 12px;
}

.card-win { border-color: rgba(255, 207, 63, .45); background: var(--panel-2); }
.card-win h3 { color: var(--gold-soft); }

.card-tag {
  color: var(--gold) !important;
  font-size: .72rem !important;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Detail pages ---------- */
.page-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.12;
}

.prose p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 820px;
  margin: 0 auto 18px;
}

.prose .cards { margin-top: 26px; text-align: left; }

/* ---------- Contact / footer ---------- */
.contact { text-align: center; padding-bottom: 40px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 20px 34px;
  text-align: center;
  color: var(--faint);
  font-size: .85rem;
}

@media (max-width: 560px) {
  .topnav { gap: 12px; }
  .topnav a { font-size: .82rem; }
  .app-btn-text em { display: none; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-title { font-size: 1.02rem; }
  .hero-photo { width: 176px; height: 220px; }
}
