/* ========================================
   NORTHERN ARC PUBLIC AFFAIRS — Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #132A49;
  --navy-mid: #1e3a5f;
  --navy-light: #2a5080;
  --slate: #4a5568;
  --steel: #5a6c7d;
  --sand: #f5f3ef;
  --sand-dark: #ebe8e2;
  --ice: #E8F4FC;
  --white: #ffffff;
  --black: #0a0f14;
  --accent: #c5a55a;
  --accent-muted: rgba(197,165,90,0.12);
  --border: #ddd8d0;
  --text-primary: #1a1a1a;
  --text-body: #3a3a3a;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;

  --header-h: 80px;
  --section-pad: 100px 0;
  --container: 1200px;
  --radius: 8px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p {
  color: var(--text-body);
  line-height: 1.8;
  font-weight: 400;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--steel);
  font-weight: 400;
  line-height: 1.8;
}

.section-subtitle.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header--transparent {
  background: transparent;
}

.site-header--transparent .nav-link,
.site-header--transparent .hamburger span {
  color: var(--white);
}
.site-header--transparent .hamburger span {
  background: var(--white);
}

.site-header--transparent .brand-logo--dark { display: none; }
.site-header--transparent .brand-logo--light { display: block; }

.site-header.scrolled,
.site-header--solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.site-header.scrolled .nav-link,
.site-header--solid .nav-link {
  color: var(--navy);
}

.site-header.scrolled .hamburger span,
.site-header--solid .hamburger span {
  background: var(--navy);
}

.site-header.scrolled .brand-logo--light,
.site-header--solid .brand-logo--light { display: none; }
.site-header.scrolled .brand-logo--dark,
.site-header--solid .brand-logo--dark { display: block; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.brand-logo--dark { display: block; }
.brand-logo--light { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: var(--navy);
  color: var(--white) !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.nav-cta::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 2rem;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-nav .nav-cta {
  display: inline-block;
  text-align: center;
  margin-top: 0.5rem;
  background: var(--accent);
  color: var(--navy) !important;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.55);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(19,42,73,0.7) 0%,
    rgba(30,58,95,0.5) 60%,
    rgba(42,80,128,0.4) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: 0 2rem;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
  font-style: italic;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease) 0.4s forwards;
}

.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.9;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease) 0.7s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease) 1s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 4px;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(19,42,73,0.3);
}

.btn--primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(19,42,73,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn--arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}

.btn--arrow:hover::after {
  transform: translateX(4px);
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
  background: var(--navy);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: var(--section-pad);
}

.section--sand {
  background: var(--sand);
}

.section--navy {
  background: var(--navy);
}

.section--ice {
  background: var(--ice);
}

/* ========================================
   HOW WE WORK (3 columns)
   ======================================== */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
}

.how-card {
  position: relative;
  padding: 2.5rem 2rem 2rem;
}

.how-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.how-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(19,42,73,0.08);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.how-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.how-card p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========================================
   SECTORS STRIP
   ======================================== */

.sectors-strip {
  padding: 4rem 0;
  background: var(--sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sectors-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.sector-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  background: var(--white);
}

.sector-tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ========================================
   SERVICE CARDS
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(19,42,73,0.08);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========================================
   CALLOUT / ENGAGEMENT BOX
   ======================================== */

.callout-box {
  background: var(--ice);
  border-left: 4px solid var(--navy);
  padding: 2rem 2.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 3rem;
}

.callout-box h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 1rem;
}

.callout-box p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========================================
   TEAM
   ======================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(19,42,73,0.1);
}

.team-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.team-photo--kent {
  object-position: center 12%;
}

.team-info {
  padding: 2rem;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-light);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.team-role a {
  display: inline-flex;
  color: #0A66C2;
  transition: opacity 0.3s;
}

.team-role a:hover { opacity: 0.7; }

.team-role svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.team-bio {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-body);
}

.team-bio-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease);
  opacity: 0;
}

.team-bio-full.expanded {
  max-height: 800px;
  opacity: 1;
  margin-top: 0.8rem;
}

.team-read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: none;
  padding: 0;
  border-bottom: 1.5px solid var(--accent);
  transition: color 0.3s var(--ease);
}

.team-read-more:hover {
  color: var(--navy-light);
}

/* ========================================
   WORK CARDS
   ======================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.work-card {
  background: var(--ice);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2.5rem;
  transition: transform 0.3s var(--ease);
}

.work-card:hover {
  transform: translateY(-3px);
}

.work-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.work-card p {
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ========================================
   INSIGHTS
   ======================================== */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.insight-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(19,42,73,0.08);
}

.insight-body {
  padding: 2rem;
}

.insight-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}

.insight-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.insight-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--steel);
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--steel);
  font-weight: 500;
}

/* ========================================
   FOOTER CTA BAND
   ======================================== */

.footer-cta {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}

.footer-cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-cta p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--black);
  padding: 3rem 0;
  text-align: center;
}

.site-footer p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem !important;
  color: rgba(255,255,255,0.5) !important;
  margin-bottom: 0.5rem;
}

/* ========================================
   CONTACT
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--sand);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.contact-card .team-role {
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.contact-detail a {
  color: var(--navy);
  font-weight: 500;
  transition: color 0.3s;
}

.contact-detail a:hover { color: var(--navy-light); }

/* ========================================
   FORM
   ======================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(19,42,73,0.08);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   SECTOR CARDS (Sectors Page)
   ======================================== */

.sector-card {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.sector-card:last-child { border-bottom: none; }

.sector-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.sector-card p {
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 800px;
}

/* ========================================
   PAGE HEADER (Interior pages)
   ======================================== */

.page-header {
  background: var(--navy);
  padding: 10rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
}

.page-header .section-subtitle {
  color: rgba(255,255,255,0.65);
  margin-top: 1rem;
}

/* ========================================
   APPROACH
   ======================================== */

.approach-text {
  max-width: 800px;
  margin: 0 auto;
}

.approach-text p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* ========================================
   INSIGHT DETAIL (full post)
   ======================================== */

.post-content {
  max-width: 740px;
  margin: 0 auto;
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.post-content strong {
  color: var(--navy);
}

/* ========================================
   LINK STYLE
   ======================================== */

.text-link {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1.5px solid var(--accent);
  transition: color 0.3s;
}

.text-link:hover { color: var(--navy-light); }

/* ========================================
   SCROLL REVEAL
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .how-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 60px 0;
    --header-h: 70px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item::after { display: none; }

  .team-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }

  .page-header { padding: 8rem 0 3rem; }
}
