/* BraveWear marketplace "umbrella" theme (Phase 6).
   Drop this after css/styles.css to restyle the storefront without changing
   ecommerce/cart behavior. Replaces css/firefighter-theme.css: the site is now
   multi-profession, so the chrome is neutral — navy header/nav/footer, ivory
   page, quiet cards — and colour accents are reserved for profession cards,
   badges and landing heroes, which set their own `--accent` inline (app.js).
   Pages already load Inter; no extra font import. */
:root {
  --primary: #1F3A5F;         /* navy */
  --primary-dark: #15293F;
  --primary-light: #E4EBF5;
  --secondary: #C9A24A;       /* brass — CTAs, underlines, hover */
  --secondary-dark: #8F6F2A;
  --accent: #5B6B7F;          /* neutral steel fallback; profession cards override inline */
  --text-primary: #1A2230;
  --text-secondary: #566275;
  --text-light: #8A94A3;
  --bg-white: #FFFFFF;
  --bg-light: #FAF7F0;        /* ivory */
  --bg-gray: #F1ECE2;
  --border: #E3DCCF;
  --shadow-sm: 0 1px 3px rgba(26, 34, 48, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 34, 48, 0.12);
  --shadow-lg: 0 22px 52px rgba(26, 34, 48, 0.18);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

body {
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Top bar / header / nav (navy) ---------- */
.top-bar {
  background: #0F1B2D;
  color: #EFE6D2;
}

.top-bar a {
  color: var(--secondary);
}

.top-bar a:hover {
  color: #fff;
}

.header {
  background: var(--primary);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header .logo {
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header .logo svg {
  display: none;
}

/* Shield mark: navy → brass, no profession iconography. */
.header .logo::before {
  content: "";
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  clip-path: polygon(50% 0%, 94% 14%, 90% 60%, 50% 100%, 10% 60%, 6% 14%);
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(255, 255, 255, 0.55) 46% 54%, transparent 54%),
    linear-gradient(90deg, transparent 0 46%, rgba(255, 255, 255, 0.55) 46% 54%, transparent 54%),
    linear-gradient(145deg, #D9B35B 0%, #C9A24A 45%, #8F6F2A 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.logo .logo-brand {
  font-size: 1.32rem;
  color: #fff;
}

.logo .logo-brand span,
.footer-about .logo .highlight {
  color: var(--secondary);
}

.search-bar input {
  border-radius: 999px;
  background: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.search-bar button,
.cart-count {
  background: var(--secondary);
  color: #1A2230;
}

.nav-actions a {
  color: #FFFFFF;
}

.nav-actions a:hover {
  color: var(--secondary);
}

.menu-toggle {
  color: #FFFFFF;
}

.main-nav {
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav li a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.main-nav li a:hover,
.main-nav li a.active {
  color: #FFFFFF;
}

.main-nav li a::after {
  height: 3px;
  background: var(--secondary);
  border-radius: 999px;
}

/* Dropdowns / mega menu open on a white panel with dark text. */
.main-nav .dropdown {
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.main-nav .dropdown li a,
.main-nav .dropdown.mega a {
  color: var(--text-secondary);
}

.main-nav .dropdown li a:hover,
.main-nav .dropdown.mega a:hover {
  color: var(--primary);
}

/* ---------- Hero (homepage) ---------- */
.hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 104px 0 92px;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 162, 74, 0.28), transparent 36%),
    linear-gradient(115deg, #0F1B2D 0%, #1F3A5F 55%, #2B4C78 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  inset: 0;
  border-radius: 0; /* base rule draws an ellipse — reset */
  background:
    linear-gradient(90deg, rgba(8, 14, 24, 0.72), rgba(8, 14, 24, 0.30) 52%, rgba(8, 14, 24, 0.05)),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(255, 255, 255, 0.04) 48px 49px),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, 0.04) 48px 49px);
}

.hero::after {
  /* Soft brass glow behind the hero image instead of the old hexagon card. */
  left: auto;
  bottom: auto;
  animation: none;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.30), rgba(201, 162, 74, 0) 68%);
  opacity: 0.9;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 96px);
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
  color: #fff;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.10);
  color: var(--secondary);
  border-color: rgba(201, 162, 74, 0.45);
  border-radius: 999px;
  text-transform: uppercase;
}

.hero-badge::before {
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.22);
}

.hero h1 {
  max-width: 600px;
  color: #FFFFFF;
  font-size: clamp(2.9rem, 5.4vw, 5rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.hero h1 .highlight {
  color: var(--secondary);
}

.hero h1 .highlight::after {
  display: none;
}

.hero p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 540px;
}

.hero-buttons {
  gap: 14px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  position: relative;
  animation: none;
}

.hero-image::before {
  content: none;
}

.hero-image img {
  width: min(78%, 480px);
  max-height: 520px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.35));
  border-radius: 10px;
  animation: none;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 580px;
}

