/* ============================================================
   SONGBIRD INNOVATIONS — v3
   "Community-bank sharp": standard nav + service dropdown, warm paper.
   Palette: brand spec (orange #D2600F, sage #C3CDC1, peach #FBE2D1,
   headings #2C3F42, body #2B2E3C, background #FFF8F0)
   ============================================================ */

:root {
  --orange: #D2600F;
  --orange-dark: #A84A0B;
  --orange-deep: #8F3D00;
  --orange-tint: #FBEBDC;
  --sage: #C3CDC1;
  --sage-dark: #9DAF9A;
  --sage-tint: #EEF2EE;
  --peach: #FBE2D1;
  --peach-deep: #F3CBA8;
  --ink-head: #2C3F42;
  --ink-body: #2B2E3C;
  --ink-soft: #5A5E6E;
  --paper: #FFF8F0;
  --line: #E3D5C2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(43, 46, 60, 0.06), 0 6px 18px rgba(43, 46, 60, 0.07);
  --shadow-lift: 0 2px 4px rgba(43, 46, 60, 0.08), 0 12px 28px rgba(43, 46, 60, 0.12);
  --font-sans: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Overpass Mono", "SFMono-Regular", Menlo, monospace;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

::selection { background: var(--peach-deep); color: var(--ink-head); }

a { color: var(--orange); text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--orange-dark); }

h1, h2, h3 { color: var(--ink-head); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: 44px; font-weight: 800; margin: 0 0 18px; }
h2 { font-size: 30px; font-weight: 800; margin: 0 0 14px; }
h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
p  { margin: 0 0 14px; }

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

/* ---------- eyebrow / kicker ---------- */

.kicker {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
}
.kicker::before { content: "—— "; color: var(--peach-deep); }

/* ---------- header / standard nav ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo { display: block; height: 66px; width: auto; }
.brand-name {
  font-weight: 800; font-size: 18px; letter-spacing: 0.01em;
  color: var(--ink-head); text-transform: uppercase; line-height: 1.1;
}
.brand-name small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-soft);
  text-transform: uppercase; margin-top: 2px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-body); text-decoration: none; font-weight: 600;
  font-size: 15px; padding: 8px 13px; border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--ink-head); background: var(--peach); }
.nav a.active { color: var(--ink-head); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }

/* dropdown */
.has-drop { position: relative; }
.has-drop > a { padding-right: 22px; position: relative; }
.has-drop > a::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: #FFFDFA; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 8px;
  display: none;
}
.has-drop:hover .drop,
.has-drop:focus-within .drop { display: block; }
.drop a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 15px;
}
.drop a:hover { background: var(--peach); }
.drop a small {
  display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-soft);
  margin-top: 2px;
}
/* invisible bridge so the menu doesn't collapse crossing the gap */
.has-drop::before {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px;
  display: none;
}
.has-drop:hover::before, .has-drop:focus-within::before { display: block; }

.nav-toggle {
  display: none; margin-left: auto;
  font: inherit; font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  background: var(--paper); color: var(--ink-head);
  border: 1.5px solid var(--ink-head); border-radius: var(--radius-sm);
  padding: 8px 14px; cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  background: var(--orange); color: #FFF8F0;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  text-decoration: none; cursor: pointer;
  transition: background 0.12s ease-out, transform 0.12s ease-out;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #FFF8F0; }
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent; color: var(--ink-head); border-color: var(--ink-head);
}
.btn.ghost:hover { background: var(--ink-head); color: var(--paper); border-color: var(--ink-head); }

