/*
================================================================
IQ Intel · Sector page styles
================================================================
Built on top of iqintel-tokens.css. Mirrors blog.css patterns
(nav, breadcrumb, footer) so a reader moving between sectors,
blog, and home gets a consistent shell.

Section order on every sector page:
  1. Nav
  2. Breadcrumb
  3. Sector hero (problem statement in their language)
  4. What we deliver (concrete deliverables)
  5. How the methodology applies here (sector-tuned SaC explanation)
  6. What this is not (filter section)
  7. How an engagement starts (CTA + form preselect)
  8. Related sectors (cross-link)
  9. Footer
================================================================
*/


/* ---------------- Page shell ---------------- */

body { background: var(--iq-bg-primary); }
main { display: block; }


/* ---------------- Nav (duplicated from blog.css to keep sectors.css standalone) ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: var(--iq-border-thin);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--iq-space-5);
  padding: var(--iq-space-4) 0;
}
.nav-brand {
  font-family: var(--iq-font-serif);
  font-size: var(--iq-h4);
  color: var(--iq-text-primary);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-brand:hover { color: var(--iq-text-primary); }
.nav-links {
  display: flex;
  gap: var(--iq-space-5);
  align-items: center;
}
.nav-links a {
  font-family: var(--iq-font-sans);
  font-size: var(--iq-body-sm);
  color: var(--iq-text-body);
  font-weight: 400;
  text-decoration: none;
  transition: color var(--iq-dur-fast) var(--iq-ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--iq-accent); }


/* ---------------- Breadcrumb ---------------- */

.breadcrumb { padding: var(--iq-space-5) 0 0; }
.breadcrumb-row {
  font-family: var(--iq-font-sans);
  font-size: var(--iq-caption);
  color: var(--iq-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--iq-space-2);
}
.breadcrumb-row a { color: var(--iq-text-secondary); text-decoration: none; }
.breadcrumb-row a:hover { color: var(--iq-accent); }
.breadcrumb-sep { color: var(--iq-text-tertiary); margin: 0 2px; }


/* ============================================================
   3. SECTOR HERO
   ============================================================
   Two-column on desktop: copy left, sector-icon panel right.
   The sector icon panel is decorative — same icon as the home
   page card, blown up and centered in a tinted square. Gives
   the page a visual anchor without requiring imagery we
   don't have yet.
*/

.sector-hero {
  padding-top: var(--iq-space-6);
  padding-bottom: var(--iq-section-y);
}
.sector-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--iq-space-7);
  align-items: center;
}
.sector-hero-copy .iq-eyebrow {
  display: block;
  margin-bottom: var(--iq-space-4);
}
.sector-hero-copy h1 {
  font-size: var(--iq-h1);
  line-height: var(--iq-lh-tight);
  margin-bottom: var(--iq-space-5);
  max-width: 560px;
}
.sector-hero-lede {
  font-size: var(--iq-body-lg);
  line-height: 1.55;
  color: var(--iq-text-body);
  max-width: 520px;
  margin-bottom: var(--iq-space-6);
}
.sector-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--iq-space-3);
}

.sector-hero-mark {
  aspect-ratio: 1 / 1;
  background: var(--iq-bg-tint);
  border-radius: var(--iq-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--iq-font-serif);
  font-size: 96px;
  color: var(--iq-accent);
  letter-spacing: -0.02em;
  margin-left: auto;
}
.sector-hero-mark--text {
  font-family: var(--iq-font-sans);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
}


/* ============================================================
   4. WHAT WE DELIVER
   ============================================================
   Three-column deliverable cards on a gray section background.
   Each card: small label, deliverable title, one-sentence body.
   This is the "concrete things you receive" section.
*/

.deliver {
  background: var(--iq-bg-secondary);
}
.section-header {
  max-width: var(--iq-prose);
  margin-bottom: var(--iq-space-6);
}
.section-header .iq-eyebrow {
  display: block;
  margin-bottom: var(--iq-space-3);
}
.section-header h2 {
  margin-bottom: var(--iq-space-3);
}
.section-header p {
  color: var(--iq-text-body);
  font-size: var(--iq-body);
}

