/* The Old Gunsite - site styles (Bootstrap 5 is loaded first, this sits on top) */

:root {
  --maroon: #4c0202;
  --cream: #dfc59b;
  --gold: #e9ae43;
  --gold-dim: #c9a869;
  --text: #efe6d6;
  --line: rgba(223, 197, 155, .28);
}

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: var(--text);
  /* the concept is set in Myriad Pro; Source Sans 3 is the closest free web font
     and is what visitors get unless Myriad is installed on their device */
  font-family: 'Myriad Pro', 'Myriad Web Pro', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--gold); }
a:hover { color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--gold);
  color: #000;
  padding: .5rem 1rem;
}
.skip-link:focus { left: 0; color: #000; }

/* ---------- header ---------- */

.site-header {
  background: #000;
  padding: 1.1rem 0;
}

.site-header .brand img {
  display: block;
  width: clamp(92px, 17vw, 270px);
}

/* tagline is artwork lifted from the concept (it's set in Zapfino there) */
.tagline {
  flex: 1;
  margin: 0;
  text-align: center;
}
.tagline img {
  display: inline-block;
  width: min(100%, 860px);
  height: auto;
}

/* phones: logo above the tagline so the script artwork stays readable */
@media (max-width: 575.98px) {
  .site-header { padding: .9rem 0 1rem; }
  .site-header .container-xxl { flex-direction: column; gap: .5rem !important; }
  .site-header .brand img { width: 108px; }
  .tagline { width: 100%; }
  .tagline img { width: min(100%, 340px); }
}

/* ---------- navigation ---------- */

.site-nav {
  background: var(--maroon);
  padding: 0;
  /* Bootstrap's default is .5rem each side; +5px each side opens the gap between items by 10px */
  --bs-navbar-nav-link-padding-x: calc(.5rem + 5px);
}

.site-nav .navbar-toggler {
  border-color: rgba(223, 197, 155, .5);
  margin: .6rem 0;
}

.site-nav .nav-link {
  color: var(--cream);
  text-transform: uppercase;
  font-size: clamp(1rem, 1.7vw, 1.55rem);
  padding: 1rem 1.15rem;
  position: relative;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus { color: #fff; }

.site-nav .nav-link.active {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--gold);
}

@media (min-width: 768px) {
  .site-nav .navbar-nav { align-items: center; }
  .site-nav .nav-item + .nav-item::before {
    content: "|";
    color: var(--cream);
    position: absolute;
    margin-left: -.15rem;
    font-size: 1.4em;
    line-height: 1;
    opacity: .85;
  }
  .site-nav .nav-item { display: flex; align-items: center; }
}

@media (max-width: 767.98px) {
  .site-nav .nav-link { padding: .8rem 0; border-top: 1px solid rgba(223, 197, 155, .15); }
  .site-nav .nav-link.active { box-shadow: none; color: var(--gold); }
}

/* ---------- banner ---------- */

.banner img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center;
}

/* ---------- scene (fireworks / crates background) ---------- */

.scene-wrap {
  container-type: inline-size;
  max-width: 2000px;
  margin: 0 auto;
  background: #000;
}

.scene {
  position: relative;
  background: #000 url('../images/bg-scene.jpg') no-repeat center -25cqw / 100% auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem);
}

/* soft fade so the background doesn't stop on a hard line above the footer */
.scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(60px, 9vw, 140px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
  pointer-events: none;
}

.intro { max-width: 1100px; margin: 0 auto; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }

.intro h1 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.4rem;
}

.intro .sub {
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  color: #fff;
  line-height: 1.4;
  margin: 0 auto 1.6rem;
  max-width: 640px;
}

.intro .copy {
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
}

.script-line {
  font-family: 'Pinyon Script', 'Brush Script MT', cursive;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  color: var(--cream);
  line-height: 1.3;
  margin: 1.8rem 0 0;
}

/* ---------- product categories ---------- */

.categories { margin-top: clamp(2.5rem, 6vw, 5rem); }

.section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 2.4rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  margin: .8rem auto 0;
  background: linear-gradient(90deg, transparent, #b3202a, transparent);
}

.category { text-align: center; margin-bottom: 2.6rem; }

