/* ==========================================================================
   NGH Consulting: site styles
   ========================================================================== */

:root {
  --ink: #1E2B25;
  --muted: #4A5852;
  --green: #2F6B4F;
  --green-dark: #1E4A36;
  --mint: #CFE3D6;
  --line: #C9D3CD;
  --tint: #F2F5F2;
  --night: #0C1714;
  --footer-text: #C9D4CE;
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1312px;
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p, li { text-wrap: pretty; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.on-dark :focus-visible,
.site-footer :focus-visible,
.cookie :focus-visible { outline-color: #FFFFFF; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  padding: 12px 20px; background: #FFFFFF; color: var(--ink);
  font-weight: 700; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Shared type ---------- */

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.12;
}
.lead { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; }
.kicker {
  margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--green);
}
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; }

/* ---------- Navigation ---------- */

.site-nav {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 24px;
  padding: 20px var(--pad);
}
.site-nav--end { justify-content: flex-end; }
.brand {
  padding: 12px 0;
  font-size: 15px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: #FFFFFF; text-decoration: none;
}
.brand:hover { color: #FFFFFF; }
.nav-links {
  display: flex; align-items: center; gap: 18px;
  margin: 0; padding: 0; list-style: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-links a {
  display: inline-block; padding: 12px 2px;
  color: #FFFFFF; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.nav-links .sep { opacity: 0.7; }

@media (max-width: 640px) {
  .nav-links { gap: 22px; font-size: 14px; letter-spacing: 0.12em; }
  .nav-links .sep { display: none; }
  .brand { letter-spacing: 0.22em; }
}

/* ---------- Buttons ---------- */

.circle-btn {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 64px; height: 64px; padding: 0;
  border: 1.5px solid #FFFFFF; border-radius: 50%;
  background: transparent; color: #FFFFFF; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.circle-btn:hover { background: #FFFFFF; color: var(--ink); }
.circle-btn--sm {
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
}
.circle-btn--md { width: 60px; height: 60px; }

.pill {
  display: inline-flex; align-items: center; gap: 20px;
  min-height: 60px; padding: 0 40px;
  background: #FFFFFF; color: var(--ink);
  border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  transition: transform 0.2s ease;
}
.pill:hover { color: var(--ink); transform: translateX(4px); }
@media (max-width: 480px) {
  .pill { padding: 0 30px; letter-spacing: 0.22em; }
}

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 1.5px solid var(--green); border-radius: 999px;
  background: transparent; color: var(--green);
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--green); color: #FFFFFF; }

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  display: flex; flex-direction: column;
  height: 100vh;      /* fallback */
  height: 100svh;     /* exactly the visible screen on phones */
  min-height: 560px; max-height: 1100px;
  overflow: hidden;
  background: #2A2620; color: #FFFFFF;
}
.hero__media, .hero__media img, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 0.8s ease; }
.hero__video.is-playing, .hero__video.is-ready { opacity: 1; }
.scrim { position: absolute; inset: 0; pointer-events: none; }
.hero .scrim { background: rgba(20, 16, 12, 0.42); }

.hero__body {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  padding: 0 var(--pad) clamp(32px, 7vh, 72px);
}
.hero__brand {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 22px); font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero__title {
  margin: 0; max-width: 820px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 5.2vw, 76px); line-height: 1.12;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.hero__controls {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px;
}
.video-toggle [data-icon="play"] { display: none; }
.video-toggle.is-paused [data-icon="play"] { display: block; }
.video-toggle.is-paused [data-icon="pause"] { display: none; }

@media (max-width: 640px) {
  .hero__brand { letter-spacing: 0.3em; }
  .circle-btn:not(.circle-btn--sm) { width: 56px; height: 56px; }
}

/* ---------- Home: services ---------- */

.service {
  position: relative;
  display: flex; align-items: center;
  min-height: 620px; overflow: hidden;
  color: #FFFFFF; background: #24382D;
}
.service picture, .service__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.service .scrim { background: rgba(12, 22, 16, 0.5); }
.service .scrim--strong { background: rgba(16, 18, 20, 0.58); }
.service__inner {
  position: relative; display: flex;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 112px var(--pad);
}
.service--right .service__inner { justify-content: flex-end; }
.service__text { display: flex; flex-direction: column; gap: 24px; max-width: 640px; min-width: 0; }

/* keep the important part of each photo in view on narrow screens */
.service--esg .service__img { object-position: 35% center; }
.service--mgt { background: #3A3A38; }
.service--mgt .service__img { object-position: 52% 30%; }
.service--mkt { background: #3B3631; }
.service--mkt .service__img { object-position: 55% center; }

@media (max-width: 720px) {
  .service { min-height: 540px; }
  .service__inner { padding: 88px var(--pad); }
  .service--right .service__inner { justify-content: flex-start; }
}

/* ---------- Home: contact (Manhattan grid) ---------- */

.contact {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: 720px;
  padding: 128px var(--pad) 112px;
  background: linear-gradient(160deg, #0C1714 0%, #0E1B21 100%);
  color: #FFFFFF;
}
.contact__grid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s ease;
}
.contact__grid.is-ready { opacity: 1; }
.contact .scrim {
  background: linear-gradient(90deg, rgba(12, 23, 20, 0.94) 0%, rgba(12, 23, 20, 0.72) 38%, rgba(12, 23, 20, 0) 72%);
}
.contact__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
}
.contact__title { max-width: 760px; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.15; }
.contact .lead { max-width: 620px; }
.contact .pill { margin-top: 16px; }
.social {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin: 32px 0 0; padding: 0; list-style: none;
}

@media (max-width: 720px) {
  .contact { min-height: 0; padding: 96px var(--pad); }
  .contact .scrim { background: linear-gradient(180deg, rgba(12, 23, 20, 0.82) 0%, rgba(12, 23, 20, 0.62) 100%); }
}

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

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 32px;
  padding: 20px var(--pad);
  background: var(--ink); color: var(--footer-text);
  font-size: 15px;
}
.site-footer .brand { font-size: 14px; letter-spacing: 0.3em; }
.footer-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px;
  margin: 0; padding: 0; list-style: none;
}
.footer-links a, .link-btn {
  display: inline-block; padding: 12px 0;
  color: var(--footer-text);
}
.footer-links a[aria-current="page"] { color: #FFFFFF; }
.footer-links a:hover, .link-btn:hover { color: #FFFFFF; }
.link-btn {
  border: 0; background: none; font: inherit;
  text-decoration: underline; cursor: pointer;
}
.site-footer small { font-size: 15px; padding: 12px 0; }

/* ---------- About ---------- */

.page-hero {
  position: relative;
  display: flex; flex-direction: column;
  height: 78vh; height: 78svh;
  min-height: 560px; max-height: 760px;
  overflow: hidden;
  background: #26302B; color: #FFFFFF;
}
.page-hero picture, .page-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 60%;
}
.page-hero .scrim {
  background: linear-gradient(180deg, rgba(14, 22, 18, 0.55) 0%, rgba(14, 22, 18, 0.35) 40%, rgba(14, 22, 18, 0.8) 100%);
}
.page-hero__body {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  padding: 0 var(--pad) clamp(48px, 9vh, 80px);
}
.page-hero__eyebrow {
  margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
}
.page-hero .hero__title { max-width: 860px; }
.page-hero .lead { max-width: 640px; }

.section { padding: clamp(80px, 9vw, 128px) var(--pad); }
.section--tint { background: var(--tint); }
.section-title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.8vw, 54px); line-height: 1.15;
}
.intro { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin-bottom: 64px; }
.intro p:last-child { margin: 0; font-size: 19px; line-height: 1.65; color: var(--muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 48px;
}
.grid-3--cards { gap: 24px; }

.pillar {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.pillar__letter { font-family: var(--serif); font-size: clamp(64px, 7vw, 88px); line-height: 1; color: var(--green); }
.pillar h3, .card h3 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
.pillar p, .card p:last-child { margin: 0; line-height: 1.65; color: var(--muted); }

.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 36px; border-radius: 8px; background: #FFFFFF;
}
.card__num { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.2em; color: var(--green); }

.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); }
.split > * { flex: 1 1 340px; min-width: 0; }
.split__text { display: flex; flex-direction: column; gap: 24px; }
.split__text p:last-child { margin: 0; font-size: 19px; line-height: 1.65; color: var(--muted); }

