/* ==========================================================================
   On Point Technology GA (OPTGA) — Static Site Design System
   Brand: "Aligning Technology with Your Mission"
   ========================================================================== */

/* ---------- Design Tokens ------------------------------------------------ */
:root {
  /* Brand palette (from brand guide) */
  --deep-blue:  #1D4ED8;   /* primary brand / H1 / primary CTA (refined from harsh #0000FF) */
  --navy:       #244273;   /* secondary headers, dark surfaces  */
  --navy-700:   #1b3258;   /* darker navy for gradients/hovers  */
  --steel:      #3365A6;   /* links, accents, H3                */
  --steel-700:  #284f82;   /* steel hover                        */
  --teal:       #008080;   /* success / positive indicators      */
  --black:      #1a1a1a;
  --gray:       #6b7280;   /* supporting text (darkened from #A9A9A9 for AA) */
  --gray-300:   #d1d5db;   /* borders                            */
  --gray-100:   #f4f6f9;   /* light section background           */
  --white:      #ffffff;

  /* Typography */
  --font-sans: Arial, Helvetica, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --maxw-narrow: 820px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.06);
  --shadow-md: 0 8px 24px rgba(16,24,40,.10);
  --gutter: 1.25rem;
  --transition: .18s ease;
}

/* ---------- Reset / Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;          /* ~12pt digital body */
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--steel-700); text-decoration: underline; }

/* ---------- Typographic Hierarchy --------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-sans); margin: 0 0 .5em; line-height: 1.2; }
h1 {                          /* 24–32pt bold deep blue */
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  font-weight: 800;
  color: var(--deep-blue);
  letter-spacing: -.01em;
}
h2 {                          /* 18–24pt bold navy */
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
}
h3 {                          /* 14–18pt semibold steel */
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem);
  font-weight: 600;
  color: var(--steel);
}
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: #374151; line-height: 1.6; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: .75rem;
}
.text-muted { color: var(--gray); }

