/* ===========================================================
   EclipseHawk Interactive — site stylesheet
   Palette: dark blue + dark orange accents on a mostly-white page
   =========================================================== */

:root {
  --navy-900: #0a1330;
  --navy-800: #10193d;
  --navy-700: #182658;
  --orange-600: #c1440e;
  --orange-700: #9c380b;
  --orange-100: #fdece1;
  --white: #ffffff;
  --off-white: #f5f6fa;
  --ink: #12142b;
  --muted: #5b6178;
  --border: #e4e6f0;
  --shadow: 0 10px 30px rgba(10, 19, 48, 0.08);
  --radius: 12px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

h1, h2, h3, h4 {
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--navy-900);
}

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

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: .6em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--orange-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-700); }

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--white); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-ghost-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
}
.brand svg { flex-shrink: 0; }

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

.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .92rem;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.08);
  color: var(--white);
}

.nav-links a.active { border-bottom: 2px solid var(--orange-600); border-radius: 6px 6px 0 0; }

.nav-cta {
  background: var(--orange-600) !important;
  color: var(--white) !important;
}
.nav-cta:hover { background: var(--orange-700) !important; }

/* ---------- jobs card (header) ---------- */
.nav-item-jobs { position: relative; }

.nav-jobs-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: inherit;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .92rem;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav-jobs-toggle:hover,
.nav-jobs-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.nav-jobs-toggle .caret {
  font-size: .65rem;
  transition: transform .15s ease;
}
.nav-jobs-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.jobs-badge {
  background: var(--orange-600);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
}

.jobs-card {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(10,19,48,.22);
  padding: 18px;
  z-index: 200;
}
.jobs-card[hidden] { display: none; }
.jobs-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.jobs-card h4 {
  margin: 0 0 2px;
  font-size: .95rem;
}
.jobs-card .jobs-sub {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.jobs-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
}
.jobs-card li a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.jobs-card li a:hover { background: var(--orange-100); color: var(--orange-700); }
.jobs-card .jobs-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}
.jobs-card .jobs-footer a { color: var(--orange-600); font-weight: 700; }

@media (max-width: 860px) {
  .nav-jobs-toggle { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .jobs-card {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    border: none;
    background: var(--navy-700);
    color: var(--white);
    margin: 4px 8px 8px;
  }
  .jobs-card::before { display: none; }
  .jobs-card h4 { color: var(--white); }
  .jobs-card li a { color: rgba(255,255,255,.85); }
  .jobs-card li a:hover { background: rgba(255,255,255,.1); color: var(--white); }
  .jobs-card .jobs-footer { border-top-color: rgba(255,255,255,.15); color: rgba(255,255,255,.6); }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-800);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--white);
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--orange-100), transparent 70%);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 16ch;
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 56ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--off-white); }
.section-dark {
  background: var(--navy-900);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.72); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; }

/* ---------- grids / cards ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,19,48,.14); }

.card-media {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  position: relative;
}
.card-media .status {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange-600);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.1rem; }
.card-body p { margin: 0; font-size: .92rem; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange-100);
  color: var(--orange-700);
}

.card-links { display: flex; gap: 14px; margin-top: 6px; font-size: .85rem; font-weight: 700; }
.card-links a { color: var(--navy-900); }
.card-links a:hover { color: var(--orange-600); }

/* blog list */
.post-row {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.post-row:first-child { padding-top: 0; }
.post-date {
  min-width: 96px;
  color: var(--orange-600);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post-row h3 { margin-bottom: 6px; }
.post-row h3 a:hover { color: var(--orange-600); }
.post-excerpt { margin: 0; }

/* single post */
.post-header { max-width: 72ch; }
.post-header .eyebrow + h1 { margin-bottom: .3em; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 2em; }
.post-content { max-width: 72ch; }
.post-content p { color: var(--ink); }
.post-content h2 { margin-top: 1.6em; }
.post-content ul { color: var(--ink); }

/* about / values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.value-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--orange-100);
  color: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--orange-600), var(--navy-800));
}
.team-card h4 { margin-bottom: 2px; }
.team-role { color: var(--orange-600); font-size: .82rem; font-weight: 700; }

/* github feed */
.gh-list { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .gh-list { grid-template-columns: 1fr; } }
.gh-item {
  background: var(--navy-800);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--navy-700);
}
.gh-item h4 { color: var(--white); margin-bottom: 4px; }
.gh-item p { color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: 8px; }
.gh-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--orange-600); font-weight: 700; }
.gh-empty { color: rgba(255,255,255,.6); font-size: .92rem; }

/* filters */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--orange-600);
  color: var(--orange-600);
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: .95rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--orange-600);
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.form-status { font-size: .9rem; font-weight: 700; margin-top: 12px; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: var(--orange-700); }

.info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 { color: var(--white); }
.info-card p { color: rgba(255,255,255,.72); }
.info-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-size: .92rem; }
.info-row a { color: var(--orange-600); font-weight: 700; }

/* footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--orange-600); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { border-color: var(--orange-600); color: var(--orange-600); }

/* misc */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 60ch; margin: 0; }

.back-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--orange-600); margin-bottom: 24px; }

/* ---------- floating discord card ---------- */
.discord-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--orange-600);
  color: var(--white);
  font-weight: 700;
  font-size: .88rem;
  padding: 14px 18px 14px 16px;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 10px 30px rgba(10,19,48,.28);
  transition: background .15s ease, padding-right .15s ease, transform .15s ease;
}
.discord-rail:hover {
  background: var(--orange-700);
  padding-right: 24px;
}
.discord-rail svg { flex-shrink: 0; }

@media (max-width: 640px) {
  .discord-rail span { display: none; }
  .discord-rail { padding: 12px; border-radius: 10px 0 0 10px; }
}
