/* =========================================================
   GLOBAL
   ======================================================= */
:root {
  --green: #3f4638;
  --green-dark: #373d31;
  --gold: #b6944a;
  --offwhite: #f1ede2;
  --text-main: #171717;
  --text-muted: #444444;
  --border-subtle: #e4e4e4;
  --tile-radius: 18px;
  --shadow-soft: 0 4px 18px rgba(0,0,0,0.08);
  --shadow-soft-hover: 0 12px 28px rgba(0,0,0,0.12);
  --max-width: 1250px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: #ffffff;
}

a {
  color: var(--green);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* Shared page shell – hero + main use this so edges line up */
.hero-shell,
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: clamp(18px, 2vw, 24px);
}

main {
  padding-block: 32px 80px;
}

/* Spacing between sections inside main */
main > section {
  margin-block: clamp(40px, 7vw, 96px);
}

/* =========================================================
   NAVBAR – STICKY, NEVER HIDES
   ======================================================= */

.top-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--green-dark);
  z-index: 1000;
}

.top-nav.hide {
  /* JS may still toggle this class; make it a no-op so nav never disappears */
  transform: none;
}

.top-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 44px;
  padding-inline: clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--offwhite);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.95;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 0.6;
}

.ig-icon svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ig-icon:hover svg {
  opacity: 0.7;
  transform: translateY(-2px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--offwhite);
}

/* Mobile nav layout */
@media (max-width: 768px) {
  .top-nav-inner {
    position: relative;
    height: 44px;
    padding-inline: 14px;
    justify-content: center;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 44px;
    background: var(--green-dark);
    display: none;
    flex-direction: column;
    padding: 10px 18px 12px;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 1000;
  }

  .nav-links a {
    padding: 6px 0;
  }

  .nav-links.open {
    display: flex;
  }
}

/* =========================================================
   UPGRADE SECTION
   ======================================================= */

