/* Visual refinements for the What we deliver, Connected visibility and footer sections. */

/* Keep the rotating hero photography clear while retaining enough contrast for copy. */
.hero-slide {
  filter: brightness(1.24) saturate(1.1) contrast(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 24, 27, 0.78), rgba(18, 24, 27, 0.46) 38%, rgba(18, 24, 27, 0.04) 78%),
    linear-gradient(0deg, rgba(18, 24, 27, 0.44), transparent 55%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: -35% -18%;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 30% 42%, rgba(240, 219, 164, 0.34), transparent 28%),
    radial-gradient(ellipse at 72% 62%, rgba(193, 225, 231, 0.24), transparent 31%);
  filter: blur(28px);
  animation: hero-liquid-sheen 18s ease-in-out infinite alternate;
}

.hero h1,
.hero-copy,
.hero .eyebrow {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

@keyframes hero-liquid-sheen {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-overlay::after { animation: none; }
}

.sectors .sector-panel img.sector-image-enter {
  animation: sector-image-enter 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes sector-image-enter {
  from { opacity: 0.45; transform: translate3d(0.6rem, 0, 0) scale(0.99); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .sectors .sector-panel img.sector-image-enter { animation: none; }
}

#capabilities {
  --section-gold: var(--gold, #d4af37);
  position: relative;
  overflow: hidden;
  background: var(--paper, #f4f1e9);
}

/* Retire the old "What we deliver" heading while preserving its remaining service content. */
#capabilities > .container > .section-heading {
  display: none !important;
}

#capabilities::before,
#monitoring::before {
  content: "";
  position: absolute;
  top: 0;
  right: clamp(1.5rem, 7vw, 7rem);
  width: min(30vw, 22rem);
  height: 0.35rem;
  background: var(--section-gold);
}

#capabilities .section-heading,
#monitoring .section-heading {
  position: relative;
  z-index: 1;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #25282b) 18%, transparent);
}

#capabilities .eyebrow,
#monitoring .eyebrow,
#capabilities .section-title .accent,
#monitoring .section-title .accent {
  color: var(--section-gold);
}

#capabilities .service-row {
  position: relative;
  min-height: clamp(28rem, 42vw, 38rem);
  gap: 0;
  background: var(--white, #fffdf9);
  box-shadow: 0 1.5rem 3rem rgba(37, 40, 43, 0.1);
}

#capabilities .service-row + .service-row {
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
}

#capabilities .service-row::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  right: 50%;
  width: clamp(4rem, 8vw, 7rem);
  height: clamp(4rem, 8vw, 7rem);
  background: var(--section-gold);
  clip-path: polygon(0 0, 100% 0, 56% 100%, 0 100%);
  opacity: 0.95;
  pointer-events: none;
}

#capabilities .service-row.reverse::after {
  right: auto;
  left: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 44% 100%);
}

#capabilities .service-image {
  z-index: 1;
  min-height: 100%;
  padding: 1.25rem 2.4rem 2.4rem 0;
  background: var(--section-gold);
}

#capabilities .service-row.reverse .service-image {
  padding: 1.25rem 0 2.4rem 2.4rem;
}

#capabilities .service-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 1.5rem;
  background: var(--graphite, #25282b);
  opacity: 0.16;
}

#capabilities .service-row.reverse .service-image::before {
  inset: 0 1.5rem 0 0;
}

#capabilities .service-image::after {
  z-index: 2;
  inset: 1.25rem 2.4rem 2.4rem 0;
  border: 1px solid rgba(255, 253, 249, 0.7);
}

#capabilities .service-row.reverse .service-image::after {
  inset: 1.25rem 0 2.4rem 2.4rem;
}

#capabilities .service-image img {
  position: relative;
  z-index: 1;
  object-position: center;
}

#capabilities .service-copy {
  position: relative;
  z-index: 3;
  min-height: 100%;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--white, #fffdf9);
}

#capabilities .service-copy::before {
  content: "FIELD DELIVERY";
  display: block;
  margin-bottom: 0.4rem;
  color: var(--section-gold);
  font: 600 0.65rem/1 var(--font-mono, monospace);
  letter-spacing: 0.16em;
}

#capabilities .service-row:nth-of-type(2) .service-copy::before {
  content: "CONNECTED INFRASTRUCTURE";
}

#capabilities .service-copy h3 {
  max-width: 30rem;
  margin-top: 0.8rem;
}

#capabilities .service-copy h3 .accent {
  color: var(--section-gold);
}

#capabilities .service-copy .arrow-link {
  color: var(--section-gold);
  border-bottom: 1px solid color-mix(in srgb, var(--section-gold) 50%, transparent);
  padding-bottom: 0.6rem;
}

