/* ============================================================
   APPARENS DESIGN SYSTEM
   Strategic consulting visual language
   ============================================================ */

/* Fonts loaded via apparens-fonts.css */

:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-deep-blue: #051C2C;
  --color-navy: #0A2540;
  --color-mid-blue: #1A3A5C;
  --color-white: #FFFFFF;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #EAEAEA;
  --color-gray-300: #D4D4D4;
  --color-gray-500: #6B6B6B;
  --color-gray-700: #333333;
  --color-ice-blue: #E8F0FE;
  --color-cream: #F5F0E8;
  --color-apparens-orange: #E65710;
  --color-apparens-orange-hover: #D14D0E;
  --color-apparens-orange-text: #C44B0C;
  --color-apparens-teal: #135975;
  --color-rag-red: #DE350B;
  --color-rag-amber: #FF991F;
  --color-rag-green: #00875A;

  --text-xs: 0.8rem; --text-sm: 0.889rem; --text-base: 1rem; --text-md: 1.125rem;
  --text-lg: 1.25rem; --text-xl: 1.563rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --weight-normal: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;
  --leading-tight: 1.1; --leading-snug: 1.25; --leading-normal: 1.5; --leading-relaxed: 1.7;
  --tracking-tight: -0.02em; --tracking-wide: 0.04em; --tracking-wider: 0.08em;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-8: 48px; --space-10: 64px; --space-12: 80px; --space-16: 112px;
  --container-max: 1200px; --gutter: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08); --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --transition-fast: 150ms ease; --transition-base: 250ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-gray-700); background: var(--color-white); line-height: var(--leading-normal); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[id] { scroll-margin-top: 80px; }

/* ── SKIP LINK ──────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--color-apparens-orange); color: var(--color-white);
  padding: 8px 16px; font-size: var(--text-sm); font-weight: var(--weight-semibold);
  text-decoration: none; z-index: 9999; border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* ── FOCUS STATES ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-apparens-orange);
  outline-offset: 2px;
}
.nav__link:focus-visible, .nav__cta:focus-visible, .nav__dropdown-toggle:focus-visible,
.nav__dropdown-link:focus-visible, .lang-switch__btn:focus-visible {
  outline: 2px solid var(--color-apparens-orange);
  outline-offset: 2px;
}
.btn:focus-visible { outline: 2px solid var(--color-apparens-orange); outline-offset: 3px; }

/* ── LANGUAGE TOGGLE ─────────────────────────────────── */
html[lang="nl"] [lang="en"]:not(html) { display: none; }
html[lang="en"] [lang="nl"]:not(html) { display: none; }
html:not([lang="nl"]):not([lang="en"]) [lang="nl"]:not(html) { display: none; }

.lang-switch {
  display: flex; align-items: center; gap: 2px;
  margin-left: var(--space-3);
}
.lang-switch__btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: var(--weight-semibold); letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6); padding: 4px 6px;
  transition: color var(--transition-fast);
}
.lang-switch__btn:hover { color: rgba(255,255,255,0.7); }
.lang-switch__btn--active { color: var(--color-apparens-orange); }
.lang-switch__sep {
  color: rgba(255,255,255,0.5); font-size: var(--text-xs);
  user-select: none;
}

/* ── LAYOUT ──────────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-16) 0; }
.section--light { background: var(--color-white); }
.section--subtle { background: var(--color-gray-100); }
.section--cream { background: var(--color-cream); }
.section--dark, .on-dark { background: var(--color-deep-blue); color: var(--color-white); }

/* ── BACKGROUND IMAGE SECTIONS ───────────────────────── */
.section--bg {
  position: relative;
  overflow: hidden;
}
.section--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.07;
  filter: grayscale(100%);
  z-index: 0;
}
.section--bg > * {
  position: relative;
  z-index: 1;
}
/* Dark sections with bg image get slightly more visible image */
.section--bg.on-dark::before { opacity: 0.12; }
/* Individual bg assignments */
.bg-pipes::before { background-image: url('bg-pipes.webp'); }
.bg-gauges::before { background-image: url('bg-gauges.webp'); }
.bg-bolts::before { background-image: url('bg-bolts.webp'); }
.bg-valves::before { background-image: url('bg-valves.webp'); }
.bg-controls::before { background-image: url('bg-controls.webp'); }
.bg-wheels::before { background-image: url('bg-wheels.webp'); }

