/* ============================================================
   MAGACHAMBER.ORG — Design System v2
   Inspiration: US Chamber of Commerce × Trump/MAGA authority
   Colors: Navy · Red · White · Gold
   Typography: Playfair Display (serif) for brand/headings
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  --navy:        #0a1628;
  --navy-mid:    #122040;
  --navy-light:  #1d3557;
  --navy-muted:  #243b60;
  --red:         #c41230;
  --red-dark:    #9b0e26;
  --red-bright:  #e81b23;
  --white:       #ffffff;
  --off-white:   #faf9f7;
  --slate:       #f4f6fb;
  --slate-dark:  #e8ecf5;
  --gold:        #C9A84C;
  --gold-dark:   #A8832A;
  --gold-light:  #F0D588;
  --gold-faint:  #fdf9ee;
  --text:        #111827;
  --text-light:  #374151;
  --muted:       #5a6783;
  --border:      #d0d9ed;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --shadow:      0 2px 8px rgba(10,22,40,0.10);
  --shadow-lg:   0 6px 28px rgba(10,22,40,0.16);
  --shadow-gold: 0 4px 16px rgba(201,168,76,0.28);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono:   'Courier New', monospace;
  --max-w:       1200px;
  --nav-h:       76px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 60px 0; }
.section-sm { padding: 36px 0; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem);    font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem);  font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { color: var(--text-light); line-height: 1.7; }
.muted  { color: var(--muted); font-size: 0.9375rem; }
.eyebrow {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   LOGO — seal + MAGA CHAMBER / PROUD MEMBER
   ============================================================ */
.brand-block {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  text-decoration: none;
}

/* Shield crest SVG */
.brand-shield {
  flex-shrink: 0;
  width: 40px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: filter 0.15s;
}
.brand-block:hover .brand-shield {
  filter: drop-shadow(0 2px 10px rgba(201,168,76,0.4));
}

/* Two-line wordmark — text only, no icon */
.brand-wordmark { display: flex; flex-direction: column; gap: 3px; }
.brand-line1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.brand-line2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
}
/* Thin gold rule between the two lines */
.brand-rule {
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), rgba(201,168,76,0.2));
  margin: 3px 0;
  opacity: 0.7;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-h);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 3px 20px rgba(0,0,0,0.4);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: #a8bedd;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--gold); }
