﻿:root {
  --purple: #55117F;
  --purple-dark: #3a0c58;
  --cyan: #34C0EE;
  --cyan-text: #227D95; /* darker cyan for use AS TEXT (e.g. on white) - the brand
                            cyan itself fails WCAG contrast at 2.12:1 when used as text
                            color or with white text on a cyan background; this passes
                            at 4.73:1. Reserve --cyan for backgrounds/decorative accents
                            (underlines, borders) where contrast rules don't strictly
                            apply, and pair those backgrounds with dark text instead of
                            white rather than lightening further. */
  --navy: #1a0a3e;
  --navy-light: #2d1660;
  --gray-900: #1c1c1c;
  --gray-700: #444444;
  --gray-500: #767676;
  --gray-200: #8f8f8f; /* was #e5e5e5 - too light to meet WCAG's 3:1 UI-component contrast
                          requirement for borders (only 1.26:1 against white); this passes
                          at 3.3:1 while staying visually subtle */
  --gray-100: #f4f4f4;
  --white: #ffffff;

  --font-heading: 'Montserrat', Helvetica, Arial, sans-serif;
  --font-body: 'Poppins', Helvetica, Arial, sans-serif;

  --radius-pill: 40px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
.page-content img, .post-body img { max-height: 500px; width: auto; margin: 0 auto; object-fit: contain; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--white); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--purple); position: relative; padding-bottom: 0.4em; margin-bottom: 0.8em; }
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--cyan);
  margin-top: 0.4em;
  border-radius: 2px;
}
h3 { font-size: 1.3rem; color: var(--gray-900); }
p { margin: 0 0 1em; color: var(--gray-700); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9em 2em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-cta { background: var(--cyan); color: var(--navy); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-pill { border-radius: var(--radius-pill); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  padding: 0.75em 1.5em;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
}
.logo img { height: 48px; width: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 1.5em; margin: 0; padding: 0; }
.main-nav li ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav button {
  background: none; border: none; font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 500; color: var(--gray-900); cursor: pointer; padding: 0.5em 0;
  display: flex; align-items: center; gap: 0.3em;
}
.chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  min-width: 220px;
  padding: 0.5em 0;
  flex-direction: column;
  gap: 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex; }
.dropdown li a { display: block; padding: 0.6em 1.2em; color: var(--gray-900); font-size: 0.9rem; }
.dropdown li a:hover { background: var(--gray-100); text-decoration: none; }

/* Mega-menu variant: two-column icon grid in a spacious rounded panel, for the
   larger dropdowns (Compliance, Cybersecurity, Managed Services) */
.mega-menu {
  display: none;
  flex-direction: row !important;
  flex-wrap: wrap;
  min-width: 480px;
  max-width: 560px;
  background: var(--gray-100);
  border-radius: 16px;
  padding: 1.2em;
  gap: 0;
}
.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu { display: flex; }
.mega-menu li { width: 50%; }
.mega-menu li a {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 0.8em;
  border-radius: 8px;
  font-size: 0.9rem;
}
.mega-menu li a:hover { background: rgba(255,255,255,0.7); }
.mega-icon { font-size: 1.1rem; flex-shrink: 0; width: 1.4em; text-align: center; }

.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; }

.hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 4em 1.5em 6em;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3em;
  align-items: center;
}
.hero-text .hero-lede { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 44ch; }
.hero-image img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.hero-image-icon img { border-radius: 50%; background: rgba(255,255,255,0.08); padding: 2em; }
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.5);
}

.page-content, .post-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3em 1.5em;
}
.page-content > * + h2, .post-body > * + h2 { margin-top: 1.5em; }
.page-content ul, .post-body ul { padding-left: 1.4em; color: var(--gray-700); }
.page-content li, .post-body li { margin-bottom: 0.5em; }

.stat { display: inline-flex; flex-direction: column; align-items: center; text-align: center; margin: 0.5em 1.5em 1em 0; }
.stat-number { font-family: var(--font-heading); font-weight: 700; font-size: 2.4rem; color: var(--cyan-text); line-height: 1; }
.stat-label { font-size: 0.95rem; color: var(--gray-700); margin-top: 0.4em; max-width: 16ch; }
.stat-row { display: flex; flex-wrap: wrap; gap: 2em; margin: 1.5em 0; }
.stat-row .stat { margin: 0; }
.stat-row-icon { width: 56px; height: 56px; object-fit: contain; display: block; margin: 0 auto 0.6em auto; }
.stat-row > div { width: 180px; text-align: center; }
.stat-row--centered { justify-content: center; }
.stat-with-image { display: flex; align-items: center; gap: 3em; margin: 1.5em 0; flex-wrap: nowrap; }
.stat-with-image .stat-row { flex-shrink: 0; }
.stat-with-image img { min-width: 0; }
.stat-with-image .stat-row { margin: 0; flex: 0 0 auto; }
.stat-with-image img { flex: 1 1 300px; max-height: none; border-radius: 12px; margin: 0; }
@media (max-width: 800px) {
  .stat-with-image { flex-direction: column; align-items: flex-start; }
}
.stat-with-image { display: flex; align-items: center; gap: 3em; margin: 1.5em 0; flex-wrap: nowrap; }
.stat-with-image .stat-row { flex-shrink: 0; }
.stat-with-image img { min-width: 0; }
.stat-with-image .stat-row { margin: 0; flex: 0 0 auto; }
.stat-with-image img { flex: 1 1 300px; max-height: none; border-radius: 12px; margin: 0; }
@media (max-width: 800px) {
  .stat-with-image { flex-direction: column; align-items: flex-start; }
}

