:root {
  --ema-red: #b51f27;
  --ema-red-deep: #7f1017;
  --ema-ink: #101317;
  --ema-gold: #d4b26a;
  --ema-ash: #eef0f2;
  --ema-white: #ffffff;
  --ema-shadow: 0 18px 48px rgba(16, 19, 23, 0.12);
}

body.ema-theme {
  background:
    radial-gradient(circle at top right, rgba(212, 178, 106, 0.16), transparent 28%),
    linear-gradient(180deg, #f6f1e7 0%, #f3f4f6 36%, #ffffff 100%);
  color: var(--ema-ink);
}

.ema-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(16, 19, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ema-header-inner,
.ema-footer-inner,
.ema-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ema-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ema-white);
  text-decoration: none;
}

.ema-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.ema-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ema-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.ema-nav {
  display: inline-flex;
  gap: 1rem;
}

.ema-nav a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 600;
}

.ema-hero {
  padding: 5rem 0 3rem;
}

.ema-hero-grid {
  align-items: stretch;
}

.ema-hero-copy,
.ema-hero-card,
.ema-card,
.ema-content {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 19, 23, 0.08);
  border-radius: 24px;
  box-shadow: var(--ema-shadow);
}

.ema-hero-copy {
  flex: 1.4;
  padding: 2.4rem;
}

.ema-hero-card {
  flex: 0.95;
  padding: 2rem;
  background: linear-gradient(180deg, var(--ema-red) 0%, var(--ema-red-deep) 100%);
  color: var(--ema-white);
}

.ema-kicker,
.ema-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ema-red);
}

.ema-hero-card h2,
.ema-hero-card ul,
.ema-hero-card li {
  color: var(--ema-white);
}

.ema-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
  margin: 0.35rem 0 1rem;
  max-width: 10ch;
}

.ema-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 60ch;
}

.ema-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.ema-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.ema-button-primary {
  background: var(--ema-red);
  color: var(--ema-white);
}

.ema-button-secondary {
  background: var(--ema-ash);
  color: var(--ema-ink);
}

.ema-section {
  padding: 1rem 0 2rem;
}

.ema-section-head {
  margin-bottom: 1.1rem;
}

.ema-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ema-card,
.ema-content {
  padding: 1.5rem;
}

.ema-card h3 {
  margin-top: 0;
}

.ema-section-alt {
  padding-bottom: 4rem;
}

.ema-content h1,
.ema-content h2,
.ema-content h3 {
  color: var(--ema-red-deep);
}

.ema-footer {
  background: var(--ema-ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 2rem 0;
}

.ema-footer p {
  margin: 0.3rem 0 0;
}

@media (max-width: 900px) {
  .ema-header-inner,
  .ema-footer-inner,
  .ema-hero-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .ema-nav,
  .ema-actions {
    width: 100%;
  }

  .ema-cards {
    grid-template-columns: 1fr;
  }

  .ema-hero h1 {
    max-width: none;
  }
}
