﻿/* ===========================
   HERO CAROUSEL
   =========================== */

.hero-carousel {
  background-color: #000;
  padding: 2rem 1rem;
  text-align: center;
}

.carousel-container {
  position: relative;
  max-width: 700px;
  margin: auto;
  height: 500px;
  overflow: hidden;
  z-index: 10;  /* Ensures carousel appears above other content */
}

.carousel-slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 2px solid #ff9900;
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
}

.caption {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #ff9900;
  margin-top: 1rem;
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
  .hero-carousel {
    position: relative;
    z-index: 10;
    padding: 2rem 1rem 3rem;
    background-color: #000 !important;  /* Force black background */
    display: block !important;
  }

  .carousel-container {
    height: 350px !important;
    position: relative;
    z-index: 10;
    margin-bottom: 1rem;
    display: block !important;
    background-color: #000;
  }

  .carousel-slide {
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 5;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .carousel-slide.active {
    opacity: 1 !important;
    z-index: 10;
    display: flex !important;
  }

  .carousel-slide img {
    max-height: 280px !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 2px solid #ff9900 !important;
  }

  .caption {
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.4;
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 15;
    display: block !important;
    color: #ff9900 !important;
  }
}

/* ===========================
   SUPPRESSOR POPUP
   =========================== */

#suppressor-popup {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #f4d57e;
  padding: 2rem;
  border: 2px solid #f4d57e;
  border-radius: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 9999;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s ease;
}

#suppressor-popup.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Popup text styles */
.popup-headline {
  text-align: center;
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.popup-paragraph {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.popup-highlight {
  text-align: center;
  font-weight: 900;
  font-size: 1.3rem;
  margin: 0.75rem 0 0.75rem 0;
  padding: 0;
  color: #f4d57e; /* Gold color instead of #222 dark */
}
/* Popup close button */
.popup-close {
  display: block;
  margin: 1.5rem auto 0 auto;
  background-color: #ff9900;
  color: #000;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-close:hover {
  background-color: #e68a00;
}

/* Popup shimmer animation */
.shimmer::after {
  content: "";
  position: absolute;
  inset: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 215, 0, 0) 0%,
    rgba(255, 215, 0, 0.35) 45%,
    rgba(255, 215, 0, 0.5) 50%,
    rgba(255, 215, 0, 0.35) 55%,
    rgba(255, 215, 0, 0) 100%
  );
  filter: blur(1px);
  z-index: 2;
  pointer-events: none;
  transform: translate(-200%, -200%);
  animation: shimmer-diagonal 2s ease-out forwards;
}

@keyframes shimmer-diagonal {
  0% { transform: translate(-200%, -200%); }
  100% { transform: translate(200%, 200%); }
}

/* Mobile popup adjustments */
@media (max-width: 600px) {
  #suppressor-popup {
    max-width: 90%;
    padding: 1.5rem;
    font-size: 0.95rem;
  }

  .popup-headline {
    font-size: 1.3rem;
  }

  .popup-paragraph {
    font-size: 0.95rem;
  }

  .popup-highlight {
    font-size: 1.1rem;
  }

  .popup-close {
    width: 100%;
    padding: 0.9rem;
  }
}

/* ===========================
   HERO INTRO (SEO SECTION)
   =========================== */

.hero-intro {
  background-color: #0b0b0b;
  color: #f5f5f5;
  padding: 2.5rem 1.5rem;
}

.hero-intro-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.hero-intro-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff9900;
  font-weight: 800;
  text-align: center;
}

.hero-intro-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .hero-intro {
    padding: 2rem 1.25rem;
  }

  .hero-intro-title {
    font-size: 1.6rem;
  }
}

/* ===========================
   WHY CHOOSE US
   =========================== */

.why-choose-us {
  background-color: #111;
  color: #f5f5f5;
  padding: 3rem 1.5rem;
}

.why-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.why-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #ff9900;
  margin-bottom: 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.why-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ff9900;
}

.why-item-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-title {
    font-size: 1.7rem;
  }
}

/* ===========================
   FIREARMS SECTION
   =========================== */

.firearms-section .grid {
  margin-top: 1.5rem;
}

.firearms-section .cta-center {
  text-align: center;
  margin-top: 1.5rem;
}

.cta-button {
  background-color: #ff9900;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #e68a00;
}

/* Coming Soon badge */
.cta-center.disabled .cta-button {
  display: none;
}

.cta-center.disabled .coming-soon {
  display: inline-block;
}

.coming-soon {
  display: none;
  padding: 0.6rem 1.2rem;
  background: #444;
  color: #ccc;
  border-radius: 6px;
  font-weight: bold;
}

/* ===========================
   CUSTOM 1911 SECTION
   =========================== */

.custom-1911-section {
  margin-top: 3rem;
}

.custom-1911-section .two-column {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.custom-1911-section .two-column > div {
  flex: 1 1 300px;
}

.custom-1911-section .lead {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.feature-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.feature-list li::before {
  content: "•";
  color: #ff9900;
  position: absolute;
  left: 0;
}

.image-column img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 700px) {
  .custom-1911-section .two-column {
    flex-direction: column;
  }
}

.popup-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, #f4d57e, transparent);
  margin: 1rem auto;
}