/* ETL brand layer on top of the Industry design system (loaded first). */
:root {
  --color-accent: #7a003a;
  --color-accent-100: oklch(0.955 0.018 358);
  --color-accent-200: oklch(0.89 0.045 358);
  --color-accent-300: oklch(0.78 0.09 358);
  --color-accent-400: oklch(0.6 0.15 358);
  --color-accent-500: #7a003a;
  --color-accent-600: oklch(0.32 0.13 358);
  --color-accent-700: oklch(0.34 0.13 358);
  --color-accent-800: oklch(0.25 0.09 358);
  --color-accent-900: oklch(0.2 0.07 358);
  --etl-amber: #fdb833;
  --etl-amber-600: #eba21c;
}

html { scroll-behavior: smooth; scroll-padding-top: 130px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }

@keyframes etl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes etl-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes etl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hv-tint { transition: background 0.25s; }
.hv-row, .hv-row-amber { transition: padding 0.25s, color 0.2s; }

/* Scroll reveal (driven by etl-motion.js). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease var(--reveal-delay, 0ms), transform 0.9s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms), background 0.25s;
}
.js [data-reveal][data-from="left"] { transform: translateX(-48px); }
.js [data-reveal][data-from="right"] { transform: translateX(48px); }
.js [data-reveal].is-revealed,
.js.motion-off [data-reveal] { opacity: 1; transform: none; }
.js.motion-off [data-reveal] { transition: none; }

/* Cross-fading image stacks (home hero slideshow, AMP feature explorer). */
.fade-stack > * { opacity: 0; transition: opacity 1.2s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.fade-stack > .is-active { opacity: 1; }
.fade-stack-zoom > * { transform: scale(1.04); }
.fade-stack-zoom > .is-active { transform: scale(1); }
.slide-dot span { display: block; width: 100%; height: 3px; background: color-mix(in srgb, var(--color-bg) 35%, transparent); transition: background 0.4s; }
.slide-dot[aria-current="true"] span { background: var(--etl-amber); }

/* AMP feature explorer tabs. */
.feature-tab { text-align: left; background: transparent; border: 0; border-top: 1px solid var(--color-divider); border-left: 3px solid transparent; padding: 18px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-body); color: var(--color-text); transition: background 0.25s; }
.feature-tab:hover { background: color-mix(in srgb, var(--color-accent-100) 60%, transparent); }
.feature-tab[aria-selected="true"] { background: var(--color-accent-100); border-left-color: var(--color-accent); }
.feature-tab .feature-body { display: none; font-size: 15px; line-height: 1.55; }
.feature-tab[aria-selected="true"] .feature-body { display: block; }
.feature-caption:not(.is-active) { display: none; }

/* Skip link: visible only when focused. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--color-accent); color: var(--color-bg);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--color-bg); }

/* Header: desktop links above 1060px, menu button below. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
.nav-links-wide { display: flex; }
.menu-toggle { display: none; }
.mobile-menu { display: flex; }
.mobile-menu[hidden] { display: none; }
@media (max-width: 1059.98px) {
  .nav-links-wide { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1060px) {
  .mobile-menu { display: none !important; }
}
/* Small phones: keep logo and Menu on one row (Contact moves into the menu)
   and fit phone and email on one line in the top bar. */
.topbar-link { min-height: 24px; }
@media (max-width: 559.98px) {
  .topbar-tagline { display: none !important; }
  .nav-contact { display: none; }
}

/* Home stats strip: 1, 2 or 4 columns, with padding and dividers to match. */
.stat { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; }
.stat + .stat { border-top: 1px solid var(--color-divider); }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 28px; }
  .stat + .stat { border-top: 0; }
  .stat:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--color-divider); }
  .stat:nth-child(even) { padding-right: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--color-divider); }
}
@media (min-width: 1100px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: 36px 28px; border-top: 0; border-right: 1px solid var(--color-divider); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { padding-right: 0; border-right: 0; }
}

/* Contact intro only sticks when it sits beside the form, not above it. */
@media (min-width: 1080px) {
  .contact-intro { position: sticky; top: 140px; }
}

