/* Page-specific styles; shared header, footer, colors and typography are in styles.css. */
.industries-page { --ip-border: rgba(16,43,67,.15); }
.industry-icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.industries-page .primary-navigation a[aria-current="page"] { color: var(--orange); }
.industries-page .primary-navigation a[aria-current="page"]::after { display: block; width: 24px; height: 2px; margin-top: 2px; background: var(--orange); content: ""; }

.industries-hero { position: relative; display: flex; min-height: 405px; align-items: center; overflow: hidden; color: var(--white); background: var(--navy-deep); }
.industries-hero::after { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(7,24,39,.94), rgba(7,24,39,.72) 66%, rgba(7,24,39,.5)); content: ""; }
.industries-hero-image { position: absolute; inset: 0; background: var(--navy) url("../assets/images/mpi-hero-factory.png") center 54% / cover no-repeat; }
.industries-hero-content { position: relative; z-index: 1; padding-block: 58px; }
.industries-breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; color: rgba(255,255,255,.72); font-size: 12px; }
.industries-breadcrumb a:hover, .industries-breadcrumb [aria-current="page"] { color: var(--white); }
.industries-hero h1 { max-width: 840px; margin: 0; font-size: clamp(46px,7vw,80px); font-weight: 600; letter-spacing: -.055em; line-height: .99; }
.industries-hero-intro { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,.82); font-size: clamp(16px,2vw,19px); line-height: 1.65; }

.ip-section { padding-block: 94px; }
.industries-served { background: var(--paper); }
.ip-section-intro { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.ip-section-intro h2, .client-layout h2, .portfolio-copy h2, .enquiry-inner h2 { max-width: 660px; margin: 0; font-size: clamp(34px,4vw,52px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
.ip-section-intro > p { max-width: 370px; margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.eyebrow-dark { color: var(--orange); }
.sector-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.sector-card { position: relative; display: flex; min-height: 208px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 22px 24px; color: var(--white); background: var(--navy); transition: transform .22s ease, background .22s ease; }
.sector-card:hover { transform: translateY(-4px); background: #173b59; }
.sector-card > span { color: #f0925e; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.sector-card svg { position: absolute; top: 28px; right: 22px; width: 62px; height: 62px; fill: none; stroke: rgba(255,255,255,.76); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.sector-card svg .industry-accent { stroke: #f0925e; }
.sector-card h3 { position: relative; z-index: 1; max-width: 260px; margin: 35px 40px 0 0; font-size: 20px; font-weight: 500; line-height: 1.3; }

.industry-capabilities { color: var(--white); background: var(--navy); }
.industry-capabilities .ip-section-intro > p { color: rgba(255,255,255,.67); }
.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); }
.capability-grid article { min-height: 214px; padding: 21px 24px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); transition: background .2s ease; }
.capability-grid article:hover { background: rgba(255,255,255,.055); }
.capability-grid article svg { display: block; width: 42px; height: 42px; margin-bottom: 18px; fill: none; stroke: rgba(255,255,255,.8); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.capability-grid article svg .industry-accent { stroke: #f0925e; }
.capability-grid article h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.capability-grid article p { margin: 0; color: rgba(255,255,255,.67); font-size: 13px; line-height: 1.65; }

.client-experience { background: #e9e8e2; }
.client-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.client-note { display: flex; align-items: flex-start; gap: 18px; padding: 28px; border: 1px solid var(--ip-border); background: rgba(255,255,255,.45); }
.client-note-mark { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; color: var(--white); background: var(--orange); font-family: Georgia,serif; font-size: 19px; font-style: italic; }
.client-note h3 { margin: 1px 0 10px; color: var(--navy); font-size: 18px; font-weight: 600; }
.client-note p { margin: 0; color: #515b62; font-size: 14px; line-height: 1.75; }

.portfolio-section { padding-top: 0; background: #e9e8e2; }
.portfolio-panel { position: relative; display: grid; min-height: 280px; grid-template-columns: 220px 1fr; align-items: center; gap: 50px; overflow: hidden; padding: 38px 52px; color: var(--white); background: var(--navy-deep); }
.portfolio-graphic { position: relative; display: grid; width: 185px; height: 185px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.025); }
.portfolio-ring { position: absolute; width: 124px; height: 124px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.portfolio-axis { position: absolute; width: 100%; height: 1px; background: rgba(255,255,255,.18); }
.portfolio-axis--vertical { transform: rotate(90deg); }
.portfolio-center { position: relative; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; color: var(--white); background: var(--orange); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.portfolio-copy { position: relative; z-index: 1; }
.portfolio-copy .eyebrow { color: #f0925e; }
.portfolio-copy h2 { max-width: 720px; }
.portfolio-copy > p:last-child { max-width: 610px; margin: 18px 0 0; color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.7; }

.industries-enquiry { padding-block: 76px; color: var(--white); background: var(--orange); }
.enquiry-inner { display: flex; justify-content: space-between; align-items: end; gap: 48px; }
.industries-enquiry .eyebrow { color: rgba(255,255,255,.82); }
.enquiry-inner > div:first-child > p:last-child { margin: 18px 0 0; color: rgba(255,255,255,.88); }
.enquiry-links { display: grid; min-width: 300px; gap: 12px; }
.enquiry-links a { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.5); font-size: 14px; font-weight: 600; }
.enquiry-links a:hover { border-color: var(--white); }
.enquiry-links .enquiry-phone { padding: 15px 18px; border: 0; color: var(--navy-deep); background: var(--white); }
.enquiry-links .enquiry-phone:hover { background: #f3f1ea; }

@media (max-width: 950px) {
  .ip-section { padding-block: 76px; }
  .sector-grid { grid-template-columns: repeat(2,1fr); }
  .client-layout { grid-template-columns: 1fr 1fr; gap: 35px; }
  .portfolio-panel { grid-template-columns: 170px 1fr; gap: 32px; padding-inline: 34px; }
  .portfolio-graphic { width: 150px; height: 150px; }
  .portfolio-ring { width: 104px; height: 104px; }
  .enquiry-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
  .enquiry-links { width: min(100%,460px); }
}

@media (max-width: 700px) {
  .industries-hero { min-height: 370px; }
  .industries-hero-content { padding-block: 46px; }
  .industries-breadcrumb { margin-bottom: 30px; }
  .ip-section-intro { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 30px; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .client-layout { grid-template-columns: 1fr; gap: 25px; }
  .portfolio-panel { grid-template-columns: 120px 1fr; min-height: 240px; gap: 24px; padding: 28px; }
  .portfolio-graphic { width: 115px; height: 115px; }
  .portfolio-ring { width: 80px; height: 80px; }
}

@media (max-width: 520px) {
  .industries-hero { min-height: 340px; }
  .industries-hero h1 { font-size: clamp(42px,12vw,60px); }
  .ip-section { padding-block: 62px; }
  .sector-grid, .capability-grid { grid-template-columns: 1fr; }
  .sector-card { min-height: 165px; }
  .capability-grid article { min-height: 190px; }
  .client-note { padding: 22px 18px; }
  .portfolio-section { padding-top: 0; }
  .portfolio-panel { grid-template-columns: 1fr; justify-items: start; gap: 20px; padding: 28px 24px; }
  .portfolio-graphic { width: 90px; height: 90px; }
  .portfolio-ring { width: 64px; height: 64px; }
  .portfolio-center { width: 42px; height: 42px; font-size: 11px; }
  .industries-enquiry { padding-block: 60px; }
  .enquiry-links { min-width: 0; }
  .enquiry-links a { font-size: 13px; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .sector-card, .capability-grid article { transition: none; }
}
