/* ============================================
   America 250 Store — Patriotic Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;600;700;900&display=swap');

:root {
  --navy:     #1B2A4A;
  --crimson:  #B22234;
  --white:    #FFFFFF;
  --gold:     #C8A84B;
  --offwhite: #F4F5F7;
  --dark:     #0D1526;
  --gray-600: #4A5568;
  --gray-400: #718096;
  --gray-200: #E2E8F0;
  --shadow:   0 4px 24px rgba(27,42,74,0.12);
  --shadow-lg: 0 8px 40px rgba(27,42,74,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--offwhite);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', serif;
  line-height: 1.2;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--crimson);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.site-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-links .btn-nav {
  background: var(--crimson);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.2s;
}

.nav-links .btn-nav:hover { background: #9a1c2c; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(27,42,74,0.92) 0%, rgba(178,34,52,0.85) 100%),
    url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/generated-images/company_83528/ea2e335f-b545-4e5e-bce1-df9400f0e7a6.jpg') center/cover no-repeat;
  background-blend-mode: normal;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,21,38,0.3) 0%, rgba(13,21,38,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text { }

.hero-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 2px solid rgba(200,168,75,0.3);
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--crimson);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(178,34,52,0.35);
}

.btn-primary:hover {
  background: #9a1c2c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(178,34,52,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--navy);
  padding: 20px 0;
  border-bottom: 1px solid rgba(200,168,75,0.2);
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
}

.trust-icon {
  font-size: 1.1rem;
  color: var(--gold);
}

/* ============================================
   PRODUCT CATEGORIES
   ============================================ */
.categories-section {
  padding: 72px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 20px;
  border-radius: 24px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-600);
  font-family: 'Source Sans 3', sans-serif;
}

.category-tab:hover { border-color: var(--navy); color: var(--navy); }

.category-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

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

.product-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-body {
  padding: 20px;
}

.product-category-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--crimson);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
}

.product-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 4px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--navy);
  padding: 72px 24px;
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.how-inner .section-header h2 { color: var(--white); }
.how-inner .section-header p { color: rgba(255,255,255,0.6); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 0;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: rgba(200,168,75,0.15);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  color: var(--gold);
}

.step h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--crimson);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  padding: 48px 24px 32px;
  border-top: 3px solid var(--crimson);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

.stripe-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}

/* ============================================
   ORDER SUCCESS PAGE
   ============================================ */
.success-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy) 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.success-card {
  background: var(--white);
  border-radius: 16px;
  padding: 56px 48px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.success-icon {
  width: 72px;
  height: 72px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.success-card h1 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-card .order-text {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-detail {
  background: var(--offwhite);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
}

.success-detail p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.success-detail strong { color: var(--navy); }

.success-note {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }

  .hero-image { display: none; }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .trust-bar-inner { gap: 24px; }

  .success-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }

  .footer-top { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.product-card { opacity: 0; animation: fadeInUp 0.5s ease forwards; }
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

/* Stripe badge stripe visual */
.stripe-badge-stripe {
  display: inline-block;
  width: 40px;
  height: 16px;
  background: linear-gradient(90deg, #635bff 0%, #a259ff 50%, #00d4ff 100%);
  border-radius: 3px;
}