/* Modular Gunworks LLC Layout Styles */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-sm);
}

.section {
  margin-bottom: var(--space-lg);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.section-title {
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
}

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

/* ===== HEADER STYLES ===== */
#site-header {
  background: linear-gradient(135deg, rgba(24,26,27,0.15) 0%, rgba(24,26,27,0.05) 100%), 
              url('../images/Header-flagV2.png') center top/cover no-repeat;
  background-attachment: fixed;
  color: #fff;
  padding: 2rem 0 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
  max-height: 450px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-top-row {
  text-align: center;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-top-row h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 0;
  color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex: 1;
}

.header-logo {
  position: absolute;
  left: 2rem;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  gap: 0.3rem;
}

.header-logo:hover {
  transform: scale(1.08);
}

.logo-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.header-logo img {
  height: 70px;
  width: auto;
  background: rgba(255,255,255,0.98);
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: none;
}

.header-middle-row {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.header-left-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: absolute;
  right: 2rem;
}

.header-left-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.header-left-links a:hover {
  color: #ffeb3b;
}

.search-bar {
  display: flex;
  gap: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: none;
  font-size: 0.95rem;
}

.search-bar button {
  padding: 0.8rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.header-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.header-links a:hover {
  color: #ffeb3b;
}

/* CATEGORY NAV */
.category-nav {
  background: var(--color-accent);
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.8rem 2rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.category-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.category-nav a:hover {
  color: var(--color-primary);
}

/* PROMO BAR */
.promo-bar {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  text-align: center;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ===== FOOTER STYLES ===== */
footer {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
  border-top: 4px solid var(--color-primary);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.8;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  color: #999;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-top-row {
    flex-direction: column;
  }

  .header-top-row h1 {
    position: static;
    transform: none;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .header-middle-row {
    flex-direction: column;
  }

  .header-left-links {
    width: 100%;
    justify-content: center;
  }

  .header-middle {
    flex-direction: column;
    gap: 1rem;
  }

  .header-search {
    width: 100%;
  }

  .category-nav {
    gap: 1rem;
  }

  .category-nav a {
    font-size: 0.8rem;
  }

  #site-header {
    max-height: 380px;
  }
}

@media (max-width: 480px) {
  .header-top h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
}
