/* =============================================================
   ARK LABS — BASE STYLES
   Design tokens, reset, typography, layout primitives, nav,
   footer, and shared components used across every page.
   ============================================================= */

/* ---- Design tokens ---- */
:root {
  --navy: #0C2340;
  --navy-deep: #08182B;
  --cyan: #00AEE8;
  --cyan-dark: #0090C0;
  --cyan-light: #E6F7FD;
  --steel: #5A7184;
  --light-blue: #F0F7FF;
  --card-blue: #D9ECFD;
  --green: #0D8A6A;
  --green-light: #E8F5F0;
  --coral: #E8807A;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --white: #FFFFFF;
  --navy-alt: #1A2B3C;
  --bg-warm: #FAFBFD;
  --border: #E2EAF2;
  --border-light: #EDF2F7;
}

/* ---- Reset + base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---- Shared section primitives ---- */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76em; font-weight: 700; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px;
}
.section-tag .bar { width: 20px; height: 2px; background: var(--cyan); border-radius: 1px; }
.section-title {
  font-size: 2.4em; font-weight: 800; color: var(--navy);
  line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.5px;
}
.section-subtitle { font-size: 1.05em; color: var(--steel); line-height: 1.7; max-width: 620px; }

/* ---- Announcement bar ---- */
.announcement {
  background: var(--navy); color: white; text-align: center;
  padding: 10px 20px; font-size: 0.82em; font-weight: 500;
}
.announcement a { color: var(--cyan); text-decoration: none; font-weight: 700; margin-left: 6px; }
.announcement a:hover { text-decoration: underline; }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; line-height: 0;
}
.nav-logo-img {
  height: 22px; width: auto; display: block;
}
/* Legacy placeholder mark — kept for any archived pages still referencing it */
.nav-logo .ark-mark {
  width: 32px; height: 32px; background: var(--cyan);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links > a,
.nav-links > .nav-dropdown > a {
  color: var(--steel); text-decoration: none; font-size: 0.88em;
  font-weight: 500; transition: color 0.2s; display: inline-flex; align-items: center; gap: 4px;
}
.nav-links > a:hover,
.nav-links > .nav-dropdown > a:hover { color: var(--navy); }
.nav-links a.is-active { color: var(--cyan); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: ''; width: 6px; height: 6px; display: inline-block;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 2px;
}
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: white; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(12,35,64,0.08);
  padding: 10px; min-width: 220px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 0.88em; color: var(--navy); text-decoration: none; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--light-blue); color: var(--cyan-dark); }
.nav-dropdown-menu a .sub {
  display: block; font-size: 0.78em; color: var(--steel); font-weight: 400; margin-top: 2px;
}

.nav-cta-group { display: flex; gap: 10px; align-items: center; }

/* ---- Buttons ---- */
.btn-ghost {
  padding: 8px 18px; border-radius: 8px; font-size: 0.88em; font-weight: 600;
  color: var(--navy); background: transparent; border: none;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-ghost:hover { background: var(--light-blue); }

.btn-outline {
  padding: 8px 18px; border-radius: 8px; font-size: 0.88em; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--navy);
  background: transparent; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-primary {
  padding: 9px 22px; border-radius: 8px; font-size: 0.88em; font-weight: 600;
  background: var(--cyan); color: white; border: none;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-primary:hover { background: var(--cyan-dark); }

.btn-primary-lg {
  padding: 14px 32px; border-radius: 10px; font-size: 1em; font-weight: 700;
  background: var(--cyan); color: white; border: none;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-lg:hover {
  background: var(--cyan-dark); transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,174,232,0.25);
}

.btn-outline-lg {
  padding: 14px 32px; border-radius: 10px; font-size: 1em; font-weight: 600;
  border: 2px solid var(--border); color: var(--navy);
  background: white; cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-lg:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---- Footer ---- */
.footer {
  position: relative;
  background: var(--bg-warm); border-top: 1px solid var(--border); padding: 56px 60px 36px;
}
/* Coral closing bar — brand signature motif (deck closing-slide rule) */
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 3px; background: var(--coral);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; margin-bottom: 44px; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand .footer-logo {
  display: inline-block; margin-bottom: 14px; line-height: 0;
  text-decoration: none;
}
.footer-brand .footer-logo-img {
  height: 20px; width: auto; display: block;
}
/* Legacy placeholder mark — kept for any archived pages still referencing it */
.footer-brand .logo-text {
  font-size: 1.2em; font-weight: 800; color: var(--navy); letter-spacing: 1.5px;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.footer-brand .logo-text .ark-mark {
  width: 26px; height: 26px; background: var(--cyan); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white;
}
.footer-brand p { font-size: 0.82em; color: var(--steel); line-height: 1.6; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 0.75em; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 0.85em; color: var(--steel);
  text-decoration: none; margin-bottom: 9px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; font-size: 0.78em; color: #A0AEC0;
  gap: 16px; flex-wrap: wrap;
}

/* ---- Simple page hero (for placeholder + content pages) ---- */
.page-hero {
  position: relative;
  padding: 80px 60px; background: var(--light-blue);
}
/* Coral cover bar — brand signature motif (deck cover-slide rule) */
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--coral);
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-size: 2.6em; font-weight: 800; line-height: 1.1; letter-spacing: -0.8px; color: var(--navy); margin-bottom: 12px; }
.page-hero p { font-size: 1.05em; color: var(--steel); line-height: 1.6; max-width: 720px; }

.page-body { padding: 80px 60px; background: var(--white); }
.page-body-inner { max-width: 1100px; margin: 0 auto; }

.placeholder-note {
  background: var(--amber-light); border: 1px dashed var(--amber);
  border-radius: 10px; padding: 16px 20px; color: #7A4A07;
  font-size: 0.9em; line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .page-hero, .page-body { padding-left: 24px; padding-right: 24px; }
  .footer { padding-left: 24px; padding-right: 24px; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 32px; }
}
