/*
Theme Name: Widescale Gov
Theme URI: https://widescale.com
Author: Widescale Media LLC
Description: Lightweight government contractor theme for Widescale Media LLC.
Version: 1.0.0
Text Domain: widescale-gov
*/

:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #182024;
  --muted: #5b676d;
  --line: #d9ded8;
  --primary: #123c4a;
  --primary-strong: #092631;
  --accent: #b98d34;
  --accent-dark: #8a661e;
  --navy: #172c3b;
  --green: #566f50;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--accent-dark);
}

img {
  height: auto;
  max-width: 100%;
}

.skip-link {
  background: var(--primary);
  color: #fff;
  left: 1rem;
  padding: .65rem 1rem;
  position: absolute;
  top: -100px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topline {
  background: var(--primary-strong);
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 700;
}

.topline-inner,
.header-inner,
.site-footer-inner,
.content-wrap {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: 24px;
  padding-right: 24px;
}

.topline-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 42px;
}

.topline a {
  color: #fff;
  text-decoration: none;
}

.topline-action {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  display: inline-flex;
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1;
  padding: 9px 12px;
  text-transform: uppercase;
}

.topline-action:hover,
.topline-action:focus {
  background: #fff;
  color: var(--primary-strong);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 88px;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.brand-tagline {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
  margin-top: 6px;
  text-transform: uppercase;
}

.brand.has-logo {
  align-items: center;
}

.brand.has-logo .custom-logo-link {
  display: inline-block;
}

.brand.has-logo img,
.brand.has-logo .custom-logo {
  display: block;
  height: auto;
  max-height: 60px;
  width: auto;
}

.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-cluster {
  align-items: center;
  display: flex;
  position: relative;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--ink);
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  padding: 12px 13px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus,
.nav-cluster:focus-within > .nav-link,
.nav-cluster:hover > .nav-link {
  background: #f0f3ef;
  border-color: var(--line);
  color: var(--primary-strong);
}

.nav-cluster > .nav-link::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  content: "";
  display: inline-block;
  margin-left: 8px;
  transform: translateY(-2px);
}

.nav-dropdown {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 20px 44px rgba(9, 38, 49, .16);
  display: grid;
  gap: 6px;
  left: 0;
  min-width: 390px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 10px);
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 80;
}

.nav-dropdown.compact {
  min-width: 330px;
}

.nav-cluster:hover .nav-dropdown,
.nav-cluster:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown::before {
  content: "";
  height: 12px;
  left: 0;
  position: absolute;
  right: 0;
  top: -12px;
}

.nav-dropdown a {
  border-radius: 5px;
  display: block;
  padding: 14px;
  text-decoration: none;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  background: #f4f6f2;
}

.nav-dropdown strong,
.nav-dropdown span {
  display: block;
}

.nav-dropdown strong {
  color: var(--primary-strong);
  font-size: 15px;
  line-height: 1.2;
}

.nav-dropdown span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

.header-cta,
.button,
.wp-block-button__link {
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  color: #17140d;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  padding: 13px 18px;
  text-decoration: none;
}

.header-cta:hover,
.header-cta:focus,
.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.site-main {
  min-height: 60vh;
}

.hero {
  background:
    linear-gradient(110deg, rgba(9, 38, 49, .95), rgba(18, 60, 74, .86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.14'%3E%3Cpath d='M120 100h960v500H120z'/%3E%3Cpath d='M210 180h780M210 260h780M210 340h780M210 420h780M210 500h780M340 180v320M520 180v320M700 180v320M880 180v320'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-inner {
  margin: 0 auto;
  max-width: var(--max);
  padding: 86px 24px 74px;
}

.eyebrow {
  color: #f0c66d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  margin: 0;
  max-width: 960px;
}

.hero p {
  color: rgba(255, 255, 255, .9);
  font-size: 21px;
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .58);
  color: #fff;
}

.button.secondary:hover,
.button.secondary:focus {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
}

.signal-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.signal-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 24px;
}

.signal {
  border-left: 1px solid var(--line);
  min-height: 112px;
  padding: 24px 22px;
}

