/* Northstar Group — northstargroupamerica.com */

:root {
  --ink: #101c2e;
  --ink-2: #16233a;
  --ink-3: #1e2d49;
  --body: #3d4a60;
  --muted: #67718a;
  --paper: #fbfaf7;
  --sand: #f4efe6;
  --sand-2: #ede6d8;
  --line: #e5dfd2;
  --line-dark: #2a3a58;
  --gold: #a07c2c;
  --gold-bright: #c9a227;
  --gold-soft: #e8d9ae;
  --white: #ffffff;
  --max: 1140px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.28rem; line-height: 1.3; }

p { margin: 0 0 1.1em; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand-word {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.22rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.btn) {
  color: var(--ink); font-size: 0.98rem; font-weight: 500; text-decoration: none;
}
.site-nav > a:hover:not(.btn) { color: var(--gold); }
.site-nav > a.active { color: var(--gold); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

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

.btn {
  display: inline-block;
  background: var(--ink); color: var(--white);
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--ink-3); text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(16, 28, 46, 0.18);
}
.btn-outline {
  background: transparent; color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light {
  background: var(--white); color: var(--ink); border-color: var(--white);
}
.btn-light:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); box-shadow: none; }
.btn-small { padding: 10px 22px; font-size: 0.92rem; }

/* ---------- Shared blocks ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--gold); display: inline-block;
}

.lede { font-size: 1.22rem; line-height: 1.6; color: var(--body); max-width: 46em; }

section { padding: 96px 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }

/* ---------- Hero ---------- */

.hero { padding: 108px 0 96px; position: relative; overflow: hidden; }
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { max-width: 13.5em; }
.hero .lede { margin: 26px 0 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-star {
  position: absolute; right: -140px; top: -60px;
  width: 560px; height: 560px; opacity: 0.5; pointer-events: none;
}

/* ---------- Facts strip ---------- */

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; background: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact {
  padding: 34px 26px; border-left: 1px solid var(--line);
}
.fact:first-child { border-left: none; }
.fact strong {
  display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.32rem;
  font-weight: 600; color: var(--ink); margin-bottom: 5px; line-height: 1.25;
}
.fact span { font-size: 0.94rem; color: var(--muted); }

/* ---------- Cards ---------- */

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 28, 46, 0.09); }
.card .glyph { margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.99rem; margin: 0; color: var(--body); }

.glyph {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sand); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.glyph svg { width: 22px; height: 22px; }

/* ---------- Process ---------- */

.process { background: var(--sand); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
}
.step .num {
  font-family: "Fraunces", Georgia, serif; font-size: 0.95rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.08em; display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.16rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; margin: 0; }

/* ---------- Split (why us) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.split .section-head { margin-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.checklist .tick {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--gold-bright);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 3px;
}
.checklist .tick svg { width: 15px; height: 15px; }
.checklist strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 3px; }
.checklist p { margin: 0; font-size: 0.97rem; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--ink); color: #c6cddb; position: relative; overflow: hidden; }
.cta-band .container { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #aeb8ca; }
.cta-band .cta-mail {
  font-family: "Fraunces", Georgia, serif; font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--gold-bright); font-weight: 500; word-break: break-all;
}
.cta-band .cta-mail:hover { color: var(--gold-soft); }
.cta-actions { display: grid; gap: 18px; justify-items: start; }
.cta-star { position: absolute; right: -120px; bottom: -180px; width: 460px; height: 460px; opacity: 0.28; pointer-events: none; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 15em; }
.page-hero .lede { margin-top: 20px; }

/* ---------- Service detail rows ---------- */

.service-rows { display: grid; gap: 22px; }
.service-row {
  display: grid; grid-template-columns: 44px 1.05fr 1.3fr; gap: 30px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 36px;
}
.service-row h3 { margin: 8px 0 10px; font-size: 1.35rem; }
.service-row .desc p { font-size: 1rem; }
.service-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service-row ul li {
  position: relative; padding-left: 24px; font-size: 0.97rem;
}
.service-row ul li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ---------- Values ---------- */

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { border-top: 2px solid var(--ink); padding-top: 20px; }
.value h3 { font-size: 1.1rem; }
.value p { font-size: 0.95rem; margin: 0; }

/* ---------- Company / contact details ---------- */

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.detail-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px;
}
.detail-card h3 { margin-bottom: 14px; }
.detail-card p { font-size: 0.98rem; }
.detail-card .big-mail {
  font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 500;
  display: inline-block; margin: 4px 0 10px;
}
address { font-style: normal; line-height: 1.7; }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 22px; font-size: 0.97rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }

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

.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

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

.site-footer { background: var(--ink); color: #9aa5ba; font-size: 0.95rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 48px;
  padding: 72px 24px 52px;
}
.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer h4 {
  color: var(--white); font-size: 0.82rem; letter-spacing: 0.13em; text-transform: uppercase;
  margin: 0 0 16px; font-weight: 600;
}
.site-footer a { color: #b9c2d4; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-links { display: grid; gap: 10px; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding: 26px 24px; font-size: 0.86rem; color: #7d889f;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
}

/* ---------- 404 ---------- */

.notfound { min-height: 55vh; display: grid; place-content: center; text-align: center; padding: 80px 24px; }
.notfound svg { margin: 0 auto 26px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  section { padding: 72px 0; }
  .cards, .steps, .values { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .cta-band .container { grid-template-columns: 1fr; gap: 30px; }
  .service-row { grid-template-columns: 44px 1fr; }
  .service-row ul { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: none; }
  .fact { border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .steps, .values, .detail-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-left: none; }
  .fact:nth-child(2) { border-top: 1px solid var(--line); }
  .hero { padding: 72px 0 64px; }
  .hero-star { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-row { padding: 28px 22px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 12px; }

  /* Mobile nav */
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 10px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  }
  .nav-burger span, .nav-burger::before, .nav-burger::after {
    content: ""; display: block; height: 2px; background: var(--ink); border-radius: 2px;
  }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 18px 24px 24px; gap: 18px;
    box-shadow: 0 18px 30px rgba(16, 28, 46, 0.08);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
