/*
  ECU Jobs theme components
  -------------------------
  Shared visual system for pages migrated to the homepage light/dark design.
  This file owns reusable surfaces, cards, badges, buttons and link cards.
  Page-specific CSS should only define layout, spacing and local composition.
*/

.ecu-theme-page {
  background: var(--page-bg);
  color: var(--text-primary);
}

.ecu-theme-page main,
.ecu-theme-page .section,
.ecu-theme-page .section-dark {
  background: transparent;
  color: var(--text-primary);
}

.ecu-theme-page .container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.ecu-theme-page :is(h1, h2, h3, p, a, span, strong, li) {
  letter-spacing: 0;
}

.ecu-theme-page :is(p, li) {
  color: var(--text-secondary);
}

.ecu-theme-page .eyebrow {
  margin: 0 0 12px;
  color: var(--brand-orange);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.ecu-theme-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ecu-theme-page .btn:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.ecu-theme-page .btn:active {
  transform: translateY(1px);
}

.ecu-theme-page .btn-primary {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
  color: var(--text-on-brand);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand-orange) 24%, transparent);
}

.ecu-theme-page .btn-primary:hover,
.ecu-theme-page .btn-primary:focus-visible {
  background: var(--brand-orange-hover);
  border-color: var(--brand-orange-hover);
  color: var(--text-on-brand);
}

.ecu-theme-page .btn-outline,
.ecu-theme-page .btn-ghost {
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.ecu-theme-page .btn-outline:hover,
.ecu-theme-page .btn-outline:focus-visible,
.ecu-theme-page .btn-ghost:hover,
.ecu-theme-page .btn-ghost:focus-visible {
  background: var(--surface-soft);
  color: var(--text-primary);
}

.ecu-theme-page :is(.hero-copy, .who-heading, .help-heading, .why-heading, .journey-heading, .proof-heading, .business-heading, .community-heading, .section-heading, .final-conversion-card) {
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--accent-petrol) 52%, var(--surface)));
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .ecu-theme-page :is(.hero-copy, .who-heading, .help-heading, .why-heading, .journey-heading, .proof-heading, .business-heading, .community-heading, .section-heading, .final-conversion-card) {
  background:
    radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--brand-orange) 10%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--accent-petrol-strong) 70%, var(--surface)));
}

.ecu-theme-page :is(.who-card, .help-panel, .why-card, .journey-card, .proof-card, .business-card, .community-card, .faq-list details, .topic-link, .hero-product-snapshot) {
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-soft) 80%, transparent));
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .ecu-theme-page :is(.who-card, .help-panel, .why-card, .journey-card, .proof-card, .business-card, .community-card, .faq-list details, .topic-link, .hero-product-snapshot) {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--accent-petrol-strong) 52%, var(--surface)));
}

.ecu-theme-page :is(.who-card-primary, .help-panel-feature, .why-card-active, .business-card-accent) {
  border-color: color-mix(in srgb, var(--brand-orange) 64%, var(--border));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand-orange) 7%, var(--surface)), color-mix(in srgb, var(--surface) 84%, var(--accent-petrol)));
}

[data-theme="dark"] .ecu-theme-page :is(.who-card-primary, .help-panel-feature, .why-card-active, .business-card-accent) {
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--brand-orange) 16%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-orange) 9%, var(--surface)), color-mix(in srgb, var(--surface) 70%, var(--accent-petrol-strong)));
}

.ecu-theme-page :is(.who-visual span, .help-illustration, .why-flow span, .proof-visual, .community-signal, .snapshot-grid article) {
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 82%, transparent), color-mix(in srgb, var(--accent-petrol) 58%, transparent));
  color: var(--text-primary);
}

.ecu-theme-page :is(.who-card-primary .who-visual span:first-child, .journey-step-index, .topic-icon) {
  border-color: color-mix(in srgb, var(--brand-orange) 76%, var(--border));
  color: var(--brand-orange);
}

.ecu-theme-page :is(.who-card h3) {
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 76%, transparent), color-mix(in srgb, var(--accent-petrol) 62%, transparent));
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.ecu-theme-page .who-card-primary h3 {
  border-color: color-mix(in srgb, var(--brand-orange) 62%, var(--border));
}

