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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Heebo", sans-serif;
  background: #141414;
  color: #d4d4d4;
}

:root {
  --layout-max-width: min(100%, 580px);
  --layout-header-gap: clamp(0.15rem, 0.5dvh, 0.35rem);
  --layout-title-content-gap: clamp(0.75rem, 2.2dvh, 1.25rem);
  --layout-section-gap: clamp(0.9rem, 3dvh, 1.6rem);
}

.page {
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  justify-items: center;
  padding: clamp(0.4rem, 1.2dvh, 0.85rem) clamp(0.65rem, 4vw, 1.25rem) clamp(0.35rem, 1dvh, 0.65rem);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.32) 100%),
    url("/assets/dark-concrete.jpg") center / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.32) 100%),
    image-set(
      url("/assets/dark-concrete.webp") type("image/webp"),
      url("/assets/dark-concrete.jpg") type("image/jpeg")
    ) center / cover no-repeat;
  background-color: #1a1a1a;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.35), transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.04), transparent 45%);
  pointer-events: none;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.05), transparent 58%);
  pointer-events: none;
}

.site-header,
.page-main,
.site-footer {
  position: relative;
  z-index: 1;
  width: var(--layout-max-width);
}

.site-header {
  flex-shrink: 0;
}

.site-footer {
  flex-shrink: 0;
  position: relative;
  margin-top: var(--layout-section-gap);
}

.page-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
  margin-top: var(--layout-header-gap);
}

.page-home .page-main {
  gap: var(--layout-section-gap);
}

.home-hero {
  text-align: center;
  width: 100%;
}

.page-about .page-main {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--layout-section-gap);
}

.page-about .page-main::-webkit-scrollbar {
  display: none;
}

.page h1 {
  font-size: clamp(1.95rem, 7.8vw, 2.85rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.page h2 {
  font-size: clamp(1.15rem, 4.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
}

.page h3 {
  font-size: clamp(0.88rem, 3.4vw, 1.05rem);
  font-weight: 700;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: clamp(0.25rem, 0.8dvh, 0.5rem);
}

.nav-link {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #bdbdbd;
  border: 2px solid #666;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 20%),
    linear-gradient(180deg, #444 0%, #2e2e2e 45%, #3a3a3a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 3px 8px rgba(0, 0, 0, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: #e8e8e8;
  border-color: #888;
}

.nav-link.active {
  color: #f0f0f0;
  border-color: #9a9a9a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 18%),
    linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 45%, #484848 100%);
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.6);
}

.metallic {
  color: #d8d8d8;
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.45),
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 2px 2px rgba(0, 0, 0, 0.55),
    0 4px 6px rgba(0, 0, 0, 0.35),
    0 8px 12px rgba(0, 0, 0, 0.25);
}

.hero {
  text-align: center;
}

.wrench {
  display: block;
  width: clamp(84px, 18dvh, 130px);
  height: clamp(84px, 18dvh, 130px);
  object-fit: contain;
  margin: 0 auto clamp(0.1rem, 0.35dvh, 0.25rem);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
  mix-blend-mode: lighten;
}

.home-hero h1 {
  font-size: clamp(2.15rem, 8.5vw, 3.15rem);
  margin: 0;
}

.home-hero > * + * {
  margin-top: clamp(0.1rem, 0.4dvh, 0.35rem);
}

.home-hero > h1 + * {
  margin-top: var(--layout-title-content-gap);
}

.home-hero h2 {
  font-size: clamp(1.35rem, 5.2vw, 1.85rem);
}

.about-content h1 {
  margin: 0;
}

.about-content > * + * {
  margin-top: clamp(0.65rem, 1.5dvh, 0.9rem);
}

.about-content > h1 + * {
  margin-top: var(--layout-title-content-gap);
}

.experience {
  font-size: clamp(1.05rem, 4.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: clamp(0.1rem, 0.4dvh, 0.35rem);
}

.tagline {
  font-size: clamp(0.95rem, 3.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  margin-inline: auto;
}

.contacts-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.35rem, 1dvh, 0.55rem);
  width: 100%;
}

.contacts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.35rem, 1dvh, 0.55rem);
  width: 100%;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: clamp(3.4rem, 10dvh, 5.5rem);
  padding: clamp(0.45rem, 1.2dvh, 0.85rem) 1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid #8a8a8a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 18%),
    linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 45%, #484848 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.5);
}

.contact-btn:active {
  transform: translateY(1px);
}

