:root {
  --hfr-ink: #132d43;
  --hfr-navy: #132d43;
  --hfr-navy-soft: #1d5a93;
  --hfr-navy-deep: #06192a;
  --hfr-blue: #3d95e6;
  --hfr-blue-light: #62aff5;
  --hfr-slate: #676b6e;
  --hfr-mist: #f8f9fa;
  --hfr-paper: #ffffff;
  --hfr-accent: #3d95e6;
  --hfr-accent-strong: #1d5a93;
  --hfr-gold: #b89662;
  --hfr-white: #ffffff;
  --hfr-serif: "minion-pro", "Source Serif 4", georgia, "Times New Roman", serif;
  --hfr-sans: "proxima-nova", "Source Sans 3", "Segoe UI", "Helvetica Neue", arial, sans-serif;
  --hfr-max: 1500px;
  --hfr-gutter: 1.25rem;
  --hfr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hfr-bp-tablet: 48rem;
  --hfr-bp-desktop: 64rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--hfr-slate);
  background: var(--hfr-paper);
  font-family: var(--hfr-sans);
  overflow-x: clip;
}

a {
  color: var(--hfr-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Remove the default block-gap margin between the header template part and the
   page body so the hero sits flush against the header (no white seam). */
.wp-site-blocks > main,
.wp-site-blocks > header,
.wp-site-blocks > .hfr-page-banner,
.wp-site-blocks > * + * {
  margin-block-start: 0;
}

/* Header ------------------------------------------------------------------ */

.hfr-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--hfr-white);
  background-color: var(--hfr-navy-deep);
  background-image:
    linear-gradient(rgba(6, 22, 38, 0.86), rgba(6, 22, 38, 0.86)),
    url("../img/hero-pattern.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
}

.hfr-utility-bar {
  display: none;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hfr-utility-bar__inner,
.hfr-site-header__inner,
.hfr-site-footer__inner,
.hfr-section__inner,
.hfr-content {
  width: min(100% - (var(--hfr-gutter) * 2), var(--hfr-max));
  margin-inline: auto;
}

.hfr-utility-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.hfr-utility-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hfr-utility-nav a:hover,
.hfr-utility-nav a:focus-visible {
  color: var(--hfr-white);
}

.hfr-site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 4rem;
  padding-block: 0.65rem;
}

.hfr-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--hfr-white);
  text-decoration: none;
}

.hfr-brand__logo {
  display: block;
  width: auto;
  height: 2.4rem;
}

@media (min-width: 48rem) {
  .hfr-brand__logo {
    height: 2.75rem;
  }
}

.hfr-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  background: transparent;
  color: var(--hfr-white);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.hfr-nav-toggle:focus-visible {
  outline: 2px solid var(--hfr-white);
  outline-offset: 2px;
}

.hfr-primary-navigation {
  display: none;
  flex-basis: 100%;
  width: 100%;
  padding-bottom: 0.75rem;
}

.hfr-site-header.is-nav-open .hfr-primary-navigation {
  display: block;
}

.hfr-nav {
  display: grid;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
}

.hfr-nav > li > a,
.hfr-nav__submenu-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.35rem 0.15rem;
  color: var(--hfr-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.hfr-nav__submenu-toggle {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  justify-content: space-between;
}

.hfr-nav > li > a:hover,
.hfr-nav > li > a:focus-visible,
.hfr-nav__submenu-toggle:hover,
.hfr-nav__submenu-toggle:focus-visible {
  color: var(--hfr-white);
}

.hfr-nav__caret {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: rotate(45deg);
  transition: transform 200ms var(--hfr-ease);
}

.hfr-nav__submenu-toggle[aria-expanded="true"] .hfr-nav__caret {
  transform: rotate(-135deg);
}

.hfr-subnav {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 0.75rem;
}

.hfr-nav__submenu-toggle[aria-expanded="false"] + .hfr-subnav {
  display: none;
}

.hfr-subnav a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.3rem 0.15rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
}

.hfr-subnav a:hover,
.hfr-subnav a:focus-visible {
  color: var(--hfr-white);
}

/* Hero -------------------------------------------------------------------- */

.hfr-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: center;
  color: var(--hfr-white);
  overflow: hidden;
  background-color: var(--hfr-navy-deep);
  background-image:
    linear-gradient(135deg, rgba(6, 25, 42, 0.92) 0%, rgba(10, 111, 204, 0.74) 100%),
    url("../img/hero-pattern.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
}

.hfr-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--hfr-gutter) * 2), var(--hfr-max));
  margin-inline: auto;
  padding-block: 3.5rem;
  animation: hfr-rise 900ms var(--hfr-ease) both;
}

.hfr-hero__content {
  max-width: 34rem;
}

.hfr-hero__title {
  margin: 0 0 1rem;
  font-family: var(--hfr-serif);
  font-size: clamp(2.1rem, 6.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--hfr-white);
}

