/* Joe Mark Designs — blueprint navy, paper, and a restrained gold accent. */

:root {
  --navy: #122b52;
  --navy-deep: #0c1e3c;
  --navy-mid: #1b3d73;
  --paper: #f8f9fb;
  --white: #ffffff;
  --ink: #14233d;
  --muted: #3e516c;
  --line: #d5dde8;
  --gold: #e5b53b;
  --gold-ink: #6e5210;
  --sans: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, "Liberation Mono", monospace;
  --max: 1120px;
  --header: 76px;
  --shadow: 0 18px 40px rgba(12, 30, 60, 0.12);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(18, 43, 82, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 43, 82, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.25rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

a {
  color: var(--navy-mid);
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--gold);
  color: var(--navy);
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 249, 251, 0.96);
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  margin-right: auto;
}

.logo:hover {
  color: var(--navy);
}

.logo-mark {
  width: 42px;
  height: 32px;
  flex: none;
}

.logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.98rem;
}

.logo-role {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.1rem;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 16px;
  height: 10px;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  background: linear-gradient(var(--navy), var(--navy)) center / 100% 2px no-repeat;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #f0c65a;
  color: var(--navy);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-line {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-line:hover {
  background: var(--white);
  color: var(--navy);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0c2144;
  background-image:
    radial-gradient(ellipse at 88% 12%, rgba(229, 181, 59, 0.22), transparent 42%),
    radial-gradient(ellipse at 8% 88%, rgba(110, 186, 220, 0.22), transparent 46%),
    linear-gradient(rgba(170, 214, 240, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 214, 240, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(229, 181, 59, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 181, 59, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px, 26px 26px, 130px 130px, 130px 130px;
  color: var(--white);
  padding: 3.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    -16deg,
    transparent,
    transparent 42px,
    rgba(186, 224, 245, 0.055) 42px,
    rgba(186, 224, 245, 0.055) 43px
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.eyebrow,
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.eyebrow {
  color: var(--gold);
}

.kicker {
  color: var(--gold-ink);
}

.kicker-light {
  color: var(--gold);
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.hero p {
  color: #e7eef8;
  max-width: 40rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin: 1.5rem 0 1.35rem;
}

.stat {
  margin: 0;
  padding: 0.95rem 1rem 1rem;
  background: rgba(6, 18, 40, 0.55);
  border: 1px solid rgba(229, 181, 59, 0.45);
  border-top: 4px solid var(--gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.stat strong {
  display: block;
  color: var(--gold);
  font-size: clamp(2.4rem, 5vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 0.4rem;
  color: #e7eef8;
  font-size: 0.95rem;
  line-height: 1.35;
}

.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.15rem;
}

.seal {
  width: 112px;
  height: 112px;
  margin: 0;
  flex: none;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 45%, rgba(229, 181, 59, 0.2), rgba(8, 22, 48, 0.15) 68%);
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 7px rgba(229, 181, 59, 0.16),
    inset 0 0 0 2px rgba(229, 181, 59, 0.35);
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
}

.seal span,
.seal strong {
  display: block;
  font-weight: 700;
}

.seal span {
  font-size: 0.72rem;
}

.seal strong {
  font-size: 0.68rem;
  max-width: 8.2em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0;
  flex: 1 1 220px;
}

.hero-note {
  margin: 0.9rem 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #d5e0ef !important;
}

.hero-sheet {
  display: block;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-sheet img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}

.hero-sheet-caption {
  display: block;
  padding: 0.7rem 0.9rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero-sheet:hover .hero-sheet-caption {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.section {
  padding: 4.25rem 0;
  scroll-margin-top: 6.5rem;
}

.section-lead {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.section-lead.light {
  color: #d7e2f1;
}

.card-grid,
.plan-grid,
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 1.1rem;
  align-items: stretch;
}

.section-services {
  background: #f3efe6;
}

.transform {
  background: #fffdf8;
  padding-bottom: 1rem;
}

.ba-grid {
  display: grid;
  gap: 1rem;
}

.ba-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0c2144;
  box-shadow: 0 22px 48px rgba(12, 30, 60, 0.2);
}

.ba-card img {
  display: block;
  width: 100%;
  height: auto;
}

.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  margin: 0;
  padding: 0.42rem 0.72rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.badge-before {
  background: var(--navy);
  color: #fff;
}

.badge-after {
  background: var(--gold);
  color: var(--navy);
}

.service-card {
  height: 100%;
  background: var(--white);
  border: 0;
  border-top: 4px solid var(--gold);
  padding: 1.35rem 1.3rem 1.5rem;
  box-shadow: 0 16px 36px rgba(18, 43, 82, 0.14);
}

.service-card h3 {
  font-size: 1.22rem;
}

.icon-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
  background: var(--navy);
  color: var(--gold);
  box-shadow:
    0 10px 20px rgba(18, 43, 82, 0.2),
    inset 0 0 0 1px rgba(229, 181, 59, 0.55);
}

.icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin: 0;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.band {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--white);
}

.punch-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.punch-grid li {
  background: #fffdf8;
  color: var(--navy);
  padding: 1.15rem 0.9rem 1.2rem;
  text-align: center;
  border-top: 5px solid var(--gold);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.punch-grid strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.punch-grid li:nth-child(n + 3) strong {
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  max-width: 12ch;
  margin-inline: auto;
}

.punch-grid span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.plan-grid {
  display: grid;
  gap: 1rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 0;
  border-top: 4px solid var(--gold);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(12, 30, 60, 0.16);
}

.plan-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #0f2a52;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

  .plan-card:hover {
  box-shadow: 0 22px 46px rgba(12, 30, 60, 0.22);
}

.plan-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem 1rem;
}

.plan-sheet,
.plan-hint {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.plan-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.plan-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

.plan-hint {
  margin-top: 0.35rem;
}

.plan-card:hover .plan-hint {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.fine-print {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-tight {
  padding-top: 0.5rem;
}

.contact-panel {
  display: grid;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.contact-copy p {
  max-width: 38rem;
}

.steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--navy);
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-height: 76px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.contact-link:hover {
  color: inherit;
}

.contact-call {
  background: var(--gold);
  border-color: #c99620;
}

.contact-call .contact-value {
  font-size: clamp(1.45rem, 2vw, 1.75rem);
}

.contact-call:hover {
  background: #f0c65a;
}

.contact-text {
  background: var(--navy);
  border-color: var(--navy);
}

.contact-text .contact-kicker,
.contact-text .contact-hint {
  color: #d5e4f5;
}

.contact-text .contact-value {
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.contact-text:hover {
  background: #1b3d73;
}

.contact-email {
  background: #fff;
  border: 2px solid var(--gold);
}

.contact-email:hover {
  background: #fffaf0;
}

.contact-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.contact-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  background: var(--navy-deep);
  color: #e7eef8;
  padding: 2.25rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.site-footer p {
  margin: 0.15rem 0;
}

.site-footer a {
  color: var(--white);
}

.footer-area {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #d5e0ef;
}

#plan-dialog {
  width: min(1080px, calc(100% - 1.25rem));
  max-height: calc(100dvh - 1.25rem);
  margin: auto;
  padding: 0;
  border: none;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

#plan-dialog::backdrop {
  background: rgba(8, 18, 36, 0.78);
}

.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--navy);
  color: var(--white);
}

.dialog-bar h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.dialog-close {
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dialog-close:hover {
  background: #f0c65a;
}

#plan-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 8.75rem);
  object-fit: contain;
  background: #0f2a52;
}

.dialog-note {
  margin: 0;
  padding: 0.7rem 0.9rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (min-width: 720px) {
  .card-grid,
  .plan-grid,
  .punch-grid,
  .ba-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-panel {
    padding: 2rem 2rem 1.75rem;
  }

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

  .footer-area {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .punch-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .punch-grid li:nth-child(1),
  .punch-grid li:nth-child(2) {
    grid-column: span 3;
  }

  .punch-grid li:nth-child(n + 3) {
    grid-column: span 2;
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 2rem;
    align-items: start;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 1rem 0.85rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
  }

  .site-header {
    position: sticky;
  }

  .header-bar {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .header-actions {
    flex: 1 0 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    padding-bottom: 0.75rem;
  }

  .header-actions .btn-gold {
    width: 100%;
  }

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

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .section {
    padding: 3.25rem 0;
  }
}

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

@media print {
  .site-header,
  .nav-toggle,
  #plan-dialog {
    position: static;
  }

  .nav {
    display: flex !important;
    position: static !important;
  }

  .hero,
  .band,
  .site-footer,
  .dialog-bar {
    background: var(--white) !important;
    color: var(--ink) !important;
  }

  .hero p,
  .stat span,
  .section-lead.light,
  .site-footer,
  .site-footer a {
    color: var(--ink) !important;
  }
}