.roles { margin: 0; padding: 0; list-style: none; }
.roles li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.roles li:last-child { border-bottom: 1px solid var(--line); }
.roles strong { font-size: 21px; }
.roles span { font-size: 17px; line-height: 1.6; color: var(--muted); }

.cta-photo {
  position: relative; overflow: hidden;
  padding: clamp(96px, 10vw, 144px) var(--pad);
  background: var(--ink); color: #FFFFFF;
}
.cta-photo picture, .cta-photo__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 85%;
}
.cta-photo .scrim { background: rgba(14, 22, 18, 0.72); }
.cta-photo__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
.cta-photo .lead { max-width: 600px; }
.cta-photo .pill { margin-top: 12px; }

/* ---------- Legal pages ---------- */

.legal-header { background: var(--ink); color: #FFFFFF; }
.legal-header__title {
  display: flex; flex-direction: column; gap: 12px;
  padding: 40px var(--pad) 72px;
}
.legal-header__title h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px); line-height: 1.12;
}
.legal-header__title p { margin: 0; font-size: 17px; color: var(--footer-text); }

.legal {
  display: flex; flex-direction: column; gap: 48px;
  max-width: 760px; margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--pad);
  line-height: 1.7;
}
.legal > p:first-child { margin: 0; font-size: 20px; }
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
.legal p { margin: 0; }
.legal .placeholder { color: var(--muted); }
.legal .btn-outline { align-self: flex-start; margin-top: 4px; }