.hfr-hero__summary {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34ch;
}

.hfr-cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.hfr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 220ms var(--hfr-ease), background-color 220ms ease, color 220ms ease;
}

.hfr-button:hover,
.hfr-button:focus-visible {
  transform: translateY(-2px);
}

.hfr-button--primary {
  background: var(--hfr-white);
  color: var(--hfr-navy);
}

.hfr-button--primary:hover,
.hfr-button--primary:focus-visible {
  background: var(--hfr-mist);
}

.hfr-button--ghost {
  background: transparent;
  color: var(--hfr-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.hfr-button--solid {
  background: var(--hfr-navy);
  color: var(--hfr-white);
}

.hfr-button--solid:hover,
.hfr-button--solid:focus-visible {
  background: var(--hfr-navy-soft);
}

.hfr-button__arrow {
  font-size: 1.15em;
  line-height: 1;
}

/* Sections ---------------------------------------------------------------- */

.hfr-section {
  padding: 3.25rem 0;
}

.hfr-section--mist {
  background: linear-gradient(180deg, rgba(232, 238, 244, 0.75), rgba(247, 249, 251, 0.2));
}

.hfr-section__eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hfr-accent-strong);
}

.hfr-section__title {
  margin: 0 0 0.75rem;
  font-family: var(--hfr-serif);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  max-width: 18ch;
}

.hfr-section__lead {
  margin: 0 0 1.75rem;
  max-width: 58ch;
  color: var(--hfr-slate);
}

.hfr-link-list {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hfr-link-list a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(15, 28, 46, 0.12);
  color: var(--hfr-ink);
  font-weight: 700;
  text-decoration: none;
}

.hfr-link-list a:hover,
.hfr-link-list a:focus-visible {
  color: var(--hfr-accent);
}

.hfr-content {
  max-width: 74rem;
  padding: 2.5rem 0 4rem;
}

.hfr-content .entry-title,
.hfr-content h1 {
  font-family: var(--hfr-serif);
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  margin: 0 0 1.25rem;
  overflow-wrap: anywhere;
}

.hfr-post-meta {
  color: var(--hfr-slate);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Interior page banner + article typography ------------------------------- */

.hfr-page-banner {
  color: var(--hfr-white);
  background-color: var(--hfr-navy-deep);
  background-image:
    linear-gradient(135deg, rgba(6, 25, 42, 0.94) 0%, rgba(10, 111, 204, 0.72) 100%),
    url("../img/hero-pattern.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hfr-page-banner .wp-block-post-title {
  margin: 0;
  font-family: var(--hfr-serif);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--hfr-white);
}

.hfr-content .hfr-lead {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.5;
  color: var(--hfr-slate);
  margin: 0 0 1.75rem;
  max-width: 62ch;
}

.hfr-content h2 {
  font-family: var(--hfr-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.15;
  margin: 2.75rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(15, 28, 46, 0.12);
}

.hfr-content h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 0.85rem;
  background: var(--hfr-gold);
}

.hfr-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.4rem;
  color: var(--hfr-ink);
}

.hfr-content p,
.hfr-content li {
  line-height: 1.65;
  max-width: 72ch;
}

.hfr-content p {
  margin: 0 0 1rem;
}

.hfr-content ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding-left: 0;
}

.hfr-content ul li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
}

.hfr-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--hfr-gold);
  transform: rotate(45deg);
}

.hfr-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
  padding: 0;
  list-style: none;
}

.hfr-feature-grid li {
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: var(--hfr-white);
  border: 1px solid rgba(15, 28, 46, 0.1);
  border-left: 3px solid var(--hfr-accent);
  border-radius: 3px;
  font-weight: 600;
  color: var(--hfr-ink);
}

.hfr-feature-grid li::before {
  display: none;
}

.hfr-cta-band {
  margin: 3.25rem 0 0.5rem;
  padding: 2rem 1.75rem;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--hfr-navy) 0%, var(--hfr-navy-soft) 100%);
  color: var(--hfr-white);
}

.hfr-cta-band h2 {
  margin: 0 0 0.5rem;
  padding-top: 0;
  border-top: 0;
  color: var(--hfr-white);
}

.hfr-cta-band h2::before {
  display: none;
}

.hfr-cta-band p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Eyebrow used above section headings */
.hfr-content .hfr-eyebrow {
  margin: 2.5rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hfr-accent);
}

.hfr-content .hfr-eyebrow + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.hfr-content .hfr-eyebrow + h2::before {
  display: none;
}

.hfr-content .hfr-intro {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--hfr-ink);
}

/* Two-column split: narrative on the left, supporting grid on the right */
.hfr-content .hfr-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
  align-items: start;
}

.hfr-content .hfr-split__intro > :first-child {
  margin-top: 0;
}

.hfr-content .hfr-split__intro h2 {
  border-top: 0;
  padding-top: 0;
}