.deliver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--iq-space-4);
}

.deliver-card {
  background: var(--iq-bg-primary);
  border: var(--iq-border-thin);
  border-radius: var(--iq-radius-lg);
  padding: var(--iq-space-5);
}
.deliver-card-label {
  font-family: var(--iq-font-sans);
  font-size: var(--iq-eyebrow);
  font-weight: 500;
  letter-spacing: var(--iq-ls-eyebrow);
  text-transform: uppercase;
  color: var(--iq-text-secondary);
  margin-bottom: var(--iq-space-3);
}
.deliver-card-title {
  font-family: var(--iq-font-serif);
  font-size: var(--iq-h4);
  color: var(--iq-text-primary);
  letter-spacing: var(--iq-ls-heading);
  margin-bottom: var(--iq-space-2);
}
.deliver-card-body {
  font-size: var(--iq-body-sm);
  color: var(--iq-text-body);
  line-height: 1.55;
}


/* ============================================================
   5. METHODOLOGY (sector-specific)
   ============================================================
   Two-column: explanation on the left, a focused detail panel
   on the right (numbered method recap or a key observation).
*/

.method {
  /* white section, no override needed */
}
.method-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--iq-space-7);
  align-items: start;
}
.method-copy {
  max-width: var(--iq-prose);
}
.method-copy h2 {
  margin-bottom: var(--iq-space-4);
}
.method-copy p {
  font-size: var(--iq-body);
  line-height: var(--iq-lh-body);
  color: var(--iq-text-body);
  margin: 0 0 var(--iq-space-4);
}
.method-copy p:last-child { margin-bottom: 0; }

.method-side {
  background: var(--iq-bg-tint);
  border-radius: var(--iq-radius-lg);
  padding: var(--iq-space-6);
}
.method-side .iq-eyebrow {
  display: block;
  margin-bottom: var(--iq-space-3);
}
.method-side h3 {
  font-family: var(--iq-font-serif);
  font-size: var(--iq-h3);
  color: var(--iq-text-primary);
  letter-spacing: var(--iq-ls-heading);
  margin-bottom: var(--iq-space-3);
}
.method-side p {
  font-size: var(--iq-body-sm);
  line-height: 1.6;
  color: var(--iq-text-body);
}


/* ============================================================
   6. WHAT THIS IS NOT
   ============================================================
   Three statements, simple list. Visually subordinate —
   serif "Not X" headlines but no card chrome, just dividers.
   The point is to filter, not to dazzle.
*/

.is-not {
  background: var(--iq-bg-secondary);
}
.is-not-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--iq-space-5);
  border-top: var(--iq-border-thin);
  padding-top: var(--iq-space-6);
}
.is-not-item h3 {
  font-family: var(--iq-font-serif);
  font-size: var(--iq-h4);
  color: var(--iq-text-primary);
  letter-spacing: var(--iq-ls-heading);
  margin-bottom: var(--iq-space-3);
}
.is-not-item p {
  font-size: var(--iq-body-sm);
  color: var(--iq-text-secondary);
  line-height: 1.6;
}


/* ============================================================
   7. ENGAGEMENT (CTA + sector-targeted form)
   ============================================================
   Two-column: posture/process on the left, the inquiry form
   on the right. The form has the sector pre-selected via
   the hidden default value on the <select>.
*/

.engage {
  /* white section */
}
.engage-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--iq-space-7);
  align-items: start;
}

.engage-posture .iq-eyebrow { display: block; margin-bottom: var(--iq-space-3); }
.engage-posture h2 { margin-bottom: var(--iq-space-4); }
.engage-intro {
  font-size: var(--iq-body-lg);
  line-height: 1.55;
  color: var(--iq-text-body);
  margin-bottom: var(--iq-space-6);
}

/* Process steps */
.engage-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--iq-space-4);
}
.engage-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--iq-space-4);
  align-items: start;
}
.engage-step-num {
  font-family: var(--iq-font-serif);
  font-size: 22px;
  line-height: 1;
  color: var(--iq-accent);
  padding-top: 4px;
}
.engage-step-title {
  font-family: var(--iq-font-sans);
  font-size: var(--iq-body);
  font-weight: 500;
  color: var(--iq-text-primary);
  margin-bottom: var(--iq-space-2);
}
.engage-step-body {
  font-size: var(--iq-body-sm);
  color: var(--iq-text-secondary);
  line-height: 1.55;
}