/* ---------- Cookie banner ---------- */

.cookie {
  position: fixed; z-index: 1000;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px;
  background: var(--ink); color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  animation: cookie-in 0.35s ease-out;
}
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) { .cookie { left: 24px; bottom: 24px; } }
@media (max-width: 639px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; gap: 14px; padding: 22px 20px 16px; }
  .cookie__title { font-size: 21px; }
  .cookie p { font-size: 15px; line-height: 1.55; }
  .cookie__close { top: 8px; right: 8px; }
  .cookie .cbtn { flex-basis: 120px; padding: 0 12px; letter-spacing: 0.1em; }
}

.cookie__title {
  margin: 0; padding-right: 40px;
  font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25;
}
.cookie p { margin: 0; font-size: 16px; line-height: 1.6; color: #DCE5E0; }
.cookie a { color: var(--mint); text-underline-offset: 3px; }
.cookie__close {
  position: absolute; top: 12px; right: 12px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: #DCE5E0; cursor: pointer;
}
.cookie__close:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cbtn {
  flex: 1 1 150px;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid #FFFFFF; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
}
.cbtn--solid { background: #FFFFFF; color: var(--ink); }
.cbtn--solid:hover { background: var(--mint); border-color: var(--mint); }
.cbtn--ghost { background: transparent; color: #FFFFFF; }
.cbtn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.cookie__more {
  align-self: flex-start; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--mint);
  font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cookie__list { display: flex; flex-direction: column; }
.cookie__row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.cookie__row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.cookie__row div { display: flex; flex-direction: column; gap: 4px; }
.cookie__row label { font-size: 17px; font-weight: 700; cursor: pointer; }
.cookie__row span { font-size: 15px; line-height: 1.5; color: var(--footer-text); }
.cookie__row input {
  flex-shrink: 0; width: 22px; height: 22px; margin: 4px 0 0;
  accent-color: #8FD1AA; cursor: pointer;
}
.cookie__row input:disabled { cursor: default; }
