/* E.Perssons Bygg&Maskin – komponenter (revision 03 = revision 02 + fördelar med dikeskant, tema "Terräng i genomskärning")
   Laddas SIST, efter motion.css, styles.css och honeypot.css. Kopieras ordagrant – ändra inte mått, klassnamn eller brytpunkter.
   Prefix: ep-. Brytpunkter: 1100 / 900 / 760 / 420 px.
   Rörelse: reveal via kitets data-motion (motion.js). Egna effekter (rör, larvband, schaktlinje) styrs av ep-komponenter.js. */

:root {
  --ep-navy: #000080;
  --ep-navy-d: #00005c;
  --ep-grey: #a2aaad;
  --ep-grey-d: #6d7478;
  --ep-ink: #000000;
  --ep-mid: #4a4f52;
  --ep-line: #d9dcdd;
  --ep-soft: #f5f5f5;
  --ep-night: #0b0c0e;
  --ep-ff-d: 'Exo 2', 'Arial Narrow', system-ui, sans-serif;
  --ep-ff-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ep-head-h: 80px;
  --ep-bookbar-h: 0px;
  /* Terrängmasker (sektionskanter görs med mask på sektionen själv) */
  --ep-mask-strata: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V32C110 24 220 36 340 30C480 22 620 36 784 28L812 52L840 28L920 28C1040 36 1150 22 1280 30V80Z'/%3E%3C/svg%3E");
  --ep-mask-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34V22C40 18 70 24 110 20L140 20L156 30L172 20L230 20C260 8 290 4 320 14C350 22 380 18 400 16V34Z'/%3E%3C/svg%3E");
  --ep-mask-ditch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 110' preserveAspectRatio='none'%3E%3Cpath d='M0 110V54C160 46 280 60 380 54L600 54L680 100L760 54L980 54C1080 60 1180 48 1280 54V110Z'/%3E%3C/svg%3E");
  --ep-mask-teeth: repeating-linear-gradient(90deg, #000 0 26px, transparent 26px 34px);
}

/* ---------- Bas för alla ep-komponenter ---------- */
.ep-head, .ep-menu, .ep-bookbar, .ep-hero, .ep-svc, .ep-proc, .ep-foot, .ep-area, .ep-cta, .ep-fb { font-family: var(--ep-ff-b); }
:is(.ep-head, .ep-menu, .ep-bookbar, .ep-hero, .ep-svc, .ep-proc, .ep-foot, .ep-area, .ep-cta, .ep-fb),
:is(.ep-head, .ep-menu, .ep-bookbar, .ep-hero, .ep-svc, .ep-proc, .ep-foot, .ep-area, .ep-cta, .ep-fb) *,
:is(.ep-head, .ep-menu, .ep-bookbar, .ep-hero, .ep-svc, .ep-proc, .ep-foot, .ep-area, .ep-cta, .ep-fb) *::before,
:is(.ep-head, .ep-menu, .ep-bookbar, .ep-hero, .ep-svc, .ep-proc, .ep-foot, .ep-area, .ep-cta, .ep-fb) *::after { box-sizing: border-box; }
:is(.ep-head, .ep-menu, .ep-bookbar, .ep-hero, .ep-svc, .ep-proc, .ep-foot, .ep-area, .ep-cta, .ep-fb) a:hover { text-decoration: none; }
:is(.ep-hero, .ep-svc, .ep-proc, .ep-foot, .ep-area, .ep-cta, .ep-fb) p { max-width: none; }

.ep-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 48px; position: relative; }
.ep-kick { display: block; font: 600 12px/1 var(--ep-ff-b); letter-spacing: .18em; text-transform: uppercase; color: var(--ep-navy); margin: 0 0 14px; }
.ep-h2 { font: 800 44px/1.05 var(--ep-ff-d); letter-spacing: -.01em; color: var(--ep-ink); margin: 0; text-wrap: balance; }
.ep-lead { color: var(--ep-mid); max-width: 58ch; margin: 14px 0 0; font-size: 17px; line-height: 1.6; }
.ep-ico { width: 24px; height: 24px; flex: none; display: block; }

