/* ==========================================================================
   Lemar Holding Company (LHC) — site stylesheet
   Palette "C": Midnight Navy / Steel / Slate / Signal Orange / Fog
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License — see /fonts) ---------- */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #08121D;
  --navy: #0D1B2A;        /* Midnight Navy — primary dark */
  --navy-700: #1B2D42;
  --steel: #415A77;       /* Steel — links, secondary text on light */
  --slate: #778DA9;       /* Slate — decorative / text on dark only */
  --orange: #E07A2E;      /* Signal Orange — CTAs & accents only */
  --orange-600: #AD5116;
  --fog: #E0E1DD;         /* Fog grey */
  --paper: #F5F6F4;
  --white: #FFFFFF;
  --ink: #1A2230;         /* body text */
  --muted: #4E5B6B;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

  --maxw: 1180px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(13,27,42,.06), 0 8px 24px rgba(13,27,42,.08);
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--orange); color: var(--navy); padding: 8px 14px; font-weight: 700; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--fog); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: .75rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--slate); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #C3CAD3; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-decoration: none; padding: .8rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #EC8A40; color: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Utility bar (company IDs + employee M365 access) ---------- */
.utility { background: var(--navy-900); color: #AEB9C7; font-size: .85rem; }
.utility .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.utility__ids { display: flex; gap: 1.2rem; flex-wrap: wrap; letter-spacing: .03em; }
.utility__ids strong { color: var(--white); font-weight: 600; }
.utility__employee { display: flex; align-items: center; gap: .9rem; }
.utility__employee span { color: var(--slate); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; }
.utility__employee a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.utility__employee a:hover { color: var(--orange); }
.utility__employee svg { width: 14px; height: 14px; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--white); border-bottom: 1px solid #E3E6EA; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--navy); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .03em; color: var(--navy); }
.brand__sub { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .32em; color: var(--steel); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav__list { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav__list a { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; color: var(--navy); text-decoration: none; padding: .4rem 0; border-bottom: 3px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav .btn { padding: .6rem 1.1rem; font-size: .98rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }
.nav__employee { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.4rem; border-bottom: 1px solid #E3E6EA; box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: .85rem 0; border-bottom: 1px solid #EEF0F2; }
  .nav__list a[aria-current="page"] { color: var(--orange-600); border-bottom-color: #EEF0F2; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .nav__employee { display: flex; gap: 1rem; margin-top: 1rem; font-size: .95rem; }
  .utility__employee { display: none; }
}
@media (max-width: 560px) { .utility__ids span:nth-child(n+3) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy) center/cover no-repeat; min-height: min(78vh, 720px); display: flex; align-items: center; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,18,29,.94) 0%, rgba(13,27,42,.82) 42%, rgba(13,27,42,.35) 75%, rgba(13,27,42,.15) 100%); }
.hero .container { padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: var(--white); max-width: 19ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 1.22rem; max-width: 52ch; color: #D5DBE3; }
@media (max-width: 700px) { .hero::after { background: linear-gradient(180deg, rgba(8,18,29,.72), rgba(13,27,42,.92)); } }

.page-hero { position: relative; color: var(--white); background: var(--navy); padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px); isolation: isolate; overflow: hidden; }
.page-hero picture, .page-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,18,29,.95), rgba(13,27,42,.7) 60%, rgba(13,27,42,.45)); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #D5DBE3; font-size: 1.2rem; max-width: 60ch; }

/* ---------- Credential strip ---------- */
.creds { background: var(--navy-700); color: var(--fog); }
.creds__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 1.4rem 1.2rem; border-left: 1px solid rgba(255,255,255,.08); }
.cred:first-child { border-left: 0; }
.cred__label { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.cred__value { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--white); letter-spacing: .04em; }
@media (max-width: 800px) { .creds__grid { grid-template-columns: repeat(2, 1fr); } .cred:nth-child(3) { border-left: 0; } .cred { border-top: 1px solid rgba(255,255,255,.08); } }

