/* 
 * MGLYN Magnesium Glycinate - Premium E-commerce Landing Page
 * Light/White Theme with pure CSS functionality
 */

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

:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f9ff;
  --bg-gradient: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  --bg-gradient-hero: radial-gradient(circle at top right, #e0f2fe 0%, #ffffff 60%);
  
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --heading-color: #0b2052; /* Deep Blue from label */
  
  --accent-blue: #1d4ed8; /* Bright Blue */
  --accent-blue-hover: #1e40af;
  --accent-blue-light: #eff6ff;
  
  --accent-red: #e11d48; /* Red from label */
  --accent-red-hover: #be123c;
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --font-size-base: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(11, 32, 82, 0.08), 0 4px 6px -2px rgba(11, 32, 82, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(11, 32, 82, 0.1), 0 10px 10px -5px rgba(11, 32, 82, 0.04);
  
  /* Radius */
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  /* SVG Background: Subtle blue bokeh / dots pattern */
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='%23eff6ff' fill-opacity='0.4' /%3E%3C/svg%3E"),
                    url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 0 C150 0 200 50 200 100 C200 150 150 200 100 200 C50 200 0 150 0 100 C0 50 50 0 100 0 Z' fill='%23e0f2fe' fill-opacity='0.2' /%3E%3C/svg%3E");
  background-size: 80px 80px, 400px 400px;
  background-position: 0 0, 50px 50px;
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.2;
}

.text-accent {
  color: var(--accent-blue);
}

.text-highlight {
  color: var(--accent-red);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-bounce);
  cursor: pointer;
  border: none;
  font-size: 1.125rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background-color: var(--accent-red-hover);
}

.btn-secondary {
  background-color: var(--accent-blue);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--accent-blue-hover);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 15px 0;
}

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

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
  letter-spacing: 2px;
}

.logo span {
  font-family: var(--font-family);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  margin-top: 4px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  background: var(--bg-gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Leaf SVG Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2322c55e' fill-opacity='0.15' d='M65,-27.2C81.8,-6.4,91.3,20.2,81.1,38.3C70.9,56.5,41.1,66.1,13.6,70.9C-14,75.7,-39.3,75.7,-53.4,59.3C-67.5,42.8,-70.5,10,-60.7,-14.2C-50.8,-38.5,-28.1,-54,-5.4,-49.6C17.3,-45.3,34.6,-21.2,48.2,-48.1' transform='translate(100 100) scale(1.1)' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 500;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  width: 480px;
  height: auto;
  filter: drop-shadow(0 25px 35px rgba(11, 32, 82, 0.2));
  /*animation: float 6s ease-in-out infinite;*/
}

/* Floating Animations 
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}*/

/* Cards & Badges (Matching the composition/benefits boxes from image) */
.info-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(29, 78, 216, 0.1);
  transition: transform var(--transition-fast);
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card-header {
  background: var(--heading-color);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-card-body {
  padding: 20px;
}

/* Feature List (Like the Benefits checklist) */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-main);
}

.feature-list li svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent-blue);
  background: var(--accent-blue-light);
  border-radius: 50%;
  padding: 4px;
}

/* Trust Banner */
.trust-banner {
  background: var(--heading-color);
  color: #fff;
  padding: 30px 0;
}

.trust-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.trust-item svg {
  width: 32px;
  height: 32px;
  color: var(--accent-blue-light);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.benefit-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.03);
  transition: all var(--transition-normal);
}

.benefit-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px auto;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 30px;
  height: 30px;
}

/* FAQ Accordion (CSS Only) */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-toggle {
  display: none;
}

.faq-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  transition: background var(--transition-fast);
}

.faq-label:hover {
  background: var(--bg-secondary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--accent-blue);
}

.faq-content {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  color: var(--text-muted);
}

.faq-toggle:checked + .faq-label {
  color: var(--accent-blue);
}

.faq-toggle:checked + .faq-label .faq-icon {
  transform: rotate(180deg);
}

.faq-toggle:checked ~ .faq-content {
  max-height: 500px; /* Arbitrary large height */
  padding: 0 20px 20px 20px;
}

/* Order Section */
.order-section {
  background: var(--bg-secondary);
}

.pricing-card {
  max-width: 450px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  border: 2px solid var(--accent-blue);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  color: #fff;
  padding: 5px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--heading-color);
  margin: 20px 0;
}

.price s {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-right: 10px;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--heading-color);
  color: #fff;
  padding: 60px 0 20px 0;
  text-align: center;
}

.footer .logo {
  color: #fff;
  margin: 0 auto;
}

.footer .logo span {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.5);
}

.footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-top: 30px;
}

/* Floating WhatsApp/CTA */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform var(--transition-bounce);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-whatsapp svg {
  width: 35px;
  height: 35px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .trust-item {
    flex-direction: column;
    text-align: center;
    font-size: 0.95rem;
  }
  
  .pricing-card {
    padding: 30px 20px;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 0;
  }
  
  .header .logo {
    font-size: 1.5rem;
  }
  
  .header .logo span {
    font-size: 0.6rem;
    padding: 2px 6px;
    margin-top: 2px;
  }
  
  .header .btn {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  
  .hero {
    padding-top: 100px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .section-title {
    font-size: 1.6rem;
  }
  
  .price {
    font-size: 2.25rem;
  }
  
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}