.category .badge-img {
  display: block;
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .65);
  transition: transform .35s ease, box-shadow .35s ease;
}
.category:hover .badge-img {
  transform: scale(1.035);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .8), 0 0 28px rgba(233, 174, 67, .25);
}

.category .body {
  max-width: 360px;
  margin: 0 auto;
  padding: .9rem 1.1rem 1rem;
  background: rgba(0, 0, 0, .58);
  border-radius: 6px;
}

.category h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: .45rem;
}

.category p {
  font-size: .98rem;
  line-height: 1.55;
  color: #eadfca;
  margin: 0;
}

/* ---------- about page ---------- */

.panel {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(0, 0, 0, .74);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.25rem, 4.2vw, 3.2rem);
}

.page-kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.panel .headline {
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .6rem;
}

.panel .sub {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 1.4rem;
}

.panel p strong { color: #fff; }

.details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2.5rem;
  margin: 1.6rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .details { grid-template-columns: 1fr 1fr; } }

.details h2,
.letter h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .5rem;
}

.details address { margin: 0; font-style: normal; line-height: 1.7; }
.details dl { margin: 0; }
.details dt { float: left; clear: left; margin-right: .5rem; color: var(--cream); font-weight: 600; }
.details dd { margin: 0 0 .25rem; }

.letter {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.letter h2.letter-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  font-weight: 600;
  margin-bottom: .2rem;
}

.letter .letter-sub { color: var(--gold-dim); margin-bottom: 1rem; }

.letter h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 2rem 0 .35rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}

.letter ul { padding-left: 1.2rem; }
.letter li { margin-bottom: .45rem; }
.letter li::marker { color: var(--gold); }

.contact-list { list-style: none; padding: 0 !important; }
.contact-list li { margin-bottom: .6rem; }

.letter-keys {
  margin: 2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--cream);
  font-size: .95rem;
  letter-spacing: .04em;
}
.letter-keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem 1rem;
}
@media (min-width: 768px) {
  .letter-keys { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 0; }
  .letter-keys span + span::before { content: "\25C6"; color: var(--gold); margin: 0 .75rem; font-size: .7em; vertical-align: middle; }
}

/* ---------- contact page ---------- */

.panel .headline.is-lead {
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  line-height: 1.3;
}

.contact-direct {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-direct li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1rem;
}
.contact-direct .label {
  min-width: 2.4rem;
  color: var(--cream);
  font-weight: 600;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  line-height: 1.3;
}
.contact-direct a {
  color: var(--gold);
  text-decoration: none;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact-direct a:hover { color: #fff; }

/* ---------- footer ---------- */

.footer-top { background: #000; padding: 2.4rem 0 2.2rem; }

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 0;
}
@media (min-width: 768px) {
  .trust { grid-template-columns: repeat(4, auto); }
}

.trust li {
  text-align: center;
  padding: 0 1.4rem;
}
.trust li:nth-child(even) { border-left: 1px solid rgba(179, 32, 42, .6); }
@media (min-width: 768px) {
  .trust li + li { border-left: 1px solid rgba(179, 32, 42, .6); }
}

.trust img { display: block; height: 52px; width: auto; margin: 0 auto .6rem; }

.trust span {
  display: block;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--gold-dim);
}

.social { display: flex; gap: 1rem; justify-content: center; }
.social a {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.35rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.social a:hover { background: var(--gold); color: #000; }

.contact-bar {
  background: var(--maroon);
  color: var(--gold);
  padding: 1.5rem 0;
  scroll-margin-top: 1rem;
}
.contact-bar .note {
  text-align: center;
  color: var(--cream);
  font-size: .98rem;
  margin: 0 0 .7rem;
}
.contact-bar a {
  color: var(--gold);
  text-decoration: none;
  font-size: clamp(1.15rem, 2.3vw, 2rem);
  line-height: 1.3;
}
.contact-bar a:hover { color: #fff; }

.footer-bottom {
  background: #000;
  padding: 1.6rem 0 2rem;
  text-align: center;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .95rem;
  font-weight: 600;
  padding: .7rem 1.5rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.btn-download:hover,
.btn-download:focus { background: var(--gold); color: #000; }

.copyright {
  color: var(--gold);
  font-size: 1rem;
  margin: 1.4rem 0 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category .badge-img { transition: none; }
}
