/* ==========================================================================
   Employment911 - modern responsive stylesheet
   Keeps the legacy navy / red-911 / gold identity, drops the table layout.
   ========================================================================== */

:root {
  --navy-900: #0b1730;
  --navy-800: #102347;
  --navy-700: #1a3266;
  --navy-600: #24458a;

  --red-600:  #d9261c;
  --red-700:  #b01d15;
  --gold-500: #f5a623;

  --link:      #1a4f9c;
  --link-hover:#d9261c;

  --ink-900: #14181f;
  --ink-700: #3a4453;
  --ink-500: #626d7d;
  --ink-300: #aab3c0;

  --bg:        #ffffff;
  --bg-soft:   #f4f6fa;
  --bg-sunken: #e8ecf4;
  --border:    #d8dee9;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11,23,48,.08);
  --shadow-md: 0 4px 16px rgba(11,23,48,.10);

  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--bg);
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-800); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin-bottom: .35em; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold-500); color: var(--navy-900);
  padding: .65rem 1rem; font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---- header ------------------------------------------------------------- */
.site-header { background: var(--navy-800); color: #fff; }
.site-header a { color: #fff; }

.header-bar {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: .75rem; flex-wrap: wrap;
}
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .brand-name {
  font-size: 1.6rem; font-weight: 800; letter-spacing: .01em; color: #fff; text-transform: uppercase;
}
.brand .brand-name b { color: var(--red-600); font-weight: 800; }
.brand .brand-stars { color: var(--red-600); font-size: .7rem; letter-spacing: .3em; }
.brand .brand-tag { font-size: .72rem; color: var(--ink-300); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.header-phone { font-weight: 700; white-space: nowrap; }
.header-phone span { color: var(--gold-500); }

/* ---- navigation --------------------------------------------------------- */
.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: var(--radius); padding: .5rem .8rem; font: inherit; font-size: .95rem; cursor: pointer;
}

.site-nav { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.08); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li { margin: 0; position: relative; }
.site-nav > .wrap > ul > li > a {
  display: block; padding: .85rem 1.05rem; font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: #fff;
}
.site-nav > .wrap > ul > li > a:hover,
.site-nav > .wrap > ul > li:focus-within > a { background: var(--navy-700); text-decoration: none; }
.site-nav li[aria-current="true"] > a { box-shadow: inset 0 -3px 0 var(--gold-500); }

/* dropdowns - hover on desktop, click-toggled (via .open) on touch */
.site-nav .submenu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 240px; background: #fff; border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-md); padding: .4rem 0;
  flex-direction: column;
}
.site-nav li:hover > .submenu,
.site-nav li:focus-within > .submenu,
.site-nav li.open > .submenu { display: flex; }
.site-nav .submenu a {
  display: block; padding: .5rem 1rem; color: var(--ink-900); font-size: .95rem; text-transform: none; letter-spacing: 0;
}
.site-nav .submenu a:hover { background: var(--bg-soft); color: var(--link-hover); text-decoration: none; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; padding: .7rem 1.25rem; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; text-align: center; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-primary  { background: var(--red-600); color: #fff; }
.btn-primary:hover  { background: var(--red-700); color: #fff; }
.btn-gold     { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover     { background: #dc9114; color: var(--navy-900); }
.btn-ghost    { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover    { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline  { background: #fff; color: var(--navy-800); border-color: var(--border); }
.btn-outline:hover  { border-color: var(--navy-600); color: var(--navy-800); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.75rem; font-size: 1.05rem; }

/* ---- hero --------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 60%, #060f22 100%);
  color: #fff; padding-block: clamp(2.5rem, 1rem + 6vw, 4.5rem);
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero p.lede { font-size: 1.15rem; color: #cdd6e4; max-width: 62ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---- layout ------------------------------------------------------------- */
.page { padding-block: 2.5rem 3.5rem; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2.5rem; align-items: start; }
.sidebar > * + * { margin-top: 1.5rem; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.35rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card-soft { background: var(--bg-soft); border-color: transparent; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* audience cards - the legacy JOB SEEKERS / EMPLOYERS / MEMBERS trio */
.audience { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.audience h3 { background: var(--navy-800); color: #fff; margin: 0; padding: .85rem 1.1rem; font-size: 1.05rem; letter-spacing: .02em; }
.audience ul { list-style: none; margin: 0; padding: 1rem 1.1rem; }
.audience li { margin-bottom: .55rem; padding-left: 1.1rem; position: relative; }
.audience li::before { content: "\203A"; position: absolute; left: 0; color: var(--red-600); font-weight: 700; }

/* ---- prose (migrated legacy content) ------------------------------------ */
.prose { max-width: 75ch; }
.prose img { border-radius: var(--radius); }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 1.5rem 0; padding: .35rem 0 .35rem 1.25rem;
  border-left: 4px solid var(--gold-500); color: var(--ink-700); font-style: italic;
}
/* Legacy copy is full of fixed-width tables and inline font tags - tame them. */
.prose table { width: 100% !important; max-width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; height: auto !important; }
.prose table td, .prose table th { padding: .5rem .6rem; vertical-align: top; width: auto !important; height: auto !important; }
.prose font { font-size: inherit !important; font-family: inherit !important; }
.prose [width] { max-width: 100%; }
.table-scroll { overflow-x: auto; }

/* ---- blog --------------------------------------------------------------- */
.post-meta { color: var(--ink-500); font-size: .9rem; margin-bottom: 1.25rem; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list > li { padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.post-list > li:first-child { padding-top: 0; }
.post-list h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.post-list p { margin-bottom: .5rem; color: var(--ink-700); }

.taglist { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.taglist a {
  display: inline-block; padding: .25rem .65rem; background: var(--bg-sunken);
  border-radius: 999px; font-size: .82rem; color: var(--navy-700);
}
.taglist a:hover { background: var(--navy-700); color: #fff; text-decoration: none; }

.pager { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 2rem; }
.pager a, .pager span {
  padding: .5rem .85rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem;
}
.pager .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.breadcrumbs { font-size: .85rem; color: var(--ink-500); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-300); }

/* ---- forms -------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-500); }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=search], select, textarea {
  width: 100%; padding: .65rem .75rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink-900);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-600); outline: 2px solid rgba(36,69,138,.25); outline-offset: 0; }
textarea { min-height: 150px; resize: vertical; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--red-600); }
.error-text { color: var(--red-700); font-size: .88rem; margin-top: .25rem; }

.alert { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.5rem; border: 1px solid; }
.alert-ok    { background: #eaf6ee; border-color: #b6dfc4; color: #1d5b32; }
.alert-error { background: #fdecea; border-color: #f5c2bd; color: #8c1f16; }

.hp { position: absolute; left: -9999px; }  /* honeypot */

/* ---- footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b9c3d4; margin-top: 4rem; padding-block: 2.5rem 1.5rem; font-size: .92rem; }
.site-footer a { color: #dbe3f0; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-legal {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #8e9ab0;
}

/* ---- utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lede { font-size: 1.1rem; color: var(--ink-700); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .layout-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .site-nav > .wrap > ul { display: none; flex-direction: column; }
  .site-nav.open > .wrap > ul { display: flex; }
  .site-nav > .wrap > ul > li > a { padding: .8rem .25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .submenu {
    position: static; display: flex; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 .5rem .9rem; min-width: 0;
  }
  .site-nav .submenu a { color: #c9d3e4; padding: .4rem .25rem; }
  .site-nav .submenu a:hover { background: transparent; color: #fff; }
  .header-actions .header-phone { width: 100%; order: 3; }
}

@media print {
  .site-nav, .site-footer, .sidebar, .hero-actions, .nav-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; }
}
