/* =========================================================
   Northline Advisory — inspired by vouga.com.py
   Palette: near-black bg, crimson accent (#CB0132 — sampled from the RED ARROW logo), Open Sans
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-muted: #f0f0f0;
  --bg-dark: #0a0f1a;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e2e2e2;
  --accent: #CB0132;
  --accent-hover: #A50026;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18);
  --radius: 2px;
  --container: 1200px;
  --nav-h: 78px;
  --nav-h-scrolled: 62px;
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.accent { color: var(--accent); }
.accent-slash { color: var(--accent); font-weight: 600; margin: 0 .2em; }

/* =========== HEADER =========== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  transition: background .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease);
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.site-header.is-scrolled {
  background: rgba(10,15,26,.92);
  backdrop-filter: blur(10px);
  height: var(--nav-h-scrolled);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: .04em;
}
.brand-name strong {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}
.brand em { font-style: normal; font-weight: 300; opacity: .9; margin-left: 4px; }

/* Logo image — placed on the RIGHT of the header, separate from wordmark */
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 6px 0;
  transition: transform .35s var(--ease);
}
.brand-logo img {
  width: 48px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition: transform .35s var(--ease);
}
.brand-logo:hover img { transform: translateX(4px); }
.site-header.is-scrolled .brand-logo img { width: 40px; height: 40px; }

.nav-desktop { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-desktop a {
  color: var(--white);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 6px 0;
  position: relative;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent); transition: right .35s var(--ease);
}
.nav-desktop a:hover::after { right: 0; }
.nav-desktop a.nav-cta {
  border: 1px solid rgba(255,255,255,.6);
  padding: 8px 22px;
  font-weight: 500;
}
.nav-desktop a.nav-cta::after { display: none; }
.nav-desktop a.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none; border: none; padding: 8px;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: rgba(0,0,0,.96);
  z-index: 45;
  padding: 40px clamp(20px, 6vw, 40px);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu a {
  color: var(--white); font-weight: 300; font-size: 1.6rem;
  padding: 6px 0;
}

/* =========== HERO =========== */
.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
}
.hero-slides { position: relative; height: 96vh; min-height: 620px; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity .8s var(--ease);
  display: flex; align-items: flex-end;
}
.slide.is-active { opacity: 1; z-index: 2; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,26,.35) 0%, rgba(10,15,26,.55) 60%, rgba(10,15,26,.78) 100%);
}
.slide-body {
  position: relative; z-index: 2;
  color: var(--white);
  padding-bottom: clamp(60px, 10vh, 120px);
  padding-top: 120px;
  max-width: 900px;
}
.eyebrow {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 20px;
  opacity: .9;
}
.slide h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.slide .lead {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 300;
  max-width: 640px;
  margin: 0 0 34px;
  line-height: 1.5;
  opacity: .92;
}

.btn-outline {
  display: inline-block;
  padding: 12px 38px;
  border: 1.5px solid var(--white);
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

.btn-solid {
  display: inline-block;
  padding: 13px 34px;
  background: var(--accent);
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .3s var(--ease);
  border: none;
}
.btn-solid:hover { background: var(--accent-hover); }

.hero-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero-dots .dot {
  width: 30px; height: 3px;
  background: rgba(255,255,255,.35);
  border: none; padding: 0;
  transition: background .3s;
}
.hero-dots .dot.is-active { background: var(--accent); }

/* =========== STRIP =========== */
.strip {
  background: var(--bg-dark);
  color: var(--white);
  padding: 22px 0;
  text-align: center;
}
.strip-text {
  margin: 0; font-weight: 300; letter-spacing: .06em;
  font-size: .95rem; opacity: .92;
}

/* =========== SECTION BASE =========== */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-muted { background: var(--bg-muted); }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--text-muted);
}
.section-dark .section-eyebrow { color: rgba(255,255,255,.7); }
.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: 1.15;
  margin: 0 0 28px;
  max-width: 800px;
}
.section-title.light { color: var(--white); }
.section-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 56px;
  line-height: 1.6;
}
.section-dark .section-lead { color: rgba(255,255,255,.8); }