.ep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 3px; border: 2px solid transparent; font: 700 16px/1 var(--ep-ff-d); letter-spacing: .01em; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.ep-btn .ep-ico { width: 18px; height: 18px; }
.ep-btn--pri { background: var(--ep-navy); color: #fff; }
.ep-btn--pri:hover { background: var(--ep-navy-d); color: #fff; }
.ep-btn--line { background: #fff; border-color: var(--ep-navy); color: var(--ep-navy); }
.ep-btn--line:hover { background: var(--ep-navy); color: #fff; }
.ep-btn:focus-visible, .ep-head__link:focus-visible, .ep-head__burger:focus-visible, .ep-card:focus-visible, .ep-svclist__it:focus-visible { outline: 3px solid var(--ep-navy); outline-offset: 3px; }

/* Sektionsrubrik med terränglinje (tjänster + process) */
.ep-shead { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end; margin-bottom: 46px; }
.ep-shead__line { width: 100%; height: 56px; display: block; color: var(--ep-grey); }
.ep-shead__line path { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }

/* ================= HEADER (ep-nav.js) =================
   Inget transform/filter/backdrop-filter på .ep-head – det förstör position:fixed för meny och bokningsrad. */
.ep-head { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--ep-line); }
.ep-head__in { max-width: 1240px; margin-inline: auto; padding-inline: 48px; height: 80px; display: flex; align-items: center; gap: 28px; }
.ep-head__logo { flex: none; display: block; }
.ep-head__logo img { height: 52px; width: auto; display: block; }
.ep-head__nav { margin-right: auto; }
.ep-head__list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ep-head__item { position: relative; }
.ep-head__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; font: 500 15px var(--ep-ff-b); color: var(--ep-ink); background: none; border: 0; cursor: pointer; border-radius: 3px; }
.ep-head__link:hover { color: var(--ep-navy); }
.ep-head__link .ep-ico { width: 16px; height: 16px; transition: transform .2s; }
.ep-head__drop-btn[aria-expanded="true"] .ep-ico { transform: rotate(180deg); }
.ep-head__drop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--ep-line); border-top: 3px solid var(--ep-navy); padding: 8px 0; margin: 0; list-style: none; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .28); }
.ep-head__drop a, .ep-head__drop span { display: flex; align-items: center; min-height: 40px; padding: 0 18px; font: 500 15px var(--ep-ff-b); color: var(--ep-ink); }
.ep-head__drop a:hover { background: var(--ep-soft); color: var(--ep-navy); }
.ep-head__drop span { color: #7a8085; }
.ep-head__drop [aria-current="page"] { color: var(--ep-navy); font-weight: 600; }
.ep-head__cta { display: flex; gap: 10px; }
.ep-head__cta .ep-btn { min-height: 46px; padding: 0 18px; font-size: 15px; }
.ep-head__burger { display: none; width: 48px; height: 48px; margin-left: auto; padding: 12px; background: none; border: 0; cursor: pointer; border-radius: 3px; }
.ep-head__burger span { display: block; height: 2px; background: var(--ep-ink); margin: 6px 0; transition: transform .25s, opacity .2s; }
.ep-head__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.ep-head__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ep-head__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobilmeny – syskon till headern, fast under den */
.ep-menu { position: fixed; left: 0; right: 0; top: var(--ep-head-h); bottom: 0; z-index: 99; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 12px 20px calc(24px + var(--ep-bookbar-h)); border-top: 1px solid var(--ep-line); }
.ep-menu[hidden] { display: none; }
.ep-menu__list { list-style: none; margin: 0; padding: 0; }
.ep-menu__list > li { border-bottom: 1px solid var(--ep-line); }
.ep-menu__link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; font: 700 20px var(--ep-ff-d); color: var(--ep-ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.ep-menu__link .ep-ico { width: 20px; height: 20px; transition: transform .2s; }
.ep-menu__link[aria-expanded="true"] .ep-ico { transform: rotate(180deg); }
.ep-menu__sub { list-style: none; margin: 0 0 12px; padding: 0 0 0 14px; border-left: 2px solid var(--ep-line); }
.ep-menu__sub[hidden] { display: none; }
.ep-menu__sub a, .ep-menu__sub span { display: flex; align-items: center; min-height: 44px; font: 500 16px var(--ep-ff-b); color: var(--ep-ink); }
.ep-menu__sub span { color: #7a8085; }
.ep-menu__cta { display: grid; gap: 10px; margin-top: 22px; }
.ep-menu__cta .ep-btn { width: 100%; }
html.ep-menu-open { overflow: hidden; }

/* Bokningsrad – utanför <header>, fast i nederkant på mobil */
.ep-bookbar { display: none; }

/* ================= HERO (schaktprofil, delad) ================= */
.ep-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 600px; background: #fff; color: var(--ep-ink); overflow: hidden; }
.ep-hero__text { position: relative; align-self: center; padding: 84px 56px 84px max(96px, calc((100vw - 1240px) / 2 + 96px)); }
.ep-hero__ruler { position: absolute; left: max(44px, calc((100vw - 1240px) / 2 + 44px)); top: 56px; bottom: 56px; width: 18px; border-left: 2px solid var(--ep-grey);
  background: repeating-linear-gradient(180deg, var(--ep-grey) 0 2px, transparent 2px 24px) left / 10px 100% no-repeat,
              repeating-linear-gradient(180deg, var(--ep-navy) 0 2px, transparent 2px 120px) left / 18px 100% no-repeat;
  transform-origin: top; animation: ep-ruler 1.4s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes ep-ruler { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ep-hero__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 600 13px/1.3 var(--ep-ff-b); letter-spacing: .2em; text-transform: uppercase; color: var(--ep-navy); }
.ep-hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--ep-navy); flex: none; }
.ep-hero__h1 { font: 800 clamp(42px, 4.3vw, 64px)/.98 var(--ep-ff-d); letter-spacing: -.02em; color: var(--ep-ink); margin: 0; max-width: 12ch; text-wrap: balance; }
.ep-hero__lead { font-size: 19px; line-height: 1.6; color: var(--ep-mid); max-width: 44ch; margin: 22px 0 0; }
.ep-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ep-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 0; list-style: none; font: 500 15px var(--ep-ff-b); color: var(--ep-ink); }
.ep-hero__trust li { display: flex; align-items: center; gap: 10px; }
.ep-hero__trust .ep-ico { width: 22px; height: 22px; color: var(--ep-navy); }
.ep-hero__media { position: relative; min-height: 100%; }
.ep-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.ep-hero__strata { position: absolute; top: 0; bottom: 0; left: -1px; width: 170px; pointer-events: none; }
.ep-hero__strata i { position: absolute; inset: 0; display: block; animation: ep-strata-x 1.1s cubic-bezier(.3, .7, .2, 1) both; }
.ep-hero__strata i:nth-child(1) { background: #fff; clip-path: polygon(0 0, 46% 0, 38% 14%, 52% 30%, 34% 47%, 48% 63%, 30% 80%, 44% 100%, 0 100%); }
.ep-hero__strata i:nth-child(2) { background: var(--ep-line); animation-delay: .12s; clip-path: polygon(38% 0, 62% 0, 54% 16%, 68% 31%, 50% 48%, 64% 64%, 46% 81%, 60% 100%, 44% 100%, 30% 80%, 48% 63%, 34% 47%, 52% 30%, 38% 14%, 46% 0); }
.ep-hero__strata i:nth-child(3) { background: var(--ep-grey); animation-delay: .24s; clip-path: polygon(60% 0, 76% 0, 68% 17%, 82% 32%, 64% 49%, 78% 65%, 60% 82%, 74% 100%, 58% 100%, 46% 81%, 64% 64%, 50% 48%, 68% 31%, 54% 16%, 62% 0); }
@keyframes ep-strata-x { from { transform: translateX(-110%); } to { transform: none; } }
@keyframes ep-strata-y { from { transform: translateY(110%); } to { transform: none; } }
.ep-hero__edge { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.ep-hero__edge polyline { fill: none; stroke: var(--ep-navy); stroke-width: 4; stroke-linejoin: round; }
.ep-hero__edge .ep-hero__edge-h { display: none; }
/* Undersida: samma komponent med brödsmulor och lägre höjd */
.ep-hero--sub { min-height: 500px; }
.ep-hero--sub .ep-hero__h1 { font-size: clamp(40px, 3.9vw, 56px); }
.ep-crumbs { margin: -10px 0 12px; }
.ep-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; list-style: none; margin: 0; padding: 0; font: 500 14px var(--ep-ff-b); color: var(--ep-mid); }
.ep-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ep-grey); }
.ep-crumbs a { color: var(--ep-navy); display: inline-flex; align-items: center; min-height: 44px; }
.ep-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ================= TJÄNSTER (bildkort med terrängkant) ================= */
.ep-svc { padding-block: 100px; background: #fff; }
.ep-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 22px; margin: 0; padding: 0; list-style: none; }
.ep-cards__cell { min-width: 0; display: flex; }
.ep-card { display: flex; flex-direction: column; width: 100%; min-width: 0; color: var(--ep-ink); background: #fff; }
.ep-card__img { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--ep-soft);
  -webkit-mask: var(--ep-mask-card) top / 100% 34px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 33px) no-repeat;
          mask: var(--ep-mask-card) top / 100% 34px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 33px) no-repeat; }