/* ── TYPOGRAPHY ──────────────────────────────────────── */
.display-lg { font-family: var(--font-display); font-size: var(--text-4xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.heading-1 { font-family: var(--font-display); font-size: var(--text-3xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.heading-2 { font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-snug); }
.heading-3 { font-family: var(--font-display); font-size: var(--text-xl); line-height: var(--leading-snug); }
.overline { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--color-apparens-orange); }
.lead { font-size: var(--text-md); color: var(--color-gray-500); line-height: var(--leading-relaxed); }
.on-dark .lead { color: rgba(255,255,255,0.7); }
.on-dark .overline { color: var(--color-apparens-orange); }

/* ── SPACING UTILITIES ───────────────────────────────── */
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--color-deep-blue); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__top {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  height: 48px;
}
.nav__top-right {
  display: flex; align-items: center; gap: 16px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav__logo img { height: 28px; width: auto; }
.nav__links {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: var(--space-5);
  list-style: none; height: 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav__link {
  font-size: var(--text-sm); color: rgba(255,255,255,0.7);
  text-decoration: none; transition: color var(--transition-fast);
}
.nav__link:hover { color: var(--color-white); }
.nav__link--active { color: var(--color-white); }
.nav__cta {
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--color-white); background: var(--color-apparens-orange);
  padding: 6px 18px; text-decoration: none;
  transition: background var(--transition-fast);
}
.nav__cta:hover { background: var(--color-apparens-orange-hover); }
.nav__book {
  font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--color-apparens-orange); text-decoration: none !important;
  transition: color var(--transition-fast); letter-spacing: 0.01em;
}
.nav__book:hover { color: var(--color-apparens-orange-hover); }

/* ── NAV DROPDOWN ────────────────────────────────────── */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  font-family: inherit; font-size: var(--text-sm); color: rgba(255,255,255,0.7);
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 4px;
  transition: color var(--transition-fast);
}
.nav__dropdown-toggle:hover,
.nav__dropdown.open .nav__dropdown-toggle { color: var(--color-white); }
.nav__dropdown-arrow { transition: transform 0.2s ease; }
.nav__dropdown.open .nav__dropdown-arrow { transform: rotate(180deg); }
.nav__dropdown-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--color-deep-blue); border: 1px solid rgba(255,255,255,0.1);
  list-style: none; padding: 8px 0; min-width: 220px; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav__dropdown.open .nav__dropdown-menu { display: block; }
