/* Shared chrome for example SEO landing pages.
   Pulls colors_and_type.css and adds page-frame components
   used across all five examples (header, footer, breadcrumb, etc.) */

@import url("./colors_and_type.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-page); color: var(--fg-body); font-family: var(--font-sans); }
a { color: inherit; }

/* ── Container ──────────────────────────────────────── */
.lp-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px); }

/* ── Top utility bar ────────────────────────────────── */
.lp-utility {
  background: var(--accent); color: var(--fg-on-orange);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 8px 0; text-align: center;
}
.lp-utility b { font-weight: 700; }
.lp-utility .sep { opacity: 0.5; padding: 0 14px; }

/* ── Header ─────────────────────────────────────────── */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: #0E2748;
  border-bottom: 1px solid #1C3C66;
}
.lp-header-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; }

/* ── Logo lockup (matches workshop signage: navy + orange offset shadow) ─ */
.lp-logo {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  padding: 4px 0;
}
.lp-logo img { height: 64px; width: auto; display: block; } /* legacy fallback */

.lp-logo-mark {
  width: 58px; height: 58px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.lp-logo-mark svg { width: 100%; height: 100%; display: block; }

/* Flat brand mark — solid orange gears, no shadow (matches the letterhead) */
.lp-logo-mark .gear-shadow,
.lp-logo-word-shadow {
  fill: transparent;
  color: transparent;
}
.lp-logo-mark .gear-fill,
.lp-logo-word-fill {
  fill: #D26720;
  color: #D26720;
}

.lp-logo-text {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.lp-logo-word-stack {
  position: relative;
  line-height: 0.85;
}
.lp-logo-word {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.005em;
  color: #F2F1ED;
}
.lp-logo-engineering {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: #F2F1ED;
  margin-top: 6px;
}
.lp-logo-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 241, 237, 0.55);
  line-height: 1;
  padding: 6px 0 0;
  margin-top: 2px;
  border-top: 1px solid rgba(242, 241, 237, 0.18);
}
.lp-logo-meta b { color: #F2F1ED; font-weight: 700; }
.lp-logo-meta .sep {
  display: inline-block; width: 1px; height: 8px;
  background: rgba(242, 241, 237, 0.25);
}

.lp-logo:hover .gear-fill { fill: #F2F1ED; transition: fill 0.2s; }
.lp-logo .gear-fill { transition: fill 0.2s; }

@media (max-width: 760px) {
  .lp-logo-meta { display: none; }
  .lp-logo-word { font-size: 24px; }
  .lp-logo-engineering { font-size: 9px; letter-spacing: 0.28em; }
  .lp-logo-mark { width: 46px; height: 46px; }
}
.lp-nav { display: flex; gap: 28px; list-style: none; }
.lp-nav a { font-size: 15px; font-weight: 500; color: rgba(242, 241, 237, 0.85); text-decoration: none; transition: color 0.15s; }
.lp-nav a:hover { color: var(--accent); }
.lp-nav a[aria-current="page"] { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.lp-header-cta { display: flex; gap: 10px; }

/* ── Mobile header (CSS-only, no JS — applies to every page) ─────────
   The desktop row (logo + full nav + two CTAs) overflows on phones.
   Below 860px we drop the nav to its own full-width bar, keep a single
   compact "Get a Quote" CTA, and shrink the logo. */
@media (max-width: 860px) {
  .lp-header-row {
    flex-wrap: wrap;
    column-gap: 12px; row-gap: 0;
    padding: 10px 18px;
  }
  .lp-logo { margin-right: auto; }
  .lp-header-cta { gap: 8px; flex-shrink: 0; }
  .lp-header-cta .lp-btn-secondary { display: none; }   /* keep one clear CTA */
  .lp-header-cta .lp-btn-primary { padding: 10px 16px; font-size: 13px; }
  .lp-header-row > nav { order: 3; flex-basis: 100%; width: 100%; }
  .lp-nav {
    gap: 0;
    flex-wrap: wrap;
    margin-top: 8px;
    border-top: 1px solid rgba(242, 241, 237, 0.14);
  }
  .lp-nav > li { flex: 0 0 auto; }
  .lp-nav a {
    display: inline-block;
    padding: 12px 16px 11px 0;
    margin-right: 18px;
    font-size: 14px;
    white-space: nowrap;
  }
  .lp-nav a[aria-current="page"] { border-bottom: 0; color: var(--accent); }
}
@media (max-width: 380px) {
  .lp-logo-engineering { display: none; }   /* tightest phones: ENEX wordmark only */
  .lp-header-cta .lp-btn-primary { padding: 9px 13px; }
}

/* Decorative drawing-annotation coordinates (hero corners) collide on
   narrow screens — keep only the top-left tag, hide the rest. */
@media (max-width: 600px) {
  [class$="hero-coord-tr"], [class$="hero-coord-br"] { display: none; }
}

/* Override secondary button + caret inside dark header so they read on dark blue */
.lp-header .lp-btn-secondary {
  color: #F2F1ED;
  border-color: rgba(242, 241, 237, 0.32);
}
.lp-header .lp-btn-secondary:hover {
  color: var(--accent); border-color: var(--accent);
}
.lp-header .megamenu-trigger .caret { color: rgba(242, 241, 237, 0.55); }

/* ── Services megamenu ─────────────────────────────────────── */
/* A hover/focus dropdown attached to the "Services" nav item.   */
/* Two columns: full list of 7 services + a featured highlight.  */
.lp-nav .has-megamenu { position: relative; }
.megamenu-trigger { display: inline-flex; align-items: center; gap: 6px; }
.megamenu-trigger .caret {
  font-size: 9px; color: var(--fg-dim);
  transition: transform 0.2s ease;
}
.has-megamenu:hover .megamenu-trigger .caret,
.has-megamenu:focus-within .megamenu-trigger .caret { transform: translateY(2px); color: var(--accent); }

.megamenu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(880px, 95vw);
  background: var(--bg-page);
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(15, 27, 45, 0.18), 0 4px 12px rgba(15, 27, 45, 0.08);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.has-megamenu:hover .megamenu,
.has-megamenu:focus-within .megamenu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Bridge the gap between trigger and panel so hover doesn't drop */
.megamenu::before {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.megamenu-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
}
.megamenu-col {
  padding: 28px 32px;
}
.megamenu-list-col { border-right: 1px solid var(--border); }
.megamenu-feature {
  background: var(--bg-section-alt);
  background-image: radial-gradient(rgba(46, 64, 96, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.megamenu-eyebrow {
  display: block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.megamenu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.megamenu-list li { margin: 0; }
.megamenu-list a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  text-decoration: none; color: inherit;
  border-left: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, padding-left 0.15s;
}
.megamenu-list a:hover,
.megamenu-list a:focus-visible {
  background: var(--bg-card);
  border-left-color: var(--accent);
  padding-left: 16px;
  outline: 0;
}
.megamenu-list a b {
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  color: var(--fg-heading); letter-spacing: -0.005em;
}
.megamenu-list a em {
  font-family: var(--font-mono); font-style: normal; font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.04em;
}
.megamenu-list a.all-services b { color: var(--accent); }

.megamenu-feature-card {
  display: block; text-decoration: none; color: inherit;
}
.megamenu-feature-card h4 {
  font-family: var(--font-display); font-size: 22px; color: var(--fg-heading);
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px;
}
.megamenu-feature-card p {
  font-size: 13px; line-height: 1.55; color: var(--fg-body); margin-bottom: 14px;
}
.megamenu-feature-link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.megamenu-feature-card:hover .megamenu-feature-link { letter-spacing: 0.18em; }

/* Mobile fallback — hide megamenu; the link still works as a tap. */
@media (max-width: 800px) {
  .megamenu { display: none; }
}

/* ── Buttons ────────────────────────────────────────── */
.lp-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; background: var(--accent); color: var(--fg-on-orange);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: var(--radius-sm); border: 0; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-glow-orange); transition: all 0.25s;
}
.lp-btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow-orange-hover); }
.lp-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; background: transparent; color: var(--fg-heading);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  text-decoration: none; cursor: pointer; transition: all 0.2s;
}
.lp-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Breadcrumbs ────────────────────────────────────── */
.lp-breadcrumb {
  background: var(--bg-section-alt); border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.lp-breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.08em; text-transform: uppercase;
}
.lp-breadcrumb li::after { content: "/"; padding: 0 8px; opacity: 0.5; }
.lp-breadcrumb li:last-child::after { content: ""; }
.lp-breadcrumb a { color: var(--fg-dim); text-decoration: none; }
.lp-breadcrumb a:hover { color: var(--accent); }
.lp-breadcrumb li[aria-current="page"] { color: var(--accent); }

/* ── Sections ───────────────────────────────────────── */
.lp-section { padding: 80px 0; }
.lp-section--alt { background: var(--bg-section-alt); }
.lp-section--card { background: var(--bg-card); }
.lp-section--narrow { padding: 56px 0; }

.lp-eyebrow {
  display: inline-block; padding: 4px 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.lp-h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.025em;
  color: var(--fg-heading); margin-bottom: 24px;
}
.lp-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--fg-heading); margin-bottom: 24px;
}
.lp-h3 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 22px; line-height: 1.15; color: var(--fg-heading);
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.lp-lead { font-size: 19px; line-height: 1.55; color: var(--fg-body); max-width: 720px; }
.lp-section h2 + .lp-lead { margin-bottom: 32px; }
.lp-prose p { font-size: 16px; line-height: 1.7; margin-bottom: 16px; max-width: 700px; }
.lp-prose strong { color: var(--fg-heading); font-weight: 700; }