.btn.small { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .sub { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { display: flex; justify-content: center; }
.hero-art img { max-width: 220px; width: 100%; height: auto; }

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section.tint { background: var(--sage-tint); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head .sub { color: var(--ink-soft); font-size: 18px; }

/* ---------- service cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 26px 24px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .chip {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--orange-deep);
  background: var(--orange-tint);
  align-self: flex-start;
  padding: 3px 10px; border-radius: 99px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-soft); flex: 1; }
.card .go { font-weight: 700; font-size: 14.5px; color: var(--orange); margin-top: 8px; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  padding: 24px; background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
}
.step .n {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  color: var(--orange-deep); letter-spacing: 0.12em; display: block; margin-bottom: 10px;
}
.step p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

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

.cta-band { padding: 72px 0; }
.cta-box {
  background: var(--ink-head); color: var(--paper);
  border-radius: 16px;
  padding: 52px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-box h2 { color: var(--paper); margin: 0 0 8px; }
.cta-box p { color: rgba(255, 248, 240, 0.75); margin: 0; max-width: 34em; }
.cta-box .btn { flex: 0 0 auto; }

/* ---------- footer ---------- */

.site-foot { background: var(--ink-head); color: rgba(255, 248, 240, 0.78); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding: 52px 0 36px;
}
.site-foot h4 {
  color: var(--paper); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 14px; font-family: var(--font-mono);
}
.site-foot a { color: rgba(255, 248, 240, 0.85); text-decoration: none; }
.site-foot a:hover { color: var(--peach); }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 8px; font-size: 15px; }
.foot-brand p { font-size: 15px; margin: 10px 0 0; max-width: 30em; }
.foot-tag {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--peach); margin: 14px 0 0;
}
.foot-line {
  border-top: 1px solid rgba(255, 248, 240, 0.16);
  padding: 18px 0 22px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- page body (interior pages) ---------- */

.page-head { padding: 64px 0 40px; }
.page-head .sub { font-size: 19px; color: var(--ink-soft); max-width: 46em; }

/* services overview rows */
.svc {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px;
  padding: 44px 0; border-top: 1px solid var(--line);
}
.svc .num {
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  color: var(--orange-deep); letter-spacing: 0.1em;
}
.svc .num small { display: block; color: var(--ink-soft); font-weight: 400; margin-top: 6px; letter-spacing: 0; }

/* service detail page */
.svc-detail { max-width: 46em; }
.svc-detail ul { margin: 6px 0 20px; padding-left: 0; list-style: none; }
.svc-detail li:not(.tag) {
  padding: 9px 0 9px 26px; position: relative;
  border-bottom: 1px solid var(--line); font-size: 16.5px;
}
.svc-detail li:not(.tag):last-child { border-bottom: none; }
.svc-detail li:not(.tag)::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 8px; height: 8px; background: var(--orange);
  border-radius: 2px;
}
.fit {
  background: var(--sage-tint); border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 15px; color: var(--ink-body);
  margin: 26px 0;
}
.fit strong { color: var(--ink-head); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 30px 30px 26px;
  position: sticky; top: 112px;
}
.contact-card .name { font-size: 24px; font-weight: 800; color: var(--ink-head); margin: 0; }
.contact-card .role {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange-deep); margin: 4px 0 20px;
}
.contact-card .line { font-size: 15.5px; margin: 0 0 10px; display: flex; gap: 12px; }
.contact-card .key {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-soft); text-transform: uppercase; min-width: 82px; padding-top: 3px;
  flex: 0 0 auto;
}
.contact-card .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* embed card — holds the MS Forms iframe */
.embed-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 30px 32px;
  min-height: 420px;
}
.embed-card h2 { margin-bottom: 6px; }
.embed-frame { margin-top: 20px; }
.embed-frame iframe {
  display: block; width: 100%; height: 1670px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff;
}

/* ---------- working stack (tech chips) ---------- */

.stack-wall {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px;
}
.stack-group h4 {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-deep); margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--peach-deep);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag {
  font-size: 13.5px; font-weight: 600; color: var(--ink-head);
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 99px; padding: 5px 13px;
  position: relative;
}
.tag:hover { border-color: var(--orange); }
.tag[data-tip] { cursor: pointer; }
.tag[data-tip]:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tag.open { border-color: var(--orange); background: var(--peach); }

/* click-to-open blurb under a stack chip */
.tag-tip {
  display: none; position: absolute; z-index: 40;
  top: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 240px; text-align: left; white-space: normal;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); padding: 10px 14px;
  font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--ink-body);
}
.tag-tip::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top: none; border-bottom-color: var(--line);
}
.tag.open .tag-tip { display: block; }
.tag.flip-left .tag-tip { left: 0; transform: none; }
.tag.flip-left .tag-tip::before { left: 18px; transform: none; }
.tag.flip-right .tag-tip { left: auto; right: 0; transform: none; }
.tag.flip-right .tag-tip::before { left: auto; right: 12px; transform: none; }

/* inline stack row used on service pages */
.svc-detail .tags { margin: 8px 0 22px; }
.stack-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 10px;
}

/* ---------- misc ---------- */

.lede { font-size: 20px; color: var(--ink-head); font-weight: 500; line-height: 1.55; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.mt0 { margin-top: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .hero-art { display: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 12px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 36px 32px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  h1 { font-size: 34px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
    gap: 2px;
  }
  .nav.open a { padding: 11px 12px; }
  .nav.open a.active { box-shadow: none; background: var(--peach); border-radius: var(--radius-sm); }
  /* dropdown becomes inline list inside the open mobile menu */
  .nav.open .drop {
    position: static; display: block; box-shadow: none; border: none;
    padding: 0 0 0 14px; min-width: 0; background: transparent;
  }
  .nav-toggle { display: block; }
  .head-inner { gap: 12px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
}