.nav__dropdown-link {
  display: block; padding: 8px 20px; font-size: var(--text-sm);
  color: rgba(255,255,255,0.7); text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav__dropdown-link:hover {
  color: var(--color-white); background: rgba(255,255,255,0.06);
}

/* ── MOBILE NAV ──────────────────────────────────────── */
.nav__hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px 0; transition: all 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav__hamburger { display: block; }
  .nav__links {
    display: none; position: absolute; top: 48px; left: 0; right: 0;
    background: var(--color-deep-blue); flex-direction: column;
    padding: var(--space-5) var(--gutter); gap: var(--space-4);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-top: none; height: auto; justify-content: flex-start;
  }
  .nav__links.open { display: flex; }
  .nav__cta { text-align: center; }
  .nav__book { text-align: center; }
  .nav__dropdown-menu {
    position: static; transform: none; border: none;
    box-shadow: none; padding: 0 0 0 16px; min-width: 0;
    background: transparent;
  }
  .nav__dropdown.open .nav__dropdown-menu { display: block; }
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  padding: 160px 0 var(--space-16);
  background: var(--color-deep-blue); color: var(--color-white);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('bg-wheels.webp');
  background-size: cover; background-position: center;
  opacity: 0.08; filter: grayscale(100%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .accent-bar { width: 48px; height: 3px; background: var(--color-apparens-orange); margin-bottom: var(--space-6); }
.hero__title { max-width: 720px; margin-bottom: var(--space-6); }
.hero__sub { font-size: var(--text-md); color: rgba(255,255,255,0.75); max-width: 560px; line-height: var(--leading-relaxed); margin-bottom: var(--space-8); }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  padding: 160px 0 var(--space-12);
  background: var(--color-deep-blue); color: var(--color-white);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.1; filter: grayscale(100%);
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero__content { max-width: 640px; }
.page-hero--pipes::before { background-image: url('bg-pipes.webp'); }
.page-hero--gauges::before { background-image: url('bg-gauges.webp'); }
.page-hero--bolts::before { background-image: url('bg-bolts.webp'); }
.page-hero--valves::before { background-image: url('bg-valves.webp'); }
.page-hero--controls::before { background-image: url('bg-controls.webp'); }
.page-hero--wheels::before { background-image: url('bg-wheels.webp'); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: var(--weight-semibold); text-decoration: none;
  padding: 14px 32px; transition: all var(--transition-base); cursor: pointer;
  border: none;
}
.btn--primary { background: var(--color-apparens-orange); color: var(--color-white); }
.btn--primary:hover { background: var(--color-apparens-orange-hover); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--color-white); }
.btn--outline:hover { border-color: var(--color-white); }
.btn--outline-dark { background: transparent; border: 1px solid var(--color-gray-300); color: var(--color-gray-700); }
.btn--outline-dark:hover { border-color: var(--color-deep-blue); color: var(--color-deep-blue); }
.link-arrow { text-decoration: none; font-weight: var(--weight-medium); font-size: var(--text-sm); color: var(--color-apparens-orange); }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { text-decoration: underline; }

/* ── CARDS ────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .card-grid, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; }
}

.routing-card {
  padding: var(--space-6); border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-base);
}
.routing-card:hover { border-color: var(--color-apparens-orange); background: rgba(255,255,255,0.03); }
.routing-card__label { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--color-apparens-orange); margin-bottom: var(--space-3); }
.routing-card__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-white); margin-bottom: var(--space-3); }
.routing-card__desc { font-size: var(--text-sm); color: rgba(255,255,255,0.6); line-height: var(--leading-relaxed); }

.value-card {
  padding: var(--space-6);
  border-left: 3px solid var(--color-apparens-orange);
}
.value-card__num { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-apparens-orange); margin-bottom: var(--space-3); letter-spacing: var(--tracking-wider); }
.value-card__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-deep-blue); margin-bottom: var(--space-3); }
.value-card__desc { font-size: var(--text-sm); color: var(--color-gray-500); line-height: var(--leading-relaxed); }

.phase-card {
  padding: var(--space-6); background: var(--color-white);
  border: 1px solid var(--color-gray-200); transition: all var(--transition-base);
}
.phase-card:hover { border-color: var(--color-apparens-orange); box-shadow: var(--shadow-md); }
.phase-card__num { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-apparens-orange); letter-spacing: var(--tracking-wider); margin-bottom: var(--space-3); }
.phase-card__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-deep-blue); margin-bottom: var(--space-3); }
.phase-card__desc { font-size: var(--text-sm); color: var(--color-gray-500); line-height: var(--leading-relaxed); }

.deliv-card { padding: var(--space-5); border: 1px solid rgba(255,255,255,0.1); }
.deliv-card__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-white); margin-bottom: var(--space-2); }
.deliv-card__desc { font-size: var(--text-sm); color: rgba(255,255,255,0.5); line-height: var(--leading-normal); }

/* ── BLOG CARDS ──────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  text-decoration: none; border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base); display: block;
}
.blog-card:hover { border-color: var(--color-apparens-orange); box-shadow: var(--shadow-md); }
.blog-card__img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.blog-card__body { padding: var(--space-5); }
.blog-card__overline { font-size: 0.7rem; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--color-apparens-orange); margin-bottom: var(--space-2); }
.blog-card__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-deep-blue); line-height: var(--leading-snug); margin-bottom: var(--space-3); }
.blog-card__meta { font-size: var(--text-xs); color: var(--color-gray-500); }

/* ── PRICING ─────────────────────────────────────────── */
.price-highlight {
  background: var(--color-cream); border-left: 3px solid var(--color-apparens-orange);
  padding: var(--space-6); margin: var(--space-6) 0;
}
.price-highlight__amount { font-family: var(--font-display); font-size: var(--text-3xl); color: var(--color-deep-blue); }
.price-highlight__note { font-size: var(--text-sm); color: var(--color-gray-500); margin-top: var(--space-2); }

/* ── FREE RESOURCES BAND ─────────────────────────────── */
.resources-band {
  background: var(--color-cream); padding: var(--space-10) 0;
  position: relative; overflow: hidden;
}
.resources-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('bg-bolts.webp');
  background-size: cover; background-position: center;
  opacity: 0.04; filter: grayscale(100%);
  z-index: 0;
}
.resources-band > * { position: relative; z-index: 1; }
.resources-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8);
  max-width: 900px; margin: 0 auto;
}
@media (max-width: 768px) { .resources-grid { grid-template-columns: 1fr; } }
.resource-item { }
.resource-item__title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-deep-blue); margin-bottom: var(--space-3); }
.resource-item__desc { font-size: var(--text-sm); color: var(--color-gray-500); line-height: var(--leading-relaxed); margin-bottom: var(--space-4); }