.signal:last-child {
  border-right: 1px solid var(--line);
}

.signal strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.signal span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 8px;
}

.content-wrap {
  padding-bottom: 70px;
  padding-top: 62px;
}

.content-wrap.narrow {
  max-width: 920px;
}

h1,
h2,
h3 {
  color: var(--primary-strong);
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(29px, 4vw, 42px);
  margin: 48px 0 18px;
}

h3 {
  font-size: 23px;
  margin: 30px 0 10px;
}

p {
  margin: 0 0 18px;
}

ul,
ol {
  margin-bottom: 22px;
}

li {
  margin-bottom: 8px;
}

.section-intro {
  color: var(--muted);
  font-size: 20px;
  max-width: 850px;
}

.service-grid,
.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
}

.service-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.service-card h3,
.info-card h3 {
  margin-top: 0;
}

.service-card p,
.info-card p {
  color: var(--muted);
}

.code-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0;
}

.code-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}

.code-item strong {
  color: var(--primary);
  display: block;
  font-size: 20px;
  margin-bottom: 7px;
}

.code-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.cta-band {
  background: var(--navy);
  color: #fff;
  margin-top: 54px;
  padding: 42px;
}

.cta-band h2 {
  color: #fff;
  margin-top: 0;
}

.cta-band p {
  color: rgba(255, 255, 255, .85);
  max-width: 760px;
}

.site-footer {
  background: var(--primary-strong);
  color: rgba(255, 255, 255, .82);
}

.site-footer a {
  color: #fff;
}

.footer-button {
  align-items: center;
  background: var(--accent);
  border-radius: 4px;
  color: #17140d !important;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  padding: 13px 18px;
  text-decoration: none;
}

.footer-button:hover,
.footer-button:focus {
  background: #fff;
  color: var(--primary-strong) !important;
}

.site-footer-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding-bottom: 46px;
  padding-top: 46px;
}

