/* ===================================================================
   Yorkstream Communications LLC, shared stylesheet
   Palette pulled from the brand mark: mint (#5EE0A0) into sky (#4FB3E8),
   deep teal-charcoal ink, warm off-white paper.
   =================================================================== */

:root {
  --ink: #142228;
  --ink-soft: #24373d;
  --paper: #fcfdfb;
  --paper-alt: #edf6f0;
  --slate: #57666c;
  --slate-light: #8a9aa0;
  --line: rgba(20, 34, 40, 0.14);
  --line-soft: rgba(20, 34, 40, 0.08);

  --sky: #1c7fc4;
  --sky-bright: #4fb3e8;
  --mint: #159463;
  --mint-bright: #5ee0a0;
  --gradient: linear-gradient(100deg, var(--mint-bright), var(--sky-bright));

  --radius-sm: 6px;
  --radius: 10px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 500;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.1; font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.1rem; line-height: 1.35; }

p { margin: 0 0 1em; color: var(--slate); }

a { color: inherit; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1em;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  display: inline-block;
}

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

/* -------------------- Nav -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 253, 251, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--sky-bright);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); }

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

.btn-ghost-invert { background: transparent; color: var(--paper); border-color: rgba(252, 253, 251, 0.35); }
.btn-ghost-invert:hover { border-color: var(--paper); }

.btn-accent { background: var(--sky); border-color: var(--sky); color: #fff; }
.btn-accent:hover { background: #166aa6; border-color: #166aa6; }

.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sky-bright);
  outline-offset: 2px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* -------------------- Tags / chips -------------------- */

.tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tag-doc { background: var(--paper-alt); color: var(--ink-soft); border-color: var(--line); }
.tag-sky { background: rgba(28, 127, 196, 0.08); color: var(--sky); border-color: rgba(28, 127, 196, 0.25); }
.tag-mint { background: rgba(21, 148, 99, 0.08); color: var(--mint); border-color: rgba(21, 148, 99, 0.25); }

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

.hero {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}

.hero .wrap {
  padding-top: 84px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 { color: var(--paper); max-width: 13ch; }
.hero .eyebrow { color: var(--sky-bright); }
.hero p.lead { color: rgba(252, 253, 251, 0.68); font-size: 1.05rem; max-width: 46ch; }

.hero-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(79, 179, 232, 0.22), rgba(94, 224, 160, 0.08) 55%, transparent 72%);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

.hero-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-icon {
  width: 44%;
  max-width: 220px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.ping {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--sky-bright);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ping { animation: ping 4.5s ease-out infinite; }
  .ping-2 { animation-delay: 1.5s; border-color: var(--mint-bright); }
  .ping-3 { animation-delay: 3s; }
}

@keyframes ping {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* -------------------- Section dividers -------------------- */

.divider { height: 1px; width: 100%; background: var(--line); display: block; }

/* -------------------- Sections / layout -------------------- */

section { padding: 72px 0; }
section.tight { padding: 46px 0; }

.section-head { max-width: 62ch; margin-bottom: 40px; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card .tag { margin-bottom: 16px; }

.band { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h2 { color: var(--paper); }
.band-ink p { color: rgba(252, 253, 251, 0.68); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.trust-list { display: flex; flex-direction: column; }
.trust-item { border-top: 1px solid var(--line); padding: 20px 0; }
.trust-item:last-child { border-bottom: 1px solid var(--line); }
.trust-item h3 { margin-bottom: 6px; }
.trust-item p { margin-bottom: 0; }

/* -------------------- Filing rows (regulatory) -------------------- */

.filing {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.filing:first-child { border-top: 1px solid var(--line); }

.filing h3 { margin-bottom: 4px; }
.filing p { margin: 0; font-size: 0.93rem; }

/* -------------------- Contact page -------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 8px; }

.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.contact-card .eyebrow { margin-bottom: 14px; }

.contact-card a.value {
  display: inline-block;
  margin-top: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.contact-card a.value:hover { border-color: var(--sky); }

.office-block { font-family: "IBM Plex Mono", monospace; font-size: 0.95rem; line-height: 1.75; color: var(--ink-soft); }

.map-frame { width: 100%; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); }

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

.site-footer { background: var(--ink); color: rgba(252, 253, 251, 0.72); padding: 52px 0 26px; }

.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid rgba(252, 253, 251, 0.14); margin-bottom: 32px; }

.footer-logo { height: 30px; width: auto; }

.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(252, 253, 251, 0.14); }

.footer-grid h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-bright);
  margin: 0 0 16px;
}

.footer-grid p, .footer-grid a { color: rgba(252, 253, 251, 0.68); text-decoration: none; font-size: 0.92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(252, 253, 251, 0.48);
}

.footer-bottom a { color: rgba(252, 253, 251, 0.48); }

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

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-mark { order: -1; max-width: 220px; margin: 0 auto 8px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .filing { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    display: none;
    padding: 8px 20px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
