:root {
  color-scheme: light;
  --site-ink: #111827;
  --site-muted: #526071;
  --site-blue: #1d4ed8;
  --site-border: #e2e8f0;
}

body {
  margin: 0;
  color: var(--site-ink);
  font-family: Arial, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.site-header-inner {
  display: flex !important;
  width: min(1200px, calc(100% - 2rem)) !important;
  min-height: 82px;
  margin: 0 auto !important;
  align-items: center;
  gap: 1.25rem;
}

.site-header .u-logo {
  flex: 0 0 auto;
  width: 145px;
  height: auto;
}

.site-header .u-logo img {
  display: block;
  width: 100%;
  max-height: 62px;
  object-fit: contain;
}

.site-header .site-search {
  display: flex;
  min-width: 0;
  flex: 1 1 20rem;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.site-search input {
  min-width: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
  padding: 0.65rem 0.75rem;
}

.site-search input:focus {
  border-color: var(--site-blue);
  outline: 2px solid #bfdbfe;
}

.site-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0.35rem;
  background: var(--site-blue);
  padding: 0.7rem 0.85rem;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.site-menu {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  z-index: 2;
}

.site-language {
  display: flex;
  gap: 0.35rem;
}

.site-language button {
  border: 0;
  background: none;
  padding: 0.35rem;
  color: #475569;
  cursor: pointer;
  line-height: 0;
}

.site-language button svg {
  display: block;
  width: 1.75rem;
  height: 1.05rem;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
}

.site-language button[aria-pressed="true"] {
  color: var(--site-blue);
  font-weight: 700;
}

.site-language button[aria-pressed="true"] svg {
  outline: 2px solid var(--site-blue);
  outline-offset: 2px;
}

.site-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.25rem;
  color: var(--site-ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-menu-lines {
  display: grid;
  width: 24px;
  gap: 5px;
}

.site-menu-lines i {
  display: block;
  height: 2px;
  background: currentColor;
}

.site-menu-panel {
  position: absolute;
  z-index: 60;
  top: 100%;
  right: 0;
  display: grid;
  width: min(420px, calc(100vw - 2rem));
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--site-border);
  border-top: 3px solid var(--site-blue);
  border-radius: 0 0 0.5rem 0.5rem;
  background: white;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.site-menu-panel[hidden] {
  display: none;
}

.site-menu-primary,
.site-menu-projects {
  display: grid;
  align-content: start;
}

.site-menu-primary + .site-menu-projects,
.site-menu-projects + .site-menu-primary {
  border-top: 1px solid #e2e8f0;
}

.site-menu-panel a,
.site-menu-project-title {
  border-bottom: 1px solid #f1f5f9;
  padding: 0.65rem 0.5rem;
  color: var(--site-ink);
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
}

.site-menu-panel a:hover,
.site-menu-panel a:focus-visible {
  border-radius: 0.25rem;
  color: var(--site-blue);
  background: #eff6ff;
}

.site-menu-project-title {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.site-menu-project-title:hover,
.site-menu-project-title:focus-visible {
  border-radius: 0.25rem;
  color: var(--site-blue);
  background: #eff6ff;
}

.site-menu-project-links {
  display: grid;
  padding: 0.15rem 0 0.4rem 1rem;
  background: #f8fafc;
}

.site-menu-project-links a {
  padding: 0.55rem 0.65rem;
  color: #475569;
  font-size: 0.95rem;
}

.site-menu-project-links a:hover,
.site-menu-project-links a:focus-visible {
  border-radius: 0.25rem;
  color: var(--site-blue);
  background: #eff6ff;
}

.site-menu-project-links[hidden] {
  display: none;
}

.site-footer {
  background: #0b1220;
  color: #f8fafc;
}

.site-footer-content {
  display: grid;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
  gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.site-footer-brand {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer p {
  max-width: 32rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.site-footer nav,
.site-footer-content > div:last-child {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.site-footer h2 {
  margin: 0 0 0.5rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a:not(.site-footer-brand) {
  width: fit-content;
  color: #f8fafc;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #93c5fd;
}

.jb-home-hero {
  position: relative;
  display: flex;
  min-height: min(70vh, 660px);
  align-items: center;
  overflow: hidden;
  background: #0f172a;
  color: white;
}

.jb-home-hero img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jb-home-hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(2, 6, 23, 0.52);
}

.jb-home-hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
  text-align: center;
}

.jb-home-hero-content > * {
  max-width: 54rem;
  margin-right: auto;
  margin-left: auto;
}

.jb-home-hero .eyebrow {
  color: #bfdbfe;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.jb-home-hero h1 {
  width: 100%;
  margin: 1rem auto;
  white-space: pre-line;
  color: white;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 2px 12px rgba(2, 6, 23, 0.45);
}

.jb-home-hero-content > p:not(.eyebrow) {
  color: #f8fafc;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(2, 6, 23, 0.55);
}

.jb-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.jb-home-actions a {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 0.25rem;
  padding: 0.85rem 1.2rem;
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.jb-home-actions a:first-child {
  border-color: var(--site-blue);
  background: var(--site-blue);
  color: white;
  box-shadow: 0 5px 16px rgba(2, 6, 23, 0.25);
}

.jb-home-actions a:hover,
.jb-home-actions a:focus-visible {
  transform: translateY(-2px);
  border-color: #fff;
  background: white;
  color: #111827;
}

.jb-home-actions a:first-child:hover,
.jb-home-actions a:first-child:focus-visible {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: white;
}

.jb-home-copy,
.jb-services {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.jb-home-copy {
  padding-bottom: 1.25rem;
}

.jb-home-copy h2 {
  margin: 0 0 0.75rem;
  max-width: 58rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  text-align: justify;
}

.jb-home-copy h2 strong {
  font-weight: 900;
}

.site-scroll-top {
  position: fixed;
  z-index: 40;
  right: 1rem;
  bottom: 5rem;
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: #2563eb;
  color: white;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.site-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.site-scroll-top:hover {
  background: #1d4ed8;
}

.site-scroll-top:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.site-scroll-top svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.jb-home-copy p {
  margin: 0;
  max-width: 48rem;
  color: var(--site-muted);
  line-height: 1.65;
}

.jb-services {
  width: 100%;
  max-width: none;
  background: #f8fafc;
  padding-top: 1.25rem;
  padding-right: max(1rem, calc((100% - 1200px) / 2));
  padding-left: max(1rem, calc((100% - 1200px) / 2));
}

.jb-services h2 {
  margin-top: 0;
  font-size: 2rem;
}

.jb-service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jb-service-card {
  min-width: 0;
  border: 1px solid var(--site-border);
  border-radius: 0.65rem;
  background: white;
  padding: 1.5rem;
}

.jb-service-card h3 {
  margin-top: 0;
}

.jb-service-card p {
  color: var(--site-muted);
  line-height: 1.65;
}

.jb-contact-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
}

.jb-contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.jb-contact-direct {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-left: 3px solid var(--site-blue);
  background: #f8fafc;
  line-height: 1.8;
}

.jb-contact-direct a {
  color: var(--site-blue);
  font-weight: 700;
}

.jb-contact-option {
  position: relative;
  display: inline-block;
  margin: 0 0.15rem;
}

.jb-contact-option-trigger {
  border: 0;
  border-radius: 0.2rem;
  background: transparent;
  padding: 0.1rem 0.2rem;
  color: var(--site-blue);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jb-contact-option-trigger:hover,
.jb-contact-option-trigger:focus-visible {
  background: #dbeafe;
}

.jb-contact-option-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.25rem);
  left: 0;
  display: grid;
  min-width: 12rem;
  gap: 0.15rem;
  border: 1px solid var(--site-border);
  border-radius: 0.4rem;
  background: white;
  padding: 0.35rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.jb-contact-option-menu[hidden] {
  display: none;
}

.jb-contact-option-action {
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  padding: 0.55rem 0.65rem;
  color: var(--site-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.jb-contact-option-action:hover,
.jb-contact-option-action:focus-visible {
  background: #eff6ff;
  color: var(--site-blue);
}

.jb-contact-field-error {
  color: #b91c1c;
  font-size: 0.9rem;
}

.jb-contact-field-error[hidden] {
  display: none;
}

.jb-contact-form {
  display: grid;
  gap: 1rem;
}

.jb-contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.jb-contact-form input:not([type="checkbox"]),
.jb-contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
  padding: 0.8rem;
}

.jb-contact-form input:focus,
.jb-contact-form textarea:focus {
  border-color: var(--site-blue);
  outline: 2px solid #bfdbfe;
}

.jb-contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.jb-contact-form button {
  width: fit-content;
  border: 0;
  border-radius: 0.35rem;
  background: var(--site-blue);
  padding: 0.9rem 1.4rem;
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.jb-contact-status {
  min-height: 1.5rem;
}

.jb-about-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.jb-about-intro {
  max-width: 56rem;
}

.jb-about-intro h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.jb-about-intro > p:last-child,
.jb-about-story p,
.jb-about-bottom p {
  color: var(--site-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.jb-about-story,
.jb-about-bottom {
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2.5rem 0;
}

.jb-about-story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.65rem;
  object-fit: cover;
}

.jb-about-services {
  margin: 2.5rem 0;
}

.jb-about-services > h2,
.jb-about-bottom h2 {
  font-size: 1.8rem;
}

.jb-about-bottom li {
  margin: 0.7rem 0;
}

.jb-about-cta {
  display: inline-block;
  margin-top: 1rem;
  border-radius: 0.35rem;
  background: var(--site-blue);
  padding: 0.85rem 1.25rem;
  color: white;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .jb-home-hero {
    min-height: 34rem;
  }

  .site-header .u-logo {
    width: 112px;
  }

  .site-header .site-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .site-header-inner {
    box-sizing: border-box;
  }

  .site-menu-panel {
    position: absolute;
    top: 100%;
    right: auto;
    left: 1rem;
    box-sizing: border-box;
    width: min(26rem, calc(100vw - 2rem));
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding: 0.5rem 1.25rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .site-menu {
    position: static;
  }

  .site-footer-content,
  .jb-contact-grid,
  .jb-about-story,
  .jb-about-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .jb-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jb-home-actions a {
    transition: none;
  }
}