/* ── BOOK CALLOUT (credibility band) ─────────────────── */
.book-callout {
  display: flex; gap: var(--space-6); align-items: center;
  padding: var(--space-6); background: var(--color-white);
  border: 1px solid var(--color-gray-200);
}
.book-callout__img { width: 80px; height: auto; flex-shrink: 0; }
.book-callout__text { flex: 1; }
.book-callout__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-deep-blue); margin-bottom: var(--space-2); }
.book-callout__desc { font-size: var(--text-sm); color: var(--color-gray-500); line-height: var(--leading-normal); }
@media (max-width: 768px) {
  .book-callout { flex-direction: column; text-align: center; }
}

/* ── ABOUT PAGE ──────────────────────────────────────── */
.about-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-10); }
.about-sidebar { align-self: start; }
@media (min-width: 769px) { .about-sidebar { position: sticky; top: 96px; } }
@media (max-width: 768px) { .about-layout { grid-template-columns: 1fr; } .about-sidebar { position: static; text-align: center; } .about-sidebar img { max-width: 220px; margin-inline: auto; } }
.about-sidebar img { width: 100%; margin-bottom: var(--space-4); }
.about-main p { margin-bottom: var(--space-5); line-height: var(--leading-relaxed); }

/* ── CONTACT FORM ────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }
.form-group { margin-bottom: var(--space-5); }
.form-group label { display: block; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-deep-blue); margin-bottom: var(--space-2); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; font-family: var(--font-body); font-size: var(--text-base);
  border: 1px solid var(--color-gray-300); background: var(--color-white);
  transition: border-color var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--color-apparens-teal);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── DIAGNOSTIC SNAPSHOT ─────────────────────────────── */
.snapshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 768px) { .snapshot-grid { grid-template-columns: 1fr; } }
.snapshot-grid img { width: 100%; border: 1px solid var(--color-gray-200); }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--color-deep-blue); color: rgba(255,255,255,0.5);
  padding: var(--space-8) 0;
  position: relative; overflow: hidden;
  contain: layout style;
}
.footer::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('bg-controls.webp');
  background-size: cover; background-position: center;
  opacity: 0.05; filter: grayscale(100%);
  z-index: 0;
}
.footer > * { position: relative; z-index: 1; }
.footer__text { font-size: var(--text-sm); }
.footer__link { font-size: var(--text-sm); text-decoration: none; color: rgba(255,255,255,0.5); transition: color var(--transition-fast); }
.footer__link:hover { color: var(--color-white); }

