/* ============================================================
   Shared Acta family theme — Acta Design System.
   Dark, calm and typographically strong. Tenant files provide
   brand tokens and the few intentional behavior differences.
   ============================================================ */

html[data-site] {
  /* Family foundation */
  --acta-bg: #16191d;
  --acta-surface: #20242a;
  --acta-silver: #b8bec6;
  --acta-silver-hi: #d7dbe0;
  --acta-text: #c6ccd3;
  --acta-text-strong: #e9ecef;
  --acta-text-muted: #8f98a2;
  --acta-hairline: rgba(184, 190, 198, 0.14);

  /* Override shared platform tokens (beats the CMS inline :root block) */
  --accent: var(--acta-brand);
  --accent-strong: var(--acta-brand-hi);
  --font-heading: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --glass-bg: var(--acta-surface);
  --glass-border: var(--acta-hairline);
  --shadow-card: none;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;

  color-scheme: dark;
}

/* ------------------------------------------------------------
   Page canvas — solid anthracite, one barely-there brand wash.
   Beats the CMS inline body { background: ... } by specificity.
   ------------------------------------------------------------ */
html[data-site] body {
  background:
    radial-gradient(1100px 520px at 50% -14%, rgba(var(--acta-brand-rgb), 0.055), transparent 60%),
    var(--acta-bg);
  color: var(--acta-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

html[data-site] .site-shell {
  max-width: 1160px;
  padding: 24px 28px;
}

/* No glassmorphism: opaque surfaces, hairline borders, no shadows */
html[data-site] .glass {
  background: var(--acta-surface);
  border: 1px solid var(--acta-hairline);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

html[data-site] .muted {
  color: var(--acta-text-muted);
}

/* ------------------------------------------------------------
   Top bar + navigation
   ------------------------------------------------------------ */
html[data-site] .topbar {
  background: rgba(22, 25, 29, 0.94);
  border: 1px solid var(--acta-hairline);
  border-radius: 16px;
  padding: 12px 18px;
}

html[data-site] .menu a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--acta-text-muted);
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  transition: color 180ms ease;
}

html[data-site] .menu a:hover {
  color: var(--acta-silver-hi);
  background: transparent;
  border-color: transparent;
}

/* Wordmark: dot (brand) + Acta (always Group silver) + suffix (brand) */
html[data-site] .acta-wordmark {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font: 700 1.18rem/1.1 var(--font-heading);
  letter-spacing: 0;
}

html[data-site] .acta-dot {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--acta-brand);
  margin-right: 0.34em;
}

html[data-site] .acta-core {
  color: var(--acta-silver);
}

html[data-site] .acta-suffix {
  color: var(--acta-brand);
}

/* ------------------------------------------------------------
   Hero — open, single column, typographically dominant.
   Not a card; the shared orb is removed.
   ------------------------------------------------------------ */
html[data-site] .hero {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(56px, 9vw, 120px) 0;
  overflow: visible;
}

html[data-site] .hero::before {
  content: none;
}

html[data-site] .hero-grid {
  grid-template-columns: 1fr;
  max-width: 60rem;
}

html[data-site] .hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--acta-silver-hi);
  background: linear-gradient(180deg, #f2f4f6 0%, #d7dbe0 55%, #8e97a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 16ch;
}

html[data-site] .hero p {
  font-size: 1.13rem;
  line-height: 1.65;
  color: var(--acta-text-muted);
  max-width: 62ch;
  margin-top: 22px;
}

html[data-site] .hero-actions {
  margin-top: 34px;
  gap: 14px;
}

/* Discreet entrance rise (disabled under reduced motion below) */
@keyframes acta-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html[data-site] .hero h1 {
  animation: acta-rise 600ms ease-out both;
}

html[data-site] .hero p {
  animation: acta-rise 600ms ease-out 90ms both;
}

html[data-site] .hero-actions {
  animation: acta-rise 600ms ease-out 150ms both;
}

/* ------------------------------------------------------------
   Buttons — clear CTA hierarchy, pill, no gradients
   ------------------------------------------------------------ */
html[data-site] .button {
  padding: 13px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease,
    transform 120ms ease;
}

html[data-site] .button:active {
  transform: translateY(1px);
}

html[data-site] .button-primary {
  background: var(--acta-brand);
  color: #10151a;
}

html[data-site] .button-primary:hover {
  background: var(--acta-brand-hi);
}

html[data-site] .button-secondary {
  background: transparent;
  border: 1px solid rgba(var(--acta-brand-hi-rgb), 0.28);
  color: var(--acta-silver-hi);
}

html[data-site] .button-secondary:hover {
  background: rgba(184, 190, 198, 0.08);
  border-color: rgba(var(--acta-brand-hi-rgb), 0.45);
}

/* ------------------------------------------------------------
   Section rhythm — large airy blocks separated by hairlines
   ------------------------------------------------------------ */
html[data-site] .section {
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--acta-hairline);
  padding-top: clamp(40px, 5vw, 64px);
  scroll-margin-top: 96px;
}

html[data-site] .section-header {
  margin-bottom: 28px;
}

html[data-site] .section-header h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--acta-silver-hi);
}

html[data-site] .section-header p {
  color: var(--acta-text-muted);
  font-size: 1rem;
}