/* Form */
.engage-form {
  display: flex;
  flex-direction: column;
  gap: var(--iq-space-4);
  padding: var(--iq-space-6);
  background: var(--iq-bg-secondary);
  border-radius: var(--iq-radius-lg);
}
.engage-form-header { margin-bottom: var(--iq-space-2); }
.engage-form-header h3 {
  font-family: var(--iq-font-serif);
  font-size: var(--iq-h3);
  color: var(--iq-text-primary);
  letter-spacing: var(--iq-ls-heading);
  margin-bottom: var(--iq-space-2);
}
.engage-form-header p {
  font-size: var(--iq-body-sm);
  color: var(--iq-text-secondary);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ============================================================
   8. RELATED SECTORS
   ============================================================
   Cross-link to two adjacent sectors. Small cards, gray
   background section to set them apart.
*/

.related {
  background: var(--iq-bg-secondary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--iq-space-4);
}
.related-card {
  background: var(--iq-bg-primary);
  border: var(--iq-border-thin);
  border-radius: var(--iq-radius-lg);
  padding: var(--iq-space-5);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--iq-dur) var(--iq-ease),
              box-shadow var(--iq-dur) var(--iq-ease);
}
.related-card:hover {
  border-color: var(--iq-border-strong);
  box-shadow: var(--iq-shadow-hover);
  color: inherit;
}
.related-card .iq-eyebrow {
  display: block;
  margin-bottom: var(--iq-space-2);
  color: var(--iq-text-secondary);
}
.related-card-title {
  font-family: var(--iq-font-serif);
  font-size: var(--iq-h4);
  color: var(--iq-text-primary);
  letter-spacing: var(--iq-ls-heading);
  margin-bottom: var(--iq-space-2);
}
.related-card-body {
  font-size: var(--iq-body-sm);
  color: var(--iq-text-secondary);
  line-height: 1.55;
  margin-bottom: var(--iq-space-4);
}
.related-card-link {
  font-family: var(--iq-font-sans);
  font-size: var(--iq-body-sm);
  color: var(--iq-accent);
  font-weight: 500;
}


/* ============================================================
   FOOTER (matches home / blog)
   ============================================================ */

.footer {
  background: var(--iq-bg-primary);
  border-top: var(--iq-border-thin);
  padding: var(--iq-space-7) 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--iq-space-5);
  flex-wrap: wrap;
}
.footer-brand-block .nav-brand {
  display: block;
  margin-bottom: var(--iq-space-3);
}
.footer-tagline {
  font-size: var(--iq-caption);
  color: var(--iq-text-secondary);
  max-width: 480px;
  line-height: 1.55;
}
.footer-meta {
  font-size: var(--iq-caption);
  color: var(--iq-text-tertiary);
}


.nav-menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--iq-text-primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .sector-hero-grid { grid-template-columns: 1fr; gap: var(--iq-space-6); }
  .sector-hero-mark { max-width: 240px; margin-left: 0; font-size: 64px; }
  .sector-hero-mark--text { font-size: 44px; }
  .deliver-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; gap: var(--iq-space-6); }
  .is-not-list { grid-template-columns: 1fr; gap: var(--iq-space-5); }
  .engage-grid { grid-template-columns: 1fr; gap: var(--iq-space-6); }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .sector-hero-copy h1 { font-size: 30px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .sectors-grid { grid-template-columns: 1fr; }
  .bench-meta { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 32px; }
  .benchmarks-header { flex-direction: column; align-items: flex-start; }
}


/*
================================================================
NAV — Blog dropdown + mobile hierarchy
================================================================
Appended. Nothing above this point was modified.

Desktop (>600px): Blog item in .nav-links opens a click-OR-hover
                  dropdown with Signals + Working Notes columns.
Mobile (≤600px):  .nav-links hidden (existing rule, line 794);
                  .nav-menu-btn shown (existing rule);
                  hamburger toggles .nav.is-open which reveals
                  .nav-mobile-panel — tap-to-expand groups inside.

================================================================ */