/* ── RESPONSIVE GRID UTILITIES ────────────────────────── */
.three-col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.three-col-grid > div > .heading-2 { min-height: 2.8em; }

/* ── STICKY CTA BAR ──────────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: rgba(27, 42, 74, 0.8);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
  transform: translateY(100%); opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
.sticky-cta.visible { transform: translateY(0); opacity: 1; }
.sticky-cta__inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.sticky-cta__text {
  font-family: var(--font-display); font-size: var(--text-sm);
  color: rgba(255,255,255,0.5); font-style: italic;
}
.sticky-cta__btn { padding: 10px 28px; font-size: var(--text-xs); white-space: nowrap; }

/* ── PROOF OF WORK BAND ─────────────────────────────── */
.proof-of-work-band {
  background: var(--color-navy); padding: var(--space-12) 0;
  position: relative; overflow: hidden;
  border-top: 3px solid var(--color-apparens-orange);
}
.proof-of-work-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(230,87,16,0.06) 0%, transparent 70%);
}
.proof-of-work-band > * { position: relative; z-index: 1; }
.proof-of-work__inner {
  display: grid; grid-template-columns: 1fr 280px; gap: var(--space-10); align-items: center;
}
.proof-of-work__preview {
  text-decoration: none; display: block;
  transition: transform var(--transition-base);
}
.proof-of-work__preview:hover { transform: translateY(-4px); }
.proof-of-work__thumb-stack {
  position: relative; width: 240px; height: 280px; margin: 0 auto;
}
.proof-of-work__thumb {
  position: absolute; background: var(--color-white);
  border: 1px solid var(--color-gray-200); box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.proof-of-work__thumb--back {
  width: 200px; height: 260px; top: 0; left: 40px;
  transform: rotate(3deg); opacity: 0.5;
}
.proof-of-work__thumb--mid {
  width: 200px; height: 260px; top: 5px; left: 25px;
  transform: rotate(1.5deg); opacity: 0.7;
}
.proof-of-work__thumb--front {
  width: 200px; height: 260px; top: 10px; left: 10px;
  transform: rotate(0deg); padding: var(--space-4);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.proof-of-work__thumb-bar {
  position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--color-apparens-orange);
}

/* ── WHO THIS IS FOR (persona cards) ──────────────────── */
.persona-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}
.persona-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  transition: all var(--transition-base);
}
.persona-card:hover {
  border-color: var(--color-apparens-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.persona-card__visual {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.persona-card__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--color-white) 100%);
}
.persona-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.persona-card__text {
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-medium);
}

/* ── BRIEFING EMAIL CAPTURE ──────────────────────────── */
.briefing-capture {
  background: var(--color-cream); padding: var(--space-10) 0;
  position: relative; overflow: hidden;
}
.briefing-capture::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('bg-gauges.webp');
  background-size: cover; background-position: center;
  opacity: 0.03; filter: grayscale(100%); z-index: 0;
}
.briefing-capture > * { position: relative; z-index: 1; }
.briefing-form {
  display: flex; max-width: 420px; margin: 0 auto;
  border: 1px solid var(--color-gray-300); background: var(--color-white);
  overflow: hidden;
}
.briefing-form__input {
  flex: 1; padding: 14px 16px; font-family: var(--font-body); font-size: var(--text-sm);
  border: none; background: transparent; min-width: 0;
}
.briefing-form__input:focus { outline: none; }
.briefing-form__input::placeholder { color: var(--color-gray-300); }
.briefing-form__input:-webkit-autofill,
.briefing-form__input:-webkit-autofill:hover,
.briefing-form__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px white inset;
  -webkit-text-fill-color: var(--color-deep-blue);
}
.briefing-form__btn {
  padding: 14px 24px; border: none; white-space: nowrap;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-semibold);
  background: var(--color-apparens-orange); color: var(--color-white); cursor: pointer;
  transition: background var(--transition-fast);
}
.briefing-form__btn:hover { background: var(--color-apparens-orange-hover); }

