/* Editorial sector pages — shared visual system for Energy and Agri. */
body.sector-editorial {
  --sector-ink: #071829;
  --sector-paper: #f2f0e9;
  --sector-soft: #dfe7eb;
  --sector-accent: #8fe3f6;
  --sector-accent-rgb: 143, 227, 246;
  --sector-image: url('../images/img/50.webp');
  background: var(--sector-paper);
  color: var(--sector-ink);
  overflow-x: clip;
}

body.sector-editorial.sector-agri {
  --sector-ink: #14251e;
  --sector-paper: #f1efe5;
  --sector-soft: #dfe7d8;
  --sector-accent: #c8e66a;
  --sector-accent-rgb: 200, 230, 106;
  --sector-image: url('../images/img/53.jpg');
}

.sector-editorial main { padding-top: 0; }
.sector-editorial .nav-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  height: auto;
}

.sector-editorial .page-header {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  height: 100vh;
  height: 100svh;
  margin: 0 !important;
  padding: clamp(9rem, 18vh, 13rem) clamp(1.25rem, 5vw, 5.5rem) clamp(4rem, 9vh, 7rem) !important;
  overflow: hidden;
  background: var(--sector-ink) !important;
  color: white;
}

.sector-editorial .page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 15, 27, .96) 0%, rgba(3, 15, 27, .76) 43%, rgba(3, 15, 27, .18) 78%),
    linear-gradient(0deg, rgba(3, 15, 27, .55), transparent 55%),
    var(--sector-image) center / cover no-repeat;
  transform: scale(1.025);
}

.sector-agri .page-header::before {
  background:
    linear-gradient(90deg, rgba(10, 28, 20, .96) 0%, rgba(10, 28, 20, .74) 45%, rgba(10, 28, 20, .15) 80%),
    linear-gradient(0deg, rgba(10, 28, 20, .58), transparent 58%),
    var(--sector-image) center / cover no-repeat;
}

