/* ============================================================
   FalconGate Global Access — Design System
   Palette: warm ink/paper, falcon red, stone, muted gold accent
   Type: Big Shoulders Display (condensed, cargo/manifest feel) + Source Sans 3
   Motif: dot-grid "white space markets" — filled = established, hollow = white space
   ============================================================ */

:root {
  --ink: #16130f;
  --paper: #faf7f1;
  --stone: #ede7da;
  --stone-line: #ddd4c1;
  --red: #c41e2a;
  --red-deep: #921019;
  --slate: #6e6759;
  --gold: #a9812f;
  --max-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--stone-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-text {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  font-size: 0.95rem;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a.active {
  color: var(--ink);
  border-color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 780px) {
  nav.primary-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--paper);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  nav.primary-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  nav.primary-nav ul {
    flex-direction: column;
    padding: 2rem var(--gutter);
    gap: 1.6rem;
  }
  nav.primary-nav a { font-size: 1.3rem; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 88px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero-kicker {
  color: var(--red);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-tagline {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--slate);
  max-width: 34em;
}

.hero-sub {
  margin-top: 0.9rem;
  font-style: italic;
  color: var(--ink);
  font-size: 1.02rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

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

/* ---------- Dot-grid "white space markets" motif ---------- */
.market-grid {
  --dot: 13px;
  --gap: 15px;
  display: grid;
  grid-template-columns: repeat(9, var(--dot));
  grid-auto-rows: var(--dot);
  gap: var(--gap);
  justify-content: end;
}

.market-grid span {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  border: 1.5px solid var(--slate);
  opacity: 0.55;
}

.market-grid span.filled {
  background: var(--red);
  border-color: var(--red);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .market-grid span.filled {
    animation: dot-in 0.5s ease both;
  }
  .market-grid span.filled:nth-of-type(1) { animation-delay: 0.05s; }
  .market-grid span.filled:nth-of-type(2) { animation-delay: 0.15s; }
  .market-grid span.filled:nth-of-type(3) { animation-delay: 0.25s; }
  .market-grid span.filled:nth-of-type(4) { animation-delay: 0.35s; }
  .market-grid span.filled:nth-of-type(5) { animation-delay: 0.45s; }
}

@keyframes dot-in {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 900px) {
  .market-grid { justify-content: start; margin-top: 1rem; }
}

.market-grid-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--slate);
  display: flex;
  gap: 1.4rem;
}
.market-grid-caption span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.legend-dot {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
  border: 1.5px solid var(--slate);
}
.legend-dot.filled { background: var(--red); border-color: var(--red); }

/* ---------- Section shell ---------- */
section { padding: clamp(52px, 7vw, 96px) 0; }
.section-alt { background: var(--stone); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.6rem;
  border-bottom: 1px solid var(--stone-line);
  padding-bottom: 1.4rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.section-head .section-note {
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 26em;
  text-align: right;
}

@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .section-note { text-align: left; }
}

/* ---------- About / two-col text blocks ---------- */
.stack-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

@media (max-width: 860px) {
  .stack-cols { grid-template-columns: 1fr; }
}

.stack-cols h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.stack-cols p {
  color: var(--slate);
  margin: 0;
}

.pull {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--ink);
  max-width: 22em;
  margin: 2.6rem 0 0;
  line-height: 1.25;
}

/* ---------- Value prop / route to growth ---------- */
.route-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) {
  .route-block { grid-template-columns: 1fr; }
}
.route-block p { color: var(--slate); }
.route-block p + p { margin-top: 1.1rem; }

/* ---------- Manifest list (category strip, not a card grid) ---------- */
.manifest {
  border-top: 1px solid var(--stone-line);
  margin-top: 2.4rem;
}
.manifest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--stone-line);
}
.manifest-row .cat-name {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.cat-icon {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--red);
}
.cat-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.region-mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}
.region-mark span {
  border-radius: 50%;
  border: 1.4px solid var(--slate);
  opacity: 0.5;
}
.region-mark span.on {
  background: var(--red);
  border-color: var(--red);
  opacity: 1;
}
.manifest-row .cat-note {
  color: var(--slate);
  font-size: 0.92rem;
  text-align: right;
  max-width: 22em;
}
@media (max-width: 640px) {
  .manifest-row { flex-direction: column; gap: 0.3rem; }
  .manifest-row .cat-note { text-align: left; }
}

.band {
  padding: 2rem 0;
  border-top: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
  text-align: left;
}
.band p {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin: 0;
}
.band p .accent { color: var(--red); }

/* ---------- Requirement / CTA panels ---------- */
.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
}
@media (max-width: 860px) {
  .panels { grid-template-columns: 1fr; }
}
.panel {
  background: var(--paper);
  padding: clamp(24px, 3vw, 34px);
}
.panel h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.panel p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Placeholder page sections (Products / Markets) ---------- */
.placeholder-box {
  border: 1px dashed var(--stone-line);
  padding: clamp(32px, 5vw, 56px);
  text-align: left;
}
.placeholder-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.placeholder-box p {
  color: var(--slate);
  max-width: 40em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.field label {
  display: block;
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.8em 0.9em;
  border: 1px solid var(--stone-line);
  background: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-details dt {
  color: var(--slate);
  font-size: 0.85rem;
  margin-top: 1.3rem;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd {
  margin: 0.25rem 0 0;
  font-size: 1.02rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--stone-line);
  padding-top: 0.9rem;
  margin-top: 1.6rem;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: clamp(40px, 6vw, 64px) 0 2rem;
}
footer.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 780px) {
  footer.site-footer .wrap { grid-template-columns: 1fr; }
}
footer.site-footer h4 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 0.8rem;
  color: var(--paper);
}
footer.site-footer p, footer.site-footer a {
  color: #cfc8b8;
  font-size: 0.92rem;
  line-height: 1.7;
}
footer.site-footer a:hover { color: var(--paper); }
footer .foot-links { list-style: none; padding: 0; margin: 0; }
footer .foot-links li { margin-bottom: 0.5rem; }
.foot-bottom {
  max-width: var(--max-w);
  margin: 2.6rem auto 0;
  padding: 1.4rem var(--gutter) 0;
  border-top: 1px solid #3a352a;
  font-size: 0.82rem;
  color: #93897a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