#monitoring {
  --section-gold: var(--gold, #d4af37);
  position: relative;
  overflow: hidden;
  background: var(--paper-2, #ebe8df);
}

#monitoring::after {
  content: "02";
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: 0;
  color: rgba(37, 40, 43, 0.045);
  font: 700 clamp(11rem, 24vw, 22rem) / 0.7 var(--font-display, sans-serif);
  letter-spacing: -0.1em;
  pointer-events: none;
}

#monitoring .monitoring-grid {
  position: relative;
  z-index: 1;
  gap: 0;
  align-items: stretch;
  background: var(--white, #fffdf9);
  box-shadow: 0 1.5rem 3rem rgba(37, 40, 43, 0.1);
}

#monitoring .monitoring-visual {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: clamp(25rem, 40vw, 35rem);
  padding: 1.25rem 2.4rem 2.4rem 0;
  border: 0;
  background: var(--section-gold);
}

#monitoring .monitoring-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 0 1.5rem;
  background: var(--graphite, #25282b);
  opacity: 0.16;
}

#monitoring .monitoring-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 1.25rem 2.4rem 2.4rem 0;
  border: 1px solid rgba(255, 253, 249, 0.7);
  pointer-events: none;
}

#monitoring .monitoring-visual img {
  position: relative;
  z-index: 1;
  align-self: stretch;
  aspect-ratio: auto;
  min-height: 100%;
  object-fit: cover;
}

#monitoring .monitoring-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--white, #fffdf9);
}

#monitoring .monitoring-copy::before {
  content: "MONITOR / UNDERSTAND / RESPOND";
  display: block;
  margin-bottom: 1.2rem;
  color: var(--section-gold);
  font: 600 0.65rem/1 var(--font-mono, monospace);
  letter-spacing: 0.15em;
}

#monitoring .monitoring-copy h3 {
  max-width: 30rem;
}

#monitoring .monitoring-copy h3 .accent,
#monitoring .operating-points b {
  color: var(--section-gold);
}

#monitoring .operating-points {
  border-color: color-mix(in srgb, var(--ink, #25282b) 16%, transparent);
}

#monitoring .operating-points li {
  border-color: color-mix(in srgb, var(--ink, #25282b) 16%, transparent);
}

#monitoring .arrow-link {
  color: var(--section-gold);
  border-bottom: 1px solid color-mix(in srgb, var(--section-gold) 50%, transparent);
  padding-bottom: 0.6rem;
}

.footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 36%),
    var(--graphite, #25282b);
  padding: clamp(4rem, 7vw, 6rem) 0 1.5rem;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.3rem;
  background: var(--gold, #d4af37);
}

.footer-top {
  position: relative;
  grid-template-columns: 1.3fr 0.75fr 0.75fr 1.35fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: 4.5rem;
}

.footer-brand {
  padding-right: 2rem;
  border-right: 1px solid rgba(255, 253, 249, 0.14);
}

.footer-brand img {
  width: min(12rem, 100%);
  filter: brightness(1.05);
}

.footer h3 {
  color: var(--gold-light, #d4af37);
}

.footer-links a {
  position: relative;
  width: fit-content;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.2rem;
  left: 0;
  height: 1px;
  background: var(--gold, #d4af37);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.footer-links a:hover {
  color: var(--gold-light, #d4af37);
  transform: translateX(0.2rem);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.newsletter {
  padding: 1.4rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 253, 249, 0.04);
}

.newsletter-form {
  border-color: rgba(212, 175, 55, 0.55);
}

.newsletter-form button,
.to-top {
  color: var(--gold, #d4af37);
}

.newsletter-form button:hover {
  color: var(--white, #fffdf9);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top-color: rgba(212, 175, 55, 0.28);
}

.to-top {
  border-color: rgba(212, 175, 55, 0.7);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.to-top:hover {
  background: var(--gold, #d4af37);
  color: var(--graphite, #25282b);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  #capabilities .service-row,
  #capabilities .service-row.reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  #capabilities .service-row.reverse .service-image,
  #capabilities .service-row .service-image {
    order: 0;
    min-height: 22rem;
    padding: 1rem 1.5rem 1.5rem 0;
  }

  #capabilities .service-row.reverse .service-image {
    padding-right: 0;
    padding-left: 1.5rem;
  }

  #capabilities .service-image::after,
  #capabilities .service-row.reverse .service-image::after {
    inset: 1rem 1.5rem 1.5rem 0;
  }

  #capabilities .service-row.reverse .service-image::after {
    inset: 1rem 0 1.5rem 1.5rem;
  }

  #monitoring .monitoring-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #monitoring .monitoring-visual {
    min-height: 22rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 249, 0.14);
  }
}

@media (max-width: 560px) {
  #capabilities .section-heading,
  #monitoring .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  #capabilities .service-copy,
  #monitoring .monitoring-copy {
    padding: 2rem 1.35rem 2.5rem;
  }

  #monitoring .monitoring-visual {
    min-height: 17rem;
    padding-right: 1.25rem;
    padding-bottom: 1.25rem;
  }

  #monitoring .monitoring-visual::after {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}
