/* Acme Retail Co. — test fixture stylesheet.
   Several color choices below are DELIBERATE WCAG 1.4.3 contrast
   violations, used to give accessibility scanning tools something real
   to find. Do not "fix" these without checking test-plan.md first. */

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

body {
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #fff;
}

a { color: #2563eb; }

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid #e5e7eb;
}
.logo { font-size: 20px; font-weight: 700; color: #111827; text-decoration: none; }
nav.main-nav ul { list-style: none; display: flex; gap: 24px; }
nav.main-nav a { text-decoration: none; font-weight: 600; color: #374151; }

.hero {
  padding: 64px 32px;
  background: #f3f4f6;
  text-align: center;
}
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { font-size: 18px; color: #4b5563; margin-bottom: 24px; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 15px;
}
.btn-primary { background: #2563eb; color: #fff; }

/* VIOLATION (SC 1.4.3 Contrast Minimum): light gray text on white,
   ratio well under 4.5:1 — used intentionally on the "secondary" button
   and a few supporting-text spots across the site. */
.btn-secondary { background: #fff; color: #9ca3af; border: 1px solid #d1d5db; }
.muted-text { color: #b0b0b0; }

main { max-width: 1100px; margin: 0 auto; padding: 48px 32px; }

.section-title { font-size: 26px; margin-bottom: 24px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}
.product-card img { width: 100%; border-radius: 4px; margin-bottom: 12px; }
.product-card h3 { font-size: 16px; margin-bottom: 6px; }
.price { font-weight: 700; color: #111827; }

form.contact-form { max-width: 480px; }
form.contact-form .field { margin-bottom: 16px; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
}

table.compat-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
table.compat-table th, table.compat-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}
table.compat-table th { background: #f9fafb; }

footer.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 32px;
  margin-top: 64px;
  font-size: 13px;
  text-align: center;
}
footer.site-footer a { color: #9ca3af; }

blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 16px;
  margin: 24px 0;
  color: #4b5563;
  font-style: italic;
}

.blog-list { display: flex; flex-direction: column; gap: 24px; }
.blog-card { border-bottom: 1px solid #e5e7eb; padding-bottom: 24px; }
.blog-card h2 { font-size: 22px; margin-bottom: 8px; }
.blog-meta { font-size: 13px; color: #6b7280; margin-bottom: 8px; }

/* Carousel used on the homepage — moving content, relevant to SC 2.2.2. */
.carousel { overflow: hidden; position: relative; border-radius: 8px; }
.carousel-track { display: flex; animation: scroll 18s linear infinite; }
.carousel-track img { width: 360px; flex-shrink: 0; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