.section-divider {
  text-align: center;
  padding: clamp(40px, 9vw, 64px) 0 18px;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.section-divider.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-divider h2 {
  margin: 0 0 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #111;
}

.section-line-text {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-divider .line-1 {
  font-size: clamp(1.9rem, 2.3vw, 2.4rem);
  font-weight: 600;
  opacity: 0.88;
  letter-spacing: -0.01em;
}

.section-divider .line-2 {
  font-size: clamp(4rem, 6vw + 1rem, 7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-divider.visible .line-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.section-divider.visible .line-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

.accent-upgrade {
  background: linear-gradient(90deg, #b29a58, #d3c083);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 16px rgba(178,154,88,0.30),
    0 0 32px rgba(178,154,88,0.16);
}

.section-divider-rule {
  width: clamp(120px, 18vw, 260px);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0)
  );
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 1.1s ease-out 0.9s,
    transform 1.1s ease-out 0.9s;
}

.section-divider.visible .section-divider-rule {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile tweak for headline size */
@media (max-width: 700px) {
  .section-divider {
    padding: 28px 0 8px !important;
  }

  .section-divider h2 {
    font-size: 2rem !important;
    line-height: 1.05 !important;
    text-shadow: none !important;
    letter-spacing: -0.02em !important;
  }

  .section-line-text.line-1 {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: -0.25em !important;
  }

  .section-line-text.line-2 {
    font-size: clamp(3.6rem, 9vw, 4rem) !important;
    font-weight: 800 !important;
    margin-top: -0.15em !important;
    letter-spacing: -0.03em !important;
    line-height: 1.05 !important;
  }

  .accent-upgrade {
    text-shadow: 0 0 6px rgba(178,154,88,0.20) !important;
  }

  .section-divider-rule {
    width: 120px !important;
    margin-top: 10px !important;
    opacity: 0.6 !important;
  }
}

/* =========================================================
   HERO
   ======================================================= */

.hero {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s,
    transform 4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
  margin: 0;
}

.hero.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-header {
  background: #ffffff;
  border-bottom: none;
}

/* Card look shared by hero, about, where-to-buy, contact */
.hero-card,
.about-card,
.section-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  padding: 28px 32px 28px;
}

/* Hero grid */
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-left img {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.hero-left h1 {
  margin: 0 0 12px;
  font-size: 1.9rem;
  font-weight: 600;
}

.hero-left p {
  margin: 0 0 20px;
  font-size: 1.08rem;
}

.hero-right {
  min-width: 0;
}

.hero-meta {
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #777;
}

.hero-right-title {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 600;
  color: #111;
}

.hero-right p {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: #444;
}

/* Buttons */
.btn,
.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #000000;
  background: var(--gold);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.btn:hover,
.btn-primary:hover {
  background: #2f3428;
  transform: translateY(-2px);  /* optional micro-lift */
}

@media (max-width: 768px) {
  .btn {
    display: block;
    margin: 20px auto 0 auto;
    text-align: center;
    width: fit-content;
  }
}

/* =========================================================
   ABOUT / COLORS
   ======================================================= */

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  align-items: start;
  padding: 32px 40px;
  border-radius: 24px;
  gap: 80px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid #f0f0f0;
}

.about-text {
  padding-top: 4px;
}

.about-card h2 {
  margin-top: 0;
}

.lead-paragraph {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 640px;
}

ul {
  padding-left: 20px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

li + li {
  margin-top: 4px;
}

.about-colors {
  padding-top: 4px;
}

.swatch-title {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: #111;
}

.swatch-row {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 54px;
  height: 276px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.swatch:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.24);
}

.swatch-item span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333;
}

.swatch-black { background: #000000; }
.swatch-olive { background: #6c7a57; }
.swatch-tan   { background: #a88e7d; }
.swatch-grey  { background: #9ea2a5; }

.swatch-camo {
  background: url("../images/camo_pattern.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================================================
   PRODUCT PHOTOS
   ======================================================= */

#photos h2 {
  margin-top: 0;
}

.grid-3 {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-card {
  background: #ffffff;
  border-radius: var(--tile-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-hover);
}

.image-frame {
  width: 100%;
  height: 260px;
  background: #f2f2f2;
  overflow: hidden;
  display: block;
}

.image-frame img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.photo-card p {
  padding: 14px 18px 20px;
  margin: 0;
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.45;
}

/* Mobile horizontal scroll for photos */
@media (max-width: 700px) {
  #photos {
    overflow: hidden;
    position: relative;
  }

  #photos .grid-3 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 4px 16px 12px;
    margin: 0 -16px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  #photos .photo-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  #photos .grid-3::-webkit-scrollbar {
    display: none;
  }

  #photos h2 {
    padding-inline: 16px;
  }

  #photos::before,
  #photos::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
  }

  #photos::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
  }

  #photos::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
  }
}

/* =========================================================
   WHERE TO BUY + CONTACT
   ======================================================= */

.section-card h2 {
  margin-top: 0;
}

/* WHERE TO BUY BUTTON – force pill styling */
#where-to-buy .btn-mbs-outline {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, transform 0.2s ease;
}

#where-to-buy .btn-mbs-outline:hover {
  background: #2f3428;
  color: #ffffff;
  transform: translateY(-2px);  /* optional micro-lift */
}

/* Center the Where to Buy button on mobile */
@media (max-width: 700px) {
  #where-to-buy .btn-mbs-outline {
    display: block;
    margin: 20px auto 12px;
    text-align: center;
  }
}

/* =========================================================
   FAQ
   ======================================================= */

#details h2 {
  margin-top: 0;
}

.faq-list {
  margin-top: 12px;
  border-top: 1px solid #ececec;
}

.faq-item {
  border-bottom: 1px solid #ececec;
}

/* question row button */
.faq-header {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  text-align: left;
  cursor: pointer;
}

.faq-header:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.faq-question-text {
  flex: 1;
}

/* + icon on the right */
.faq-toggle {
  margin-left: 8px;
  padding-right: 16px;
  font-size: 1.1rem;
  min-width: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* answer container – starts collapsed */
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity    0.4s ease,
    padding    0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform  0.4s ease;
}

/* open state */
.faq-item.open .faq-answer {
  padding: 6px 0 12px;
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
}

.faq-answer p {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* =========================================================
   COOKIE BANNER
   ======================================================= */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 850px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 0.75rem;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.cookie-banner__inner p {
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn--primary {
  background: #b79a5c;
  color: #ffffff;
}

.cookie-btn--secondary {
  background: #f2f2f2;
  color: #333333;
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   FOOTER
   ======================================================= */

footer {
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: #333;
  padding: 20px;
  background: #fafafa;
}

/* =========================================================
   RESPONSIVE TWEAKS – STACK HERO/ABOUT
   ======================================================= */

@media (max-width: 900px) {
  .hero-card,
  .about-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    border-radius: 18px;
  }
}