.faq-item { border: 1px solid var(--gray-200); border-radius: 8px; padding: 1em 1.2em; margin-bottom: 0.8em; }
.faq-item summary { font-weight: 600; cursor: pointer; color: var(--purple); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 700; color: var(--cyan); }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { margin-top: 0.7em; margin-bottom: 0; }

.post-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 3em;
  padding: 3em 1.5em;
}
.post-body { padding: 0; max-width: none; }
.post-sidebar h2 { font-size: 1.1rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.post-sidebar ul { list-style: none; padding: 0; margin: 0; }
.post-sidebar li { border-bottom: 1px solid var(--gray-200); }
.post-sidebar a { display: block; padding: 0.7em 0; color: var(--gray-900); font-size: 0.95rem; }
.post-cta { margin-top: 2em; }

.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5em; }
.post-list-item { border: 1px solid var(--gray-200); border-radius: 12px; padding: 1.5em; }
.post-list-item h3 { margin-bottom: 0.3em; }
.post-list-item p { margin: 0; font-size: 0.95rem; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2em; }
.post-card {
  display: block; color: inherit; text-decoration: none;
  border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 1.2em; }
.post-card-category {
  display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--cyan); margin-bottom: 0.5em;
}
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.4em; color: var(--gray-900); }
.post-card p { font-size: 0.9rem; margin: 0; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3em 1.5em;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2em;
}
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5em; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer address { font-style: normal; }
.footer-veterans { background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-veterans h3 { color: var(--cyan); }
.footer-veterans .footer-inner { padding: 2em 1.5em; grid-template-columns: 1fr; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 1.5em;
  grid-template-columns: none;
  font-size: 0.85rem;
}

.gform-wrapper {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2em;
}
.gform-wrapper .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.gform-wrapper label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3em; }
.gform-wrapper input, .gform-wrapper textarea {
  width: 100%; padding: 0.7em 1em; border: 1px solid var(--gray-200); border-radius: 6px;
  font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 1em;
}
.gform-wrapper input:focus, .gform-wrapper textarea:focus { border-color: var(--cyan); }
.honeypot-field { position: absolute; left: -9999px; }

.contact-options { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2em; align-items: start; }
.contact-option-form h2, .contact-option-booking h2 { font-size: 1.4rem; }
.contact-option-booking {
  background: var(--gray-100); border-radius: 12px; padding: 2em;
  text-align: center; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-option-booking p { margin-bottom: 1.2em; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; margin-top: 2em; }

.feature-card {
  display: flex; align-items: flex-start; gap: 1.2em;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 1.8em; margin-bottom: 1.5em; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.feature-card-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--gray-100);
}
.feature-card-icon img { width: 32px; height: 32px; object-fit: contain; max-height: none; }
.feature-card-body { text-align: left; }
.feature-card-body p { margin: 0; }
.page-content img[src*="/Icon-"]:not(.feature-card-icon img):not(.nav-card-icon img):not(.stat-row-icon) { max-width: 56px; max-height: 56px; display: block; margin: 0 0 0.8em 0; text-align: left; }

.nav-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2em; margin: 2em 0; }
.nav-card {
  text-align: center; padding: 2.5em 2em; border: 1px solid var(--gray-200); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 50%; background: var(--gray-100);
  margin-bottom: 1em;
}
.nav-card-icon img { width: 48px; height: 48px; object-fit: contain; max-height: none; }
.nav-card h3 { margin-bottom: 0.5em; }
.nav-card p { margin-bottom: 1.2em; }
@media (max-width: 900px) {
  .nav-card-grid { grid-template-columns: 1fr; }
}

.contact-card {
  text-align: center; padding: 2em 1em; border: 1px solid var(--gray-200); border-radius: 12px;
}
.contact-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--gray-100);
  font-size: 1.6rem; margin-bottom: 0.8em;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 0.3em; }
.contact-card p { margin: 0; font-size: 0.95rem; }

/* Floating quick-contact widget - fixed to right edge, expands label on hover */
.floating-contact {
  position: fixed;
  top: 50%;
  right: 0;
  width: 48px;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.floating-contact-item {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  color: var(--white);
  text-decoration: none;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  width: 48px;
  transition: width 0.2s ease;
  white-space: nowrap;
}
.floating-contact-item:hover { width: 200px; text-decoration: none; }
.floating-contact-purple { background: var(--purple); }
.floating-contact-cyan { background: var(--cyan); color: var(--navy); }
.floating-contact-icon { font-size: 1.2rem; flex-shrink: 0; }
.floating-contact-label { margin-left: 10px; font-size: 0.85rem; font-weight: 600; opacity: 0; transition: opacity 0.15s ease; }
.floating-contact-item:hover .floating-contact-label { opacity: 1; }

@media (max-width: 900px) {
  .floating-contact { display: none; }
}

@media (max-width: 900px) {
  .btn-cta { display: none; }
  .mobile-nav-toggle { display: block; position: relative; z-index: 201; width: 32px; height: 24px; }
  .mobile-nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--gray-900);
    margin: 6px 0; transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 5em 1.5em 2em;
    overflow-y: auto;
    z-index: 150;
  }
  .main-nav.nav-open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--gray-200); }
  .main-nav button { width: 100%; justify-content: space-between; padding: 1em 0; font-size: 1.1rem; }
  .dropdown {
    position: static; box-shadow: none; padding: 0 0 0.5em 1em; display: none;
    min-width: 0; border-radius: 0;
  }
  .has-dropdown button[aria-expanded="true"] + .dropdown { display: flex !important; }
  .mega-menu {
    flex-direction: column !important; max-width: none; background: transparent;
    padding: 0; border-radius: 0;
  }
  .mega-menu li { width: 100%; }
  .mobile-nav-cta { display: block; text-align: center; margin-top: 1.5em; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { max-width: 280px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .gform-wrapper .field-row { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-options { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .mobile-nav-cta { display: none; }
}