/* ── Card grids ─────────────────────────────────────── */
.lp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 900px) {
  .lp-grid-3, .lp-grid-4 { grid-template-columns: 1fr 1fr; }
  .lp-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lp-grid-3, .lp-grid-4 { grid-template-columns: 1fr; }
}

.lp-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 28px; transition: border-color 0.2s, transform 0.2s;
}
.lp-card:hover { border-color: var(--accent); }
.lp-card--alt { background: var(--bg-page); }
.lp-card .counter {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 16px; display: block;
}
.lp-card p { font-size: 14px; line-height: 1.6; color: var(--fg-body); }
.lp-card p + p { margin-top: 8px; }

/* ── Spec / data table ─────────────────────────────── */
.lp-spec {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 0; border-top: 1px solid var(--border);
}
.lp-spec dt, .lp-spec dd {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.lp-spec dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-dim); padding-right: 24px;
}
.lp-spec dd { color: var(--fg-heading); font-weight: 600; }

/* ── FAQ accordion (CSS-only, native details) ───── */
.lp-faq details {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.lp-faq details:first-child { border-top: 1px solid var(--border); }
.lp-faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: 19px;
  color: var(--fg-heading); padding-right: 8px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+"; font-family: var(--font-mono); font-weight: 700;
  font-size: 24px; color: var(--accent);
  transition: transform 0.2s;
}
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--fg-body); max-width: 760px; }