.ecu-theme-page :is(.hero-trust-signals span, .who-card li, .topic-link) {
  color: var(--text-primary);
}

.ecu-theme-page .hero-trust-signals span,
.ecu-theme-page .who-card li {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 60%, transparent);
}

.ecu-theme-page .hero-trust-signals span::before,
.ecu-theme-page .who-card li::before {
  content: "✓";
  color: var(--brand-orange);
  font-weight: 950;
}

.ecu-theme-page :is(.journey-step-index, .topic-icon) {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--brand-orange) 70%, var(--border));
  border-radius: 10px;
  color: var(--brand-orange);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.ecu-theme-page .business-shot {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
  overflow: hidden;
}

.ecu-theme-page .business-shot img,
.ecu-theme-page .community-logo-row img,
.ecu-theme-page .topic-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecu-theme-page .business-kicker,
.ecu-theme-page .community-signal span {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ecu-theme-page .topic-link {
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
}

.ecu-theme-page .topic-link:hover,
.ecu-theme-page .topic-link:focus-visible {
  border-color: var(--brand-orange);
  background: color-mix(in srgb, var(--brand-orange) 6%, var(--surface));
}

.ecu-theme-page .why-note,
.ecu-theme-page .journey-note {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: var(--shadow-soft);
}

.ecu-theme-page .site-footer {
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 106, 0, 0.13), transparent 24rem),
    linear-gradient(180deg, #0e1516 0%, #080d0f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f3f5f2;
  padding: clamp(42px, 6vw, 70px) 0;
}

.ecu-theme-page .site-footer .footer-grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
}

.ecu-theme-page .site-footer .footer-brand {
  display: inline-flex;
  margin-bottom: 18px;
}

.ecu-theme-page .site-footer .footer-brand img {
  display: block;
  height: auto;
  max-width: 196px;
}

.ecu-theme-page .site-footer p {
  color: rgba(243, 245, 242, 0.76);
  line-height: 1.65;
  margin: 0;
  max-width: 620px;
}

.ecu-theme-page .site-footer nav {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}

.ecu-theme-page .site-footer a {
  color: rgba(243, 245, 242, 0.84);
  font-weight: 850;
  text-decoration: none;
}

.ecu-theme-page .site-footer a:hover,
.ecu-theme-page .site-footer a:focus-visible {
  color: #fff;
}

.ecu-theme-page .site-footer .footer-cookie-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(243, 245, 242, 0.86);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 5px 9px;
}

.ecu-theme-page .site-footer .footer-cookie-link:hover,
.ecu-theme-page .site-footer .footer-cookie-link:focus-visible {
  background: rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 106, 0, 0.46);
  color: #fff;
}

@media (max-width: 760px) {
  .ecu-theme-page .container {
    width: min(100% - 28px, 440px);
  }

  .ecu-theme-page .site-footer {
    padding: 30px 0 34px;
  }

  .ecu-theme-page .site-footer .footer-grid {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .ecu-theme-page .site-footer .footer-brand {
    margin-bottom: 12px;
  }

  .ecu-theme-page .site-footer .footer-brand img {
    max-width: 164px;
  }

  .ecu-theme-page .site-footer p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .ecu-theme-page .site-footer nav {
    display: grid;
    gap: 8px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
  }

  .ecu-theme-page .site-footer nav a,
  .ecu-theme-page .site-footer .footer-cookie-link {
    align-items: center;
    display: inline-flex;
    font-size: 0.88rem;
    min-height: 28px;
  }

  .ecu-theme-page :is(.hero-copy, .who-heading, .help-heading, .why-heading, .journey-heading, .proof-heading, .business-heading, .community-heading, .section-heading, .final-conversion-card) {
    border-radius: 22px;
  }

  .ecu-theme-page :is(.who-card, .help-panel, .why-card, .journey-card, .proof-card, .business-card, .community-card, .faq-list details, .topic-link) {
    border-radius: 20px;
  }
}