.ep-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.ep-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 2px 14px; flex: 1; }
.ep-card__name { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font: 800 24px/1.1 var(--ep-ff-d); color: var(--ep-ink); }
.ep-card__name .ep-ico { width: 20px; height: 20px; color: var(--ep-navy); transition: transform .3s; }
.ep-card:hover .ep-card__name .ep-ico, .ep-card:focus-visible .ep-card__name .ep-ico { transform: translateX(5px); }
.ep-card__txt { margin: 0; color: var(--ep-mid); font-size: 15px; line-height: 1.55; }
.ep-card__line { display: block; height: 2px; background: var(--ep-line); position: relative; overflow: hidden; }
.ep-card__line::after { content: ""; position: absolute; inset: 0; background: var(--ep-navy); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.ep-card:hover .ep-card__line::after, .ep-card:focus-visible .ep-card__line::after { transform: scaleX(1); }
.ep-card--planned .ep-card__name .ep-ico { display: none; }
.ep-svclist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 14px 34px; margin: 44px 0 0; padding: 30px 0 0; list-style: none; border-top: 1px solid var(--ep-line); }
.ep-svclist__it { display: flex; align-items: center; gap: 14px; min-height: 48px; color: var(--ep-ink); }
.ep-svclist__it .ep-ico { width: 28px; height: 28px; color: var(--ep-grey); }
.ep-svclist__name { display: block; margin: 0; font: 700 18px/1.2 var(--ep-ff-d); color: var(--ep-ink); }
.ep-svclist__txt { display: block; margin: 0; font: 400 14px/1.4 var(--ep-ff-b); color: var(--ep-mid); }
.ep-svclist__it--sec { opacity: .72; }
a.ep-svclist__it:hover .ep-svclist__name { color: var(--ep-navy); }