/* -------- Desktop dropdown trigger -------- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: var(--iq-font-sans);
  font-size: var(--iq-body-sm);
  font-weight: 400;
  color: var(--iq-text-body);
  line-height: var(--iq-lh-ui);
  cursor: pointer;
  transition: color var(--iq-dur-fast) var(--iq-ease);
}
.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger {
  color: var(--iq-accent);
}
.nav-dropdown-trigger:focus-visible {
  outline: none;
  box-shadow: var(--iq-focus-ring);
  border-radius: var(--iq-radius-sm);
}

.nav-dropdown-caret {
  transition: transform var(--iq-dur) var(--iq-ease);
}
.nav-dropdown.is-open .nav-dropdown-caret {
  transform: rotate(180deg);
}

/* -------- Desktop dropdown panel -------- */
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--iq-space-3);
  min-width: 560px;
  background: var(--iq-bg-primary);
  border: var(--iq-border-1);
  border-radius: var(--iq-radius-lg);
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.08);
  padding: var(--iq-space-5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--iq-dur) var(--iq-ease),
              transform var(--iq-dur) var(--iq-ease),
              visibility var(--iq-dur) var(--iq-ease);
  z-index: 60;
}
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Invisible bridge so the cursor can travel from trigger to panel
   without crossing dead space that would trigger mouseleave */
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--iq-space-3));
  left: 0;
  right: 0;
  height: var(--iq-space-3);
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--iq-space-5);
}

.nav-dropdown-group-title {
  display: block;
  font-family: var(--iq-font-sans);
  font-size: var(--iq-eyebrow);
  font-weight: 500;
  letter-spacing: var(--iq-ls-eyebrow);
  text-transform: uppercase;
  color: var(--iq-accent);
  text-decoration: none;
  padding-bottom: var(--iq-space-3);
  margin-bottom: var(--iq-space-3);
  border-bottom: var(--iq-border-thin);
  transition: color var(--iq-dur-fast) var(--iq-ease);
}
.nav-dropdown-group-title:hover {
  color: var(--iq-accent-hover);
}
.nav-dropdown-group-sub {
  display: block;
  margin-top: 4px;
  font-size: var(--iq-body-sm);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--iq-text-secondary);
}
.nav-dropdown-group-title:hover .nav-dropdown-group-sub {
  color: var(--iq-text-body);
}

.nav-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--iq-space-2);
}
.nav-dropdown-list a {
  display: block;
  font-size: var(--iq-body-sm);
  color: var(--iq-text-body);
  text-decoration: none;
  line-height: 1.45;
  padding: 4px 0;
  transition: color var(--iq-dur-fast) var(--iq-ease);
}
.nav-dropdown-list a:hover {
  color: var(--iq-accent);
}
.nav-dropdown-list .is-forthcoming {
  display: block;
  font-size: var(--iq-body-sm);
  color: var(--iq-text-tertiary);
  font-style: italic;
  padding: 4px 0;
  cursor: default;
}

/* On medium-narrow desktop widths the panel might run off the edge.
   Collapse to single column below the container width. */
@media (max-width: 900px) {
  .nav-dropdown-panel {
    min-width: 360px;
  }
  .nav-dropdown-grid {
    grid-template-columns: 1fr;
    gap: var(--iq-space-4);
  }
}


/* -------- Mobile panel (hidden by default everywhere) -------- */
.nav-mobile-panel {
  display: none;
}