.hero-trust-item {
  min-width: 0;
}

.hero-trust-item strong {
  display: block;
  font-size: 1.08rem;
  white-space: normal;
}

.hero-trust-item strong,
.hero-trust-stars {
  color: var(--secondary);
}

.hero-trust-item span {
  color: rgba(255, 255, 255, 0.70);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(31, 58, 95, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--secondary);
  color: var(--primary);
}

/* ---------- Sections ---------- */
.features-strip,
.featured-collections,
.products-section,
.newsletter,
.footer {
  background: var(--bg-light);
}

.feature-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
}

.feature-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.feature-icon svg {
  stroke: var(--primary);
}

.feature-item:hover .feature-icon {
  background: var(--primary);
  color: #fff;
}

.feature-item:hover .feature-icon svg {
  stroke: #fff;
}

.section-title h2,
.products-header h2,
.page-header h1,
.collection-hero h1,
.newsletter h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.section-title .underline {
  background: var(--secondary);
}

.categories {
  background: var(--bg-gray);
}

.category-card,
.collection-card,
.product-card,
.filter-group,
.cart-summary,
.checkout-form,
.cart-table,
.main-image,
.product-type-section {
  border-radius: var(--radius-md);
}

.category-card:hover,
.product-card:hover {
  box-shadow: 0 18px 42px rgba(26, 34, 48, 0.16);
}

.category-card:hover .cat-img::after {
  background: linear-gradient(to top, rgba(15, 27, 45, 0.86), rgba(15, 27, 45, 0.24), transparent);
}

.collection-card {
  background: #0F1B2D;
}

.collection-card .coll-overlay {
  background: linear-gradient(to bottom, rgba(15, 27, 45, 0.1) 32%, rgba(15, 27, 45, 0.9));
}

/* Product cards: quiet. Colour lives in the artwork and the badges. */
.product-card {
  background: #FFFFFF;
  border-color: var(--border);
}

.product-image {
  background: #F4F1EA;
}

.product-badge {
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.badge-new {
  background: var(--accent);
  color: #fff;
}

.badge-sale {
  background: var(--secondary);
  color: #1A2230;
}

.badge-hot {
  background: #B8452F;
  color: #fff;
}

.badge-hot::before {
  content: "";
}

.product-category {
  color: var(--text-secondary);
}

.price-current {
  color: var(--text-primary);
}

/* Page headers: ivory → sand. Profession landings keep their accent tint via
   styles.css `.page-header.profession-hero` (higher specificity, uses --accent). */
.page-header,
.collection-hero {
  background: linear-gradient(135deg, #FFFFFF, var(--bg-gray));
}

.breadcrumb {
  color: var(--text-light);
}

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

.sidebar {
  top: 132px;
}

.filter-group,
.sort-bar {
  background: #FFFFFF;
  border: 1px solid var(--border);
}

.main-image {
  background: #F4F1EA;
  border: 1px solid var(--border);
}

.detail-description-wrap {
  border-left: 3px solid var(--secondary);
  padding-left: 18px;
}

/* ---------- Newsletter / footer (navy) ---------- */
.newsletter {
  background:
    radial-gradient(circle at 85% 30%, rgba(201, 162, 74, 0.22), transparent 40%),
    linear-gradient(135deg, #0F1B2D, #1F3A5F);
  color: #FFFFFF;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.74);
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.96);
}

.newsletter-form button {
  background: var(--secondary);
  color: #1A2230;
}

.newsletter-form button:hover {
  background: #D9B35B;
}

.footer {
  background: #0F1B2D;
  color: #EFE6D2;
}

.footer h4 {
  color: #FFFFFF;
}

.footer ul li a,
.footer-about p,
.footer-bottom {
  color: rgba(239, 230, 210, 0.72);
}

.footer ul li a:hover {
  color: var(--secondary);
}

.empty-cart p {
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .hero::after { display: none; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 540px;
    padding: 72px 0 68px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 14, 24, 0.82), rgba(8, 14, 24, 0.48)),
      repeating-linear-gradient(0deg, transparent 0 44px, rgba(255, 255, 255, 0.04) 44px 45px);
  }

  .hero::after,
  .hero-image {
    display: none;
  }

  .hero .container {
    display: block;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.94);
  }

  .hero-trust {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Mobile nav panel opens over the navy bar — keep links readable. */
  .main-nav ul.active,
  .main-nav ul.open {
    background: var(--primary-dark);
  }
}
