/* =============================================
   TRUE NORTH INFORMATION SOLUTIONS
   style.css
   ============================================= */

:root {
  --navy:       #0F2647;
  --blue:       #1A4B8C;
  --blue-mid:   #4A7BC4;
  --blue-pale:  #7A9EC4;
  --white:      #FFFFFF;
  --off-white:  #F4F7FB;
  --text:       #1A1A2E;
  --text-muted: #5A6478;
  --border:     rgba(26,75,140,0.12);
  --shadow:     0 8px 40px rgba(15,38,71,0.14);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --ease: 0.35s ease;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

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

/* ── NAVIGATION ─────────────────────────────── */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: all 0.4s ease;
}

#navbar.scrolled {
  background: rgba(15,38,71,0.97);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 2px 28px rgba(15,38,71,0.35);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: white;
}

.nav-wordmark em {
  font-style: italic;
  color: var(--blue-pale);
}

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

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--ease);
}

.nav-links a:hover { color: white; }

.nav-cta {
  color: white !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  padding: 8px 22px !important;
  transition: all var(--ease) !important;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.7) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: white;
  display: block;
  transition: all var(--ease);
}

/* ── HERO ───────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(15,38,71,0.90) 0%,
    rgba(15,38,71,0.65) 45%,
    rgba(26,75,140,0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 36px;
  padding-top: 80px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-pale);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.05;
  color: white;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.72);
  margin-bottom: 52px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
}
.btn-primary:hover { background: var(--blue-mid); border-color: var(--blue-mid); }

.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
  animation: scrollPulse 2.2s ease infinite;
}

/* ── SERVICES ───────────────────────────────── */

.services {
  padding: 120px 0;
  background: var(--off-white);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}

.section-head h2,
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 18px;
}

.section-head .lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.svc-card {
  background: white;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue);
  transition: width 0.4s ease;
}

.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); z-index: 2; }
.svc-card:hover::after { width: 100%; }

.svc-icon {
  width: 38px; height: 38px;
  color: var(--blue);
  margin-bottom: 24px;
}
.svc-icon svg { width: 100%; height: 100%; }

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

.svc-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ── ABOUT ──────────────────────────────────── */

.about {
  padding: 120px 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: center;
}

.about-content .eyebrow { color: var(--blue); animation: none; opacity: 1; margin-bottom: 16px; }

.about-content h2 { margin-bottom: 30px; }

.about-content p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 18px;
}

.stats {
  display: flex;
  gap: 52px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.stat-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.about-needle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CONTACT ────────────────────────────────── */

.contact {
  padding: 120px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: 'N';
  position: absolute;
  font-family: Georgia, serif;
  font-size: 600px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.025);
  top: -120px; right: -80px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.section-head--light h2    { color: white; }
.section-head--light .eyebrow { color: var(--blue-pale); }
.section-head--light .lead { color: rgba(255,255,255,0.55); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 64px;
}

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: white;
  transition: all var(--ease);
}

.contact-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 30px; height: 30px;
  color: var(--blue-pale);
  margin-bottom: 6px;
}
.contact-card-icon svg { width: 100%; height: 100%; }

.c-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.38);
}

.c-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  word-break: break-all;
}

/* ── FOOTER ─────────────────────────────────── */

.footer {
  background: #060e1b;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
}

/* ── ANIMATIONS ─────────────────────────────── */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 0.9; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ─────────────────────────────── */

@media (max-width: 960px) {
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid      { grid-template-columns: 1fr; gap: 48px; }
  .about-needle    { order: -1; }
  .contact-cards   { grid-template-columns: 1fr; }
  .stats           { gap: 32px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(15,38,71,0.98);
    flex-direction: column;
    padding: 24px 36px;
    gap: 24px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: flex; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats        { flex-direction: column; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
