/* Northstar Business Systems — Balboa-style layout, minimal weight */

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

:root {
  --color-black: #171717;
  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-gray-400: #9ca3af;
  --color-gray-100: #f3f4f6;
  --color-gray-50: #f9fafb;
  --color-border: #e5e7eb;
  --color-brand: #1a365d;
  --color-brand-hover: #2c5282;
  --color-green: #098048;
  --color-green-bg: rgba(9, 128, 72, 0.1);
  --color-purple: #6D2FAE;
  --color-purple-bg: rgba(109, 47, 174, 0.1);
  --color-blue: #2073A5;
  --color-blue-bg: rgba(32, 115, 165, 0.1);
  --container: min(1280px, 100% - 2rem);
  --container-narrow: min(720px, 100% - 2rem);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
}

.container { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.container-narrow { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

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

.logo { display: block; flex-shrink: 0; }
.logo img { display: block; height: 56px; width: auto; max-width: 340px; }

.nav-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.nav-link:hover { color: var(--color-muted); }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.dropdown-chevron { flex-shrink: 0; }

.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 12rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-black);
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: var(--color-gray-50);
  color: var(--color-muted);
}

.cta-header {
  display: none;
}
@media (min-width: 1024px) {
  .cta-header {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--color-brand);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
  }
  .cta-header:hover { background: var(--color-brand-hover); }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-black);
}
@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* ----- Mobile nav ----- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #fff;
  padding: 1rem;
  overflow: auto;
}
.mobile-nav[hidden] { display: none; }
@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.mobile-nav-header .logo img { height: 56px; max-width: 340px; }
.mobile-nav-header button {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-black);
}

.mobile-nav-links {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-links > a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
}
.mobile-dropdown-trigger {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-black);
}
.mobile-dropdown-panel {
  display: none;
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}
.mobile-dropdown-panel.is-open { display: block; }
.mobile-dropdown-panel a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--color-muted);
  text-decoration: none;
}
.mobile-cta {
  margin-top: 1rem;
  text-align: center;
  padding: 0.75rem 1rem !important;
  background: var(--color-brand);
  color: #fff !important;
  border-radius: 0.5rem;
}

/* ----- Hero ----- */
.hero-wrapper {
  position: relative;
  background: var(--color-gray-50) url("Branding/hero.webp") center center / cover no-repeat;
}
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 25% 35%,
    rgba(255,255,255,0),
    rgba(255,255,255,0),
    transparent 60%
  );
  pointer-events: none;
}
.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.hero-wrapper .hero { position: relative; z-index: 1; }
.hero {
  padding: 5rem 0 6rem;
}
@media (min-width: 640px) {
  .hero { padding: 6rem 0 7rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 7rem 0 8rem; }
}

.hero-content { max-width: 48rem; }
.hero h1 {
  margin: 0 0 1.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-black);
}
@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}

.hero-tagline {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: 1.6;
}
@media (min-width: 640px) {
  .hero-tagline { font-size: 1.25rem; }
}
.hero-outcomes {
  margin: 0 0 2.5rem;
  color: var(--color-muted);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
}
.cta-primary {
  background: var(--color-brand);
  color: #fff;
}
.cta-primary:hover { background: var(--color-brand-hover); }
.cta-secondary {
  background: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}
.cta-secondary:hover { background: var(--color-gray-50); }
.cta-large { padding: 1rem 2rem; font-size: 1.125rem; }

/* ----- Sections ----- */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-gray-50); }
.section-head { text-align: center; max-width: 42rem; margin-left: auto; margin-right: auto; margin-bottom: 3rem; }
.section-head h2 {
  margin: 0 0 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-black);
}
@media (min-width: 640px) {
  .section-head h2 { font-size: 2.25rem; }
}
.section-intro {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: 1.6;
}
.section-head .section-intro + .section-intro { margin-top: 1rem; }

/* ----- Cards ----- */
.card-grid { display: grid; gap: 2rem; }
.card-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.glass-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  transform-style: preserve-3d;
}
.glass-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
}
.glass-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}
.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  color: currentColor;
  stroke-width: 2px;
  opacity: 0.8;
}
.card-icon-green { background: var(--color-green-bg); color: var(--color-green); }
.card-icon-blue { background: var(--color-blue-bg); color: var(--color-blue); }
.card-icon-purple { background: var(--color-purple-bg); color: var(--color-purple); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
}
.card-link:hover { color: var(--color-muted); }

/* Outcome cards */
.outcome-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  transform-style: preserve-3d;
}
@media (min-width: 1024px) {
  .outcome-card { padding: 2.5rem; }
}
.outcome-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.outcome-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.outcome-icon svg {
  width: 24px;
  height: 24px;
  color: currentColor;
  stroke-width: 2px;
  opacity: 0.8;
}
.outcome-icon-green { background: var(--color-green-bg); color: var(--color-green); }
.outcome-icon-purple { background: var(--color-purple-bg); color: var(--color-purple); }
.outcome-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
}
.outcome-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
}
.outcome-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.outcome-card .outcome-icon-purple + h3 ~ .outcome-list li::before { background: var(--color-purple); }
.outcome-list strong { color: var(--color-black); }

