/* =============================
Badass Holster — styles.css (clean + mobile-friendly)
============================= */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* --- Theme --- */
:root {
  --bg: #0b0c0f;
  --bg-elev: #12141a;
  --bg-hero: radial-gradient(1200px 600px at 10% 0%, #1a1f2b 0%, #0b0c0f 60%);
  --text: #f4f6f8;
  --muted: #aab4c0;
  --brand: #ff4d3d;
  --accent: #ffd166;
  --stroke: #1f2430;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1120px;
}

/* --- Layout --- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding-block: 40px; }
.stack { display: grid; gap: 1rem; }

/* --- Utilities --- */
.text-center { text-align: center; }
.dim { color: var(--muted); }
.m-0 { margin: 0; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-6 { margin-top: 2rem; }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--stroke);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; flex-wrap: wrap;
}
.nav__links { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav__link {
  color: var(--muted);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.nav__link:hover { background: #181b23; color: var(--text); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #0b0c0f;
  border: none;
  border-radius: 999px;
  padding: .85rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease;
}
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.4rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--stealth {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  transition: all .25s ease;
}
.btn--stealth:hover {
  color: #0b0c0f;
  background: var(--brand);
  text-decoration: none;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-lg);
}
/* === Header & Logo Fix === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 15, 0.95);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}

/* Navigation container */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0; /* Adjust vertical spacing */
  min-height: 70px;
}

/* Brand logo wrapper */
.brand {
  display: flex;
  align-items: center;
}

/* Logo sizing */
.brand img {
  height: 60px;       /* consistent logo height */
  width: auto;
  max-width: 160px;   /* prevents stretching */
  transition: transform .2s ease;
}

/* Shrink logo slightly on scroll */
@media (min-width: 900px) {
  .header.scrolled .brand img {
    height: 50px;
  }
}

/* Keep nav links aligned */
.nav__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Make sure it's stable on mobile */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .nav__links {
    justify-content: center;
  }
  .brand img {
    height: 50px;
  }
}


/* --- Flashbar --- */
.flashbar {
  background: #10131a;
  border-bottom: 1px solid var(--stroke);
}
.flashbar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.flashbar__msg { font-weight: 800; }

/* --- Hero --- */
.hero {
  background: var(--bg-hero);
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
}

/* --- Badges --- */
.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge {
  background: #171a22;
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
}
.badge--accent { background: var(--accent); color: #1a1a1a; }

/* --- Cards --- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card__body { padding: 1.25rem; }

/* --- Product Section --- */
.shop__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .shop__wrap { grid-template-columns: 1fr; }
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.price__now {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 900;
}
.urgency { text-align: right; }
@media (max-width: 600px) { .urgency { text-align: left; } }

/* --- Reviews --- */
.review {
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  padding: 1.25rem;
}
.stars { color: gold; }

/* --- Guarantee --- */
.guarantee-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}
.guarantee-seal img { max-width: 180px; display: block; margin: auto; }
@media (max-width: 800px) {
  .guarantee-content { grid-template-columns: 1fr; text-align: center; }
}

/* --- FAQ --- */
.faq { background: #0a0c11; border-top: 1px solid var(--stroke); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
}

/* --- Footer --- */
.footer {
  background: #0b0c0f;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
}
.footer__wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.footer__brand img { height: 42px; }
.footer__links { display: grid; gap: .4rem; }
.footer__nl { display: flex; gap: .5rem; flex-wrap: wrap; }
.input {
  background: #0f1218;
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: .75rem .9rem;
  flex: 1;
}
.footer__copy {
  text-align: center;
  font-size: .9rem;
  margin-top: 1rem;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .footer__wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer__wrap { grid-template-columns: 1fr; text-align: center; }
}
/* === Image Optimization Rules === */
img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain; /* prevent cropping on product shot */
}

@media (max-width: 900px) {
  .hero__media img {
    object-fit: cover; /* fills the space better on smaller screens */
  }
}
/* === Site Footer (Updated for trust icons layout) === */
.site-footer {
  background: #0b0c0f;
  color: var(--text);
  border-top: 1px solid var(--stroke);
  padding: 2rem 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Left column: footer links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand);
}

/* Center section: trust icons */
.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #11151d;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: var(--accent);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--stroke);
  font-size: 0.9rem;
}

.trust-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Right column: copyright */
.legal {
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .trust {
    justify-content: center;
  }

  .legal {
    text-align: center;
  }
}
/* === BLACK FRIDAY BANNER === */
.bf-banner {
  background: linear-gradient(to right, #b91c1c, #000, #b91c1c);
  color: #fff;
  text-align: center;
  padding: 1rem;
  border-top: 2px solid #ffcc00;
  border-bottom: 2px solid #ffcc00;
}

.bf-banner-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

.bf-banner-text span {
  color: #ffcc00;
}

.bf-banner-link {
  color: #ffcc00;
  text-decoration: underline;
  margin-left: 6px;
  transition: color 0.3s ease;
}

.bf-banner-link:hover {
  color: #fff;
}

.bf-banner-sub {
  font-size: 0.9rem;
  color: #ccc;
  font-style: italic;
  margin-top: 4px;
}
/* === END BLACK FRIDAY BANNER === */

/* === WIDE BODY PROMO SECTION (Refined) === */
.widebody {
  background: #0a0c11;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: clamp(60px, 8vw, 100px) 0;
}

.widebody__wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: left;
}

.widebody__image {
  flex: 1 1 45%;
  text-align: center;
}

.widebody__image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.widebody__text {
  flex: 1 1 45%;
}

.widebody__text h2 {
  font-size: 2rem;
  font-weight: 800;
}

.widebody__text .accent {
  color: var(--accent);
}

.widebody__text p {
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .widebody__wrap {
    flex-direction: column;
    text-align: center;
  }

  .widebody__text h2 {
    font-size: 1.75rem;
  }

  .widebody__image img {
    max-width: 360px;
  }
}
/* === WIDE BODY BANNER === */
.widebody__banner {
  background: linear-gradient(90deg, #ff4d3d, #ff9f43);
  text-align: center;
  padding: 0.75rem 1rem 1rem;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  font-weight: 900;
  color: #0b0c0f;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.1rem;
  animation: pulseGlow 2s infinite alternate;
}

.widebody__banner small {
  display: block;
  font-size: 0.85rem;
  color: #222;
  font-weight: 600;
  margin-top: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(255, 77, 61, 0.5); }
  100% { box-shadow: 0 0 20px rgba(255, 159, 67, 0.8); }
}
/* === HERO OVERLAY FIX === */
.hero--photo {
  position: relative;
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 85vh;
}


.hero__inner {
  position: relative;
  z-index: 1;
}
/* === BLACK FRIDAY COUNTDOWN === */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.countdown div {
  text-align: center;
}

.countdown span {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 77, 61, 0.6);
}

.countdown small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* ================= NAV DROPDOWN ================= */

.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

.nav__dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  background: #0b0c0f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav__dropdown-item {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav__dropdown-item:hover {
  background: rgba(255,255,255,0.06);
}

/* Hover interaction */
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.section--statement {
  background-image: url('img/heritage-divider.jpg');
  background-size: cover;
  background-position: center;
}
