/* ============================================================
   POWR Data — facelift design system.
   Loaded only by pages on the new design (homepage + new pages),
   alongside styles.css. Defines the shared chrome (header/footer
   web components), the dark hero carousel, offset-shadow pillar
   cards, "Why" row, and "Let's talk" band.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1d3557;
  --navy-deep: #1d3557;
  --navy-ink: #0e1c30;
  --blue: #457b9d;
  --aqua: #a8dadc;
  --red: #e63946;
  --paper: #f6f8fb;
  --ink: #14181d;
  --muted-d: #59616b;
  --muted-l: rgba(255, 255, 255, 0.66);
  --line-l: rgba(17, 17, 17, 0.1);
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
}

/* Display font for headings on facelift pages */
h1, h2, h3,
.pd-brand__name {
  font-family: var(--font-display);
}

/* Neutralise legacy section spacing from styles.css; facelift sections
   (.section, .hero, .cta-band) manage their own vertical rhythm. */
main section { padding: 0; }
.hero { padding: 0; }

/* ---- Buttons (squared) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 4px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn__arrow { transition: transform 160ms ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #cf2f3c; color: #fff; transform: translateY(-1px); }
.btn--outline { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn--dark { border-color: rgba(29, 53, 87, 0.25); color: var(--navy); }
.btn--dark:hover { border-color: var(--navy); background: rgba(29, 53, 87, 0.05); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #3a6883; color: #fff; transform: translateY(-1px); }

/* ============================================================
   Header (web component <site-header>)
   ============================================================ */