/* ── Steps (HowTo) ──────────────────────────────────── */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 800px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step {
  background: var(--bg-card); border: 1px solid var(--border); padding: 32px 28px;
  position: relative;
}
.lp-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 40px; color: var(--accent);
  display: block; margin-bottom: 16px; line-height: 1;
}

/* ── Hero ───────────────────────────────────────────── */
.lp-hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background: var(--bg-section-alt); overflow: hidden;
}
.lp-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.5;
}
.lp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(242, 241, 237,0.96) 0%, rgba(242, 241, 237,0.78) 50%, rgba(242, 241, 237,0.40) 100%);
}
.lp-hero-inner { position: relative; z-index: 2; padding: 80px 0; max-width: 800px; }
.lp-hero-meta {
  display: flex; gap: 32px; padding-top: 32px; margin-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.04em; flex-wrap: wrap;
}
.lp-hero-meta b { display: block; color: var(--accent); font-size: 22px;
  font-family: var(--font-display); font-weight: 400; margin-bottom: 4px; letter-spacing: 0; }

/* ── CTA strip ──────────────────────────────────────── */
.lp-cta-strip {
  background: var(--accent); color: var(--fg-on-orange);
  position: relative; overflow: hidden;
  padding: 56px 0;
}
.lp-cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-55deg, transparent, transparent 12px, rgba(0,0,0,0.07) 12px, rgba(0,0,0,0.07) 24px);
  pointer-events: none;
}
.lp-cta-strip-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.lp-cta-strip h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05; color: var(--fg-on-orange); max-width: 720px; letter-spacing: -0.02em;
}
.lp-cta-strip .lp-btn-primary {
  background: var(--fg-heading); color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.lp-cta-strip .lp-btn-primary:hover { background: var(--bg-page); color: var(--accent); }

/* ── Reveal animations (subtle, opt-in) ──────────────────── */
@keyframes lp-reveal-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Timeline rise-in (About page story) — staggered as each item enters viewport */
.timeline > div {
  opacity: 0;
  animation: lp-reveal-rise 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.08s);
  animation-play-state: paused;
}
.timeline.is-in-view > div { animation-play-state: running; }

