:root {
  --wasatch-orange: #f05a28;
  --wasatch-orange-dark: #c83f12;
  --wasatch-ink: #17212b;
  --wasatch-slate: #334155;
  --wasatch-muted: #64748b;
  --wasatch-border: #d8dee6;
  --wasatch-surface: #f5f7f9;
  --wasatch-white: #ffffff;
  --wasatch-focus: #1d72b8;
  --wasatch-container: 1200px;
  --wasatch-shadow: 0 12px 30px rgba(23, 33, 43, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--wasatch-ink);
  background: var(--wasatch-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--wasatch-focus);
  outline-offset: 3px;
}

.site-container {
  width: min(100% - 40px, var(--wasatch-container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--wasatch-white);
  background: var(--wasatch-ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  color: var(--wasatch-white);
  background: var(--wasatch-ink);
  font-size: 0.875rem;
}

.utility-bar__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-bar p {
  margin: 0;
}

.utility-bar__links {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  column-gap: 1rem;
}

.utility-bar a {
  color: var(--wasatch-white);
  font-weight: 700;
  text-underline-offset: 3px;
}

.header-main {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 32px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--wasatch-border);
  background: var(--wasatch-white);
  box-shadow: 0 3px 16px rgba(23, 33, 43, 0.05);
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-branding {
  flex: 0 0 auto;
}

.custom-logo-link {
  display: block;
}

.custom-logo {
  display: block;
  width: auto;
  max-width: 240px;
  max-height: 80px;
}

.site-branding__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--wasatch-ink);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-branding__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--wasatch-white);
  background: var(--wasatch-orange);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.header-navigation {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.primary-menu,
.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.primary-menu a {
  color: var(--wasatch-ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--wasatch-orange-dark);
}

.header-actions,
.footer-actions__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-actions__buttons {
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button--primary {
  color: var(--wasatch-white);
  background: var(--wasatch-orange);
}

.button--primary:hover {
  background: var(--wasatch-orange-dark);
}

.button--secondary {
  color: var(--wasatch-ink);
  border-color: var(--wasatch-ink);
  background: transparent;
}

.button--secondary:hover {
  color: var(--wasatch-white);
  background: var(--wasatch-ink);
}

.floating-plan-link {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 2px solid var(--wasatch-white);
  border-radius: 999px;
  color: var(--wasatch-white);
  background: var(--wasatch-orange);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.28);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.floating-plan-link:hover {
  color: var(--wasatch-white);
  background: var(--wasatch-orange-dark);
  box-shadow: 0 15px 34px rgba(23, 33, 43, 0.34);
  transform: translateY(-2px);
}

.floating-plan-link:focus-visible {
  outline: 3px solid var(--wasatch-focus);
  outline-offset: 3px;
}

.floating-plan-link__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--wasatch-orange-dark);
  background: var(--wasatch-white);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--wasatch-border);
  border-radius: 3px;
  background: var(--wasatch-white);
  color: var(--wasatch-ink);
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle__icon {
  display: grid;
  width: 20px;
  gap: 4px;
}

.menu-toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
}

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

.content-area {
  padding-block: clamp(48px, 8vw, 96px);
}

.content-entry {
  max-width: 800px;
}

.content-entry h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.site-footer {
  color: #dbe3ea;
  background: var(--wasatch-ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: clamp(36px, 6vw, 80px);
  padding-block: clamp(52px, 7vw, 82px);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--wasatch-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-brand__name {
  color: var(--wasatch-white);
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-brand p,
.footer-actions p {
  max-width: 420px;
  margin: 12px 0 0;
}

.footer-menu li + li {
  margin-top: 8px;
}

.footer-menu a {
  color: #dbe3ea;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-actions p {
  margin-bottom: 22px;
}

.button--footer {
  color: var(--wasatch-white);
  border-color: #94a3b8;
}

.button--footer:hover {
  border-color: var(--wasatch-white);
  background: var(--wasatch-white);
  color: var(--wasatch-ink);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #aab7c4;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1060px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    align-items: stretch;
    padding: 26px max(20px, calc((100vw - var(--wasatch-container)) / 2));
    border-top: 1px solid var(--wasatch-border);
    background: var(--wasatch-white);
    box-shadow: var(--wasatch-shadow);
  }

  .header-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 0;
  }

  .primary-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--wasatch-border);
    font-size: 1rem;
  }

  .header-actions {
    margin-top: 22px;
  }
}

@media (max-width: 760px) {
  .site-container {
    width: min(100% - 32px, var(--wasatch-container));
  }

  .utility-bar__inner {
    justify-content: center;
  }

  .utility-bar p {
    display: none;
  }

  .header-main {
    min-height: 74px;
  }

  .site-branding__name {
    font-size: 1rem;
  }

  .site-branding__mark {
    width: 40px;
    height: 40px;
  }

  .custom-logo {
    max-width: 190px;
    max-height: 52px;
  }

  .floating-plan-link {
    right: 16px;
    bottom: 16px;
    width: 58px;
    min-height: 58px;
    padding: 0;
    border-radius: 50%;
  }

  .floating-plan-link__icon {
    width: 38px;
    height: 38px;
    font-size: 0.72rem;
  }

  .floating-plan-link__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom__inner,
  .footer-actions__buttons,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-bottom__inner {
    justify-content: center;
    padding-block: 20px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