.sector-editorial .page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .17;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.sector-editorial .page-header .container {
  width: min(100%, 1500px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.sector-editorial .page-header .col-12 { margin: 0 !important; }
.sector-editorial .page-header .breadcrumb {
  margin: 0 0 clamp(2rem, 5vh, 4rem);
  padding: 0;
  background: transparent;
}
.sector-editorial .page-header .breadcrumb-item,
.sector-editorial .page-header .breadcrumb-item a,
.sector-editorial .page-header .breadcrumb-item.active {
  color: rgba(255,255,255,.68) !important;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.sector-editorial .page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

.sector-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  color: var(--sector-accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.sector-kicker::before { content: ""; width: 3.5rem; height: 1px; background: currentColor; }

.sector-editorial .page-header h1 {
  max-width: 1050px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 7.6vw, 8.6rem);
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.sector-editorial .page-header .lead {
  max-width: 720px;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 300;
  line-height: 1.65;
}

.sector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.62);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sector-meta span {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.45;
}
.sector-meta span::before {
  content: "●";
  flex: 0 0 auto;
  margin: .52em .65rem 0 0;
  color: var(--sector-accent);
  font-size: .55em;
  line-height: 1;
}

.sector-editorial .product-section {
  counter-reset: sector-product;
  padding: clamp(4rem, 9vw, 9rem) clamp(1rem, 3vw, 3.5rem);
  background: var(--sector-paper);
}
.sector-index-intro {
  display: grid;
  grid-template-columns: minmax(130px, .35fr) 1fr;
  gap: 2rem;
  width: min(100%, 1540px);
  margin: 0 auto clamp(4rem, 9vw, 9rem);
  padding: 0 clamp(.5rem, 2vw, 2rem) clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid rgba(7,24,41,.16);
}
.sector-index-intro > span {
  padding-top: .65rem;
  color: color-mix(in srgb, var(--sector-ink) 56%, transparent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sector-index-intro h2 {
  max-width: 1050px;
  margin: 0;
  color: var(--sector-ink);
  font-size: clamp(2.6rem, 5.7vw, 6.8rem);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.045em;
}
.sector-editorial .product-section > .container-fluid {
  width: min(100%, 1540px);
  margin: 0 auto;
}

.sector-editorial .product-feature-row {
  counter-increment: sector-product;
  position: relative;
  min-height: clamp(570px, 76vh, 820px);
  margin-bottom: clamp(1rem, 2.5vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(7,24,41,.12);
  border-radius: clamp(1.25rem, 2.5vw, 2.5rem);
  background: rgba(255,255,255,.42) !important;
  box-shadow: 0 28px 80px rgba(7,24,41,.06);
}
.sector-agri .product-feature-row { border-color: rgba(20,37,30,.13); }

.sector-editorial .product-feature-row .img-col { align-self: stretch; overflow: hidden; }
.sector-editorial .product-feature-row .feature-image {
  width: 100%;
  height: 100%;
  min-height: clamp(570px, 76vh, 820px);
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .6s ease;
}
.sector-editorial .product-feature-row:hover .feature-image { transform: scale(1.045); filter: saturate(1) contrast(1.02); }

.sector-editorial .product-feature-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(570px, 76vh, 820px);
  padding: clamp(3rem, 7vw, 7.5rem) !important;
  color: var(--sector-ink);
}
.sector-editorial .product-feature-content::before {
  content: none;
}
.sector-editorial .product-feature-content::after {
  content: none;
}

.sector-editorial .product-feature-content h3 {
  max-width: 650px;
  margin: 0 0 1.75rem;
  color: var(--sector-ink);
  font-size: clamp(2.35rem, 3.8vw, 4.8rem);
  font-weight: 200;
  line-height: .95;
  letter-spacing: -.045em;
}
.sector-editorial .product-feature-content p {
  max-width: 590px;
  margin: 0 0 2.25rem;
  color: color-mix(in srgb, var(--sector-ink) 72%, transparent);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.7;
}
.sector-editorial .product-feature-content .learn-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .45rem;
  padding: .85rem 0;
  border-bottom: 1px solid transparent;
  color: var(--sector-ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: gap .3s ease, color .3s ease, border-color .3s ease;
}
.sector-editorial .product-feature-content .learn-more:hover {
  gap: .7rem;
  color: color-mix(in srgb, var(--sector-ink) 60%, var(--sector-accent));
  border-color: currentColor;
}

.sector-editorial .solutions-promo {
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 4vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(var(--sector-accent-rgb), .2), transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(90, 126, 145, .12), transparent 31%),
    linear-gradient(135deg, #eef3f4 0%, #e2eaed 100%);
}
.sector-agri .solutions-promo {
  background:
    radial-gradient(circle at 8% 12%, rgba(var(--sector-accent-rgb), .22), transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(103, 128, 91, .12), transparent 31%),
    linear-gradient(135deg, #f1f2e9 0%, #e5ebe1 100%);
}
.sector-editorial .solutions-promo::before {
  content: "RELATED CAPABILITIES";
  display: block;
  width: min(100%, 1480px);
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(7,24,41,.16);
  color: color-mix(in srgb, var(--sector-ink) 58%, transparent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
}
.sector-editorial .solutions-promo > .container { width: min(100%, 1480px); max-width: none; }
.sector-editorial .solutions-promo > .container > .row {
  display: grid;
  grid-template-columns: 1.12fr .94fr .94fr;
  gap: clamp(.75rem, 1.5vw, 1.5rem);
  margin: 0;
}
.sector-editorial .solutions-promo > .container > .row > [class*="col-"] {
  width: auto;
  margin: 0 !important;
  padding: 0;
}
.sector-editorial .promo-card-image {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(500px, 46vw, 700px);
  padding: clamp(1.5rem, 3vw, 3.25rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: .35rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
  transition: border-color .5s ease, transform .6s cubic-bezier(.16,1,.3,1), background-size 1.2s cubic-bezier(.16,1,.3,1);
}
.sector-editorial .promo-card-image::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,15,27,.3) 0%, rgba(3,15,27,.22) 42%, rgba(3,15,27,.96) 100%),
    linear-gradient(90deg, rgba(3,15,27,.28), rgba(3,15,27,.08) 58%, rgba(3,15,27,.2));
  transition: background .5s ease;
}
.sector-editorial .promo-card-image::after {
  content: none;
}
.sector-editorial .solutions-promo .row,
.sector-editorial .solutions-slider .swiper-wrapper { counter-reset: sector-card; }
.sector-editorial .promo-card-image { counter-increment: sector-card; }
.sector-editorial .promo-card-image:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--sector-accent-rgb), .65);
  box-shadow: 0 38px 110px rgba(0,0,0,.3);
}
.sector-editorial .promo-card-image:hover::before {
  background:
    linear-gradient(180deg, rgba(3,15,27,.24), rgba(3,15,27,.18) 44%, rgba(3,15,27,.94) 100%),
    linear-gradient(90deg, rgba(3,15,27,.24), rgba(3,15,27,.06) 62%, rgba(3,15,27,.16));
}
.sector-editorial .promo-card-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 35rem;
  padding: 0;
  text-align: left;
}
.sector-editorial .promo-card-content h3 {
  max-width: 18ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
  font-size: clamp(1.3rem, 1.65vw, 1.85rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-shadow: none;
}
.sector-editorial .promo-card-content .btn {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: .65rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: rgba(255,255,255,.86);
  background: transparent;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .3s ease, border-color .3s ease, letter-spacing .3s ease;
}
.sector-editorial .promo-card-image:hover .btn {
  color: var(--sector-accent);
  border-color: var(--sector-accent);
  letter-spacing: .16em;
}

@media (max-width: 991.98px) {
  .sector-editorial .page-header { min-height: 820px; }
  .sector-editorial .product-feature-row { min-height: 0; }
  .sector-editorial .product-feature-row .feature-image { min-height: 55svh; max-height: 650px; }
  .sector-editorial .product-feature-content { min-height: 520px; }
  .sector-editorial .product-feature-content::before { top: 2.5rem; }
  .sector-editorial .product-feature-content::after { top: 4rem; }
  .sector-editorial .solutions-promo::before { padding-inline: .5rem; }
  .sector-editorial .solutions-slider {
    padding-inline: .75rem;
    overflow: hidden;
  }
  .sector-editorial .solutions-slider .promo-card-image {
    min-height: 570px;
    box-shadow: none;
  }
  .sector-editorial .solutions-slider .promo-card-image:hover {
    transform: none;
    box-shadow: none;
  }
  .sector-editorial .solutions-slider .swiper-slide {
    filter: none;
    box-shadow: none;
  }
}

@media (max-width: 575.98px) {
  .sector-editorial .page-header { min-height: 760px; padding-inline: 1.15rem !important; }
  .sector-editorial .page-header h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .sector-editorial .page-header .lead { font-size: 1rem; }
  .sector-editorial .sector-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: .9rem 1rem;
  }
  .sector-editorial .product-section { padding-inline: .65rem; }
  .sector-index-intro { grid-template-columns: 1fr; gap: 1rem; padding-inline: .75rem; }
  .sector-editorial .product-feature-row { border-radius: 1.15rem; }
  .sector-editorial .product-feature-row .feature-image { min-height: 390px; }
  .sector-editorial .product-feature-content { min-height: 450px; padding: 6rem 1.6rem 2.5rem !important; }
  .sector-editorial .product-feature-content::before,
  .sector-editorial .product-feature-content::after { left: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sector-editorial .product-feature-row .feature-image { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .sector-editorial .page-header::before { animation: sectorHeroDrift 16s ease-out both; }
  .sector-editorial .sector-kicker,
  .sector-editorial .page-header h1,
  .sector-editorial .page-header .lead,
  .sector-editorial .sector-meta {
    opacity: 0;
    transform: translateY(28px);
    animation: sectorReveal .9s cubic-bezier(.16,1,.3,1) forwards;
  }
  .sector-editorial .page-header h1 { animation-delay: .12s; }
  .sector-editorial .page-header .lead { animation-delay: .24s; }
  .sector-editorial .sector-meta { animation-delay: .36s; }
}

@keyframes sectorReveal { to { opacity: 1; transform: none; } }
@keyframes sectorHeroDrift { from { transform: scale(1.085); } to { transform: scale(1.025); } }
