/*
Theme Name: PFI Arms
Theme URI: https://pfiarms.com/
Author: Puskas Firearm Innovations
Description: Custom tactical landing theme for PFI Arms with a separate landing page template.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: pfiarms
*/

:root {
  --bg: #080908;
  --panel: #11130f;
  --panel-strong: #171a14;
  --text: #f4efe6;
  --muted: #b0a99a;
  --subtle: #746f63;
  --line: #2b3026;
  --accent: #c3a45b;
  --accent-strong: #e0bd6e;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(105, 128, 77, .22), transparent 34rem),
    linear-gradient(180deg, #0d0f0b 0%, var(--bg) 42%, #0b0c0a 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(224, 189, 110, .85);
  outline-offset: 4px;
}

.site-shell { overflow: hidden; }
.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(195, 164, 91, .18);
  background: rgba(8, 9, 8, .86);
  backdrop-filter: blur(16px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(195, 164, 91, .35);
  border-radius: 50%;
  background: #efe9dd;
  object-fit: cover;
}
.brand span { display: block; }
.brand-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-subtitle {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--accent-strong); }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 9, 8, .95) 0%, rgba(8, 9, 8, .76) 38%, rgba(8, 9, 8, .32) 100%),
    linear-gradient(0deg, rgba(8, 9, 8, .95) 0%, transparent 42%),
    var(--hero-image, none) center right / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: end;
  padding: 88px 0 72px;
}
.notice {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(195, 164, 91, .38);
  background: rgba(29, 34, 26, .72);
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.notice-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #72d177;
  box-shadow: 0 0 18px rgba(114, 209, 119, .8);
}
h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.25rem);
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(195, 164, 91, .46);
  background: var(--accent);
  color: #12110d;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
}
.button.secondary {
  background: rgba(17, 19, 15, .7);
  color: var(--text);
}
.button.secondary:hover {
  border-color: var(--accent-strong);
  background: rgba(29, 34, 26, .9);
}
.status-card {
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(195, 164, 91, .28);
  background: rgba(17, 19, 15, .76);
  box-shadow: var(--shadow);
}
.status-card img {
  width: 132px;
  height: 132px;
  margin-bottom: 20px;
  border: 1px solid rgba(195, 164, 91, .34);
  border-radius: 50%;
  background: #f1eadc;
  object-fit: cover;
}
.status-card h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.section { padding: 86px 0; }
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section-header p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.intro-item {
  min-height: 220px;
  padding: 28px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}
.intro-item strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: .98rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.intro-item p {
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.gallery-item.large {
  grid-column: span 8;
  min-height: 430px;
}
.gallery-item.medium {
  grid-column: span 4;
  min-height: 430px;
}
.gallery-item.small { grid-column: span 4; }
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(.9) contrast(1.06);
  transition: transform .45s ease, filter .45s ease;
}
.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.02) contrast(1.08);
}
.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 20px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .88), transparent);
}
.gallery-caption strong, .gallery-caption span { display: block; }
.gallery-caption strong {
  font-size: .94rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.gallery-caption span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .88rem;
}

.contact-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(17, 19, 15, .96), rgba(17, 19, 15, .84)),
    var(--contact-image, none) center / cover no-repeat;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  padding: 58px 0;
}
.contact-grid h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.15rem);
  line-height: 1;
  text-transform: uppercase;
}
.contact-grid p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
}
.contact-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-style: normal;
}
.contact-list a:hover { color: var(--accent-strong); }

.wp-page-content {
  padding: 70px 0;
}
.wp-page-content h1,
.wp-page-content h2,
.wp-page-content h3 {
  line-height: 1.05;
  text-transform: uppercase;
}
.wp-page-content a {
  color: var(--accent-strong);
}

.site-footer {
  padding: 34px 0;
  background: #060706;
  color: var(--subtle);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.social-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease;
}
.social-links a:hover {
  border-color: rgba(195, 164, 91, .65);
  color: var(--accent-strong);
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .hero-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 70px; }
  .status-card { max-width: 440px; }
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .intro-grid { grid-template-columns: 1fr; }
  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small { grid-column: span 6; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }
  .brand-name { font-size: .88rem; }
  .brand-subtitle, .nav-links { font-size: .72rem; }
  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .hero { min-height: auto; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 9, 8, .84) 0%, rgba(8, 9, 8, .98) 78%),
      var(--hero-image, none) center / cover no-repeat;
  }
  .hero-inner {
    gap: 32px;
    padding: 54px 0;
  }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 58px 0; }
  .gallery-grid { gap: 12px; }
  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small {
    grid-column: 1 / -1;
    min-height: 280px;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