/* ---------- Layout helpers ---------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--maxw-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--tint { background: var(--gray-100); }
.section--navy { background: var(--navy); color: #e8eefb; }
.section--navy h2 { color: #fff; }
.section--navy h3 { color: #bcd0f0; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.tier-label { font-size: 1.3rem; color: var(--navy); margin: 2.75rem 0 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--gray-300); }
.tier-label:first-of-type { margin-top: .5rem; }
/* Consistent, centered card rows for the tiered services (handles odd counts like 5) */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.services-grid > .card { flex: 1 1 300px; max-width: 360px; }
@media (max-width: 640px) { .services-grid > .card { flex-basis: 100%; max-width: none; } }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1rem; font-weight: 700; line-height: 1;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--deep-blue); color: #fff; border-color: var(--deep-blue); }
.btn--primary:hover { background: #1A45BD; border-color: #1A45BD; color: #fff; }
.btn--secondary { background: transparent; color: var(--steel); border-color: var(--steel); }
.btn--secondary:hover { background: var(--steel); color: #fff; }
.btn--on-dark { background: #fff; color: var(--navy); border-color: #fff; }
.btn--on-dark:hover { background: #e8eefb; color: var(--navy-700); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.arrow-link { font-weight: 700; }
.arrow-link::after { content: " \2192"; }

/* ---------- Header / Nav ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--gray-300);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.nav > nav { display: contents; }  /* primary-nav landmark wrapper stays layout-neutral */
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.brand:hover { text-decoration: none; color: var(--navy); }
.brand img { height: 42px; width: auto; }
.brand .brand-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 .6rem; border-radius: 8px;
  background: var(--navy); color: #fff; font-weight: 800; letter-spacing: .04em;
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: .55rem .8rem; border-radius: var(--radius-sm);
  color: var(--navy); font-weight: 600; font-size: .98rem;
}
.nav-menu a:hover { background: var(--gray-100); color: var(--steel); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--steel); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { font-weight: 600; font-size: .94rem; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative; color: #eaf0fb;
  background:
    linear-gradient(135deg, rgba(36,66,115,.90) 0%, rgba(27,50,88,.91) 55%, rgba(18,37,68,.95) 100%),
    url("/assets/img/hero-bg.webp") center/cover no-repeat;
  overflow: hidden;
}
.hero::after {  /* subtle abstract accent */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(51,101,166,.45), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(0,128,128,.25), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem); }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .lead { color: #cdd9f0; max-width: 600px; }
.hero .eyebrow { color: #8fb4e8; }

/* ---------- Grid / Cards ------------------------------------------------ */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #b9c6e0; }
.card h3 { color: var(--navy); margin-bottom: .4rem; }
.card p { color: #4b5563; margin-bottom: 1rem; }
.card .arrow-link { margin-top: auto; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eaf0fb; color: var(--steel);
}
.card-icon svg { width: 26px; height: 26px; }
.tag {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--teal);
  background: #e3f2f2; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .8rem;
}

/* Audience strip (compact icon cards) */
.audience .card { text-align: center; align-items: center; }
.audience .card-icon { margin-inline: auto; }

/* Feature / alternating value props */
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; }
.feature .card-icon { margin: 0; }
.feature h3 { color: var(--navy); margin-bottom: .25rem; }
.feature p { margin: 0; color: #4b5563; }
.why-features { display: grid; gap: 1.5rem; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; }
.checklist li { position: relative; padding-left: 1.9rem; color: #374151; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/.7rem no-repeat;
}

/* ---------- CTA banner -------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; text-align: center; border-radius: var(--radius);
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 1.5rem;
}
.cta-banner h2 { color: #fff; margin-bottom: .6rem; }
.cta-banner p { color: #cdd9f0; max-width: 560px; margin: 0 auto 1.6rem; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Page header (interior pages) -------------------------------- */
.page-header {
  background:
    linear-gradient(135deg, rgba(36,66,115,.93) 0%, rgba(27,50,88,.95) 100%),
    url("/assets/img/plexus.webp") right center/cover no-repeat;
  color: #fff; padding-block: clamp(2.75rem, 2rem + 4vw, 4.5rem);
}
.page-header--ai {
  background:
    linear-gradient(135deg, rgba(18,37,68,.86) 0%, rgba(27,50,88,.80) 60%, rgba(36,66,115,.55) 100%),
    url("/assets/img/ai-hero.webp") right center/cover no-repeat;
}
.page-header h1 { color: #fff; }
.page-header .lead { color: #cdd9f0; max-width: 640px; }
.page-header .eyebrow { color: #8fb4e8; }
.breadcrumb { font-size: .9rem; color: #9fb6dd; margin-bottom: .8rem; }
.breadcrumb a { color: #cdd9f0; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Prose (legal / long-form) ----------------------------------- */
.prose { max-width: var(--maxw-narrow); }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Contact ----------------------------------------------------- */
.contact-aside .info-block { margin-bottom: 1.6rem; }
.contact-aside .info-block strong { color: var(--navy); display: block; }
.form-note { font-size: .85rem; color: var(--gray); }

/* Embedded third-party form (Microsoft Forms) */
.form-embed { width: 100%; }
.form-embed iframe {
  width: 100%; height: 1500px; min-height: 1500px; border: 0; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); display: block;
}
@media (max-width: 640px) { .form-embed iframe { height: 1800px; min-height: 1800px; } }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: #11203a; color: #aebfda; padding-top: 3.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #c3d2ee; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand .brand-fallback { display:inline-flex; height:40px; align-items:center; padding:0 .6rem; border-radius:8px; background:var(--steel); color:#fff; font-weight:800; margin-bottom:1rem; }
.footer-brand p { color: #9fb1d1; max-width: 30ch; }
.footer-wordmark { color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; margin: 0 0 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-badges { display: flex; flex-direction: column; gap: .6rem; color: #9fb1d1; }
.footer-bottom {
  margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between; align-items: center; font-size: .85rem; color: #8398bd;
}
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Misc -------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy);
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; border-radius: 3px; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--gray-300);
    padding: .6rem var(--gutter) 1rem; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: .8rem .4rem; border-radius: 0; border-bottom: 1px solid var(--gray-100); }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 .4rem .8rem; min-width: 0;
  }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .checklist.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

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