:root {
  --green: #1b4332;
  --green-light: #2d6a4f;
  --gold: #d4af37;
  --cream: #f8f6f1;
  --gray: #6b7280;
  --border: #e5e1d8;
  --teal: #20d6b0;
  --teal-dark: #17a98a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  background: var(--cream);
  line-height: 1.6;
}

header {
  background: var(--green);
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header .logo span {
  color: var(--gold);
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

header nav a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 1.5rem 1.5rem 6rem;
  background-image:
    linear-gradient(rgba(8, 20, 16, 0.45), rgba(8, 20, 16, 0.45)),
    url('images/hero-clubs.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid #22c55e;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 1.25rem;
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: status-dot-pulse 2s infinite;
}

@keyframes status-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -0.5px;
}

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

.hero-subhead {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Supplier intake card */
.intake-card {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.btn-cta {
  background: var(--teal);
  color: #07332b;
  border-radius: 0.75rem;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.intake-trust {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sourcing agent chat widget */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-align: left;
}

.chat-bot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.chat-bot-name {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
}

.chat-bot-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--teal-dark);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 320px;
  min-height: 180px;
  overflow-y: auto;
  padding: 0.25rem 0.25rem 0.5rem;
  margin-bottom: 0.85rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
  text-align: left;
}

.chat-bubble-bot {
  align-self: flex-start;
  background: var(--cream);
  color: #1f2937;
  border-bottom-left-radius: 0.25rem;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--teal);
  color: #07332b;
  font-weight: 600;
  border-bottom-right-radius: 0.25rem;
}

.chat-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}

.chat-option-btn {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  transition: border-color 0.1s ease;
}

.chat-option-btn:hover:not(:disabled) {
  border-color: var(--teal);
}

.chat-option-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.chat-option-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.chat-form {
  display: flex;
  gap: 0.75rem;
}

.chat-form[hidden] {
  display: none;
}

.chat-form input {
  flex: 1;
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
}

.chat-form input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #1b1b1b;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--green);
}

.highlight-gold {
  color: var(--gold);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0.25rem 0 0.5rem;
  color: var(--green);
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}

.step-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.25rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#how-it-works,
#why-us,
#faq {
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item summary {
  margin: 0;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--teal-dark);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--gray);
  font-size: 0.95rem;
}

/* Why Sell to Closeout Clubs - card-less list */
.why-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.why-item:last-child {
  border-bottom: none;
}

.why-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.why-item h3 {
  margin: 0 0 0.25rem;
  color: var(--green);
  font-size: 1.05rem;
}

.why-item p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

.form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-wrap h2 {
  color: var(--green);
  margin-top: 0;
}

.form-wrap .lede {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 1rem 0 0.35rem;
}

label .req {
  color: #b91c1c;
}

input, textarea, select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--green-light);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 90vh;
    padding: 1rem 1rem 5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subhead {
    font-size: 1.05rem;
  }

  .intake-card {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .chat-form {
    flex-direction: column;
  }

  .btn-cta {
    width: 100%;
  }

  .chat-options {
    grid-template-columns: 1fr;
  }
}

.submit-row {
  margin-top: 1.75rem;
  text-align: center;
}

.submit-row .btn {
  width: 100%;
}

#formMessage {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

#formMessage.success {
  color: var(--green-light);
}

#formMessage.error {
  color: #b91c1c;
}

footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-col .logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.footer-col .logo span {
  color: var(--gold);
}

.footer-col p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Admin page */
.admin-wrap {
  max-width: 1100px;
}

.admin-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-bar input[type="password"] {
  max-width: 260px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

tr:nth-child(even) td {
  background: #fafaf7;
}

td select {
  font-size: 0.85rem;
  padding: 0.3rem;
}

.table-scroll {
  overflow-x: auto;
}