/* ── RESOURCE GATE (button → email → download) ───────── */
.resource-gate { margin-top: var(--space-4); }
.resource-gate__trigger {
  display: inline-block; padding: 10px 24px;
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  background: var(--color-apparens-orange); color: var(--color-white);
  border: none; cursor: pointer; letter-spacing: 0.02em;
  transition: background var(--transition-fast);
}
.resource-gate__trigger:hover { background: var(--color-apparens-orange-hover); }
.resource-gate__form {
  display: none; margin-top: var(--space-3);
  border: 1px solid var(--color-gray-300); background: var(--color-white);
  overflow: hidden; max-width: 360px;
}
.resource-gate__form.active { display: flex; }
.resource-gate__input {
  flex: 1; padding: 10px 14px; font-family: var(--font-body); font-size: var(--text-xs);
  border: none; background: transparent; min-width: 0;
}
.resource-gate__input:focus { outline: none; }
.resource-gate__input::placeholder { color: var(--color-gray-300); }
.resource-gate__btn {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  background: var(--color-apparens-orange); color: var(--color-white);
  border: none; padding: 10px 16px; cursor: pointer; white-space: nowrap;
  transition: background var(--transition-fast);
}
.resource-gate__btn:hover { background: var(--color-apparens-orange-hover); }

/* ── PROCESS GRID (engagement steps) ─────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-line {
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; z-index: 1;
  background: #E8612D;
}
.process-step {
  border-top: none;
  padding: var(--space-6) var(--space-5) 0 0;
  position: relative; z-index: 2;
}
.process-step:last-child { padding-right: 0; }
.process-step__num {
  font-family: var(--font-display); font-size: var(--text-xl);
  color: #E8612D; margin-bottom: var(--space-3);
  transition: transform 0.3s ease;
}
.process-step:hover .process-step__num {
  transform: translateX(4px);
}
.process-step__title {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--color-white); line-height: 1.2;
}

/* ── STAGGERED SCROLL REVEALS ────────────────────────── */
.fade-up-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up-stagger.visible { opacity: 1; transform: translateY(0); }
.fade-up-stagger:nth-child(1) { transition-delay: 0s; }
.fade-up-stagger:nth-child(2) { transition-delay: 0.1s; }
.fade-up-stagger:nth-child(3) { transition-delay: 0.2s; }
.fade-up-stagger:nth-child(4) { transition-delay: 0.3s; }
.fade-up-stagger:nth-child(5) { transition-delay: 0.4s; }
.fade-up-stagger:nth-child(6) { transition-delay: 0.5s; }
.fade-up-stagger:nth-child(7) { transition-delay: 0.6s; }

/* ── ENHANCED MICRO-INTERACTIONS ─────────────────────── */
.btn { transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 97, 45, 0.35);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--outline:hover, .btn--outline-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.persona-card { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.resource-item {
  transition: all 0.25s ease;
}
.resource-item:hover {
  transform: translateY(-2px);
}
.blog-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.routing-card { transition: all 0.3s ease; }
.routing-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-apparens-orange);
}
.link-arrow {
  transition: color 0.2s ease, letter-spacing 0.3s ease;
}
.link-arrow:hover {
  letter-spacing: 0.02em;
}
.nav__link::after {
  content: ''; display: block; height: 2px; width: 0;
  background: var(--color-apparens-orange);
  transition: width 0.3s ease;
}
.nav__link:hover::after { width: 100%; }

/* end of micro-interactions */

/* ── SCROLL ANIMATIONS ───────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── GLOBAL OVERFLOW PREVENTION ─────────────────────── */
html, body { overflow-x: hidden; }
.container { overflow-wrap: break-word; }

