/* Deschutes Arms and Munitions — V4-01: The Establishment
   Navy-and-brass civic dignity. Mobile-first (375px), breakpoints 640/960. */

:root {
  --navy: #0f2d4a;
  --cream: #f5f0e8;
  --brass: #c09050;
  --muted: #8a7a6a;
  --ink: #0f2d4a;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 2px;
  --max: 1200px;

  --space-s: 0.75rem;
  --space-m: 1.25rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  --hero-overlay-top: rgba(15, 45, 74, 0.55);
  --hero-overlay-bottom: rgba(15, 45, 74, 0.75);

  --nav-height: 64px;
  --tap: 44px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius);
}

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

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.btn--primary {
  background: var(--brass);
  color: var(--navy);
  border-color: var(--brass);
}
.btn--primary:hover { background: #b17f3d; border-color: #b17f3d; }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn--ghost:hover { background: rgba(245, 240, 232, 0.1); }

.btn--ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  letter-spacing: 0.04em;
}
.btn--ghost-dark:hover { background: var(--navy); color: var(--cream); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(15, 45, 74, 0.08);
  z-index: 50;
}

.nav__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.875rem clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.nav__mark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}
.nav__mark-line--sub {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav__links {
  display: none;
  justify-content: center;
  gap: 1.75rem;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.25rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.nav__links a:hover { color: var(--brass); }

.nav__phone {
  font-size: 0.8125rem;
  padding: 0.6rem 0.9rem;
  min-height: var(--tap);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .nav__mark { font-size: 1.125rem; flex-direction: row; gap: 0.4rem; }
  .nav__mark-line--sub { font-size: 1.125rem; font-weight: 400; }
}
@media (min-width: 960px) {
  .nav__links { display: inline-flex; }
  .nav__phone { font-size: 0.875rem; padding: 0.7rem 1.1rem; }
}

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.25rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 1.5rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 2rem) clamp(1rem, 4vw, 2rem) 3rem;
  background:
    linear-gradient(180deg, var(--hero-overlay-top), var(--hero-overlay-bottom)),
    url("https://images.unsplash.com/photo-1644144557346-5775e758b7f7?w=1800&auto=format&fit=crop&q=85") center/cover no-repeat;
  background-color: var(--navy);
  color: var(--cream);
  text-align: center;
}

.hero__inner {
  max-width: 56rem;
  margin-inline: auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 1.25rem;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto 2rem;
  color: rgba(245, 240, 232, 0.92);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* ---------- Trust strip ---------- */

.trust {
  background: var(--cream);
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  padding: 1rem clamp(1rem, 4vw, 2rem);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
}
.trust__inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  justify-content: center;
  align-items: center;
}
.trust__dot { color: var(--brass); }

@media (min-width: 640px) {
  .trust { font-size: 0.875rem; }
}

/* ---------- Services ---------- */

.services {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.services .section__title { text-align: center; margin-bottom: 2.5rem; }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.card {
  background: var(--cream);
  border-top: 3px solid var(--brass);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 45, 74, 0.06);
  display: flex;
  flex-direction: column;
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e6ddcd;
  margin: -1.75rem -1.75rem 1.5rem;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.card__body {
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}

/* ---------- Welcoming ---------- */

.welcoming {
  background: #eee6d6;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.welcoming__grid {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.welcoming__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.welcoming__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.welcoming__body p {
  margin: 0 0 1.5rem;
  max-width: 44ch;
}

@media (min-width: 820px) {
  .welcoming__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .welcoming__figure { aspect-ratio: 3 / 4; max-height: 560px; }
}

/* ---------- Reviews ---------- */

.reviews {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--cream);
}
.reviews .section__title { text-align: center; }

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 820px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}

.pull {
  margin: 0;
  padding: 0 0.5rem;
  text-align: center;
}
.pull p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 1rem;
  position: relative;
}
.pull p::before {
  content: "\201C";
  display: block;
  font-size: 2.75rem;
  line-height: 0.8;
  color: var(--brass);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}
.pull cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.reviews__note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2rem;
  font-style: italic;
}

/* ---------- Location ---------- */

.location {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: #ece3d2;
}
.location__grid {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.location__address {
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  color: var(--navy);
  margin: 0 0 1.5rem;
  line-height: 1.4;
}
.location__hours {
  margin: 0 0 1.75rem;
  padding: 0;
  font-size: 1rem;
}
.location__hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 45, 74, 0.12);
}
.location__hours dt { font-weight: 600; color: var(--navy); }
.location__hours dd { margin: 0; color: var(--ink); }

.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #ddd2bc;
  border: 1px solid rgba(15, 45, 74, 0.1);
}
.location__map svg { width: 100%; height: 100%; display: block; }

@media (min-width: 820px) {
  .location__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
}
.contact__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.contact .section__title { color: var(--cream); }
.contact p {
  max-width: 48ch;
  margin: 0 auto 2rem;
  color: rgba(245, 240, 232, 0.9);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: var(--cream);
  border-top: 1px solid rgba(192, 144, 80, 0.25);
}
.footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 2rem;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}
.footer__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}
.footer__col p { margin: 0 0 0.5rem; font-size: 0.9375rem; line-height: 1.55; }
.footer__col a { color: var(--cream); text-decoration: none; border-bottom: 1px solid transparent; }
.footer__col a:hover { border-bottom-color: var(--brass); }

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list li { margin-bottom: 0.5rem; font-size: 0.9375rem; }

.footer__socials { margin-top: 1rem; font-size: 0.875rem; }

.footer__legal {
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__ffl-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brass);
  letter-spacing: 0.04em;
}
.footer__age {
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.55;
}
.footer__copy { color: rgba(245, 240, 232, 0.65); }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__inner.reveal {
  transform: translateY(16px);
  transition-duration: 400ms;
  transition-delay: 40ms;
  animation: heroFadeUp 400ms ease-out 40ms forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  .hero__inner.reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
