@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --blue:       #003087;
  --blue-dark:  #001f5c;
  --blue-mid:   #004aad;
  --blue-lite:  #e8eef8;
  --blue-tint:  #f0f4fb;
  --white:      #ffffff;
  --off-white:  #f7f9fd;
  --gold:       #c9a84c;
  --text:       #0d1a33;
  --text-mid:   #2e4070;
  --muted:      #5a6a8a;
  --border:     #ccd6ee;
  --danger:     #b31b1b;
  --success:    #155724;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(0,48,135,0.10);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.6;
}

.top-bar {
  background: var(--blue-dark);
  color: #a8b8d8;
  font-size: 0.78rem;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a { color: #a8b8d8; text-decoration: none; }
.top-bar a:hover { color: var(--white); }

header {
  background: var(--blue);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--blue-dark);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.logo-text .site-name {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-text .site-sub {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav ul { list-style: none; display: flex; gap: 2px; }

nav ul li a {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: #c0cfea;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav ul li a:hover { background: var(--blue-mid); color: var(--white); }
nav ul li a.active { background: var(--gold); color: var(--blue-dark); }

.hero {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 72px 28px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 3px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.08rem;
  color: #b8caec;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-weight: 300;
}

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

.btn {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary { background: var(--gold); color: var(--blue-dark); box-shadow: 0 3px 12px rgba(201,168,76,0.35); }
.btn-primary:hover { background: #b8962e; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,168,76,0.45); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-sm { padding: 8px 18px; font-size: 0.78rem; }

main {
  flex: 1;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  padding: 44px 28px 68px;
}

body.home-page main {
  max-width: none;
  padding: 44px 0 68px;
  overflow-x: hidden;
}

.section-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.section-sub { color: var(--muted); font-size: 0.93rem; margin-bottom: 28px; margin-top: 8px; }

.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }

body.home-page .stats-bar {
  max-width: 1160px;
  margin: 0 auto 44px;
  padding: 0 28px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .stat-num {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--blue);
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  font-weight: 600;
}

.search-wrap { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

body.home-page .search-wrap {
  width: 100%;
}

.search-wrap input,
.search-wrap select {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.93rem;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-wrap input { flex: 1; min-width: 200px; }
.search-wrap select { min-width: 160px; }

.search-wrap input:focus,
.search-wrap select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,48,135,0.10);
}

.listing-shell {
  width: 100%;
  margin: 0;
}

#listings {
  width: 100%;
  margin: 0;
  padding-bottom: 12px;
}

body.home-page #listings {
  width: 100%;
  margin: 0;
}

#listings > .section-title,
#listings > .section-sub,
#listings > .search-wrap,
#listings > .mt-16 {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

body.home-page #listings > .section-title,
body.home-page #listings > .section-sub,
body.home-page #listings > .search-wrap,
body.home-page #listings > .mt-16 {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.listing-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--blue-lite);
  transition: background var(--transition), transform var(--transition);
}

.listing-card:hover {
  background: var(--blue-tint);
}

.listing-card:last-child {
  border-bottom: none;
}

.listing-topline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.listing-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.08rem;
  color: var(--blue-dark);
  line-height: 1.35;
  margin-bottom: 7px;
}

.listing-description {
  color: var(--text-mid);
  font-size: 0.94rem;
  margin-bottom: 12px;
  max-width: 860px;
}

.listing-meta {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.listing-meta strong {
  color: var(--text-mid);
}

.listing-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 160px;
}

.action-note {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge,
.badge-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-category { background: var(--blue-lite); color: var(--blue-dark); border: 1px solid var(--border); }
.badge-unclaimed { background: #fff3cd; color: #7a5800; border: 1px solid #f0c040; }
.badge-claimed   { background: #d4edda; color: #155724; border: 1px solid #5cb85c; }
.badge-pending   { background: #e8eef8; color: var(--blue-dark); border: 1px solid var(--blue); }
.badge-urgent    { background: #f8d7da; color: var(--danger); border: 1px solid #c0392b; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  max-width: 660px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,48,135,0.10);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.required { color: var(--danger); margin-left: 2px; }
.form-hint { font-size: 0.79rem; color: var(--muted); margin-top: 5px; }

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-mid);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
}

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.info-card .card-icon { font-size: 1.8rem; margin-bottom: 12px; }

.info-card h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.info-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 24px;
  border-left: 4px solid;
}

.alert-success { background: #d4edda; color: #155724; border-color: #28a745; }
.alert-info    { background: var(--blue-lite); color: var(--blue-dark); border-color: var(--blue); }

@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201,168,76,0.55); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 16px rgba(201,168,76,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

.pulse-anim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: var(--gold);
  border-radius: 50%;
  font-size: 2.2rem;
  animation: pulse-ring 2.2s ease-in-out infinite;
  margin-bottom: 20px;
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 2.8rem; margin-bottom: 14px; }
.empty-state p { font-size: 0.95rem; }

.success-box {
  display: none;
  background: #d4edda;
  border: 1.5px solid #28a745;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.success-box h3 {
  font-family: 'Merriweather', serif;
  color: #155724;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.success-box p { color: #155724; font-size: 0.92rem; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 20, 60, 0.72);
}

.modal-backdrop.show {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.claim-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  padding: 30px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--blue-lite);
  color: var(--blue-dark);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.claim-modal h2 {
  font-family: 'Merriweather', serif;
  color: var(--blue-dark);
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.claim-summary {
  display: grid;
  gap: 6px;
  background: var(--blue-tint);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.claim-form .form-group {
  margin-bottom: 16px;
}

.claim-note {
  background: #fff8e1;
  border: 1px solid #e6c76b;
  color: #5f4700;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 6px 0 18px;
  font-size: 0.9rem;
}

.claim-submit {
  width: 100%;
  padding: 15px;
}

.claim-success {
  text-align: center;
  padding: 28px 8px 8px;
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #d4edda;
  color: #155724;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.claim-success h3 {
  color: #155724;
  font-family: 'Merriweather', serif;
  margin-bottom: 8px;
}

.claim-success p {
  color: var(--text-mid);
  margin-bottom: 18px;
}

.claim-success .btn-outline {
  color: var(--blue);
  border-color: var(--blue);
}

footer {
  background: var(--blue-dark);
  border-top: 4px solid var(--gold);
  color: #8aa0cc;
  padding: 36px 28px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand { font-family: 'Merriweather', serif; font-weight: 700; font-size: 1rem; color: var(--white); }
.footer-brand span { color: var(--gold); }
.footer-tagline { font-size: 0.8rem; color: #6a88b8; margin-top: 4px; font-style: italic; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

.footer-links a {
  color: #8aa0cc;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.76rem;
  color: #4a6080;
  width: 100%;
  margin-top: 20px;
  border-top: 1px solid #1e3060;
  padding-top: 16px;
  text-align: center;
}

.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-24 { margin-bottom: 24px; }

@media (max-width: 700px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .header-inner { height: 66px; }
  nav ul li a { padding: 7px 10px; font-size: 0.78rem; }
  .hero { padding: 48px 18px 40px; }
}

@media (max-width: 440px) {
  .stats-bar { grid-template-columns: 1fr; }
  .logo-img  { width: 42px; height: 42px; }
}

img {
  max-width: 100%;
  height: auto;
}

.hero h1 {
  line-height: 1.2;
}

.hero p {
  padding: 0 10px;
}

.btn {
  cursor: pointer;
}

@media (max-width: 768px) {

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 18px;
    text-align: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .hero {
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .hero p {
    font-size: 1rem;
  }

  .top-bar {
    flex-direction: column;
    text-align: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cards,
  .grid {
    grid-template-columns: 1fr !important;
  }

  .logo-area {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .listing-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .listing-action {
    justify-content: stretch;
    min-width: 0;
  }

  .listing-action .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 700px) {
  main {
    padding-left: 0;
    padding-right: 0;
  }

  .stats-bar,
  main > .alert,
  main > .success-box,
  main > .form-card,
  main > .info-grid,
  main > .section-title,
  main > .section-sub,
  main > p,
  main > table {
    margin-left: 16px;
    margin-right: 16px;
  }

  #listings > .section-title,
  #listings > .section-sub,
  #listings > .search-wrap,
  #listings > .mt-16 {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-page main {
    padding-top: 28px;
  }

  .search-wrap {
    gap: 8px;
  }

  .search-wrap input,
  .search-wrap select {
    width: 100%;
    min-width: 0;
  }

  .listing-card {
    padding: 18px 16px;
  }

  .listing-card h3 {
    font-size: 1rem;
  }

  .claim-modal {
    padding: 24px 16px;
    border-radius: 14px;
  }
}

.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  border: 1px solid var(--border);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrap thead {
  background: var(--blue-dark);
  color: var(--white);
}

.table-wrap thead th {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
}

.table-wrap tbody tr {
  border-bottom: 1px solid var(--blue-lite);
}

.table-wrap tbody tr:last-child {
  border-bottom: none;
}

.table-wrap tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  color: var(--text);
}
