/* ===================================
   I Want Peptides - Friendly Q&A Design System
   Archetype: Friendly/Approachable
   Target: First-time buyers, general consumers
   =================================== */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Nunito:wght@300;400;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors */
  --primary-blue: #4169E1;
  --primary-mint: #98FF98;
  --accent-coral: #FF7F50;
  --primary-white: #FFFFFF;
  --light-blue: #E6F0FF;
  --text-dark: #2C3E50;
  --text-gray: #5A6C7D;
  --border-light: #E0E7EF;

  /* Typography */
  --font-header: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;

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

  /* Borders & Shadows */
  --border-radius: 12px;
  --shadow-sm: 0 2px 8px rgba(65,105,225,0.1);
  --shadow-md: 0 4px 16px rgba(65,105,225,0.15);
  --shadow-lg: 0 8px 32px rgba(65,105,225,0.2);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--primary-white);
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-blue);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  font-weight: 800;
}

h2 {
  font-size: 1.875rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--accent-coral);
}

h3 {
  font-size: 1.5rem;
  margin-top: var(--spacing-md);
  color: var(--primary-blue);
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  color: var(--text-dark);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

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

/* ===== HEADER & MEGA MENU ===== */
header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #5B7FE8 100%);
  color: white;
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-header);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* ===== MEGA MENU NAVIGATION ===== */
nav {
  position: relative;
}

nav > ul {
  list-style: none;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

nav > ul > li {
  position: relative;
}

nav > ul > li > a {
  color: white;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  display: block;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  transition: all 0.3s ease;
}

nav > ul > li > a:hover,
nav > ul > li:hover > a {
  background-color: rgba(255,255,255,0.15);
  color: var(--primary-mint);
}

/* Dropdown Menus */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  max-width: 320px;
  max-height: 500px;
  overflow-y: auto;
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-sm);
  padding-top: calc(var(--spacing-sm) + 4px);
  margin-top: -4px;
  z-index: 1000;
}

nav > ul > li:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
}

.dropdown-menu a {
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.625rem var(--spacing-sm);
  display: block;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--light-blue);
  color: var(--primary-blue);
  transform: translateX(4px);
}

.dropdown-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-gray);
  padding: 0.5rem var(--spacing-sm);
  margin-top: var(--spacing-xs);
  border-top: 1px solid var(--border-light);
}

.dropdown-category:first-child {
  margin-top: 0;
  border-top: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--light-blue) 0%, white 100%);
  padding: var(--spacing-xl) 0;
  border-bottom: 4px solid var(--primary-mint);
}

.hero h1 {
  color: var(--primary-blue);
}

.hero-subtitle {
  font-size: 1.375rem;
  color: var(--text-dark);
  font-weight: 400;
  margin-bottom: var(--spacing-md);
}

.hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin: var(--spacing-md) auto;
  display: block;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: var(--spacing-xl) 0;
}

article {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

/* ===== Q&A SPECIFIC STYLES ===== */
.quick-answer {
  background: linear-gradient(135deg, var(--primary-mint) 0%, #B8FFB8 100%);
  border-left: 6px solid var(--primary-blue);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.quick-answer h3 {
  margin-top: 0;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.answer-section {
  background-color: var(--light-blue);
  border-left: 4px solid var(--accent-coral);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  border-radius: var(--border-radius);
}

/* ===== LISTS ===== */
ul, ol {
  margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-md);
  padding-left: var(--spacing-md);
}

ul li, ol li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.8;
  font-size: 1.0625rem;
}

ul li::marker {
  color: var(--accent-coral);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--primary-blue);
  color: white;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn:hover {
  background-color: var(--accent-coral);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-section h3 {
  color: var(--primary-mint);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

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

.footer-section a {
  color: white;
  font-size: 0.95rem;
  font-weight: 400;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-sm);
  text-align: center;
  font-size: 0.875rem;
  color: #AAA;
}

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

  nav > ul {
    flex-direction: column;
    width: 100%;
  }

  nav > ul > li {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    max-width: 100%;
    box-shadow: none;
    border-radius: var(--border-radius);
    margin-top: var(--spacing-xs);
  }

  nav > ul > li:hover .dropdown-menu {
    display: block;
  }
}

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}
