/* Page-specific electrical services styling; shared brand system is in styles.css. */
.electrical-page { --es-border: rgba(16,43,67,.15); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.electrical-page .primary-navigation a[aria-current="page"] { color: var(--orange); }
.electrical-page .primary-navigation a[aria-current="page"]::after { display: block; width: 22px; height: 2px; margin-top: 2px; background: var(--orange); content: ""; }

.electrical-hero { position: relative; display: flex; min-height: 440px; align-items: center; overflow: hidden; color: var(--white); background: var(--navy-deep); }
.electrical-hero::after { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(7,24,39,.91), rgba(7,24,39,.72) 62%, rgba(7,24,39,.58)); content: ""; }
.electrical-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.electrical-hero-content { position: relative; z-index: 1; padding-block: 60px; }
.electrical-breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; color: rgba(255,255,255,.72); font-size: 12px; }
.electrical-breadcrumb a:hover, .electrical-breadcrumb [aria-current="page"] { color: var(--white); }
.electrical-hero h1 { max-width: 820px; margin: 0; font-size: clamp(48px, 7vw, 82px); font-weight: 600; letter-spacing: -.055em; line-height: .98; }
.electrical-hero-intro { max-width: 660px; margin: 24px 0 0; color: rgba(255,255,255,.85); font-size: clamp(16px,2vw,19px); line-height: 1.65; }