/* ---------- Service cards ---------- */
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid #E3E6EA; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__media { aspect-ratio: 16/8; overflow: hidden; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-family: var(--font-head); font-weight: 700; color: var(--orange-600); letter-spacing: .12em; font-size: .85rem; text-transform: uppercase; }
.card ul { margin: .4rem 0 1.4rem; padding: 0; list-style: none; }
.card li { padding: .35rem 0 .35rem 1.4rem; position: relative; border-bottom: 1px dashed #E3E6EA; }
.card li::before { content: ""; position: absolute; left: 0; top: .9em; width: 8px; height: 8px; background: var(--orange); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 1.6rem; border-top: 3px solid var(--orange); background: rgba(255,255,255,.03); }
.section--navy .feature { background: rgba(255,255,255,.04); }
.feature svg { width: 34px; height: 34px; color: var(--slate); margin-bottom: .9rem; }
.feature h3 { font-size: 1.2rem; }
.feature p { font-size: .98rem; margin: 0; color: #C3CAD3; }
.section:not(.section--navy) .feature p { color: var(--muted); }
.section:not(.section--navy) .feature { background: var(--white); box-shadow: var(--shadow); }
.section:not(.section--navy) .feature svg { color: var(--steel); }

/* ---------- Two-column blocks ---------- */
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.two-col--rev > :first-child { order: 2; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .two-col--rev > :first-child { order: 0; } }
.photo-frame { position: relative; }
.photo-frame img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-frame::before { content: ""; position: absolute; left: -14px; bottom: -14px; width: 42%; height: 42%; border-left: 4px solid var(--orange); border-bottom: 4px solid var(--orange); z-index: -1; }

/* ---------- Capability lists ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-grid li { border-left: 3px solid var(--fog); padding: .2rem 0 .2rem 1rem; }
.cap-grid li strong { display: block; font-family: var(--font-head); font-size: 1.12rem; color: var(--navy); }
.cap-grid li span { color: var(--muted); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1rem 0 0; }
.chips li { border: 1px solid var(--slate); color: var(--fog); padding: .35rem .8rem; border-radius: 999px; font-size: .92rem; }
.section:not(.section--navy) .chips li { color: var(--navy); border-color: #C9D0D9; background: var(--white); }

/* ---------- Data table (company data) ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: .9rem 1.2rem; border-bottom: 1px solid #E8EBEE; vertical-align: top; }
.data-table th { width: 38%; font-family: var(--font-head); font-weight: 600; color: var(--steel); letter-spacing: .06em; text-transform: uppercase; font-size: .88rem; background: #FAFBFB; }
.data-table td { font-weight: 600; color: var(--navy); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: var(--white); background: var(--navy); isolation: isolate; overflow: hidden; }
.cta-band picture, .cta-band picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(8,18,29,.8); z-index: -1; }
.cta-band .container { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 88px); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #D5DBE3; max-width: 56ch; }

/* ---------- Leadership ---------- */
.leader { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } }
.leader__portrait { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-bottom: 4px solid var(--orange); background: var(--navy); aspect-ratio: 640/786; }
.leader__portrait img { width: 100%; height: 100%; object-fit: cover; }
.leader__title { font-family: var(--font-head); color: var(--orange-600); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; margin-top: -.3rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #E8EBEE; }
.contact-list svg { width: 22px; height: 22px; color: var(--orange-600); flex: none; margin-top: 4px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--navy); letter-spacing: .04em; }
.form { background: var(--white); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--orange); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #C4CBD4; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(224,122,46,.35); border-color: var(--orange-600); }
.field textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: .88rem; color: var(--muted); margin-top: .8rem; }
.form__status { margin-top: 1rem; font-weight: 600; color: var(--steel); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #AEB9C7; font-size: .95rem; }
.site-footer a { color: #D5DBE3; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 56px 0 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__sub { color: var(--slate); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 28px; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #8795A6; }
.footer-legal p { margin: 0; max-width: 80ch; }

/* ---------- Credits page ---------- */
.credits { list-style: none; padding: 0; }
.credits li { padding: 1rem 0; border-bottom: 1px solid #E8EBEE; }
.credits small { color: var(--muted); }

/* ---------- Space theme ---------- */
.section--navy, .creds, .site-footer, .utility { background-image: url("../images/space/stars.svg"); background-repeat: repeat; background-size: 400px 400px; }
.section--navy { position: relative; overflow: hidden; isolation: isolate; }
.section--navy::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -180px; background: url("../images/space/orbits.svg") no-repeat center/contain; opacity: .9; pointer-events: none; }
@media (max-width: 700px) { .section--navy::before { width: 420px; height: 420px; right: -160px; top: -120px; opacity: .6; } }
.hero__orbit { position: absolute; right: 0; top: 0; width: min(58vw, 820px); height: 100%; background: url("../images/space/trajectory.svg") no-repeat right 5% top 12% / contain; z-index: 0; pointer-events: none; opacity: .95; }
.hero .container { position: relative; z-index: 1; }
@media (max-width: 700px) { .hero__orbit { opacity: .45; width: 100%; } }
.eyebrow::before { border-radius: 2px; }

/* SBA certification badge (drop the official file at images/badges/sba-vetcert-sdvosb.png) */
.cred--badge { display: flex; align-items: center; gap: .9rem; }
.sba-badge { height: 56px; width: auto; flex: none; background: #fff; border-radius: 4px; padding: 3px; }
.td-badge { display: flex; align-items: center; gap: .8rem; }
.td-badge .sba-badge { height: 48px; box-shadow: 0 0 0 1px #E3E6EA; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Print ---------- */
@media print { .utility, .site-header, .cta-band, .site-footer, .nav-toggle { display: none !important; } .hero, .page-hero { color: #000; background: none; min-height: 0; } .hero::after, .page-hero::after { display: none; } .hero picture, .page-hero picture { display: none; } .hero h1, .page-hero h1, .hero p, .page-hero p { color: #000; } }
.cta-band picture img { object-position: center 78%; }