.contact-name {
  font-size: clamp(1rem, 3.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.1;
}

.contact-phone {
  font-size: clamp(0.92rem, 3.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  direction: ltr;
  line-height: 1.1;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.footer-label.small {
  font-size: 0.72rem;
  font-weight: 700;
}

.utility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 2px solid #8a8a8a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 20%),
    linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 45%, #484848 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.4);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.utility-btn .icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.9;
}

.a11y-toggle .a11y-icon {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 1;
}

.contact-link {
  padding-inline: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-link .envelope {
  width: 1.1rem;
  height: 1.1rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.about-text {
  font-size: clamp(0.74rem, 2.9vw, 0.88rem);
  font-weight: 400;
  line-height: 1.4;
}

.faq {
  margin-top: 0.15rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: start;
}

.faq-item {
  border: 1px solid #666;
  border-radius: 0.75rem;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item.is-open:not(.is-closing) {
  border-color: #888;
  background: rgba(0, 0, 0, 0.22);
}

.faq-item:not([open]) > .faq-answer-body {
  display: grid;
}

.faq-question {
  font-size: clamp(0.76rem, 2.9vw, 0.9rem);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  display: inline-block;
  margin-inline-end: 0.3em;
  font-weight: 900;
  transition: transform 0.25s ease;
  transform-origin: center;
}

.faq-item.is-open:not(.is-closing) .faq-question::before {
  transform: rotate(45deg);
}

.faq-answer-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-item.is-open:not(.is-closing) .faq-answer-body {
  grid-template-rows: 1fr;
}

.faq-item.is-closing .faq-answer-body {
  grid-template-rows: 0fr;
}

.faq-answer {
  overflow: hidden;
  min-height: 0;
  margin-top: 0;
  opacity: 0;
  font-size: clamp(0.72rem, 2.8vw, 0.85rem);
  font-weight: 400;
  line-height: 1.4;
  transition: opacity 0.22s ease 0.04s, margin-top 0.28s ease;
}

.faq-item.is-open:not(.is-closing) .faq-answer {
  margin-top: 0.45rem;
  opacity: 1;
}

.faq-item.is-closing .faq-answer {
  margin-top: 0;
  opacity: 0;
  transition: opacity 0.16s ease, margin-top 0.28s ease;
}

.faq-answer a,
.about-justbiz a {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer-body,
  .faq-answer,
  .faq-question::before,
  .faq-item {
    transition: none;
  }
}

.a11y-panel {
  position: fixed;
  bottom: calc(clamp(3.5rem, 12dvh, 4.5rem) + env(safe-area-inset-bottom, 0px));
  inset-inline-end: max(0.85rem, env(safe-area-inset-right, 0px));
  width: min(17.5rem, calc(100vw - 1.7rem));
  padding: 0.75rem;
  border-radius: 1rem;
  border: 2px solid #8a8a8a;
  background: #2a2a2a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  z-index: 1000;
}

.a11y-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.a11y-panel h2 {
  color: #f0f0f0;
}

.a11y-panel__close {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #888;
  border-radius: 999px;
  background: #444;
  color: #f0f0f0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.a11y-panel__actions {
  display: grid;
  gap: 0.45rem;
}

.a11y-action {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 2px solid #777;
  background: linear-gradient(180deg, #555 0%, #3a3a3a 100%);
  color: #f0f0f0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.a11y-action:hover {
  border-color: #aaa;
}

.a11y-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.a11y-action[aria-pressed="true"] {
  border-color: #f0f0f0;
  background: linear-gradient(180deg, #666 0%, #444 100%);
}

.a11y-action--reset {
  margin-top: 0.15rem;
}

html.a11y-high-contrast .page {
  background: #000 !important;
}

html.a11y-high-contrast .page::before,
html.a11y-high-contrast .page::after {
  display: none;
}

html.a11y-high-contrast .metallic,
html.a11y-high-contrast .a11y-panel h2 {
  color: #fff !important;
  text-shadow: none !important;
}

html.a11y-high-contrast .nav-link,
html.a11y-high-contrast .contact-btn,
html.a11y-high-contrast .utility-btn,
html.a11y-high-contrast .a11y-action,
html.a11y-high-contrast .a11y-panel {
  background: #000 !important;
  border-color: #fff !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.a11y-high-contrast .wrench {
  filter: contrast(1.4) brightness(1.2);
  mix-blend-mode: normal;
}

html.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
}

html.a11y-readable-font body {
  font-family: Arial, Helvetica, sans-serif !important;
}

@media (max-height: 680px) {
  .metallic {
    text-shadow:
      0 -1px 0 rgba(255, 255, 255, 0.4),
      0 1px 0 rgba(0, 0, 0, 0.8),
      0 2px 3px rgba(0, 0, 0, 0.45);
  }

  .wrench {
    width: clamp(72px, 16dvh, 110px);
    height: clamp(72px, 16dvh, 110px);
  }

  .contact-btn {
    min-height: clamp(3rem, 9dvh, 3.6rem);
  }

  .about-text,
  .faq-answer {
    font-size: clamp(0.68rem, 2.6vw, 0.82rem);
    line-height: 1.3;
  }

  .page h2,
  .page h3,
  .faq-question {
    font-size: clamp(0.88rem, 3.2vw, 1rem);
  }

  .page h1 {
    font-size: clamp(1.7rem, 6.8vw, 2.35rem);
  }

  .home-hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.65rem);
  }

  .home-hero h2 {
    font-size: clamp(1.15rem, 4.5vw, 1.55rem);
  }

  .experience {
    font-size: clamp(0.95rem, 3.8vw, 1.2rem);
  }

  .tagline {
    font-size: clamp(0.88rem, 3.4vw, 1.1rem);
  }
}