.es-section { padding-block: 96px; }
.electrical-intro { background: var(--paper); }
.electrical-intro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 88px; align-items: start; }
.es-section-heading h2, .es-section-intro h2, .turnkey-content h2, .enquiry-inner h2 { max-width: 680px; margin: 0; font-size: clamp(34px,4vw,52px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
.eyebrow-dark { color: var(--orange); }
.es-copy { padding-top: 4px; }
.es-copy p { margin: 0 0 18px; color: #515b62; font-size: 16px; line-height: 1.8; }
.es-copy p:last-child { margin-bottom: 0; }

.electrical-services { color: var(--white); background: var(--navy); }
.es-section-intro { display: flex; justify-content: space-between; align-items: end; gap: 42px; margin-bottom: 42px; }
.es-section-intro > p { max-width: 380px; margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.electrical-services .es-section-intro > p, .turnkey-content > p:not(.eyebrow) { color: rgba(255,255,255,.7); }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.service-card { position: relative; min-height: 238px; padding: 21px 20px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.035); transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(230,109,50,.72); background: rgba(255,255,255,.075); }
.service-number, .material-number { color: #f0925e; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.service-card svg { display: block; width: 38px; height: 38px; margin: 16px 0 14px; fill: none; stroke: rgba(255,255,255,.84); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card svg .icon-accent { stroke: #f0925e; }
.service-card svg .icon-accent-fill { fill: #f0925e; stroke: none; }
.service-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.32; }
.service-card p { margin: 0; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.6; }

.electrical-materials { background: #e9e8e2; }
.material-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.material-card { position: relative; display: flex; min-height: 190px; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; padding: 20px 22px; border: 1px solid var(--es-border); background: rgba(255,255,255,.38); transition: transform .22s ease, background .22s ease; }
.material-card:hover { transform: translateY(-4px); background: var(--white); }
.material-card svg { position: absolute; top: 27px; right: 23px; width: 46px; height: 46px; fill: none; stroke: var(--navy); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.material-card svg .icon-accent { stroke: var(--orange); }
.material-card svg .icon-accent-fill { fill: var(--orange); stroke: none; }
.material-card h3 { position: relative; z-index: 1; max-width: 250px; margin: 32px 48px 0 0; color: var(--navy); font-size: 18px; font-weight: 600; line-height: 1.35; }
.material-note { margin: 24px 0 0; padding: 16px 20px; border-left: 3px solid var(--orange); color: #4f5a60; background: rgba(255,255,255,.48); font-size: 13px; line-height: 1.65; }

.turnkey-section { position: relative; overflow: hidden; padding-block: 92px; color: var(--white); background: var(--navy-deep); }
.turnkey-visual { position: absolute; inset: 0; background: url("../assets/images/mpi-hero-factory.png") center 54% / cover no-repeat; }
.turnkey-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,24,39,.96), rgba(7,24,39,.88) 65%, rgba(7,24,39,.72)); }
.turnkey-content { position: relative; z-index: 1; }
.turnkey-content h2 { max-width: 780px; }
.turnkey-content > p:not(.eyebrow) { max-width: 780px; margin: 22px 0 0; font-size: 15px; line-height: 1.75; }
.turnkey-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 24px; margin: 42px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.28); list-style: none; }
.turnkey-steps li { display: flex; min-height: 82px; align-items: center; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.45; }
.turnkey-steps li span { color: #f0925e; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.turnkey-note { color: rgba(255,255,255,.55) !important; font-size: 11px !important; }

.industries-section { background: var(--paper); }
.industries-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.industries-grid article { position: relative; display: flex; min-height: 166px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 21px 22px; color: var(--white); background: var(--navy); transition: transform .22s ease, background .22s ease; }
.industries-grid article:hover { transform: translateY(-4px); background: #173b59; }
.industries-grid article > span { color: #f0925e; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.industries-grid article h3 { position: relative; z-index: 1; max-width: 230px; margin: 20px 35px 0 0; font-size: 19px; font-weight: 500; line-height: 1.3; }
.industries-grid article svg { position: absolute; right: 18px; bottom: 15px; width: 48px; height: 48px; fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.industries-grid article svg .icon-accent { stroke: #f0925e; }
.industries-grid article svg .icon-accent-fill { fill: #f0925e; stroke: none; }

.why-section { color: var(--white); background: #102b43; }
.why-section .es-section-intro > p { color: rgba(255,255,255,.64); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.22); border-left: 1px solid rgba(255,255,255,.22); }
.why-grid article { min-height: 175px; padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); transition: background .2s ease; }
.why-grid article:hover { background: rgba(255,255,255,.055); }
.why-grid article span { color: #f0925e; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.why-grid article h3 { max-width: 300px; margin: 34px 0 0; font-size: 17px; font-weight: 500; line-height: 1.45; }

.electrical-enquiry { padding-block: 76px; color: var(--white); background: var(--orange); }
.enquiry-inner { display: flex; justify-content: space-between; align-items: end; gap: 52px; }
.electrical-enquiry .eyebrow { color: rgba(255,255,255,.82); }
.enquiry-inner h2 { max-width: 700px; }
.enquiry-inner > div:first-child > p:last-child { max-width: 530px; margin: 20px 0 0; color: rgba(255,255,255,.9); }
.enquiry-actions { display: grid; min-width: 290px; justify-items: stretch; gap: 12px; }
.enquiry-actions .button { justify-content: space-between; }
.enquiry-actions .button-primary { color: var(--navy-deep); background: var(--white); }
.enquiry-actions .button-primary:hover { background: #f3f1ea; }
.enquiry-actions .button-outline { border-color: rgba(255,255,255,.8); }
.enquiry-actions > a:not(.button) { color: rgba(255,255,255,.93); font-size: 12px; }
.enquiry-actions > a:not(.button):hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 950px) {
  .es-section { padding-block: 78px; }
  .electrical-intro-grid { gap: 42px; }
  .service-grid { grid-template-columns: repeat(3,1fr); }
  .material-grid { grid-template-columns: repeat(2,1fr); }
  .turnkey-section { padding-block: 78px; }
  .industries-grid, .why-grid { grid-template-columns: repeat(2,1fr); }
  .enquiry-inner { align-items: flex-start; flex-direction: column; gap: 30px; }
  .enquiry-actions { width: min(100%,460px); grid-template-columns: 1fr 1fr; }
  .enquiry-actions > a:not(.button) { grid-column: span 2; }
}

@media (max-width: 700px) {
  .electrical-hero { min-height: 390px; }
  .electrical-hero-content { padding-block: 46px; }
  .electrical-breadcrumb { margin-bottom: 30px; }
  .electrical-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .es-section-intro { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 30px; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .service-card { min-height: 230px; }
  .turnkey-steps { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 520px) {
  .electrical-hero { min-height: 360px; }
  .electrical-hero h1 { font-size: clamp(42px,12vw,60px); }
  .es-section { padding-block: 62px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 205px; }
  .material-grid { grid-template-columns: 1fr; }
  .material-card { min-height: 150px; }
  .turnkey-section { padding-block: 64px; }
  .turnkey-steps { grid-template-columns: 1fr; margin-top: 30px; }
  .turnkey-steps li { min-height: 64px; }
  .industries-grid, .why-grid { grid-template-columns: 1fr; }
  .industries-grid article { min-height: 135px; }
  .why-grid article { min-height: 145px; }
  .electrical-enquiry { padding-block: 60px; }
  .enquiry-actions { min-width: 0; grid-template-columns: 1fr; }
  .enquiry-actions > a:not(.button) { grid-column: auto; overflow-wrap: anywhere; }
}

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