/* ============================================
   Grosbeak Technology Solutions — shared styles
   Brand-aligned: Plus Jakarta Sans, Deep Navy +
   Grosbeak Teal palette from official guidelines.
============================================ */

:root {
  /* Brand colors (from Brand Guidelines v1.0) */
  --navy:       #0C2340;
  --navy-soft:  #1a3257;
  --teal:       #1D9E75;
  --teal-light: #5DCAA5;
  --teal-deep:  #0F6E56;
  --teal-tint:  #E8F4EF;
  --white:      #FFFFFF;

  /* Surface tokens (mapped from brand) */
  --bg:         var(--white);
  --bg-soft:    #F6FAF8;
  --bg-tint:    var(--teal-tint);
  --ink:        var(--navy);
  --ink-soft:   #3a4a63;
  --muted:      #6b7a8f;
  --line:       #E2EAE6;

  --display: "Plus Jakarta Sans", Calibri, "Segoe UI", Arial, sans-serif;
  --sans:    "Plus Jakarta Sans", Calibri, "Segoe UI", Arial, sans-serif;

  --maxw: 1240px;
  --pad:  clamp(20px, 4vw, 56px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Layout primitives ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- Type ---------- */
/* Overline — per brand: Teal Deep, spaced caps */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
}

/* Display — Plus Jakarta Sans Bold with brand-aligned tight tracking */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(46px, 7vw, 96px);
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
/* Emphasis becomes Grosbeak Teal (no italic — brand uses single family) */
.display em {
  font-style: normal;
  color: var(--teal);
}

h2.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--navy);
  text-wrap: balance;
}
h2.section-title em { font-style: normal; color: var(--teal); }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin: 0; color: var(--navy); }
p  { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--teal); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }

.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-bird {
  height: 46px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}
.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--navy);
  white-space: nowrap;
}
.brand-tagline {
  font-family: var(--display);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  white-space: nowrap;
}
.brand--reversed .brand-name { color: var(--white); }
.brand--reversed .brand-tagline { color: var(--teal-light); }
@media (max-width: 420px) {
  .brand-name { font-size: 19px; }
  .brand-bird { height: 40px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-tint); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin: 4px auto -2px;
}

.nav-cta { display: inline-flex; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--navy);
  transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 18px var(--pad) 28px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 18px; width: 100%; justify-content: center; }

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding-block: 72px 32px;
  margin-top: 80px;
}
.site-footer .brand-bird { height: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p { margin-top: 18px; color: rgba(255, 255, 255, 0.7); max-width: 32ch; }

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal-light);
  font-weight: 600;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.86); transition: color 160ms ease; }
.footer-col a:hover { color: var(--teal-light); }
.footer-col address { font-style: normal; line-height: 1.7; color: rgba(255, 255, 255, 0.78); font-size: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 1;
  transform: none;
  animation: revealUp 700ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ---------- Card patterns ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), border-color 220ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-light);
  box-shadow: 0 18px 40px -24px rgba(15, 110, 86, 0.35);
}

.shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  font-family: var(--sans);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(29, 158, 117, 0.15);
}
.field .error {
  font-size: 13px;
  color: #b3261e;
  display: none;
}
.field.invalid .error { display: block; }
.field.invalid input,
.field.invalid textarea {
  border-color: #d04a40;
}

/* ---------- Misc ---------- */
.divider {
  height: 1px;
  background: var(--line);
  margin-block: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

::selection { background: var(--teal); color: var(--white); }
