/* ============================================================
   Dataloop Technologies — Site Stylesheet
   Palette: deep navy + muted warm gold, warm-tinted neutrals
   Type:    Spectral (serif display) + Plus Jakarta Sans (body)
   ============================================================ */

:root {
  /* Brand */
  --navy:        #0E2A47;
  --navy-700:    #163a5e;
  --navy-600:    #1f4d78;
  --navy-900:    #08203a;
  --gold:        #C2902F;
  --gold-600:    #a9791f;
  --gold-tint:   #f3ead6;

  /* Neutrals (warm) */
  --bg:          #FBFAF6;
  --surface:     #FFFFFF;
  --surface-2:   #F4F2EC;
  --ink:         #15202E;
  --muted:       #586172;
  --muted-2:     #7a8294;
  --line:        #E5E0D5;
  --line-strong: #d6cfc0;

  /* System */
  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15,32,46,.05), 0 1px 1px rgba(15,32,46,.04);
  --shadow: 0 18px 40px -24px rgba(14,42,71,.45), 0 4px 12px -8px rgba(14,42,71,.2);
  --ease: cubic-bezier(.4,.16,.18,1);

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface-2); }
.section--navy { background: var(--navy); color: #e9eef4; }
.section--navy .eyebrow { color: var(--gold); }

.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Type ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: -0.01em; }
.section--navy h1,.section--navy h2,.section--navy h3 { color: #fff; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }
.section--navy p { color: #c2cedb; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }

.section-head { max-width: 64ch; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: .98rem; padding: 14px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: all .2s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #2a1f06; }
.btn-gold:hover { background: var(--gold-600); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--surface); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color:#fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color:#fff; background: rgba(255,255,255,.08); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); }
.topbar { background: var(--navy-900); color: #aebccc; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar-contact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-contact a:hover { color: #fff; }
.topbar-contact .sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.topbar-meta { color: rgba(255,255,255,.45); letter-spacing: .04em; }

.nav-wrap { border-bottom: 1px solid var(--line); }
.nav-wrap.scrolled { box-shadow: 0 6px 24px -16px rgba(14,42,71,.4); }
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink); padding: 8px 14px; border-radius: var(--radius-sm);
  position: relative; transition: color .18s var(--ease);
}
.main-nav a:hover { color: var(--navy); background: var(--surface-2); }
.main-nav a.is-active { color: var(--navy); font-weight: 600; }
.main-nav a.is-active::after {
  content:""; position:absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content:""; display:block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: .2s var(--ease);
}
.nav-toggle span::before { position:absolute; top:-6px; }
.nav-toggle span::after { position:absolute; top:6px; }

/* Logo */
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo svg { display:block; height: 42px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::after { /* subtle loop motif */
  content:""; position:absolute; right:-180px; top:-120px; width: 620px; height: 620px;
  border: 60px solid rgba(255,255,255,.04); border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 92px 0 100px; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: #c6d2df; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--gold); line-height: 1; }
.hero-stats .lbl { font-size: .85rem; color: #aebccc; margin-top: 6px; }

/* ---------- Placeholder media ---------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background-color: #e9e4d7;
  background-image: repeating-linear-gradient(135deg, rgba(14,42,71,.06) 0 14px, rgba(14,42,71,.02) 14px 28px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; min-height: 240px; color: var(--muted-2);
}
.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .03em;
  background: rgba(255,255,255,.78); padding: 7px 12px; border-radius: 4px; color: #6b7385;
}
.ph--dark { background-color: #102f4f; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, rgba(255,255,255,.01) 14px 28px); border-color: rgba(255,255,255,.1); }
.ph--tall { min-height: 460px; }
.ph--hero { min-height: 480px; box-shadow: var(--shadow); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: all .22s var(--ease); height: 100%; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.card .idx { font-family: var(--font-display); font-size: 1rem; color: var(--gold-600); font-weight: 600; letter-spacing: .04em; }
.card h3 { margin: 16px 0 10px; }
.card p { font-size: .98rem; }
.card .more { display:inline-flex; gap:8px; margin-top: 18px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.card .more .arr { color: var(--gold); transition: transform .2s var(--ease); }
.card:hover .more .arr { transform: translateX(4px); }
.card-top { display:flex; align-items:center; gap: 14px; }
.chip-num {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; flex-shrink:0;
}
.card--gold .chip-num { background: var(--gold); color: #2a1f06; }

/* simple geometric marker */
.marker { width: 12px; height: 12px; flex-shrink:0; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }

/* ---------- Feature list ---------- */
.flist { display: grid; gap: 18px; }
.flist li { display: flex; gap: 16px; align-items: flex-start; }
.flist .marker { margin-top: 8px; }
.flist b { color: var(--ink); font-family: var(--font-body); }
.flist span { color: var(--muted); font-size: .98rem; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-band .stat { background: var(--surface); padding: 36px 28px; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--navy); line-height: 1; }
.stat .num em { color: var(--gold); font-style: normal; }
.stat .lbl { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* ---------- Split (employers / seekers) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split > div { padding: 52px 48px; }
.split .panel-a { background: var(--navy); color: #fff; }
.split .panel-a h3, .split .panel-a p { color: #fff; }
.split .panel-a p { color: #c2cedb; }
.split .panel-b { background: var(--surface); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step .n { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); font-weight: 600; line-height: 1; }
.step h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.step p { font-size: .95rem; }
.step::before { content:""; position:absolute; top: 6px; left: 0; width: 40px; height: 3px; background: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color:#fff; border-radius: var(--radius); padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#c6d2df; max-width: 54ch; margin: 16px auto 30px; }
.cta-band .hero-cta { justify-content: center; }
.cta-band::before { content:""; position:absolute; left:-120px; bottom:-160px; width: 380px; height: 380px; border:46px solid rgba(255,255,255,.045); border-radius:50%; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color:#fff; padding: 74px 0 78px; position: relative; overflow:hidden; }
.page-hero::after { content:""; position:absolute; right:-140px; top:-100px; width: 480px; height:480px; border:48px solid rgba(255,255,255,.04); border-radius:50%; }
.page-hero h1 { color:#fff; max-width: 18ch; }
.page-hero .lead { color:#c6d2df; margin-top: 18px; }
.breadcrumb { font-size: .85rem; color:#9fb0c2; margin-bottom: 20px; display:flex; gap:8px; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb span { color: var(--gold); }

/* ---------- Accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { display:flex; justify-content: space-between; gap: 20px; align-items:center; width:100%; text-align:left; background:none; border:none; padding: 24px 0; font-family: var(--font-display); font-size: 1.18rem; color: var(--navy); font-weight: 600; }
.acc-q .pm { width: 26px; height: 26px; flex-shrink:0; position: relative; }
.acc-q .pm::before,.acc-q .pm::after { content:""; position:absolute; background: var(--gold); transition:.2s var(--ease); }
.acc-q .pm::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.acc-q .pm::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.acc-item.open .pm::after { transform: scaleY(0); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc-a p { padding-bottom: 24px; max-width: 70ch; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display:block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--bg); transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(31,77,120,.12); background:#fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted-2); margin-top: 6px; }
.form-success { display:none; background: #ecf6ee; border:1px solid #c6e3cd; color:#1f6b38; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size:.95rem; }

/* ---------- Contact info rows ---------- */
.contact-rows { display: grid; gap: 26px; }
.contact-row { display:flex; gap: 18px; }
.contact-row .ico { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--gold-tint); border:1px solid #e6d9bb; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.contact-row .ico b { font-family: var(--font-display); color: var(--gold-600); font-size: 1.1rem; }
.contact-row .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); font-weight: 700; margin-bottom: 4px; }
.contact-row .v { color: var(--ink); font-weight: 500; }
.contact-row .v a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Logo strip ---------- */
.logos { display:flex; flex-wrap:wrap; gap: 16px 40px; align-items:center; justify-content:center; }
.logos .lg { height: 30px; min-width: 120px; border-radius: 4px; background: var(--surface-2); border:1px dashed var(--line-strong); display:flex; align-items:center; justify-content:center; font-family: ui-monospace, monospace; font-size:.72rem; color: var(--muted-2); padding: 0 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebccc; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { color: #9fb0c2; font-size: .95rem; margin-top: 18px; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-contact a { color:#aebccc; font-size: .95rem; }
.footer-col a:hover { color:#fff; }
.footer-contact { display:grid; gap: 12px; font-size: .94rem; }
.footer-contact .name { color:#fff; font-weight:600; }
.footer-contact a:hover { color:#fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 28px; display:flex; justify-content: space-between; gap: 16px; flex-wrap:wrap; font-size: .85rem; color: rgba(174,188,204,.7); }
.footer-bottom a:hover { color:#fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } html { scroll-behavior:auto; } }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.center{text-align:center}
.tag { display:inline-block; font-size:.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:5px 11px; border-radius:100px; background: var(--gold-tint); color: var(--gold-600); border:1px solid #e6d9bb; }
.tag--navy { background: rgba(31,77,120,.1); color: var(--navy-600); border-color: rgba(31,77,120,.2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 64px 0 72px; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .stat-band, .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar-meta { display:none; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 90px 22px 30px; margin: 0;
    transform: translateX(100%); transition: transform .28s var(--ease); box-shadow: -20px 0 60px -30px rgba(14,42,71,.5); z-index: 90;
  }
  body.nav-open .main-nav { transform: none; }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { top:0; transform: rotate(45deg); }
  body.nav-open .nav-toggle span::after { top:0; transform: rotate(-45deg); }
  .main-nav a { padding: 13px 16px; font-size: 1.02rem; border-radius: var(--radius-sm); }
  .main-nav a.is-active::after { display:none; }
  .main-nav a.is-active { background: var(--surface-2); }
  .nav-toggle { display:flex; order: 3; }
  .nav-cta { display:none; }
  .nav-inner { gap: 16px; }
  .main-nav::before { content:"Menu"; position:absolute; top: 28px; left: 24px; font-family: var(--font-display); font-size:1.2rem; color: var(--navy); font-weight:600; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .cols-2, .cols-3, .cols-4, .footer-grid, .field-row, .stat-band, .steps { grid-template-columns: 1fr; }
  .split > div { padding: 38px 28px; }
  .cta-band { padding: 44px 26px; }
  .form-card { padding: 26px; }
  .topbar-contact { font-size: .76rem; gap: 10px; }
  .topbar-contact a:nth-child(3), .topbar-contact .sep:nth-of-type(2) { display:none; }
  .hero-stats { gap: 24px; }
}
