:root {
  --paritor-teal: #03737f;
  --paritor-teal-dark: #025961;
  --paritor-orange: #e58e1a;
  --text: #5c6160;
  --page-bg: #f4f4f4;
  --card-bg: #ffffff;
  --border: #e0e0e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.6;
}

h1,
h2 {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
}

a {
  color: var(--paritor-teal);
}

.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 40px;
}

.logo {
  height: 40px;
  display: block;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 56px 16px 40px;
}

.hero h1 {
  color: var(--paritor-teal);
  font-size: 2.25rem;
}

.hero p {
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Product cards ---------- */

.products {
  display: grid;
  /* Two up on a normal screen, one on a phone. minmax(0,1fr) rather than a
     fixed minimum so long product names cannot force a horizontal scrollbar. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  padding-bottom: 8px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--paritor-teal);
  border-radius: 8px;
  padding: 26px 28px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--paritor-teal);
  box-shadow: 0 6px 18px rgba(3, 115, 127, 0.13);
  transform: translateY(-2px);
  outline: none;
}

.product-card:focus-visible {
  /* Keyboard users still need a visible ring, not just the hover treatment. */
  box-shadow: 0 0 0 3px rgba(3, 115, 127, 0.35);
}

.product-card h2 {
  color: var(--paritor-teal);
  font-size: 1.3rem;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product-card p {
  margin: 0 0 18px;
  font-size: 0.95rem;
}

/* Pins the call to action to the bottom so cards of differing text length
   still line their links up with each other. */
.product-cta {
  margin-top: auto;
  color: var(--paritor-teal);
  font-weight: 700;
  font-size: 0.9rem;
}

.product-cta::after {
  /* Spaced with a margin, not a leading space in `content` - that gets
     collapsed and leaves the arrow jammed against the text. */
  content: "\2192";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.15s ease;
}

.product-card:hover .product-cta::after {
  transform: translateX(4px);
}

.badge {
  background: var(--paritor-orange);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.browse-all {
  text-align: center;
  margin: 28px 0 8px;
  font-size: 0.95rem;
}

/* ---------- Generic resource cards (training videos, FAQs, ...) ---------- */

.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}

.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.resource-card h2 {
  color: var(--paritor-teal);
  font-size: 1.4rem;
}

.button {
  display: inline-block;
  background: var(--paritor-teal);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 5px;
  border: 3px solid var(--paritor-teal);
  margin: 12px 0 20px;
}

.button:hover {
  background: var(--paritor-teal-dark);
  border-color: var(--paritor-teal-dark);
}

.topic-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}


.topic-list li {
  margin-bottom: 4px;
}

.contact {
  text-align: center;
  padding: 24px 16px 56px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.contact h2 {
  color: var(--paritor-teal);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--paritor-teal);
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  padding: 24px;
  color: #8a8f8e;
  font-size: 0.85rem;
}

/* ---------- Small screens ---------- */

/* The page had no responsive rules at all; at phone width the desktop-sized
   heading and padding took up most of the first screen before any content. */
@media (max-width: 600px) {
  main {
    padding: 0 16px;
  }

  .site-header {
    padding: 16px 20px;
  }

  .hero {
    padding: 32px 4px 26px;
  }

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

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

  .product-card {
    padding: 22px 22px 20px;
  }

  .contact {
    padding: 24px 8px 44px;
  }
}