/* Service hub row stagger */
.svc-row {
  opacity: 0;
  animation: lp-reveal-rise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
  animation-play-state: paused;
}
.svc-grid.is-in-view .svc-row { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .timeline > div, .svc-row { opacity: 1; animation: none; }
}

/* ── Footer ─────────────────────────────────────────── */
.lp-footer {
  background: var(--fg-heading); color: var(--bg-page);
  padding: 64px 0 32px;
}
.lp-footer p { color: var(--bg-page); }
.lp-footer h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.lp-footer ul { list-style: none; }
.lp-footer li { margin-bottom: 8px; }
.lp-footer a { color: var(--bg-page); text-decoration: none; font-size: 14px; opacity: 0.85; }
.lp-footer a:hover { opacity: 1; color: var(--accent); }
.lp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 800px) { .lp-footer-grid { grid-template-columns: 1fr 1fr; } }

/* Workshop info column — appears once per page, identical everywhere */
.lp-footer-workshop p { font-size: 13px; line-height: 1.65; opacity: 0.85; margin: 0; }
.lp-footer-workshop p + p { margin-top: 10px; }
.lp-footer-workshop strong { display: block; color: var(--bg-page); font-weight: 600; opacity: 1; letter-spacing: -0.005em; }
.lp-footer-workshop .mono {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent); opacity: 1;
}
.lp-footer-bottom {
  display: flex; justify-content: space-between; padding-top: 24px;
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.1em;
}

/* ── Misc ───────────────────────────────────────────── */
.lp-text-link {
  color: var(--accent); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.lp-text-link:hover { color: var(--accent-hover); }
.lp-divider { height: 1px; background: var(--border); margin: 56px 0; }
.lp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent);
}
.lp-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Index gallery ────────────────────────────────────── */
.lp-index { padding: 64px 0; }
.lp-index-card {
  background: var(--bg-card); border: 1px solid var(--border); padding: 32px;
  text-decoration: none; color: var(--fg-body); display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.lp-index-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.lp-index-card .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block;
}
.lp-index-card h3 {
  font-family: var(--font-display); font-size: 22px; color: var(--fg-heading); margin-bottom: 8px;
}
.lp-index-card p { font-size: 14px; line-height: 1.55; color: var(--fg-dim); }
