/* =============================================================
   V4-03 The Authority — Deschutes Arms and Munitions
   Black/white reference document with single signal-orange accent.
   ============================================================= */

:root {
  --black: #111111;
  --white: #f8f8f8;
  --orange: #e05500;
  --grey: #999999;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1320px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(5rem, 10vw, 8rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------------- Nav ---------------- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--black);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.nav-links a:hover { color: var(--orange); }

.nav-phone {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--black);
}
.nav-phone:hover { color: var(--orange); }

@media (max-width: 768px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
  .nav-links { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(to top, rgba(17,17,17,0.92) 0%, rgba(17,17,17,0.55) 55%, rgba(17,17,17,0.15) 100%),
    url("https://images.unsplash.com/photo-1644144557346-5775e758b7f7?w=1800&auto=format&fit=crop&q=85");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--gutter) clamp(3rem, 8vw, 6rem);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  margin: 0 0 1.5rem;
}

.hero-heading {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 1.5rem;
  max-width: 18ch;
}

.hero-heading::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--orange);
  margin-right: 0.5rem;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 120ms ease-out;
}

.loaded .hero-heading::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-heading::before { opacity: 1; transition: none; }
}

.hero-sub {
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  max-width: 56ch;
  margin: 0 0 2rem;
  color: var(--white);
  opacity: 0.9;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-ghost:hover { background: var(--black); color: var(--white); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost-light:hover { background: var(--white); color: var(--black); }

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: var(--orange); }

/* ---------------- Trust strip ---------------- */
.trust {
  background: var(--white);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  text-align: center;
  padding: 1.25rem 0;
}

.trust-line {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--black);
  margin: 0 0 0.25rem;
}

.trust-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin: 0;
}

/* ---------------- Section primitives ---------------- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
}
.section-eyebrow.light { color: var(--orange); }
.section-eyebrow.dark { color: var(--black); opacity: 0.7; }

.section-h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0;
}
.section-h2.light { color: var(--white); }

/* ---------------- Services ---------------- */
.services { padding-block: var(--section); background: var(--white); }

.services-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  max-width: 60ch;
}

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--grey);
}

.svc-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--grey);
  align-items: start;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 280ms ease-out, transform 280ms ease-out;
}

.svc-row.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .svc-row {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.svc-fig {
  margin: 0;
  width: 100%;
}

.svc-fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.svc-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.5rem;
}

.svc-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 0.75rem;
}

.svc-copy {
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--black);
  margin: 0 0 0.75rem;
  max-width: 60ch;
}

.svc-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--grey);
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .svc-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .svc-fig img {
    max-height: 200px;
    aspect-ratio: auto;
    height: 200px;
  }
}

/* ---------------- Welcoming ---------------- */
.welcoming {
  background: var(--white);
  padding-top: var(--section);
}

.welcoming-inner {
  text-align: center;
  max-width: 760px;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.welcoming-inner .section-eyebrow {
  text-align: center;
}

.welcoming-heading {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  margin: 0 0 1.5rem;
}

.welcoming-body {
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--black);
  margin: 0 auto 2rem;
  max-width: 56ch;
}

.welcoming-fig {
  margin: 0;
  width: 100%;
}

.welcoming-fig img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
}

/* ---------------- Reviews ---------------- */
.reviews {
  background: var(--black);
  color: var(--white);
  padding-block: var(--section);
}

.reviews .section-h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.reviews-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.review {
  margin: 0;
  padding: 3rem 0;
  border-top: 1px solid #2a2a2a;
}
.review:last-child { border-bottom: 1px solid #2a2a2a; }

.review-quote {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 1.5rem;
  max-width: 70ch;
}

.review-attr {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------------- Location ---------------- */
.location {
  background: var(--white);
  padding-block: var(--section);
}

.location-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.location-heading {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  margin: 0 0 1.5rem;
}

.location-addr {
  font-style: normal;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0 0 1.75rem;
}

.hours {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 2rem;
  row-gap: 0.5rem;
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.hours dt {
  font-weight: 400;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.hours dd {
  margin: 0;
  color: var(--black);
}

.location-map svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--grey);
}

.map-coords {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin: 0.75rem 0 0;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Contact ---------------- */
.contact {
  background: var(--orange);
  padding-block: var(--section);
}

.contact-inner {
  max-width: 720px;
}

.contact-heading {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  margin: 0 0 1.5rem;
}

.contact-body {
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--black);
  margin: 0 0 2rem;
  max-width: 56ch;
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-col p { margin: 0 0 0.5rem; font-size: 0.9375rem; line-height: 1.6; }

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem !important;
}

.footer-license { color: var(--grey); font-size: 0.8125rem !important; }

.footer-license .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.75rem !important;
}

.footer-label--space { margin-top: 1.5rem !important; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9375rem;
}

.footer-links a:hover { color: var(--orange); }

.footer-col a { color: var(--white); }
.footer-col a:hover { color: var(--orange); }

.footer-legal {
  border-top: 1px solid #2a2a2a;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: var(--grey);
}

.age-disclaimer {
  margin: 0 0 0.75rem;
  max-width: 80ch;
  line-height: 1.5;
}

.copyright {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
