:root {
  --nfil-teal: #184f52;
  --nfil-gold: #c99b4e;
  --nfil-coral: #d76f61;
  --nfil-cream: #fff8ea;
  --nfil-aqua: #75b7b1;
  --nfil-ink: #17363a;
  --nfil-shadow: 0 14px 34px rgba(23, 54, 58, 0.12);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

:focus-visible {
  outline: 3px solid var(--nfil-gold);
  outline-offset: 3px;
}

.nfil-site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(24, 79, 82, 0.14);
  background: rgba(255, 248, 234, 0.97);
}

.nfil-brand-row { min-height: 82px; }
.nfil-brand-row .wp-block-site-logo img { max-height: 62px; width: auto; }
.nfil-brand-row .wp-block-site-title { font-family: Georgia, serif; }
.nfil-brand-row .wp-block-site-logo:not(:empty) + .wp-block-site-title { display: none; }
.nfil-brand-row .wp-block-navigation-item__content { text-decoration: none; }

.nfil-hero {
  position: relative;
  min-height: clamp(570px, 72vw, 760px);
  display: grid;
  align-items: center;
  background-color: #f8f0df;
  background-image: linear-gradient(90deg, rgba(255,248,234,.98) 0%, rgba(255,248,234,.93) 30%, rgba(255,248,234,.35) 56%, rgba(255,248,234,.02) 100%), url('../images/new-frontiers-homepage-hero.webp');
  background-position: center, center;
  background-size: cover;
  overflow: hidden;
}

.nfil-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(transparent, var(--nfil-cream));
  pointer-events: none;
}

.nfil-hero-content { position: relative; z-index: 1; }
.nfil-hero-copy { max-width: 610px; }
.nfil-eyebrow {
  color: var(--nfil-coral);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nfil-hero h1 { font-size: clamp(2.55rem, 5vw, 4.9rem); }
.nfil-hero .wp-block-buttons { margin-top: 2rem; }

.wp-block-button__link {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(23, 54, 58, .18);
}
.is-style-nfil-outline .wp-block-button__link {
  border: 2px solid var(--nfil-teal);
  background: transparent;
  color: var(--nfil-teal);
}

.is-style-nfil-card,
.nfil-card {
  height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(24, 79, 82, .14);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: var(--nfil-shadow);
}

.nfil-section { padding-block: clamp(3.6rem, 8vw, 7rem); }
.nfil-section-heading { max-width: 760px; margin-inline: auto; }
.nfil-icon-disc {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(117, 183, 177, .23);
  color: var(--nfil-teal);
  font-size: 1.55rem;
}

.nfil-band-k2 { border-top: 6px solid #d76f61; }
.nfil-band-35 { border-top: 6px solid #c99b4e; }
.nfil-band-68 { border-top: 6px solid #75b7b1; }
.nfil-band-912 { border-top: 6px solid #184f52; }

.nfil-sample-callout {
  border-radius: 32px;
  background: var(--nfil-teal);
  color: white;
  box-shadow: var(--nfil-shadow);
}
.nfil-sample-callout h2 { color: white; }

.nfil-site-footer { margin-top: 0; background: var(--nfil-ink); color: white; }
.nfil-site-footer a { color: white; }
.nfil-site-footer .wp-block-site-title { color: white; font-family: Georgia, serif; }

@media (max-width: 780px) {
  .nfil-brand-row { min-height: 70px; }
  .nfil-hero {
    min-height: 780px;
    align-items: start;
    padding-top: 3.5rem !important;
    background-image: linear-gradient(180deg, rgba(255,248,234,.98) 0%, rgba(255,248,234,.92) 45%, rgba(255,248,234,.08) 76%), url('../images/new-frontiers-homepage-hero-mobile.webp');
    background-position: center, center bottom;
  }
  .nfil-hero-copy { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
