/* Delad WOW-hero — full-bredds foto (deras eget material) + stor centrerad Magni-dealer-logo (vit).
 * Används på alla fyra sajter; bilden + rubriken sätts per sajt i markup. Foton i FÄRG. */
.cphero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #14181a;
  isolation: isolate;
}
.cphero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.cphero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,18,20,.58) 0%, rgba(15,18,20,.30) 38%, rgba(15,18,20,.74) 100%),
    radial-gradient(120% 90% at 50% 42%, rgba(15,18,20,0) 38%, rgba(15,18,20,.45) 100%);
}
.cphero__inner {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 96px 24px 120px;
  max-width: 1040px; margin: 0 auto;
}
/* SAMARBETEN — partner-logorad (deras nuvarande samarbeten) */
.cppartners { background: #fff; color: #2F383C; padding: clamp(52px, 7vw, 88px) clamp(20px, 5vw, 64px); border-top: 1px solid #e7e7e5; text-align: center; }
.cppartners__label { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #8b9094; margin: 0 0 clamp(24px, 3.5vw, 40px); }
.cppartners__row { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(30px, 5vw, 72px); max-width: 1120px; }
.cppartners__row li { display: flex; }
.cppartners__row img { height: clamp(38px, 4.6vw, 60px); width: auto; max-width: 180px; object-fit: contain; opacity: .85; transition: opacity .2s ease, transform .2s ease; }
.cppartners__row li:hover img { opacity: 1; transform: translateY(-2px); }
/* MA Hydraul-loggan har svart bakgrund → invertera till mörk-på-vitt så den matchar bandet */
.cppartners__row img.p-invert { filter: invert(1); }
@media (max-width: 560px) { .cppartners__row { gap: 26px 34px; } .cppartners__row img { height: 34px; } }

/* NAV co-brand: Cranepartner + Magni officiell dealer sida vid sida i headern */
.nav__logo { display: inline-flex !important; align-items: center; gap: clamp(9px, 1.2vw, 15px); }
.nav__logo .navbrand { display: block; width: auto; }
.nav__logo .navbrand--cp { height: 21px; }
.nav__logo .navbrand--magni { height: 31px; }
@media (max-width: 600px) {
  .nav__logo .navbrand--cp { height: 17px; }
  .nav__logo .navbrand--magni { height: 25px; }
}
@media (max-width: 420px) { .nav__logo .navbrand--cp { display: none; } }

/* Co-brand: Cranepartner Sweden + Magni officiell dealer, centrerat */
.cphero__brands {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(14px, 2.2vw, 24px);
  margin: 0 auto clamp(26px, 4vw, 44px);
}
.cphero__cp {
  display: block; width: clamp(220px, 36vw, 440px); height: auto;
  filter: drop-shadow(0 4px 22px rgba(0,0,0,.5));
}
.cphero__brand-div {
  width: 72px; height: 1px; background: rgba(255,255,255,.42);
}
/* Magni officiell dealer-logo — röd pictogram + vit MAGNI över fotot */
.cphero__logo {
  display: block; margin: 0;
  width: clamp(250px, 40vw, 500px); height: auto;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.5));
}
.cphero__eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .22em; text-transform: uppercase; font-size: 12px;
  color: rgba(255,255,255,.82); margin: 0 0 18px;
}
.cphero__title {
  font-family: "Open Sans", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 18px; text-shadow: 0 2px 34px rgba(0,0,0,.45);
}
.cphero__title .red { color: #ff5a5e; }
.cphero__sub {
  font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.55;
  color: rgba(255,255,255,.88); max-width: 58ch; margin: 0 auto clamp(26px, 4vw, 36px);
}
.cphero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #AE171A; color: #fff; font-weight: 700; font-size: 15px;
  padding: 15px 30px; border-radius: 8px; text-decoration: none;
  box-shadow: 0 8px 30px rgba(174,23,26,.35);
}
.cphero__cta:hover { background: #c41b1f; }
.cphero__cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; color: #fff; opacity: .75; font-size: 22px; line-height: 1;
  animation: cphero-bounce 2.2s ease-in-out infinite;
}
/* mjuk entré */
.cphero__logo, .cphero__eyebrow, .cphero__title, .cphero__sub, .cphero__cta {
  animation: cphero-rise .8s cubic-bezier(.22,1,.36,1) both;
}
.cphero__eyebrow { animation-delay: .05s; }
.cphero__title  { animation-delay: .12s; }
.cphero__sub    { animation-delay: .2s; }
.cphero__cta    { animation-delay: .28s; }
@keyframes cphero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cphero-bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

@media (max-width: 640px) {
  .cphero { min-height: 86vh; }
  .cphero__inner { padding: 88px 20px 100px; }
  .cphero__logo { width: min(78vw, 360px); }
}
@media (prefers-reduced-motion: reduce) {
  .cphero__logo, .cphero__eyebrow, .cphero__title, .cphero__sub, .cphero__cta { animation: none; }
  .cphero__cue { animation: none; }
}
