/* ── Variables ────────────────────────────────────────────── */
:root {
  --navy:       #0f1d35;
  --navy-mid:   #1B2A4A;
  --navy-light: #2C5F8A;
  --gold:       #C8A951;
  --gold-lt:    #dfc37a;
  --bg:         #EEF1F7;
  --surface:    #FFFFFF;
  --border:     #DDE3EE;
  --text:       #111827;
  --muted:      #64748b;
  --shadow-sm:  0 1px 4px rgba(15,29,53,.07);
  --shadow-md:  0 4px 20px rgba(15,29,53,.13);

  --design:     #6D28D9;
  --research:   #0D9488;
  --engineering:#1D4ED8;
  --logistics:  #B45309;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Header ───────────────────────────────────────────────── */
header {
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.logo .d, .logo .e { color: var(--gold); }
.logo .r, .logo .l { color: var(--gold-lt); }
.logo-sub {
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-left: .6rem;
}

/* Disciplines nav */
.disciplines {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.disciplines b { color: var(--gold); font-weight: 700; }
.sep { color: rgba(255,255,255,.2); }

.nav-cta {
  display: inline-block;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 55%, #1a3c70 100%);
  color: #fff;
  padding: 5.5rem 2rem 4.5rem;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .85rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 1.4rem;
  line-height: 1.15;
}
.mission {
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(255,255,255,.82);
  max-width: 740px;
  margin: 0 auto 3rem;
}
.mission strong { color: var(--gold-lt); font-weight: 600; }

.hero-cta {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 2.75rem;
  transition: background .18s, transform .18s;
}
.hero-cta:hover { background: var(--gold-lt); transform: translateY(-1px); }

/* Stats */
.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.stat-n {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-l {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.12);
}

/* ── Projects Section ─────────────────────────────────────── */
.projects-section { padding: 3rem 2rem 5rem; }
.container { max-width: 1320px; margin: 0 auto; }

/* Section heading */
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.eyebrow-dark { color: var(--navy-light); }
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: .75rem;
}
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.section-sub a { color: var(--navy-light); font-weight: 600; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Badges */
.badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 999px;
}
.badge-design      { background: #ede9fe; color: var(--design); }
.badge-research    { background: #ccfbf1; color: #0f766e; }
.badge-engineering { background: #dbeafe; color: #1e40af; }
.badge-logistics   { background: #fef3c7; color: var(--logistics); }

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.card-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Highlights list */
.card-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .85rem;
  color: var(--text);
}
.card-highlights li { padding-left: 1.1rem; position: relative; }
.card-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Sector tags */
.card-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: .5rem;
}
.sector-tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: .2rem .6rem;
  border-radius: 999px;
}

/* ── Contact / Demo Request Section ──────────────────────── */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 2rem;
}
.contact-container { max-width: 760px; }

.flash {
  padding: .85rem 1.1rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  text-align: center;
}
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: .65rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .18s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-light);
}
.form-field textarea { resize: vertical; }

.submit-btn {
  align-self: flex-start;
  padding: .8rem 1.75rem;
  border-radius: 8px;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
}
.submit-btn:hover { background: var(--navy-mid); }

/* ── Admin / Login ────────────────────────────────────────── */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.admin-nav-link {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .18s;
}
.admin-nav-link:hover,
.admin-nav-link.active { color: var(--gold); }
.admin-user {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.role-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(200,169,81,.18);
  color: var(--gold-lt);
  padding: .1rem .5rem;
  border-radius: 999px;
}

.admin-main { padding: 2.5rem 2rem 4rem; }
.admin-head { margin-bottom: 1.75rem; }
.admin-head h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }
.admin-head .section-sub { text-align: left; margin: 0; max-width: none; }

.empty-state { color: var(--muted); font-style: italic; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th, .admin-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--bg);
}
.admin-table tr:last-child td { border-bottom: none; }
.msg-cell { max-width: 320px; color: var(--muted); }

.status-select {
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .6rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg);
}
.status-new { color: #b45309; border-color: #fcd9a0; }
.status-contacted { color: #1e40af; border-color: #bfdbfe; }
.status-closed { color: #166534; border-color: #bbf7d0; }

.link-btn {
  background: none;
  border: none;
  color: #991b1b;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  margin-top: 2rem;
  max-width: 560px;
  box-shadow: var(--shadow-sm);
}
.admin-card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.1rem; }
.form-field-narrow { max-width: 280px; }

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 55%, #1a3c70 100%);
  padding: 2rem;
}
.login-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}
.login-logo { justify-content: center; margin-bottom: .5rem; }
.login-sub { text-align: center; margin-bottom: 1.5rem; font-size: .88rem; }
.login-submit { width: 100%; text-align: center; align-self: stretch; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 1.5rem 2rem;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .disciplines { display: none; }
  .nav-cta { font-size: .75rem; padding: .4rem .85rem; }
  .stat-divider { display: none; }
  .stats-row { gap: 1.5rem; }
  .grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-nav { gap: .6rem; flex-wrap: wrap; }
  .admin-user { display: none; }
}

