/* ========================================
   Main CSS — Pure24 Nutrition
   Global styles for shared components
======================================== */

/* Body & main */
body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.65;
}

main {
  min-height: 100vh;
}

/* ========================================
   TESTIMONIALS (shared, used across pages)
======================================== */
.testimonials {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.testimonials h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 48px;
  color: var(--dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-green);
  padding: 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-result {
  display: inline-block;
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonials h2 {
    font-size: 1.6rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-result {
    width: 100%;
    text-align: center;
  }
}
/* ========================================
     DESIGN SYSTEM — Pure24 Nutrition
  ======================================== */
  :root {
    /* Brand Colors */
    --navy-primary: #1a2744;
    --navy-dark:    #111a30;
    --navy-light:   #243258;
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-green-light: #d1fae5;

    /* Semantic aliases (backward compat) */
    --primary:        var(--navy-primary);
    --primary-dark:   var(--navy-dark);
    --primary-light:  var(--navy-light);
    --primary-lighter: var(--accent-green-light);
    --secondary:      var(--accent-green);
    --success:        #10b981;
    --warning:        #f59e0b;
    --danger:         #ef4444;

    /* Neutrals */
    --cream:       #FAF9F7;
    --cream-dark:  #F0EDE8;
    --dark:        #1a1a2e;
    --text:        #2d2d3a;
    --text-muted:  #6b7280;
    --light-gray:  #f3f4f6;
    --border:      #e2e0db;
    --white:       #ffffff;

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family:  var(--font-body);

    --font-size-xs:  0.75rem;
    --font-size-sm:  0.875rem;
    --font-size-base: 1rem;
    --font-size-lg:  1.125rem;
    --font-size-xl:  1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs:  0.25rem;
    --spacing-sm:  0.5rem;
    --spacing-md:  1rem;
    --spacing-lg:  1.5rem;
    --spacing-xl:  2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;

    /* Border Radius */
    --radius-sm:   0.375rem;
    --radius-md:   0.75rem;
    --radius-lg:   1.25rem;
    --radius-xl:   1.75rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(26, 39, 68, 0.08);
    --shadow-md:  0 4px 12px rgba(26, 39, 68, 0.12);
    --shadow-lg:  0 10px 30px rgba(26, 39, 68, 0.15);
    --shadow-xl:  0 20px 50px rgba(26, 39, 68, 0.18);

    /* Transitions */
    --transition: 0.22s ease;
  }

  /* ========================================
     RESET & BASE
  ======================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    color: var(--dark);
  }

  p {
    margin-bottom: 1rem;
  }

  a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: color var(--transition);
  }

  a:hover {
    color: var(--accent-green);
  }

  img {
    max-width: 100%;
    height: auto;
  }

  button, input, select, textarea {
    font-family: var(--font-body);
  }

  /* ========================================
     BUTTONS
  ======================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-green-dark) 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    color: white;
  }

  .btn-secondary {
    background: transparent;
    color: var(--navy-primary);
    border: 2px solid var(--navy-primary);
  }

  .btn-secondary:hover {
    background: var(--navy-primary);
    color: white;
    transform: translateY(-2px);
  }

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

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

  .btn-sm {
    padding: 9px 20px;
    font-size: 0.8rem;
  }

  .btn-lg {
    padding: 16px 42px;
    font-size: 1rem;
  }

  /* ========================================
     TOP BAR
  ======================================== */
  .top-bar {
    background: var(--navy-primary);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-family: var(--font-body);
    padding: 8px 20px;
    text-align: center;
  }

  .top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .top-bar-separator {
    opacity: 0.4;
  }

  /* ========================================
     HEADER / NAVBAR
  ======================================== */
  .site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
  }

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

  .nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--navy-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-logo span {
    color: var(--accent-green);
  }

  .nav-logo:hover {
    color: var(--navy-primary);
  }

  .nav-menu-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
  }

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

  .nav-menu a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
  }

  .nav-menu a:hover {
    color: var(--navy-primary);
    background: var(--cream-dark);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }

  .cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
  }

  .cart-link:hover {
    background: var(--cream-dark);
    color: var(--navy-primary);
  }

  .header-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-green);
    color: white;
    border-radius: var(--radius-full);
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid var(--white);
    line-height: 1;
    padding: 0 3px;
    animation: badgePop 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }

  @keyframes badgePop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1); }
  }

  /* ========================================
     FOOTER
  ======================================== */
  .footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.75);
    padding: 72px 24px 28px;
    margin-top: 100px;
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }

  .footer-brand .footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: white;
    margin-bottom: 12px;
  }

  .footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
  }

  .footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .footer-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
  }

  .footer-section h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 18px;
  }

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

  .footer-section ul li {
    font-size: 0.875rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.6);
  }

  .footer-section a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
  }

  .footer-section a:hover {
    color: white;
  }

  .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
  }

  /* ========================================
     SECTION HELPERS
  ======================================== */
  .section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-green);
    background: var(--accent-green-light);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
  }

  .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 16px;
  }

  .section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
  }

  /* ========================================
     RESPONSIVE
  ======================================== */
  @media (max-width: 1024px) {
    .footer-content {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 768px) {
    .top-bar-content {
      font-size: 0.72rem;
      gap: 10px;
    }

    .nav-menu-wrapper {
      display: none;
    }

    .header-container {
      height: 60px;
    }

    .footer-content {
      grid-template-columns: 1fr 1fr;
      gap: 32px;
    }

    .footer-brand {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 480px) {
    .footer-content {
      grid-template-columns: 1fr;
    }
  }