/* FabWorksGA v1 beta — static marketing site */

:root {
  --bg: #0c0f12;
  --bg-elevated: #141a21;
  --bg-muted: #0f1318;
  --text: #e8eaed;
  --text-muted: #9aa3ad;
  --accent: #e87722;
  --accent-hover: #f09040;
  --accent-dim: rgba(232, 119, 34, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Sans", var(--font-sans);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --header-h: 4rem;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

.logo__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--accent), #c45a12);
  color: #0c0f12;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 10px;
}

.logo__suffix {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav__list a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.5rem 1rem;
  background: var(--accent-dim);
  color: var(--accent) !important;
  border-radius: 999px;
  border: 1px solid rgba(232, 119, 34, 0.35);
}

.nav__cta:hover {
  background: rgba(232, 119, 34, 0.28);
  color: var(--accent-hover) !important;
}

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

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 1rem 1rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav__list a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .nav__list a:hover {
    background: var(--bg-elevated);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(12, 15, 18, 0.92) 35%,
    rgba(12, 15, 18, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero__accent {
  color: var(--accent);
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__note strong {
  color: var(--text);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #0c0f12;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #0c0f12;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn--block {
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section--tight {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.section--muted {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__sub {
  margin: 0;
  color: var(--text-muted);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__image img {
  transform: scale(1.03);
}

.card__title {
  margin: 0 0 0.5rem;
  padding: 1.25rem 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.card__body {
  margin: 0;
  padding: 0 1.25rem 1.35rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Audience */
.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .audience {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.audience__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.audience__index {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  opacity: 0.9;
}

.audience__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.audience__item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Split */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .split--reverse .split__text {
    order: 2;
  }

  .split--reverse .split__media {
    order: 1;
  }
}

.split__text h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.split__text > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.equipment {
  margin: 1.25rem 0 1rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.equipment li {
  margin-bottom: 0.35rem;
}

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.split__media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.split__media--map iframe {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  filter: grayscale(0.2) contrast(1.05);
}

.section--geo {
  border-top: 1px solid var(--border);
}

.text-link {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Contact */
.section--contact {
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact__intro {
  margin-top: 0.75rem;
}

.contact__direct {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.contact__direct li {
  margin-bottom: 1rem;
}

.contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.form {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form__row {
  margin-bottom: 1.1rem;
}

.form__row--half {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 480px) {
  .form__row--half {
    grid-template-columns: 1fr 1fr;
  }
}

.form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--accent);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form__fine {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--accent-hover);
}

.form__fine.is-error {
  color: #f87171;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  }
}

.footer__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer__legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__grid p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer__grid a {
  color: var(--text);
}

.footer__grid a:hover {
  color: var(--accent);
}