/* Click-to-load Google map (no request to Google until asked). */
.map-consent {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 32px 24px; text-align: center; background: var(--color-surface);
}
.map-frame { border: 0; width: 100%; min-height: 380px; filter: grayscale(0.6); }

/* Solid amber and light-outline buttons used on the dark and accent bands. */
.btn-amber, .btn-ghost-light {
  min-height: 52px; padding: 0 28px; font-size: 16px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
}
.btn-amber { background: var(--etl-amber); border-color: var(--etl-amber); color: var(--color-accent-900); }
.btn-ghost-light { color: var(--color-bg); border-color: color-mix(in srgb, var(--color-bg) 55%, transparent); }

/*
 * Hover and keyboard-focus states. Most elements carry inline styles from the
 * original design, so these need !important to win over them.
 */
.hv-amber:is(:hover, :focus-visible) { color: var(--etl-amber) !important; }
.btn-amber:is(:hover, :focus-visible),
.hv-btn-amber:is(:hover, :focus-visible) { background: var(--etl-amber-600) !important; color: var(--color-accent-900) !important; }
.btn-ghost-light:is(:hover, :focus-visible),
.hv-btn-ghost:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--color-bg) 14%, transparent) !important; color: var(--color-bg) !important; }
.hv-row-amber:is(:hover, :focus-visible) { color: var(--etl-amber) !important; padding-left: 10px !important; }
.hv-row:is(:hover, :focus-visible) { color: var(--color-accent) !important; padding-left: 8px !important; }
.hv-accent:is(:hover, :focus-visible) { color: var(--color-accent) !important; }
.hv-icon-amber:is(:hover, :focus-visible) { color: var(--etl-amber) !important; border-color: var(--etl-amber) !important; }
.hv-tint:is(:hover, :focus-visible) { background: var(--color-accent-100) !important; color: var(--color-text) !important; }
.hv-zoom:hover, .hv-tint:is(:hover, :focus-visible) .hv-zoom { transform: scale(1.07) !important; }
.hv-zoom-sm:hover, .hv-tint:is(:hover, :focus-visible) .hv-zoom-sm { transform: scale(1.05) !important; }

/* Pill-style radio buttons (contact topics). */
.pill-radio { position: relative; display: inline-flex; }
.pill-radio input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill-radio span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  font-size: 14px; font-weight: 500; border: 1px solid var(--color-divider);
  color: var(--color-text); background: transparent; transition: background 0.2s;
}
.pill-radio input:hover + span { background: var(--color-accent-100); }
.pill-radio input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.pill-radio input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Segmented toggle on a dark band (apprenticeship levels). */
.seg-dark button[aria-pressed="true"] { background: var(--etl-amber) !important; color: var(--color-accent-900) !important; }

/* Accordion built on <details>. */
.faq summary { list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-icon { transition: transform 0.3s; }
.faq[open] summary { color: var(--color-accent); }
.faq[open] summary .faq-icon { transform: rotate(45deg); }

/* Blog post body (HTML from the editor). */
.prose { font-size: 18px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 1.8em 0 0.5em; }
.prose h2 { font-size: clamp(30px, 3.4vw, 42px); }
.prose h3 { font-size: clamp(24px, 2.6vw, 32px); }
.prose h4 { font-size: 22px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose img { display: block; height: auto; margin: 1.6em 0; border: 1px solid var(--color-divider); }
.prose blockquote { padding: 4px 0 4px 24px; border-left: 3px solid var(--etl-amber); font-family: var(--font-heading); font-size: 1.35em; line-height: 1.25; }
.prose pre { padding: 16px; overflow-x: auto; background: var(--color-accent-100); font-size: 15px; }
.prose code { font-size: 0.9em; }
.prose hr { border: 0; border-top: 1px solid var(--color-divider); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--color-divider); text-align: left; vertical-align: top; }
.prose th { background: var(--color-accent-100); }

/* Form feedback. */
.form-errors { margin: 0; padding: 14px 18px; border: 1px solid var(--color-accent); background: var(--color-accent-100); color: var(--color-accent-900); font-size: 15px; line-height: 1.5; }
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