/* Value cards (Why Northstar) */
.card-grid-simple { gap: 2rem; }
.value-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  transform-style: preserve-3d;
}
.value-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg {
  width: 24px;
  height: 24px;
  color: currentColor;
  stroke-width: 2px;
  opacity: 0.8;
}
.value-icon-green { background: var(--color-green-bg); color: var(--color-green); }
.value-icon-purple { background: var(--color-purple-bg); color: var(--color-purple); }
.value-icon-blue { background: var(--color-blue-bg); color: var(--color-blue); }
.value-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
}
.value-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Testimonial */
.section-testimonial {
  background: linear-gradient(160deg, #EBF4FA 0%, #F3EEFA 40%, #E8F5EE 70%, #F8FAFC 100%);
}
.testimonial-quote {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-black);
}
@media (min-width: 640px) {
  .testimonial-quote { font-size: 1.875rem; }
}
.testimonial-role { margin: 0; font-weight: 600; color: var(--color-black); }
.testimonial-company { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--color-muted); }

/* CTA section */
.section-cta { padding: 4rem 0; }
.section-cta h2 { margin: 0 0 1rem; font-size: 1.875rem; font-weight: 700; }
.section-cta .section-intro { margin-bottom: 0; }
.section-cta .hero-ctas { margin-top: 2rem; }
@media (min-width: 640px) {
  .section-cta h2 { font-size: 2.25rem; }
}

/* Playbooks page hero — lightweight, subtle accent */
.hero-playbooks {
  position: relative;
  background: linear-gradient(180deg, var(--color-gray-50) 0%, #fff 100%);
}
.hero-playbooks::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 28rem;
  height: 100%;
  background: radial-gradient(ellipse at 100% 30%, rgba(32, 115, 165, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Playbooks category grid — 4 columns */
.card-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Playbooks filter pills — UI for future use */
.playbook-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.playbook-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.playbook-pill:hover {
  color: var(--color-black);
  border-color: var(--color-gray-400);
}
.playbook-pill-active {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
.playbook-pill-active:hover {
  background: var(--color-brand-hover);
  color: #fff;
  border-color: var(--color-brand-hover);
}
.playbook-pill {
  cursor: pointer;
  font-family: inherit;
}

/* Hidden when filtered out */
.playbook-grid .playbook-card-hidden {
  display: none;
}

/* Featured playbook cards */
.playbook-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .playbook-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .playbook-grid { grid-template-columns: repeat(3, 1fr); }
}
.playbook-card { position: relative; }
.playbook-card-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-blue);
}
.playbook-card h3 { margin: 0 0 0.5rem; }
.playbook-card .card-link { margin-top: 1rem; }

/* Playbook detail page: back link and prose */
.playbook-back { margin: 0 0 0.5rem; }
.playbook-back-link {
  font-size: 0.9375rem;
  color: var(--color-muted);
  text-decoration: none;
}
.playbook-back-link:hover { color: var(--color-brand); }
.hero-playbooks .playbook-card-label { margin-bottom: 0.5rem; }
.playbook-prose {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.playbook-prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--color-black);
}
.playbook-prose h2:first-child { margin-top: 0; }
.playbook-prose h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
.playbook-prose p { margin: 0 0 1rem; color: var(--color-text); }
.playbook-prose ul, .playbook-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.playbook-prose li { margin-bottom: 0.35rem; }
.playbook-prose a { color: var(--color-brand); text-decoration: none; }
.playbook-prose a:hover { text-decoration: underline; }
.playbook-prose strong { font-weight: 600; }
.playbook-prose em { font-style: italic; }

/* CTA row centered */
.hero-ctas.ctas-center { justify-content: center; }

/* Contact page hero */
.hero-contact {
  background: linear-gradient(180deg, var(--color-gray-50) 0%, #fff 100%);
}
.hero-contact .hero-tagline { margin-bottom: 0.25rem; }
.hero-contact .hero-outcomes { margin-bottom: 0; }

/* Contact section — two-column layout */
.section-contact {
  padding: 4rem 0 5rem;
  background: var(--color-gray-50);
}
.section-contact .container { max-width: var(--container); }
.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 56rem;
    margin: 0 auto;
  }
}
.contact-intro-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-black);
}
@media (min-width: 640px) {
  .contact-intro-title { font-size: 1.75rem; }
}
.contact-intro-text {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  line-height: 1.65;
  font-size: 1rem;
}
.contact-reassurance {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}
.contact-reassurance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-green-bg);
  color: var(--color-green);
  font-size: 0.75rem;
  font-weight: 700;
}
.contact-form-wrapper {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
@media (min-width: 640px) {
  .contact-form-wrapper { padding: 2.5rem; }
}
.contact-form {
  margin: 0;
}
.contact-field {
  margin-bottom: 1.25rem;
}
.contact-field:last-of-type { margin-bottom: 1.5rem; }
.contact-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-black);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-gray-400);
}
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #d1d5db;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.12);
}
.contact-form textarea {
  min-height: 7rem;
  resize: vertical;
}
.contact-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}
@media (min-width: 640px) {
  .contact-submit { width: auto; min-width: 10rem; }
}
.contact-fallback { margin-top: 1rem; font-size: 0.9375rem; color: var(--color-muted); }
.contact-fallback a { color: var(--color-brand); }

/* ----- Footer ----- */
.site-footer {
  background: var(--color-brand);
  color: #fff;
  padding: 4rem 1rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr repeat(3, auto); gap: 2rem 3rem; }
}

.footer-brand { max-width: 16rem; }
.footer-logo { height: 40px; width: auto; opacity: 0.95; }
.footer-brand p {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
}
.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