.footer-title {
  color: #fff;
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-heading {
  color: #f0c66d;
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 7px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  padding: 18px 24px;
  text-align: center;
}

.page-hero {
  background: var(--primary);
  color: #fff;
}

.page-hero .content-wrap {
  padding-bottom: 54px;
  padding-top: 56px;
}

.page-hero h1 {
  color: #fff;
}

.page-hero p {
  color: rgba(255, 255, 255, .86);
  font-size: 20px;
  max-width: 820px;
}

.entry-content table {
  background: var(--surface);
  border-collapse: collapse;
  margin: 28px 0;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: #e8ece6;
  color: var(--primary-strong);
}

.capability-page-wrap {
  max-width: 1280px;
  padding-top: 36px;
}

.cap-sheet {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(9, 38, 49, .1);
  color: #303539;
  margin: 0 auto;
  overflow: hidden;
}

.cap-header {
  align-items: center;
  background: #16243b;
  border-bottom: 10px solid var(--accent);
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  padding: 44px 58px 38px;
}

.cap-kicker {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.cap-header h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.cap-header p {
  color: rgba(255, 255, 255, .78);
  font-size: 25px;
  margin: 0;
}

.cap-badge {
  background: var(--accent);
  border-radius: 8px;
  color: #16243b;
  min-width: 320px;
  padding: 14px 22px 16px;
  text-align: center;
}

.cap-badge strong {
  display: block;
  font-size: 29px;
  line-height: 1;
}

.cap-badge span {
  display: block;
  font-size: 13px;
  margin-top: 8px;
}

.cap-intro {
  padding: 30px 58px 46px;
}

.cap-intro p {
  font-size: 20px;
  line-height: 1.38;
  margin: 0;
  max-width: 1040px;
}

.cap-columns {
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  padding: 0 58px 52px;
}

.cap-sheet h2 {
  background: #315f8e;
  color: #fff;
  font-size: 25px;
  letter-spacing: .02em;
  line-height: 1;
  margin: 0 0 26px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.cap-sheet h3 {
  color: #16243b;
  font-size: 19px;
  line-height: 1.15;
  margin: 0 0 3px;
}

.cap-sheet p {
  line-height: 1.36;
}

.cap-competency {
  margin-bottom: 14px;
}

.cap-competency p {
  margin: 0;
}

.cap-main > p {
  font-size: 18px;
  margin: 0 0 14px;
}

.cap-data {
  margin: 0 0 10px;
}

.cap-data div {
  display: grid;
  gap: 18px;
  grid-template-columns: 150px 1fr;
  margin-bottom: 4px;
}

.cap-data dt {
  color: #16243b;
  font-weight: 800;
}

.cap-data dd {
  margin: 0;
}

.cap-naics {
  margin: -10px 0 0;
}

.cap-naics span {
  display: grid;
  gap: 14px;
  grid-template-columns: 82px 1fr;
  line-height: 1.22;
  margin-bottom: 5px;
}

.cap-naics strong {
  color: #16243b;
}

.cap-diffs {
  list-style: none;
  margin: -6px 0 0;
  padding: 0;
}

.cap-diffs li {
  line-height: 1.32;
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}

.cap-diffs li::before {
  background: #16243b;
  content: "";
  height: 7px;
  left: 2px;
  position: absolute;
  top: 9px;
  width: 7px;
}

.cap-footer {
  align-items: center;
  background: #16243b;
  border-top: 8px solid var(--accent);
  color: #fff;
  display: grid;
  gap: 20px;
  grid-template-columns: .95fr .9fr 1.15fr;
  padding: 22px 58px;
}

.cap-footer strong,
.cap-footer span {
  display: block;
}

.cap-footer strong {
  font-size: 20px;
}

.cap-footer > div:nth-child(2) {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.cap-footer > div:nth-child(3) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.cap-contact-button {
  background: var(--accent);
  border-radius: 4px;
  color: #17130b;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  padding: 12px 14px;
}

.cap-contact-button:hover,
.cap-contact-button:focus {
  background: #fff;
  color: var(--primary-strong);
}

.widescale-contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 30px 0 38px;
  padding: 28px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.widescale-contact-form label {
  display: block;
  margin-bottom: 18px;
}

.widescale-contact-form span {
  color: var(--primary-strong);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 7px;
}

.widescale-contact-form input,
.widescale-contact-form select,
.widescale-contact-form textarea {
  background: #fbfcfa;
  border: 1px solid #cbd3c8;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 11px 12px;
  width: 100%;
}

.widescale-contact-form textarea {
  resize: vertical;
}

.widescale-contact-form input:focus,
.widescale-contact-form select:focus,
.widescale-contact-form textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(18, 60, 74, .16);
}

.website-field {
  display: none !important;
}

.captcha-wrap {
  margin: 6px 0 20px;
}

.form-notice {
  border-radius: 6px;
  font-weight: 800;
  margin: 0 0 22px;
  padding: 15px 18px;
}

.form-notice.success {
  background: #e2f0df;
  color: #244d24;
}

.form-notice.error {
  background: #f5dfdc;
  color: #7a221b;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 18px;
    padding-top: 18px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .nav-cluster {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .nav-dropdown {
    box-shadow: none;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
    width: 100%;
  }

  .signal-grid,
  .service-grid,
  .card-grid,
  .form-grid,
  .cap-columns,
  .cap-header,
  .cap-footer,
  .code-list,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .cap-badge {
    min-width: 0;
  }

  .cap-footer > div:nth-child(2),
  .cap-footer > div:nth-child(3) {
    justify-content: flex-start;
  }

  .signal,
  .signal:last-child {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .topline-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 9px;
    padding-top: 9px;
  }

  .hero-inner {
    padding-bottom: 54px;
    padding-top: 58px;
  }

  .hero p {
    font-size: 18px;
  }

  .content-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .capability-page-wrap {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
  }

  .cap-sheet {
    border-left: 0;
    border-right: 0;
  }

  .cap-header,
  .cap-intro,
  .cap-columns,
  .cap-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .cap-header {
    padding-top: 32px;
  }

  .cap-header p {
    font-size: 20px;
  }

  .cap-data div,
  .cap-naics span {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .cta-band {
    padding: 26px;
  }
}