/* ------------------------------------------------------------
   Cards (services / blog) — quiet deep surfaces, hairline hover
   ------------------------------------------------------------ */
html[data-site] .service-card,
html[data-site] .blog-card {
  background: var(--acta-surface-deep);
  border: 1px solid var(--acta-hairline);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 180ms ease;
}

html[data-site] .service-card:hover,
html[data-site] .blog-card:hover {
  border-color: rgba(var(--acta-brand-rgb), 0.35);
}

html[data-site] .service-card h3,
html[data-site] .blog-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--acta-silver-hi);
}

html[data-site] .service-card p,
html[data-site] .blog-card p {
  color: var(--acta-text-muted);
  line-height: 1.6;
}

html[data-site] .service-card a {
  color: var(--acta-brand);
  font-weight: 600;
}

html[data-site] .service-card a:hover {
  color: var(--acta-brand-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-site] .service-grid {
  gap: 18px;
}

html[data-site] .blog-grid {
  gap: 18px;
}

/* ------------------------------------------------------------
   Deck carousel — same behavior, calmer chrome
   ------------------------------------------------------------ */
html[data-site] .carousel-shell {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

html[data-site] .deck-card {
  background: linear-gradient(175deg, var(--acta-surface-deep), #14181d);
  border: 1px solid var(--acta-hairline);
  border-radius: 16px;
}

html[data-site] .deck-card-overlay {
  background: linear-gradient(170deg, rgba(22, 25, 29, 0.12), rgba(17, 21, 25, 0.88));
}

html[data-site] .deck-card-content h3 {
  color: var(--acta-silver-hi);
  letter-spacing: 0;
}

html[data-site] .deck-card-content p {
  color: var(--acta-text);
}

html[data-site] .icon-btn {
  background: var(--acta-surface-deep);
  border: 1px solid var(--acta-hairline);
  color: var(--acta-silver-hi);
}

html[data-site] .icon-btn:hover {
  border-color: rgba(var(--acta-brand-rgb), 0.45);
}

html[data-site] .icon-btn-toggle {
  background: rgba(var(--acta-brand-rgb), 0.14);
  border-color: rgba(var(--acta-brand-rgb), 0.32);
}

html[data-site] .icon-btn-toggle[aria-pressed="true"] {
  background: var(--acta-surface-deep);
  border-color: var(--acta-hairline);
}

/* ------------------------------------------------------------
   Lead panel + form
   ------------------------------------------------------------ */
html[data-site] .lead-panel {
  background: var(--acta-surface);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
}

html[data-site] .lead-form {
  gap: 12px;
}

html[data-site] input,
html[data-site] textarea,
html[data-site] select {
  background: var(--acta-surface-deep);
  border: 1px solid var(--acta-hairline);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--acta-text-strong);
  font-size: 0.95rem;
}

html[data-site] input::placeholder,
html[data-site] textarea::placeholder {
  color: var(--acta-text-muted);
}

html[data-site] input:focus,
html[data-site] textarea:focus,
html[data-site] select:focus {
  border-color: rgba(var(--acta-brand-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--acta-brand-rgb), 0.16);
}

html[data-site] input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  accent-color: var(--acta-brand);
}

html[data-site] .lead-note {
  color: var(--acta-text-muted);
}

html[data-site] .brand-name,
html[data-site] .status-chip {
  letter-spacing: 0;
}

/* ------------------------------------------------------------
   Footer + consent banner
   ------------------------------------------------------------ */
html[data-site] .footer {
  border-top: 1px solid var(--acta-hairline);
  color: var(--acta-text-muted);
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: 24px;
}

html[data-site] .footer-links a {
  color: var(--acta-text-muted);
}

html[data-site] .footer-links a:hover {
  color: var(--acta-silver-hi);
}

html[data-site] .consent-banner {
  background: var(--acta-surface);
  border: 1px solid var(--acta-hairline);
  border-radius: 14px;
}

/* ------------------------------------------------------------
   Mobile — compact stacked top bar, calm link rows
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  html[data-site] .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }

  html[data-site] .menu {
    gap: 2px 4px;
  }

  html[data-site] .menu a {
    font-size: 0.72rem;
    padding: 6px 8px;
  }

  html[data-site] .hero {
    padding: clamp(40px, 12vw, 72px) 0;
  }

  html[data-site] .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  html[data-site] .section {
    scroll-margin-top: 140px;
  }
}

/* ------------------------------------------------------------
   Accessibility — visible focus everywhere, reduced motion
   ------------------------------------------------------------ */
html[data-site] a:focus-visible,
html[data-site] button:focus-visible,
html[data-site] input:focus-visible,
html[data-site] textarea:focus-visible,
html[data-site] select:focus-visible {
  outline: 2px solid var(--acta-brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html[data-site] *,
  html[data-site] *::before,
  html[data-site] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:root {
  --site-accent: #a7c4d4;
  --site-accent-strong: #cad7df;
  --site-surface: #1b2329;
  --site-ink: #d7dbe0;
  --site-heading-font: "Inter", ui-sans-serif, system-ui, sans-serif;
}

html[data-site="actaconsult"] {
  --acta-brand: #a7c4d4;
  --acta-brand-hi: #cad7df;
  --acta-brand-rgb: 167, 196, 212;
  --acta-brand-hi-rgb: 202, 215, 223;
  --acta-surface-deep: #1b2329;
}
