:root {
  --navy: #0b3a5b;
  --navy-dark: #082a42;
  --accent: #f07d00;
  --text: #2c2c2c;
  --muted: #666;
  --border: #e5e5e5;
  --bg: #fff;
  --footer-bg: #f5f5f5;
  --max: 1100px;
  --font: "Open Sans", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, 760px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.top-bar {
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.875rem;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-start;
  padding: 0.5rem 0;
}

.top-bar a {
  color: #fff;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  min-width: 150px;
}

.brand img,
.site-header .brand img {
  display: block !important;
  width: 150px !important;
  max-width: 150px !important;
  height: auto !important;
  min-height: 40px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.primary-nav {
  display: none;
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 0.75rem 0.7rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-item.is-cta > a {
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding-inline: 0.9rem;
}

.nav-item.phone > a {
  color: var(--accent);
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-item.has-children:hover > .sub-menu,
.nav-item.has-children:focus-within > .sub-menu {
  display: block;
}

.sub-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text);
  font-weight: 400;
}

.sub-menu a:hover {
  background: #f7f7f7;
}

.search-toggle,
.mobile-toggle {
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.site-search {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0 1rem;
  background: #fafafa;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.search-form button,
.appointment-form button,
.hs-button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 1rem;
}

.mobile-nav > ul > li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
}

.mobile-nav ul ul {
  padding: 0 0 0.5rem 0.75rem;
}

.mobile-nav ul ul a {
  font-weight: 400;
  padding: 0.35rem 0;
}

.site-main {
  min-height: 50vh;
}

.page-shell {
  padding-bottom: 3rem;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1.25rem 0;
}

.live-content {
  /* Mirrored page-builder content sits here */
}

.live-content .container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Soften some absolute layouts on static clone */
.live-content .av_one_full,
.live-content .flex_column {
  max-width: 100%;
}

.live-content .flex_column.av_one_fourth {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
}

.live-content .flex_column.av_one_full {
  display: block;
  width: 100%;
}

.live-content .entry-content-wrapper {
  text-align: center;
}

.live-content .avia-image-container img {
  max-width: 100%;
  height: auto !important;
}

.live-content .grid-sort-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.live-content .grid-sort-container .grid-entry,
.live-content .grid-sort-container .isotope-item {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.live-content .sort_by_cat {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  margin: 1rem 0 1.5rem;
}

.live-content .sort_by_cat a {
  font-weight: 600;
}

.live-content .sort_by_cat a.active_sort {
  color: var(--accent);
}

.live-content .avia-button {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.85rem 1.4rem;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none !important;
}

.live-content .av-special-heading-tag {
  color: var(--navy);
}

@media (min-width: 800px) {
  .live-content .flex_column.av_one_fourth {
    width: 24.5%;
  }

  .live-content .flex_column.av_one_fifth {
    display: inline-block;
    width: 20%;
    vertical-align: top;
  }

  .live-content .flex_column.av_three_fifth {
    display: inline-block;
    width: 59%;
    vertical-align: top;
  }
}

.portfolio-hero {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin: 1rem 0 1.5rem;
  border-radius: 4px;
}

.post-list {
  display: grid;
  gap: 1.25rem;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  background: #fff;
}

.post-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.appointment-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.appointment-form fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}

.appointment-form legend {
  font-weight: 700;
  color: var(--navy);
  padding: 0 0.35rem;
}

.appointment-form label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.appointment-form input,
.appointment-form select {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: #eef7ff;
  color: var(--navy);
}

.form-status.is-error {
  background: #ffecec;
  color: #8a1f1f;
}

.appointment-alt {
  margin-top: 1.25rem;
  color: var(--muted);
}

.quote-shell,
.appointment-shell,
.blog-shell,
.post-shell,
.portfolio-shell {
  padding-top: 0.5rem;
}

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-col h3 {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: var(--navy);
}

.footer-menu {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.footer-menu ul {
  list-style: none;
  margin: 0.25rem 0 0.75rem;
  padding: 0 0 0 0.85rem;
}

.footer-menu a {
  display: inline-block;
  padding: 0.15rem 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.search-results {
  margin-top: 0.75rem;
}

.search-results a {
  display: block;
  padding: 0.4rem 0;
}

.not-found {
  padding: 4rem 0;
  text-align: center;
}

.status-shell {
  padding: 2rem 0 4rem;
}

.status-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.status-kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-header h1 {
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.status-meta {
  margin: 0;
  color: var(--muted);
}

.status-score {
  display: grid;
  place-items: center;
  min-width: 6rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: #f7fbff;
}

.status-score-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.status-score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-card,
.status-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.status-panel {
  margin-bottom: 1.5rem;
}

.status-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.status-metric {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
}

.status-detail {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-checks,
.status-rank-list,
.status-findings,
.status-suggestions,
.status-meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-check {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.status-check:last-child {
  border-bottom: 0;
}

.status-check.is-ok .status-check-label::before {
  content: "✓ ";
  color: #1b7f3b;
}

.status-check.is-fail .status-check-label::before {
  content: "✕ ";
  color: #b42318;
}

.status-check-detail {
  color: var(--muted);
  text-align: right;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.status-summary div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.status-summary dt,
.status-summary dd {
  margin: 0;
}

.status-summary dd {
  font-weight: 700;
  color: var(--navy);
}

.status-rank-list li,
.status-prompts details {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.status-rank-list li:last-child,
.status-prompts details:last-child {
  border-bottom: 0;
}

.status-rank-list a {
  font-weight: 600;
}

.status-rank-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-prompts summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

.status-prompts p {
  margin: 0.65rem 0 0;
  color: var(--text);
}

.status-pages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.status-pages-head h2 {
  margin: 0;
}

.status-filter input {
  width: min(100%, 320px);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
}

.status-table-wrap {
  overflow-x: auto;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.status-table th,
.status-table td {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.status-table thead th {
  border-top: 0;
  background: var(--footer-bg);
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-page-cell code,
.status-source {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-all;
}

.status-page-cell code {
  font-family: Consolas, "Courier New", monospace;
}

.status-rank-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #eef4fa;
  color: var(--navy);
  font-weight: 700;
}

.status-rank-detail,
.status-muted {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-ok-label {
  color: #1b7f3b;
  font-weight: 600;
}

.status-findings li {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
}

.status-findings .severity-high {
  background: #fde8e8;
  color: #9b1c1c;
}

.status-findings .severity-medium {
  background: #fff4e5;
  color: #9a6700;
}

.status-findings .severity-low {
  background: #eef4fa;
  color: var(--navy);
}

.status-suggestions li + li {
  margin-top: 0.45rem;
}

.status-suggestions li {
  color: var(--text);
}

@media (max-width: 760px) {
  .status-header,
  .status-pages-head {
    flex-direction: column;
    align-items: stretch;
  }

  .status-score {
    justify-self: start;
  }
}

@media (min-width: 980px) {
  .primary-nav {
    display: block;
  }

  .mobile-toggle {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