/* ================= PROCESS (dräneringsrör, skiktad överkant) ================= */
.ep-proc { position: relative; overflow: hidden; background: var(--ep-soft); padding-block: 150px 110px;
  -webkit-mask: var(--ep-mask-strata) top / 100% 80px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 79px) no-repeat;
          mask: var(--ep-mask-strata) top / 100% 80px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 79px) no-repeat; }
.ep-proc__strata { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 80px; display: block; pointer-events: none; }
.ep-proc__deco { position: absolute; right: -6%; top: 40px; width: 70%; height: 90%; pointer-events: none; opacity: .5; }
.ep-proc__deco path { fill: none; stroke: var(--ep-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ep-proc .ep-wrap { z-index: 1; }
.ep-pipe { position: relative; margin-top: 64px; }
.ep-pipe__tube { position: absolute; left: 12.5%; right: 12.5%; top: 22px; height: 20px; border: 2px solid var(--ep-grey); border-radius: 10px; background: #fff; overflow: hidden; }
.ep-pipe__holes { position: absolute; inset: 0; background: radial-gradient(circle, var(--ep-line) 1.6px, transparent 2px) 0 50% / 14px 100% repeat-x; }
.ep-pipe__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ep-navy), #2b2bb0); transform-origin: left; transform: scaleX(var(--ep-p, 0)); }
.ep-pipe__fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .18) 0 8px, transparent 8px 22px); animation: ep-flow 1.2s linear infinite; }
@keyframes ep-flow { from { background-position: 0 0; } to { background-position: 22px 0; } }
.ep-pipe__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 24px; position: relative; margin: 0; padding: 0; list-style: none; }
.ep-pipe__step { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; }
.ep-pipe__node { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2px solid var(--ep-grey); font: 800 22px/1 var(--ep-ff-d); color: var(--ep-grey-d); position: relative; z-index: 1; }
.ep-pipe__node > span { display: block; transition: color .4s; }
.ep-pipe__node::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--ep-navy); transform: scale(0); transition: transform .45s cubic-bezier(.3, .7, .2, 1); z-index: -1; }
.ep-pipe__step.is-on .ep-pipe__node { border-color: var(--ep-navy); color: #fff; }
.ep-pipe__step.is-on .ep-pipe__node::before { transform: scale(1); }
.ep-pipe__name { margin: 0; font: 800 22px/1.15 var(--ep-ff-d); color: var(--ep-ink); }
.ep-pipe__txt { margin: 0; color: var(--ep-mid); font-size: 15px; line-height: 1.55; max-width: 28ch; }

/* ================= SIDFOT (larvband) ================= */
.ep-foot { position: relative; background: var(--ep-night); color: #d7dadc; font-size: 15px; line-height: 1.6; padding-top: 96px;
  -webkit-mask: var(--ep-mask-teeth) top / 100% 18px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 18px) no-repeat;
          mask: var(--ep-mask-teeth) top / 100% 18px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 18px) no-repeat; }