/* =========== GRIDS =========== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Tile (services) */
.tile {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white);
  isolation: isolate;
}
.tile-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease);
  z-index: 1;
}
.tile:hover .tile-bg { transform: scale(1.06); }
.tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,26,.15) 0%, rgba(10,15,26,.75) 65%, rgba(10,15,26,.92) 100%);
  z-index: 2;
  transition: background .4s var(--ease);
}
.tile:hover .tile-overlay {
  background: linear-gradient(180deg, rgba(230,54,44,.15) 0%, rgba(10,15,26,.8) 65%, rgba(10,15,26,.95) 100%);
}
.tile-body {
  position: relative; z-index: 3;
  padding: 32px 26px;
}
.tile-index {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.tile h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.tile p {
  font-weight: 300;
  font-size: .92rem;
  margin: 0;
  opacity: .88;
  line-height: 1.5;
}

/* Steps */
.grid-4.steps { gap: 30px; }
.step {
  padding: 30px 22px;
  border-top: 2px solid var(--accent);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.section-muted .step { background: var(--bg); }
.step-num {
  font-size: .85rem; font-weight: 600; letter-spacing: .2em;
  color: var(--accent);
  display: block; margin-bottom: 14px;
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 10px;
}
.step p {
  font-size: .93rem; color: var(--text-muted); margin: 0; line-height: 1.55;
}

/* Split (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  width: 100%; height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split-body p { font-weight: 300; line-height: 1.65; margin: 0 0 18px; }
.section-dark .split-body p { color: rgba(255,255,255,.85); }

.check-list {
  list-style: none; padding: 0; margin: 24px 0 32px;
}
.check-list li {
  position: relative; padding: 8px 0 8px 26px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-weight: 300;
}
.check-list li::before {
  content: "/";
  position: absolute; left: 0; top: 8px;
  color: var(--accent); font-weight: 600;
}

/* Industries */
.industries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.industry {
  padding: 26px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  font-size: 1.05rem;
  display: flex; align-items: center; gap: 14px;
  transition: background .3s var(--ease), padding-left .3s var(--ease);
}
.industry:nth-child(odd) { border-right: 1px solid var(--border); }
.industry:hover {
  background: var(--white);
  padding-left: 28px;
}
.i-num { color: var(--accent); font-weight: 700; font-size: 1.2rem; }

/* Cards (insights) */
.card {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
}
.card-body { padding: 26px 24px 28px; }
.card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.3;
}
.card p {
  font-size: .93rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.55;
}
.card-more {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Contact */
.contact-list {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-list li {
  display: grid; grid-template-columns: 90px 1fr; gap: 20px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.contact-list strong {
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  font-size: .8rem; color: var(--accent);
}
.contact-list a { color: var(--white); border-bottom: 1px solid transparent; }
.contact-list a:hover { border-color: var(--accent); }

.contact-form {
  background: rgba(255,255,255,.04);
  padding: 34px 30px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 18px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
}
.contact-form span {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  padding: 10px 0;
  outline: none;
  transition: border-color .3s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn-solid { margin-top: 10px; align-self: flex-start; }
.g-recaptcha { margin-top: 6px; }
.form-status {
  color: #7ce6b4; margin: 6px 0 0; font-size: .9rem;
}
.form-note {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin: 4px 0 0;
  font-weight: 300;
}

/* =========== FOOTER =========== */
.site-footer {
  background: #05080f;
  color: rgba(255,255,255,.75);
  padding: 70px 0 30px;
  font-size: .9rem;
}
.brand-footer { color: var(--white); margin-bottom: 16px; align-items: center; }
.footer-mark { width: 36px; height: 36px; }
.footer-tag {
  font-weight: 300;
  color: rgba(255,255,255,.6);
  max-width: 280px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.footer-address {
  margin-top: 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--accent); }

/* =========== ANIMATIONS =========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-logo { margin-left: auto; margin-right: 8px; }
  .brand-logo img { width: 40px; height: 40px; }
  .hero-slides { min-height: 88vh; }
  .slide-body { padding-bottom: 80px; padding-top: 110px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; }
  .industry:nth-child(odd) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .brand-name { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .slide { transition: opacity .3s linear; }
}