.nav-links .nav-cta {
  background: var(--red);
  color: var(--white) !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.nav-links .nav-cta:hover {
  background: var(--red-dark);
  box-shadow: 0 3px 12px rgba(196,18,48,0.45);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(160deg, #060e1c 0%, #0d1e3a 50%, #162952 100%);
  padding: 80px 0 70px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 35%, rgba(201,168,76,0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 75%, rgba(196,18,48,0.09) 0%, transparent 45%);
  pointer-events: none;
}
/* Patriotic star banner across top */
.hero::after {
  content: '✦  ✦  ✦  ✦  ✦  ✦  ✦  ✦  ✦  ✦  ✦  ✦  ✦  ✦  ✦';
  position: absolute;
  top: 10px;
  left: 0; right: 0;
  text-align: center;
  color: var(--gold);
  font-size: 0.5rem;
  letter-spacing: 0.6em;
  opacity: 0.18;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 16px; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.hero > .container > p { color: #a8bedd; font-size: 1.1rem; max-width: 620px; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-xl);
  padding: 12px;
  max-width: 720px;
  backdrop-filter: blur(8px);
}
.search-bar input, .search-bar select {
  flex: 1;
  min-width: 160px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--white);
  padding: 10px 14px;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s;
}
.search-bar input::placeholder { color: #6a82a8; }
.search-bar input:focus, .search-bar select:focus { border-color: rgba(201,168,76,0.6); }
.search-bar select option { color: var(--text); background: var(--white); }

.kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.kpi-num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.kpi-lbl {
  font-size: 0.68rem;
  color: #6a82a8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); border: 1px solid rgba(255,255,255,0.1); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 4px 16px rgba(196,18,48,0.4); }
.btn-gold {
  background: linear-gradient(135deg, #D4AF50 0%, #A8832A 100%);
  color: #1a1000;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-gold:hover { box-shadow: var(--shadow-gold); filter: brightness(1.06); }
.btn-navy { background: var(--navy); color: var(--white); border: 1px solid rgba(255,255,255,0.08); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy-light); background: var(--slate); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.28); }
.btn-outline-white:hover { background: rgba(255,255,255,0.07); border-color: rgba(201,168,76,0.6); color: var(--gold-light); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold-faint); }
.btn-sm  { padding: 7px 16px; font-size: 0.8125rem; }
.btn-lg  { padding: 13px 28px; font-size: 1rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-gold-accent { border-left: 3px solid var(--gold); }

/* Business card */
.business-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.18s, border-color 0.15s;
}
.business-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(201,168,76,0.4);
}
.business-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.business-card-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.business-card-name a:hover { color: var(--red); }
.business-card-sub { font-size: 0.8125rem; color: var(--muted); margin-top: 3px; }

/* Member badge */
.member-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gold-faint); color: var(--gold-dark);
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.4);
}
.member-badge.verified { background: #eaf4ee; color: #1a6b35; border-color: #a8d9b8; }

/* Star rating row */
.rating-row { display: flex; align-items: center; gap: 6px; }
.star-rating { color: var(--gold); font-size: 0.875rem; letter-spacing: 0.04em; }
.rating-value { font-weight: 700; font-size: 0.875rem; color: var(--navy); }
.review-count { color: var(--muted); font-size: 0.8125rem; }

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  background: var(--slate); color: var(--navy-light);
  font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border);
}
.pill.red  { background: #fef0f2; color: var(--red); border-color: #f8c5cc; }
.pill.gold { background: var(--gold-faint); color: var(--gold-dark); border-color: rgba(201,168,76,0.4); }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* State card */
.state-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
  text-decoration: none;
}
.state-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--gold); }
.state-flag { font-size: 2rem; }
.state-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.state-meta { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2      { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid-3      { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid-4      { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.grid-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 0.8125rem; color: var(--muted);
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.breadcrumbs a { color: var(--navy-light); font-weight: 500; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { color: var(--border); margin: 0 2px; }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.section-header h2 { margin: 0; }
.section-header a { color: var(--red); font-size: 0.875rem; font-weight: 700; }

/* ============================================================
   MAP
   ============================================================ */
.map-container {
  width: 100%; height: 380px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); background: var(--slate);
}
.map-container-sm { height: 260px; }

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ============================================================
   FILTERS BAR
   ============================================================ */
.filters-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px; background: var(--slate);
  border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 24px;
}
.filter-chip {
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.8125rem; font-weight: 600;
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--border); cursor: pointer; transition: all 0.15s;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group .hint { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.9375rem; color: var(--text); background: var(--white);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(29,53,87,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   NOTICES
   ============================================================ */
.notice { padding: 14px 18px; border-radius: var(--radius); font-size: 0.9375rem; border-left: 4px solid; margin-bottom: 20px; }
.notice-info    { background: #eef4fd; border-color: var(--navy-light); color: var(--navy); }
.notice-success { background: #eaf4ee; border-color: #1a6b35; color: #1a6b35; }
.notice-warn    { background: #fffbea; border-color: #b86f00; color: #7a4a00; }
.notice-gold    { background: var(--gold-faint); border-color: var(--gold); color: var(--navy); }

/* ============================================================
   BADGE DISPLAY
   ============================================================ */
.badge-preview {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: var(--radius);
  font-family: var(--font-serif);
}
.badge-dark { background: var(--navy); color: var(--white); border: 1px solid rgba(201,168,76,0.4); }
.badge-light { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.badge-red  { background: var(--red); color: var(--white); }
.badge-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-grid {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 32px; align-items: start;
}
@media (max-width: 960px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-nap { display: flex; flex-direction: column; gap: 12px; }
.profile-nap-row { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; color: var(--text-light); }
.profile-nap-icon { flex-shrink: 0; color: var(--red); margin-top: 1px; }
.cta-action-block { display: flex; flex-direction: column; gap: 10px; }
.cta-action-block .btn { width: 100%; justify-content: center; }

/* Hours */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.hours-table td { padding: 4px 8px 4px 0; color: var(--text-light); }
.hours-table td:first-child { font-weight: 600; color: var(--navy); width: 110px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: #a0b4cc;
  padding: 60px 0 28px;
  margin-top: 80px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--navy-light) 100%);
}
.footer-brand-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px; margin-bottom: 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: var(--font);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.footer p { color: #6a82a8; font-size: 0.875rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #6a82a8; font-size: 0.875rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.8125rem; color: #3d5270;
}

/* ============================================================
   GEO LINKS
   ============================================================ */
.geo-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 16px; }
.geo-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--slate); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 600;
  color: var(--navy); transition: all 0.15s; text-decoration: none;
}
.geo-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.geo-link-count { margin-left: auto; font-size: 0.75rem; color: var(--muted); font-weight: 400; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--off-white); border-radius: var(--radius);
  padding: 18px 20px; border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.faq-q { font-family: var(--font-serif); font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.faq-a { color: var(--text-light); font-size: 0.9375rem; line-height: 1.65; }

/* ============================================================
   UTILITY
   ============================================================ */
.divider      { height: 1px; background: var(--border); margin: 28px 0; }
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 28px 0; opacity: 0.4; }
.text-red   { color: var(--red); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--muted); }
.text-gold  { color: var(--gold); }
.fw-bold    { font-weight: 700; }
.serif      { font-family: var(--font-serif); }
.mt-4  { margin-top:  4px; }  .mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }  .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }  .mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.tag-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; font-weight: 700; color: #1a6b35;
  background: #eaf4ee; padding: 2px 8px; border-radius: 20px;
  border: 1px solid #a8d9b8; text-transform: uppercase; letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpi-strip { gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