.hfr-content .hfr-split__intro h2::before {
  display: none;
}

/* Icon-card grid (services / indices / ESG) */
.hfr-content .hfr-icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 1.5rem 0;
  padding: 0;
}

.hfr-content .hfr-icon-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--hfr-white);
  border: 1px solid rgba(15, 28, 46, 0.1);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(6, 25, 42, 0.06);
}

.hfr-content .hfr-icon-card__icon {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 0 0.9rem;
}

.hfr-content .hfr-icon-card h3 {
  margin: 0 0 0.4rem;
  padding-top: 0;
  border-top: 0;
  font-family: var(--hfr-serif);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--hfr-ink);
}

.hfr-content .hfr-icon-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--hfr-slate);
}

/* Checklist of turnkey services */
.hfr-content .hfr-check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
}

.hfr-content .hfr-check-list li {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  background: var(--hfr-mist);
  border-radius: 3px;
  font-weight: 600;
  color: var(--hfr-ink);
}

.hfr-content .hfr-check-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.9rem;
  background: transparent;
  border-right: 2px solid var(--hfr-gold);
  border-bottom: 2px solid var(--hfr-gold);
  transform: rotate(45deg);
}

@media (min-width: 48rem) {
  .hfr-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hfr-content .hfr-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hfr-content .hfr-check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .hfr-content .hfr-split {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }
}

/* Footer ------------------------------------------------------------------ */

.hfr-site-footer {
  background: var(--hfr-ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 2rem;
}

.hfr-site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.hfr-site-footer__inner {
  display: grid;
  gap: 1.25rem;
}

.hfr-site-footer .hfr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.hfr-site-footer .hfr-nav a {
  min-height: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hfr-site-footer__brand {
  font-family: var(--hfr-serif);
  font-size: 1.25rem;
  color: var(--hfr-white);
}

.hfr-office-block {
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.hfr-contact-layout {
  display: grid;
  gap: 1.75rem;
}

.hfr-form-shell,
.hfr-side-panel {
  padding: 0.5rem 0;
}

.hfr-side-panel {
  border-top: 1px solid rgba(15, 28, 46, 0.12);
  padding-top: 1.5rem;
}

.hfr-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--hfr-ease), transform 700ms var(--hfr-ease);
}

.hfr-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hfr-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Tablet ------------------------------------------------------------------ */

@media (min-width: 48rem) {
  :root {
    --hfr-gutter: 1.75rem;
  }

  .hfr-utility-bar {
    display: block;
  }

  .hfr-site-header__inner {
    min-height: 4.35rem;
  }

  .hfr-hero {
    min-height: min(84vh, 700px);
  }

  .hfr-cta-row {
    flex-flow: row wrap;
    align-items: center;
  }

  .hfr-section {
    padding: 4rem 0;
  }

  .hfr-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }

  .hfr-content {
    padding: 3.25rem 0 4.5rem;
  }

  .hfr-site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* Desktop ----------------------------------------------------------------- */

@media (min-width: 64rem) {
  :root {
    --hfr-gutter: 2rem;
  }

  .hfr-nav-toggle {
    display: none;
  }

  .hfr-site-header__inner {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .hfr-primary-navigation {
    display: block;
    flex-basis: auto;
    width: auto;
    padding-bottom: 0;
  }

  .hfr-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 1.75rem;
    padding-top: 0;
  }

  .hfr-nav > li > a,
  .hfr-nav__submenu-toggle {
    min-height: 2.5rem;
    font-size: 0.95rem;
    padding-inline: 0;
    white-space: nowrap;
  }

  .hfr-nav__item--has-submenu {
    position: relative;
  }

  .hfr-nav__submenu-toggle {
    width: auto;
  }

  .hfr-subnav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 16rem;
    padding: 0.4rem 0;
    background: var(--hfr-navy);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    z-index: 30;
    display: none;
  }

  .hfr-nav__item--has-submenu:hover .hfr-subnav,
  .hfr-nav__item--has-submenu:focus-within .hfr-subnav,
  .hfr-nav__submenu-toggle[aria-expanded="true"] + .hfr-subnav {
    display: block;
  }

  .hfr-subnav a {
    padding: 0.5rem 1rem;
  }

  .hfr-hero {
    min-height: min(88vh, 720px);
  }

  .hfr-hero__inner {
    padding-block: 4.5rem;
  }

  .hfr-section {
    padding: 4.5rem 0;
  }

  .hfr-link-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hfr-contact-layout {
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
  }

  .hfr-side-panel {
    border-top: 0;
    border-left: 1px solid rgba(15, 28, 46, 0.12);
    padding: 0 0 0 2rem;
  }

  .hfr-site-footer__inner {
    grid-template-columns: 1.1fr 1fr 1.2fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hfr-hero__inner,
  .hfr-reveal,
  .hfr-button {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
