/*
Theme Name: Noble Ridge Site
Theme URI: https://nobleridgecapitalgroup.com
Author: Noble Ridge
Description: Config-driven brochure theme for Noble Ridge brands.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: noble-ridge-site
*/

:root {
  --navy: #0a3a7a;
  --gold: #c79b47;
  --silver: #d8dadf;
  --white: #fafafa;
  --ink: #101827;
  --muted: #5d6878;
  --panel: #f4f7fb;
  --line: rgba(10, 58, 122, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(250, 250, 250, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  display: block;
  height: 66px;
  max-width: 280px;
  object-fit: contain;
}

.site-nrcg .brand img {
  height: 86px;
  max-width: 180px;
}

.site-nrt .brand img {
  height: auto;
  max-width: min(52vw, 260px);
  width: 190px;
}

.nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
}

.hero {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  min-height: 640px;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  position: relative;
}

.site-nrt .hero {
  background: linear-gradient(120deg, rgba(10, 58, 122, 0.08), rgba(199, 155, 71, 0.08)), var(--white);
}

.site-nrcg .hero {
  background:
    linear-gradient(90deg, rgba(5, 25, 54, 0.98) 0%, rgba(5, 25, 54, 0.9) 42%, rgba(5, 25, 54, 0.46) 76%, rgba(5, 25, 54, 0.2) 100%),
    url("assets/nrcg-approach-bg.png") center / cover no-repeat;
  overflow: hidden;
}

.site-nrcg .hero::after {
  background: linear-gradient(135deg, rgba(199, 155, 71, 0.32), transparent 34%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.site-nrt .hero h1 {
  max-width: 800px;
}

.site-nrcg .hero h1,
.site-nrcg .hero .lead {
  color: #fff;
}

.site-nrcg .hero .lead {
  color: rgba(255, 255, 255, 0.88);
}

.site-nrcg .hero .button {
  background: var(--gold);
  color: #151515;
}

.site-nrcg .hero .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.site-nrcg h1,
.site-nrcg .section h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  color: var(--navy);
  font-size: clamp(2.9rem, 6.4vw, 6.4rem);
  line-height: 0.96;
  margin: 20px 0 24px;
  max-width: 920px;
}

.lead {
  color: #253348;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 780px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  align-items: center;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  font-weight: 750;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--gold);
  color: var(--navy);
}

.hero-mark {
  align-self: center;
  border-left: 3px solid var(--gold);
  padding-left: clamp(24px, 4vw, 48px);
}

.site-nrt .hero-mark {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 46px);
}

.hero-mark img {
  display: block;
  max-width: 100%;
}

.site-nrcg .hero-mark {
  background: rgba(255, 255, 255, 0.94);
  border-left-color: var(--gold);
  padding: clamp(24px, 4vw, 48px);
}

.site-nrcg .hero-mark img {
  filter: drop-shadow(0 22px 38px rgba(5, 25, 54, 0.18));
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.site-nrcg #focus {
  background:
    linear-gradient(135deg, rgba(10, 58, 122, 0.08), rgba(199, 155, 71, 0.14)),
    linear-gradient(180deg, #fff, #f5f7fb);
}

.section-has-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 520px;
  position: relative;
}

.section-has-bg::before {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.section-bg-dark-image {
  align-items: center;
  display: flex;
}

.section-bg-warm-image {
  align-items: center;
  display: flex;
}

.section-bg-dark-image::before {
  background:
    linear-gradient(90deg, rgba(5, 25, 54, 0.98) 0%, rgba(5, 25, 54, 0.9) 38%, rgba(5, 25, 54, 0.5) 72%, rgba(5, 25, 54, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 25, 54, 0.22), rgba(5, 25, 54, 0.52));
}

.section-bg-warm-image::before {
  background:
    linear-gradient(90deg, rgba(250, 250, 250, 0.98) 0%, rgba(250, 250, 250, 0.9) 38%, rgba(250, 250, 250, 0.45) 70%, rgba(250, 250, 250, 0.08) 100%),
    linear-gradient(180deg, rgba(199, 155, 71, 0.12), rgba(10, 58, 122, 0.16));
}

.section-bg-dark-image > *,
.section-bg-warm-image > * {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.section-bg-dark-image .split,
.section-bg-warm-image .split {
  display: block;
}

.section h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1;
  margin: 0 0 22px;
}

.site-nrt .section:not(.section-bg-dark-image) h2 {
  max-width: 1120px;
}

.section-bg-dark-image .eyebrow {
  color: var(--gold);
}

.section-bg-dark-image h2,
.section-bg-dark-image p {
  color: #fff;
}

.section-bg-dark-image p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  max-width: 620px;
}

.section-bg-warm-image .eyebrow {
  color: var(--gold);
}

.section-bg-warm-image h2 {
  color: var(--navy);
}

.section-bg-warm-image p {
  color: #26364d;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  max-width: 610px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

a.item {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.item:hover,
a.item:focus-visible {
  border-color: rgba(199, 155, 71, 0.7);
  box-shadow: 0 16px 36px rgba(10, 58, 122, 0.12);
  transform: translateY(-2px);
}

.site-nrt .item {
  background: var(--panel);
}

.site-nrt .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-nrcg #focus .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-nrcg #focus .item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.9)),
    var(--white);
  border-color: rgba(10, 58, 122, 0.18);
  border-top: 4px solid var(--gold);
  box-shadow: 0 18px 42px rgba(10, 58, 122, 0.08);
}

.item h3 {
  color: var(--navy);
  margin: 0 0 10px;
}

.item p,
.section p {
  color: var(--muted);
}

.card-link {
  color: var(--navy);
  display: inline-block;
  font-weight: 800;
  margin-top: 14px;
}

.section-bg-dark-image p {
  color: rgba(255, 255, 255, 0.9);
}

.section-bg-warm-image p {
  color: #26364d;
}

.section-bg-warm-image .button {
  background: var(--navy);
  color: #fff;
}

.section-bg-dark-image .button {
  background: var(--gold);
  color: #121212;
}

.split {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.section-bridge {
  background:
    linear-gradient(120deg, rgba(10, 58, 122, 0.06), rgba(199, 155, 71, 0.08)),
    #fff;
  padding-bottom: clamp(40px, 6vw, 68px);
  padding-top: clamp(40px, 6vw, 68px);
}

.section-bridge .split {
  align-items: center;
}

.section-bridge h2 {
  max-width: 820px;
}

.section-bridge p {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  max-width: 760px;
}

.contact-band {
  background: var(--navy);
  color: #fff;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
}

.contact-band h2,
.contact-band p {
  color: #fff;
}

.contact-band .button {
  background: var(--gold);
  color: #151515;
}

.contact-band .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
}

.contact-card h3 {
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.12;
  margin: 0 0 12px;
}

.map-shell {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  margin-top: 22px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.map-shell::before {
  background:
    radial-gradient(circle at 52% 48%, rgba(199, 155, 71, 0.36) 0 6px, transparent 7px),
    linear-gradient(28deg, transparent 0 20%, rgba(255, 255, 255, 0.24) 20.5% 21.5%, transparent 22% 100%),
    linear-gradient(152deg, transparent 0 30%, rgba(255, 255, 255, 0.2) 30.5% 31.5%, transparent 32% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(135deg, rgba(216, 218, 223, 0.2), rgba(10, 58, 122, 0.64));
  background-size: auto, auto, auto, 48px 48px, 48px 48px, auto;
  content: "";
  inset: 0;
  position: absolute;
}

.contact-map {
  border: 0;
  display: block;
  height: 100%;
  inset: 0;
  opacity: 0.82;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.map-pin {
  background: rgba(5, 25, 54, 0.9);
  border: 1px solid rgba(199, 155, 71, 0.8);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 1px;
  left: 50%;
  padding: 9px 11px;
  position: absolute;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.map-pin strong,
.map-pin span {
  line-height: 1.05;
}

.map-pin span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
}

.map-link {
  color: #fff;
  display: inline-block;
  font-weight: 800;
  margin-top: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
}

.service-page-hero {
  background: linear-gradient(120deg, rgba(10, 58, 122, 0.08), rgba(199, 155, 71, 0.08)), var(--white);
  padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.service-page-hero-has-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 620px;
  position: relative;
}

.service-page-hero-has-bg::before {
  background:
    linear-gradient(90deg, rgba(5, 25, 54, 0.98) 0%, rgba(5, 25, 54, 0.9) 42%, rgba(5, 25, 54, 0.48) 74%, rgba(5, 25, 54, 0.16) 100%),
    linear-gradient(180deg, rgba(5, 25, 54, 0.1), rgba(5, 25, 54, 0.46));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.site-nrcg .service-page-hero-has-bg::before {
  background:
    linear-gradient(90deg, rgba(5, 25, 54, 0.98) 0%, rgba(5, 25, 54, 0.92) 44%, rgba(5, 25, 54, 0.5) 74%, rgba(5, 25, 54, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 58, 122, 0.14), rgba(5, 25, 54, 0.58));
}

.service-page-hero-content {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.service-page-hero h1 {
  max-width: 980px;
}

.site-nrcg .service-page-hero-has-bg h1 {
  max-width: 880px;
}

.service-page-hero-has-bg h1,
.service-page-hero-has-bg .lead {
  color: #fff;
}

.service-page-hero-has-bg .lead {
  max-width: 720px;
}

.service-page-hero-has-bg .button {
  background: var(--gold);
  color: #121212;
}

.service-page-hero-has-bg .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.service-detail .split > p {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.site-nrcg .service-detail {
  background:
    linear-gradient(135deg, rgba(10, 58, 122, 0.07), rgba(199, 155, 71, 0.11)),
    #fff;
}

.site-nrcg .service-detail + .section.service-detail {
  background:
    linear-gradient(120deg, rgba(5, 25, 54, 0.96), rgba(10, 58, 122, 0.9)),
    var(--navy);
}

.site-nrcg .service-detail + .service-detail h2,
.site-nrcg .service-detail + .service-detail p {
  color: #fff;
}

.site-nrcg .service-detail .split > p {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(10, 58, 122, 0.14);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(10, 58, 122, 0.08);
  color: #26364d;
  padding: clamp(22px, 3vw, 34px);
}

.site-nrcg .service-detail + .service-detail .split > p {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  border-left-color: var(--gold);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.9);
}

.site-nrcg .service-detail + .section:not(.contact-band):not(.service-detail) {
  background:
    linear-gradient(135deg, rgba(216, 218, 223, 0.52), rgba(199, 155, 71, 0.16)),
    linear-gradient(180deg, #fff, #f4f7fb);
}

.site-nrcg .service-outcomes .item {
  background: rgba(255, 255, 255, 0.92);
  border-top: 4px solid var(--gold);
  box-shadow: 0 16px 36px rgba(10, 58, 122, 0.08);
}

.service-outcomes {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-outcomes .item {
  min-height: 120px;
}

.service-outcomes .item h3 {
  font-size: 1rem;
}

@media (max-width: 840px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .site-nrt .brand img {
    max-width: 58vw;
    width: 150px;
  }

  .site-nrcg .brand img {
    height: 80px;
    max-width: 160px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .contact-layout,
  .grid,
  .service-outcomes {
    grid-template-columns: 1fr;
  }

  .site-nrt .grid {
    grid-template-columns: 1fr;
  }

  .site-nrcg #focus .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-has-bg {
    min-height: 480px;
  }

  .service-page-hero-has-bg {
    min-height: 560px;
  }

  .section-bg-dark-image::before {
    background: linear-gradient(180deg, rgba(5, 25, 54, 0.96), rgba(5, 25, 54, 0.82));
  }

  .section-bg-warm-image::before {
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.96), rgba(250, 250, 250, 0.82));
  }

  .service-page-hero-has-bg::before {
    background: linear-gradient(180deg, rgba(5, 25, 54, 0.96), rgba(5, 25, 54, 0.82));
  }
}
