/* Baker Richards design tokens (from baker-richards.com / Astra theme) */
:root {
  --br-coral: #f85e82;
  --br-coral-hover: #d45870;
  --br-slate: #46538a;
  --br-slate-hover: #3a4574;
  --br-burgundy: #8d4155;
  --br-cream: #f5f2ee;
  --br-white: #ffffff;
  --br-text: #222222;
  --br-text-dark: #111827;
  --br-text-muted: #9ca3af;
  --br-link: #46538a;
  --br-link-hover: #141004;
  --br-container: 1240px;
  --font-body: "CentraNo1-Light", "Centra Light", Helvetica, Arial, sans-serif;
  --font-heading: "CentraNo1-Thin", "Centra Thin", Helvetica, Arial, sans-serif;
  --font-ui: "CentraNo1-Book", "Centra Book", Helvetica, Arial, sans-serif;
  --transition: all 0.2s linear;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--br-text);
  background: var(--br-cream);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: var(--br-container);
  padding-inline: 20px;
  margin-inline: auto;
}

/* Hero — compact so platform cards sit above the fold */
.hero {
  padding-block: 1.25rem 0.75rem;
  background: var(--br-cream);
}

.hero__bubble {
  display: table;
  margin: 0 0 0.625rem;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1;
  color: #1f2937;
  background: var(--br-white);
  border: 1px solid var(--br-white);
}

.hero h1 {
  margin: 0 0 0.5rem;
  max-width: none;
  font-size: clamp(1.375rem, 2.8vw + 0.5rem, 2.75rem);
  line-height: 1.15;
  color: var(--br-text-dark);
  white-space: nowrap;
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: clamp(1.125rem, 4.5vw, 1.375rem);
  }
}

.hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.4;
  color: #000;
}

/* Platform cards — matches hb-services-draft1 */
.platforms {
  padding-block: 1rem 1.5rem;
  background: var(--br-white);
}

.platforms__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.platform-card {
  flex: 0 1 370px;
  min-width: min(100%, 280px);
  padding: 25px;
  text-decoration: none;
  color: #fff;
  background-color: var(--card-bg, var(--br-coral));
  --hb-item-text-color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 767px) {
  .platform-card {
    flex: 1 1 100%;
    padding: 20px;
  }
}

.platform-card:hover,
.platform-card:focus {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

.platform-card:focus-visible {
  outline: 2px solid var(--br-text-dark);
  outline-offset: 3px;
  opacity: 1;
}

.platform-card--vivian:hover {
  background-color: var(--br-slate-hover);
}

.platform-card--advantage:hover {
  background-color: var(--br-coral-hover);
}

.platform-card__tag {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.platform-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.5;
  color: var(--hb-item-text-color, #fff);
}

.platform-card__byline {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.95;
}

.platform-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.platform-card__cta {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Footer */
.footer {
  padding-block: 40px 50px;
  background: var(--br-cream);
}

.footer p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: var(--br-text-muted);
}

.footer__links {
  margin: 0;
}

.footer a {
  color: var(--br-link);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover,
.footer a:focus {
  color: var(--br-link-hover);
  text-decoration: underline;
}

.footer__links span {
  margin-inline: 0.35em;
  color: var(--br-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .platform-card {
    transition: opacity 0.2s ease;
  }
}