.pd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.pd-brand { display: inline-flex; align-items: center; gap: 11px; }
.pd-brand__mark { height: 40px; width: auto; display: block; }
.pd-brand__wordmark { height: 64px; width: auto; display: block; }
.pd-brand__name {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: #fff;
}
.pd-brand__r { color: var(--red); font-style: normal; }
.pd-brand__bar {
  width: 2px;
  height: 0.95em;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 9px;
  display: inline-block;
}
.pd-nav { display: flex; align-items: center; gap: 28px; }
.pd-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 140ms ease;
}
.pd-nav a:hover { color: #fff; }
.pd-nav a[aria-current="page"] { color: #fff; }
.pd-nav .btn--primary { color: #fff; }

/* Light header variant (white bar, navy logo/nav) for dark-hero pages. */
.pd-header--light { background: #fff; border-bottom: 1px solid rgba(17, 17, 17, 0.08); }
.pd-header--light .pd-nav a { color: var(--navy); font-weight: 600; }
.pd-header--light .pd-nav a:hover,
.pd-header--light .pd-nav a[aria-current="page"] { color: var(--red); }
.pd-header--light .pd-burger span { background: var(--navy); }
.pd-header--light .pd-nav .btn--primary,
.pd-header--light .pd-nav .btn--primary:hover { background: var(--blue); color: #fff; }
.pd-header--light .pd-nav .btn--primary:hover { background: #3a6883; }
.pd-header--light .pd-mobile { background: #fff; border-top: 1px solid rgba(17, 17, 17, 0.08); }
.pd-header--light .pd-mobile a { color: var(--navy); }
.pd-header--light .pd-mobile a:hover { color: var(--navy); background: rgba(17, 17, 17, 0.04); }

.pd-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.pd-burger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.pd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pd-mobile {
  display: flex;
  flex-direction: column;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0 16px;
}
.pd-mobile[hidden] { display: none; }
.pd-mobile a { padding: 13px 20px; color: rgba(255, 255, 255, 0.82); font-size: 1rem; }
.pd-mobile a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.pd-mobile__cta {
  margin: 10px 20px 0;
  padding: 13px 18px !important;
  background: var(--red);
  color: #fff !important;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-display);
}

/* ============================================================
   Hero carousel
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.hero__viewport {
  position: relative;
  min-height: clamp(520px, 58vh, 640px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease, visibility 600ms ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 70% center;
}
.hero-slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, rgba(29, 53, 87, 0.92) 34%, rgba(29, 53, 87, 0.4) 64%, rgba(29, 53, 87, 0.12) 100%),
    linear-gradient(0deg, rgba(29, 53, 87, 0.55) 0%, transparent 40%);
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  padding: 50px 0 44px;
}
.hero h1 { max-width: 15ch; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0;
}
.hero h1 .accent { color: var(--red); }
.hero-sub {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 66px;
  width: min(100% - 40px, 1320px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 160ms ease;
}
.hero__dot.is-active { background: var(--red); }
.hero__arrows { margin-left: auto; display: flex; gap: 10px; }
.hero__arrow {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, border-color 140ms ease;
}
.hero__arrow:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }

/* ============================================================
   Sections / Pillars
   ============================================================ */
.section { padding: clamp(22px, 2.4vw, 38px) 0; }
.section--paper { background: var(--paper); }
/* First section sits right under the hero — tighter top gap than the hero's. */
#services { padding-top: 0; }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 14px 0 0;
}
.section-head { display: block; margin-bottom: 20px; }
.section-head .lead { margin: 14px 0 0; color: var(--muted-d); font-size: 1.05rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 26px;
  /* Overlap the cards up into the bottom of the dark hero, like the design. */
  margin-top: -52px;
  position: relative;
  z-index: 5;
}
.pillar {
  position: relative;
  background: var(--navy-ink);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 11px 11px 0 var(--blue);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.pillar:nth-child(2) { box-shadow: 11px 11px 0 var(--red); }
.pillar:nth-child(3) { box-shadow: 11px 11px 0 var(--aqua); }
.pillar:nth-child(4) { box-shadow: 11px 11px 0 var(--blue); }
.pillar:hover { transform: translate(-2px, -2px); box-shadow: 15px 15px 0 currentColor; }
.pillar:nth-child(1):hover { box-shadow: 15px 15px 0 var(--blue); }
.pillar:nth-child(2):hover { box-shadow: 15px 15px 0 var(--red); }
.pillar:nth-child(3):hover { box-shadow: 15px 15px 0 var(--aqua); }
.pillar:nth-child(4):hover { box-shadow: 15px 15px 0 var(--blue); }
.pillar__icon { color: var(--aqua); margin-bottom: 18px; }
.pillar__icon svg { width: 42px; height: 42px; }
.pillar:nth-child(2) .pillar__icon { color: var(--red); }
.pillar h3 { font-size: 1.3rem; line-height: 1.1; margin: 0 0 12px; color: #fff; }
.pillar p { color: var(--muted-l); font-size: 0.96rem; line-height: 1.55; margin: 0; flex: 1; }
.pillar__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 140ms ease, transform 140ms ease;
}
.pillar:hover .pillar__link { color: #fff; transform: translateX(3px); }

/* ============================================================
   Why POWR Data
   ============================================================ */
.why-head { text-align: center; margin-bottom: 28px; }
.why-head .section-title { margin: 12px auto 0; max-width: none; }
/* "WHY POWR DATA" as a centered label with rules running across (per design). */
.why-rule { display: flex; align-items: center; gap: 26px; margin-bottom: 40px; }
.why-rule::before, .why-rule::after { content: ""; flex: 1; height: 1px; background: var(--line-l); }
.why-rule span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.5rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.why-rule b { color: var(--blue); font-weight: 700; }
.why-head .section-eyebrow { justify-content: center; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.why-item { padding: 0 22px; text-align: center; }
.why-item + .why-item { border-left: 1px solid var(--line-l); }
.why-item__icon { color: var(--navy); margin-bottom: 18px; display: flex; justify-content: center; }
.why-item__icon svg { width: 76px; height: 76px; }
.why-item h3 { font-size: 1rem; letter-spacing: 0.01em; color: var(--navy); margin: 0 0 8px; }
.why-item p { color: var(--muted-d); font-size: 0.9rem; line-height: 1.5; margin: 0; }

/* ============================================================
   "Let's talk" band
   ============================================================ */
/* CTA is a contained dark banner floating on the light background (separate
   from the footer), using the deep highlight navy. */
.cta-band { padding: clamp(24px, 3vw, 40px) 0; }
.cta-band__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--navy-ink);
  color: #fff;
  border-radius: 12px;
  padding: 30px 40px;
}
.cta-band__icon { color: var(--aqua); flex-shrink: 0; }
.cta-band__text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.cta-band__text span { color: rgba(255, 255, 255, 0.6); font-weight: 500; font-size: 1rem; margin-left: 10px; }
.cta-band__actions { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Footer (web component <site-footer>)
   ============================================================ */
/* padding: 0 overrides the legacy `footer { padding: 24px 0 40px }` in
   styles.css; this footer manages its own spacing via __top / __bottom. */
.pd-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.78); border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 0; }
.pd-footer__top {
  display: grid;
  grid-template-columns: 2fr 1.5fr 0.75fr 1.75fr;
  gap: 32px;
  padding: 16px 0 28px;
}
/* Pull the brand block up so the blurb's first line aligns with the other
   columns' first items (the tall logo otherwise pushes the blurb down). */
.pd-footer__brand { margin-top: -8px; }
.pd-footer__brand .pd-brand { margin-bottom: 5px; }
.pd-footer__brand .pd-brand img { max-height: none; }
.pd-footer__brand .pd-brand__mark { height: 30px; }
.pd-footer__brand .pd-brand__wordmark { height: 48px; }
.pd-footer__brand p { font-size: 0.92rem; line-height: 1.6; max-width: none; margin: 0; }
.pd-footer__col h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 4px 0 16px;
}
.pd-footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  padding: 6px 0;
  transition: color 140ms ease;
}
.pd-footer__col a:hover { color: #fff; }
.pd-footer__links2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.pd-footer__contacts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.pd-footer__col .pd-footer__contact {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 0; color: rgba(255, 255, 255, 0.78); font-size: 0.88rem;
}
.pd-footer__col .pd-footer__contact:hover { color: #fff; }
.pd-footer__contact svg { width: 16px; height: 16px; flex-shrink: 0; color: rgba(255, 255, 255, 0.5); }
.pd-footer__socials { display: flex; gap: 16px; margin-top: 14px; }
.pd-footer__icon { display: inline-flex; color: rgba(255, 255, 255, 0.7); transition: color 140ms ease; }
.pd-footer__icon:hover { color: #fff; }
.pd-footer__icon svg { width: 20px; height: 20px; }
.pd-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .why-item:nth-child(3n + 1) { border-left: none; }
  .pd-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .pd-nav { display: none; }
  .pd-burger { display: flex; }
  .hero-slide__media { background-position: 75% center; }
  .hero-slide__media::after {
    background:
      linear-gradient(90deg, var(--navy-deep) 0%, rgba(29, 53, 87, 0.9) 50%, rgba(29, 53, 87, 0.55) 100%),
      linear-gradient(0deg, rgba(29, 53, 87, 0.6) 0%, transparent 45%);
  }
  .cta-band__actions { margin-left: 0; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3n + 1) { border-left: 1px solid var(--line-l); }
  .why-item:nth-child(2n + 1) { border-left: none; }
  .pd-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .hero-slide__content { padding: 64px 0; }
  .cta-band__inner { padding: 24px 22px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .btn, .btn__arrow, .pillar, .pillar__link { transition: none; }
}
