/* ============================================
   NorthKeyGlobal.com — Style Sheet
   Aesthetic: Understated luxury, minimal, confident
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #1a1a2e;
  --color-offwhite: #f5f3ef;
  --color-gold: #b8963e;
  --color-text: #2d2d2d;
  --color-text-light: #f5f3ef;
  --color-border: rgba(184, 150, 62, 0.3);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --section-padding: 120px 0;
  --section-padding-mobile: 60px 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  font-size: 3.2rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-padding);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.section--light {
  background: var(--color-offwhite);
}

.section--alt {
  background: #fff;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.logo img {
  height: 42px;
  width: auto;
}

.logo span {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.6);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text-light);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184, 150, 62, 0.03) 0%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-size: 3.8rem;
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 2rem;
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(245, 243, 239, 0.6);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.hero__line {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin-bottom: 2rem;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 180px 0 100px;
  background: var(--color-dark);
  color: var(--color-text-light);
}

.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(245, 243, 239, 0.6);
  max-width: 600px;
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* --- Pillars / Grid --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.pillar {
  position: relative;
}

.pillar::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--color-gold);
  margin-bottom: 2rem;
}

.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.pillar p {
  color: rgba(245, 243, 239, 0.5);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 40px;
}

.stat {
  padding: 40px 20px;
  border-top: 1px solid var(--color-border);
}

.stat__number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.5);
}

/* --- Content Sections --- */
.content-block {
  max-width: 720px;
}

.content-block h2 {
  margin-bottom: 2rem;
}

.content-block p {
  color: rgba(45, 45, 45, 0.75);
  line-height: 1.9;
}

.section--dark .content-block p {
  color: rgba(245, 243, 239, 0.6);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.service-item {
  padding: 40px 0;
  border-top: 1px solid rgba(45, 45, 45, 0.1);
}

.section--dark .service-item {
  border-top-color: rgba(245, 243, 239, 0.08);
}

.service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(45, 45, 45, 0.65);
}

.section--dark .service-item p {
  color: rgba(245, 243, 239, 0.5);
}

/* --- Network / Offices --- */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 3rem;
}

.office {
  text-align: center;
  padding: 30px 15px;
  border: 1px solid rgba(45, 45, 45, 0.08);
}

.section--dark .office {
  border-color: rgba(245, 243, 239, 0.06);
}

.office h4 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* --- Contact Info --- */
.contact-info {
  margin-top: 2rem;
}

.contact-info a {
  color: var(--color-gold);
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.7;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: 3rem 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: rgba(245, 243, 239, 0.4);
  padding: 60px 0;
  border-top: 1px solid rgba(245, 243, 239, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.5;
}

.footer-inner p {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-text-light);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pillars,
  .services-grid,
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero__tagline {
    font-size: 2.8rem;
  }

  .section {
    padding: var(--section-padding-mobile);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.98);
    padding: 20px 40px 30px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.open {
    display: flex;
  }

  .hero__tagline {
    font-size: 2.2rem;
  }

  .page-hero {
    padding: 140px 0 60px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .offices-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 12px;
  }

  .pillars {
    gap: 40px;
  }

  .services-grid {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .hero__tagline {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }
}