/* ── TABLET BREAKPOINT ──────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: 1fr !important; }
  .proof-of-work__inner { grid-template-columns: 1fr 240px; gap: var(--space-6); }
}

/* ── RESPONSIVE (MOBILE) ───────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .display-lg { font-size: var(--text-3xl); }
  .heading-1 { font-size: var(--text-2xl); }
  .section { padding: var(--space-12) 0; }
  .hero { padding: 120px 0 var(--space-12); }
  .page-hero { padding: 100px 0 var(--space-10); }
  .container { padding: 0 20px; }
  .three-col-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .persona-card__visual { height: 120px; }
  .proof-of-work__inner { grid-template-columns: 1fr; }
  .proof-of-work__preview { max-width: 260px; margin: 0 auto; }
  .proof-of-work__thumb-stack { width: 200px; height: 240px; }
  .proof-of-work__thumb--back { width: 170px; height: 220px; left: 30px; }
  .proof-of-work__thumb--mid { width: 170px; height: 220px; left: 18px; }
  .proof-of-work__thumb--front { width: 170px; height: 220px; left: 5px; }
  .sticky-cta__text { display: none; }
  .sticky-cta__inner { justify-content: center; }
  .sticky-cta__btn { width: 100%; text-align: center; }
  .briefing-form { flex-direction: column; border: none; background: transparent; }
  .briefing-form__input { border: 1px solid var(--color-gray-300); background: var(--color-white); }
  .briefing-form__btn { text-align: center; }
  .resource-gate__form { flex-direction: column; border: none; max-width: 100%; }
  .resource-gate__input { border: 1px solid var(--color-gray-300); background: var(--color-white); padding: 12px 14px; }
  .resource-gate__btn { text-align: center; padding: 12px 16px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-line { display: none; }
  .fade-up-stagger { transition-delay: 0s !important; }
  .process-step {
    border-top: none; border-left: 2px solid rgba(255,255,255,0.15);
    padding: var(--space-4) 0 var(--space-4) var(--space-5);
    position: relative;
  }
  .process-step::before {
    content: ''; position: absolute; left: -5px; top: var(--space-5);
    width: 8px; height: 8px; background: var(--color-apparens-orange);
    border-radius: 50%;
  }
  .process-step__num { font-size: var(--text-base); margin-bottom: var(--space-1); }
  .process-step__title { font-size: var(--text-lg); }
  /* Swap to lighter mobile background images + slightly more opacity for small screens */
  .hero::before { background-image: url('bg-wheels-mobile.webp') !important; opacity: 0.12; }
  .page-hero::before { opacity: 0.14; }
  .page-hero--pipes::before { background-image: url('bg-pipes-mobile.webp') !important; }
  .page-hero--gauges::before { background-image: url('bg-gauges-mobile.webp') !important; }
  .page-hero--valves::before { background-image: url('bg-valves-mobile.webp') !important; }
  .page-hero--bolts::before { background-image: url('bg-bolts-mobile.webp') !important; }
  .page-hero--controls::before { background-image: url('bg-controls-mobile.webp') !important; }
  .page-hero--wheels::before { background-image: url('bg-wheels-mobile.webp') !important; }
  .footer::before,
  .resources-band::before,
  .briefing-capture::before,
  .section--bg::before { background-image: none !important; }
  /* Touch targets: minimum 44px tap area */
  .nav__links.open .nav__link { min-height: 44px; display: flex; align-items: center; }
  .nav__links.open .nav__cta { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .btn { min-height: 44px; }
  .briefing-form__btn { min-height: 44px; }
  .resource-gate__trigger { min-height: 44px; }
  .resource-gate__btn { min-height: 44px; }
  /* Inline-grid mobile overrides */
  .mob-stack { grid-template-columns: 1fr !important; }
  .mob-stack > div, .mob-stack > a { padding: 28px 24px !important; }
  .mob-stack-lean { grid-template-columns: 1fr !important; }
  .obeya-grid { grid-template-columns: 1fr !important; }
  .obeya-grid img { max-width: 220px; margin: 0 auto; }
  .quote-two-col { grid-template-columns: 1fr !important; }
  .mob-avatars { grid-template-columns: 80px 80px !important; grid-template-rows: auto auto !important; }
  .mob-avatars > div { grid-column: 1 / -1; }
}