@media (max-width: 600px) {

  /* Shrink the brand on mobile */
  .nav-brand img {
    height: 48px !important;
    width: auto;
  }

  /* Hide the desktop CTA — it moves into the mobile panel */
  .nav-cta {
    display: none;
  }

  /* Tighter spacing in the bar */
  .nav-inner {
    gap: var(--iq-space-3);
    margin: 1em;
  }

  /* Hamburger styling (existing rule shows it; we just polish it) */
  .nav-menu-btn {
    border-radius: var(--iq-radius-sm);
    transition: background var(--iq-dur-fast) var(--iq-ease);
  }
  .nav-menu-btn:hover {
    background: var(--iq-bg-secondary);
  }
  .nav-menu-btn:focus-visible {
    outline: none;
    box-shadow: var(--iq-focus-ring);
  }

  /* Mobile panel surface */
  .nav-mobile-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: var(--iq-border-thin);
    border-top: var(--iq-border-thin);
    padding: var(--iq-space-3) var(--iq-space-5) var(--iq-space-5);
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transition: max-height var(--iq-dur-slow) var(--iq-ease),
                opacity var(--iq-dur) var(--iq-ease),
                padding var(--iq-dur-slow) var(--iq-ease);
  }
  .nav.is-open .nav-mobile-panel {
    max-height: calc(100vh - 80px);
    opacity: 1;
  }

  /* Top-level links and group-toggles share base style */
  .nav-mobile-panel > a,
  .nav-mobile-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--iq-space-3) 0;
    font-family: var(--iq-font-sans);
    font-size: var(--iq-body);
    font-weight: 400;
    color: var(--iq-text-body);
    text-decoration: none;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: var(--iq-border-thin);
    cursor: pointer;
    transition: color var(--iq-dur-fast) var(--iq-ease);
  }
  .nav-mobile-panel > a:hover,
  .nav-mobile-group-toggle:hover,
  .nav-mobile-panel > a.is-active {
    color: var(--iq-accent);
  }

  /* Caret rotation when expanded */
  .nav-mobile-caret {
    transition: transform var(--iq-dur) var(--iq-ease);
    flex-shrink: 0;
  }
  .nav-mobile-group.is-expanded > .nav-mobile-group-toggle .nav-mobile-caret,
  .nav-mobile-subgroup.is-expanded > .nav-mobile-subgroup-toggle .nav-mobile-caret {
    transform: rotate(180deg);
  }

  /* Group children — collapsed by default */
  .nav-mobile-group-children,
  .nav-mobile-subgroup-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--iq-dur-slow) var(--iq-ease);
  }
  .nav-mobile-group.is-expanded > .nav-mobile-group-children {
    max-height: 2000px;
  }
  .nav-mobile-subgroup.is-expanded > .nav-mobile-subgroup-children {
    max-height: 1000px;
  }

  /* Subgroup toggle — indented one level */
  .nav-mobile-subgroup-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--iq-space-3) 0 var(--iq-space-3) var(--iq-space-4);
    font-family: var(--iq-font-sans);
    font-size: var(--iq-body-sm);
    font-weight: 500;
    color: var(--iq-text-primary);
    background: transparent;
    border: 0;
    border-bottom: var(--iq-border-thin);
    text-align: left;
    cursor: pointer;
  }
  .nav-mobile-subgroup:last-child > .nav-mobile-subgroup-toggle {
    border-bottom: 0;
  }

  /* Leaf links inside a subgroup — indented two levels */
  .nav-mobile-subgroup-children a,
  .nav-mobile-subgroup-children span {
    display: block;
    padding: var(--iq-space-2) 0 var(--iq-space-2) var(--iq-space-7);
    font-size: var(--iq-body-sm);
    color: var(--iq-text-body);
    text-decoration: none;
    line-height: 1.45;
    border-bottom: var(--iq-border-thin);
    transition: color var(--iq-dur-fast) var(--iq-ease);
  }
  .nav-mobile-subgroup-children a:hover {
    color: var(--iq-accent);
  }
  .nav-mobile-subgroup-children .nav-mobile-view-all {
    color: var(--iq-accent);
    font-weight: 500;
  }
  .nav-mobile-subgroup-children .nav-mobile-forthcoming {
    color: var(--iq-text-tertiary);
    font-style: italic;
    cursor: default;
  }
  .nav-mobile-subgroup-children > *:last-child {
    border-bottom: 0;
  }

  /* CTA at the bottom of the panel */
  .nav-mobile-cta {
    display: block;
    margin-top: var(--iq-space-4);
    padding-top: var(--iq-space-4);
    border-top: var(--iq-border-thin);
    border-bottom: 0 !important;
    color: var(--iq-accent) !important;
    font-weight: 500;
  }
}