.ep-foot__tread { position: absolute; left: 0; right: 0; top: 40px; width: 100%; height: 28px; display: block; pointer-events: none; }
.ep-foot__tread path { fill: none; stroke-width: 14; vector-effect: non-scaling-stroke; stroke-dasharray: 5 7; }
.ep-foot__tread .ep-foot__tread-base { stroke: #2c3035; }
.ep-foot__tread .ep-foot__tread-run { stroke: var(--ep-grey); stroke-dasharray: 5 7 5 7 5 7 5 7 5 7 5 7 5 330; animation: ep-tread 9s linear infinite; }
.ep-foot.is-paused .ep-foot__tread-run { animation-play-state: paused; }
@keyframes ep-tread { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1440; } }
.ep-foot__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; grid-auto-rows: auto; gap: 40px; }
.ep-foot__plate { display: inline-block; background: #fff; border-radius: 6px; padding: 14px 18px; }
.ep-foot__plate img { height: 56px; width: auto; display: block; }
.ep-foot__about { color: #9aa1a6; margin: 16px 0 0; max-width: 34ch; }
.ep-foot__h { margin: 0 0 14px; font: 700 13px/1.2 var(--ep-ff-b); letter-spacing: .16em; text-transform: uppercase; color: var(--ep-grey); }
.ep-foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ep-foot__list a, .ep-foot__list span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #d7dadc; }
.ep-foot__list span.ep-foot__planned { color: #8d9499; }
.ep-foot__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ep-foot__list .ep-ico { width: 18px; height: 18px; color: var(--ep-grey); }
.ep-foot__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 48px; padding-block: 20px; border-top: 1px solid #24282c; font-size: 13px; color: #9aa1a6; }
.ep-foot__bot a { display: inline-flex; align-items: center; min-height: 44px; color: #c3c8cb; }
.ep-foot__bot a:hover { color: #fff; text-decoration: underline; }
.ep-foot__bot p { margin: 0; align-self: center; }

/* ================= Brytpunkter ================= */
@media (max-width: 1100px) {
  .ep-head__in { gap: 16px; padding-inline: 32px; }
  .ep-head__cta .ep-btn--line { display: none; }
  .ep-hero__text { padding: 72px 40px 72px 84px; }
  .ep-hero__ruler { left: 36px; }
  .ep-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-foot__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  :root { --ep-head-h: 68px; --ep-bookbar-h: 64px; }
  body { padding-bottom: var(--ep-bookbar-h); }
  .ep-head__in { height: 68px; padding-inline: 20px; gap: 10px; }
  .ep-head__logo img { height: 44px; }
  .ep-head__nav, .ep-head__cta { display: none; }
  .ep-head__burger { display: block; }
  .ep-bookbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 98; padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: #fff; border-top: 1px solid var(--ep-line); box-shadow: 0 -8px 24px -16px rgb(0 0 0 / .3); }
  .ep-bookbar .ep-btn { min-height: 48px; padding: 0 10px; font-size: 16px; }
  .ep-shead { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .ep-shead__line { max-width: 320px; }
  .ep-svclist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ep-wrap { padding-inline: 20px; }
  .ep-h2 { font-size: 31px; }
  .ep-lead { font-size: 16px; }
  .ep-hero { grid-template-columns: 1fr; min-height: 0; }
  .ep-hero__media { order: -1; height: 250px; min-height: 0; }
  .ep-hero__strata { inset: auto 0 -1px 0; width: auto; height: 90px; }
  .ep-hero__strata i { animation-name: ep-strata-y; }
  .ep-hero__strata i:nth-child(1) { clip-path: polygon(0 100%, 0 54%, 14% 64%, 30% 48%, 47% 66%, 63% 50%, 80% 70%, 100% 56%, 100% 100%); }
  .ep-hero__strata i:nth-child(2) { clip-path: polygon(0 56%, 0 32%, 16% 42%, 31% 26%, 48% 44%, 64% 28%, 81% 48%, 100% 34%, 100% 58%, 80% 72%, 63% 52%, 47% 68%, 30% 50%, 14% 66%); }
  .ep-hero__strata i:nth-child(3) { clip-path: polygon(0 34%, 0 16%, 17% 26%, 32% 10%, 49% 28%, 65% 12%, 82% 32%, 100% 18%, 100% 36%, 81% 50%, 64% 30%, 48% 46%, 31% 28%, 16% 44%); }
  .ep-hero__edge .ep-hero__edge-v { display: none; }
  .ep-hero__edge .ep-hero__edge-h { display: inline; }
  .ep-hero__text { padding: 28px 20px 48px 46px; }
  .ep-hero__ruler { left: 18px; top: 28px; bottom: 40px; }
  .ep-hero__h1, .ep-hero--sub .ep-hero__h1 { font-size: 40px; }
  .ep-hero__lead { font-size: 17px; }
  .ep-hero__cta .ep-btn { flex: 1 1 100%; }
  .ep-hero__trust { flex-direction: column; gap: 10px; }
  .ep-svc { padding-block: 64px; }
  .ep-cards { grid-template-columns: 1fr; gap: 14px; }
  .ep-card { flex-direction: row; gap: 14px; align-items: stretch; }
  .ep-card__img { width: 128px; flex: none; aspect-ratio: auto; min-height: 104px;
    -webkit-mask-size: 100% 18px, 100% calc(100% - 17px); mask-size: 100% 18px, 100% calc(100% - 17px); }
  .ep-card__body { padding: 6px 0 10px; }
  .ep-card__name { font-size: 20px; }
  .ep-card__line { display: none; }
  .ep-svclist { grid-template-columns: 1fr; gap: 4px; margin-top: 28px; }
  .ep-proc { padding-block: 104px 64px; -webkit-mask-size: 100% 50px, 100% calc(100% - 49px); mask-size: 100% 50px, 100% calc(100% - 49px); }
  .ep-proc__strata { height: 50px; }
  .ep-proc__deco { width: 140%; right: -60%; }
  .ep-pipe { margin-top: 36px; }
  .ep-pipe__tube { left: 22px; right: auto; top: 20px; bottom: 40px; width: 20px; height: auto; }
  .ep-pipe__holes { background: radial-gradient(circle, var(--ep-line) 1.6px, transparent 2px) 50% 0 / 100% 14px repeat-y; }
  .ep-pipe__fill { transform-origin: top; transform: scaleY(var(--ep-p, 0)); background: linear-gradient(180deg, var(--ep-navy), #2b2bb0); }
  .ep-pipe__fill::after { background: repeating-linear-gradient(180deg, rgb(255 255 255 / .18) 0 8px, transparent 8px 22px); animation-name: ep-flow-y; }
  .ep-pipe__steps { grid-template-columns: 1fr; gap: 26px; }
  .ep-pipe__step { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 4px 16px; text-align: left; }
  .ep-pipe__node { grid-row: 1 / 3; }
  .ep-pipe__name { font-size: 20px; padding-top: 6px; }
  .ep-foot { padding-top: 80px; }
  .ep-foot__cols { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .ep-foot__brand { grid-column: 1 / -1; }
  .ep-foot__contact { grid-column: 1 / -1; }
  .ep-foot__bot { flex-direction: column; gap: 0; }
}
@keyframes ep-flow-y { from { background-position: 0 0; } to { background-position: 0 22px; } }
@media (max-width: 420px) {
  .ep-hero__h1, .ep-hero--sub .ep-hero__h1 { font-size: 35px; }
  .ep-hero__text { padding-left: 40px; }
  .ep-hero__ruler { left: 14px; }
  .ep-h2 { font-size: 28px; }
  .ep-card__img { width: 108px; }
  .ep-bookbar .ep-btn { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-hero__ruler, .ep-hero__strata i, .ep-pipe__fill::after, .ep-foot__tread-run { animation: none !important; }
  .ep-pipe__node::before, .ep-pipe__node > span, .ep-card__line::after, .ep-card__name .ep-ico { transition: none !important; }
}

/* ================= OM OSS + OMRÅDEN (revision 02, höjdkurvor kring Selsfors) ================= */
.ep-area { padding-block: 100px; background: #fff; }
.ep-about { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: center; padding-bottom: 72px; margin-bottom: 72px; border-bottom: 1px solid var(--ep-line); }
.ep-about__img { margin: 0; aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden; border-radius: 12px; background: var(--ep-soft); }
.ep-about__img img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.ep-about__text .ep-lead + .ep-lead { margin-top: 12px; }
.ep-area__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ep-base { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; padding: 14px 18px; background: var(--ep-soft); border-left: 3px solid var(--ep-navy); font: 500 16px var(--ep-ff-b); color: var(--ep-ink); }
.ep-base .ep-ico { color: var(--ep-navy); }
.ep-base b { font-family: var(--ep-ff-d); font-weight: 800; }
.ep-places { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 0 24px; border-top: 1px solid var(--ep-line); }
.ep-places li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ep-places__it { display: flex; align-items: center; justify-content: space-between; min-height: 54px; border-bottom: 1px solid var(--ep-line); font: 700 19px var(--ep-ff-d); color: var(--ep-ink); cursor: default; transition: color .2s, padding .25s; }
a.ep-places__it { cursor: pointer; }
.ep-places__it .ep-ico { width: 18px; height: 18px; color: var(--ep-navy); transition: transform .25s; }
.ep-places__it:hover, .ep-places__it:focus-visible, .ep-places__it.is-hl { color: var(--ep-navy); padding-left: 6px; outline: none; }
.ep-places__it:hover .ep-ico, .ep-places__it.is-hl .ep-ico { transform: translateX(4px); }
.ep-places__it:focus-visible { box-shadow: inset 0 -3px 0 var(--ep-navy); }
.ep-area__text, .ep-area__map { min-width: 0; }
.ep-map__base { pointer-events: none; }
.ep-map { display: block; width: 100%; height: auto; max-width: 440px; margin-inline: auto; overflow: hidden; }
.ep-map__topo { overflow: hidden; }
.ep-map__topo path { fill: none; stroke: var(--ep-line); stroke-width: 1; }
.ep-map__topo path:nth-child(3n) { stroke: #c4c9cb; }
.ep-map__dot { fill: var(--ep-navy); transition: r .25s; }
.ep-map__ring { fill: none; stroke: var(--ep-navy); stroke-width: 1.5; opacity: 0; transition: opacity .25s; }
.ep-map__pt.is-hl .ep-map__ring { opacity: 1; }
.ep-map__pt.is-hl .ep-map__dot { r: 7px; }
.ep-map__lbl { font: 600 13px var(--ep-ff-b); fill: var(--ep-ink); }
.ep-map__lbl--base { font-weight: 700; }
.ep-map__home { fill: #fff; stroke: var(--ep-navy); stroke-width: 3; }
.ep-map__pulse { fill: none; stroke: var(--ep-navy); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ep-pulse 2.6s ease-out infinite; }
@keyframes ep-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

/* ================= CTA-BAND (revision 02, schaktkant och stort nummer) ================= */
.ep-cta { position: relative; overflow: hidden; background: var(--ep-navy); color: #fff; padding-block: 130px 70px;
  -webkit-mask: var(--ep-mask-strata) top / 100% 70px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 69px) no-repeat;
          mask: var(--ep-mask-strata) top / 100% 70px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 69px) no-repeat; }
.ep-cta__strata, .ep-cta__edge { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 70px; display: block; pointer-events: none; }
.ep-cta__edge path { fill: none; stroke: #8f95d6; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ep-cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 56px; align-items: center; }
.ep-cta .ep-kick { color: #b8bce8; margin-bottom: 12px; }
.ep-cta__h { margin: 0; font: 800 40px/1.08 var(--ep-ff-d); color: #fff; max-width: 24ch; text-wrap: balance; }
.ep-cta__act { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ep-cta__num { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; font: 800 46px/1 var(--ep-ff-d); letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.ep-cta__num .ep-ico { width: 34px; height: 34px; color: #b8bce8; }
.ep-cta__num:hover { color: #dfe2ff; }
.ep-btn--outw { border-color: rgb(255 255 255 / .75); color: #fff; background: transparent; }
.ep-btn--outw:hover { background: #fff; color: var(--ep-navy); }
@media (max-width: 900px) {
  .ep-about { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; }
  .ep-area__grid { gap: 36px; }
  .ep-cta__h { font-size: 34px; }
  .ep-cta__num { font-size: 38px; }
}
@media (max-width: 760px) {
  .ep-area { padding-block: 64px; }
  .ep-about { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; margin-bottom: 48px; }
  .ep-about__img { aspect-ratio: 4 / 3; }
  .ep-area__grid { grid-template-columns: 1fr; gap: 28px; }
  .ep-places__it { font-size: 17px; min-height: 50px; }
  .ep-map { max-width: 340px; }
  .ep-cta { padding-block: 90px 48px; -webkit-mask-size: 100% 44px, 100% calc(100% - 43px); mask-size: 100% 44px, 100% calc(100% - 43px); }
  .ep-cta__strata, .ep-cta__edge { height: 44px; }
  .ep-cta__grid { grid-template-columns: 1fr; gap: 22px; }
  .ep-cta__h { font-size: 28px; }
  .ep-cta__num { font-size: 32px; min-height: 48px; }
  .ep-cta__num .ep-ico { width: 26px; height: 26px; }
  .ep-cta__act .ep-btn { width: 100%; }
}
@media (max-width: 420px) {
  .ep-cta__num { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-map__pulse { animation: none !important; opacity: 0; }
  .ep-places__it, .ep-places__it .ep-ico, .ep-map__ring, .ep-map__dot { transition: none !important; }
}

/* ================= FÖRDELAR (revision 03, dikeskant och protokoll) ================= */
.ep-fb { position: relative; overflow: hidden; background: var(--ep-night); color: #fff; padding-block: 150px 110px;
  -webkit-mask: var(--ep-mask-ditch) top / 100% 110px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 109px) no-repeat;
          mask: var(--ep-mask-ditch) top / 100% 110px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 109px) no-repeat; }
.ep-fb .ep-wrap { z-index: 1; }
.ep-fb__head { min-width: 0; }
.ep-fb__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.ep-fb .ep-kick { color: var(--ep-grey); }
.ep-fb .ep-h2 { color: #fff; }
.ep-fb__line { display: block; width: min(320px, 100%); height: 40px; margin-top: 16px; }
.ep-fb__line path { fill: none; stroke: var(--ep-grey-d); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ep-fb__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2a2e33; }
.ep-fb__row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: center; padding: 24px 0 24px 18px; border-bottom: 1px solid #2a2e33; transition: background .3s; }
.ep-fb__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ep-navy); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.ep-fb__row:hover { background: #121418; }
.ep-fb__row:hover::before { transform: scaleY(1); }
.ep-fb__row .ep-ico { width: 30px; height: 30px; color: var(--ep-grey); }
.ep-fb__name { margin: 0; font: 800 20px/1.2 var(--ep-ff-d); color: #fff; }
.ep-fb__txt { margin: 0; color: #b4babe; font-size: 15px; line-height: 1.55; }
.ep-fb__forest { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; display: block; pointer-events: none; }
@media (max-width: 900px) {
  .ep-fb__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .ep-fb { padding-block: 110px 90px; -webkit-mask-size: 100% 60px, 100% calc(100% - 59px); mask-size: 100% 60px, 100% calc(100% - 59px); }
  .ep-fb__row { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0 18px 12px; align-items: start; }
  .ep-fb__row .ep-ico { grid-row: 1 / 3; width: 26px; height: 26px; margin-top: 2px; }
  .ep-fb__name { font-size: 18px; }
  .ep-fb__forest { height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-fb__row, .ep-fb__row::before { transition: none !important; }
}
