/*
 * --- Variant 3 Styles ---
 * Palette: Purple/Magenta
 * Fonts: Lora / Poppins
 * Container: 1300px
 * Image: 400px
 */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Poppins:wght@400;500&display=swap');

:root {
  /* Colors */
  --primary-color: #8E44AD;
  --secondary-color: #59057B;
  --accent-color: #D01257;
  --light-color: #F2F2F2;
  --dark-color: #0F0766;
  --highlight-color: #FFEB00; /* Complementary */
  
  /* Gradients & Helpers */
  --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --hover-color: #7D3C98; /* Darker primary */
  --background-color: #FAFAFB;
  --text-color: #333333;
  --border-color: rgba(142, 68, 173, 0.2);
  --divider-color: rgba(242, 242, 242, 0.2);
  --shadow-color: rgba(89, 5, 123, 0.1);

  /* Fonts */
  --heading-font: 'Lora', serif;
  --text-font: 'Poppins', sans-serif;

  /* Sizes */
  --container-width: 1300px;
  --image-width: 400px;
}

body {
  font-family: var(--text-font);
  position: relative;
  overflow-x: hidden;
}

/* Background Pattern */
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%2359057B' fill-opacity='0.3'%3E%3Cpath d='M50 0L60 10L50 20L40 10zM0 50L10 60L20 50L10 40zM50 100L60 90L50 80L40 90zM100 50L90 60L80 50L90 40z'/%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
}

/* Layout Containers */
.header-container,
.footer-container,
.testimonial-container {
  max-width: var(--container-width);
}
.product-container {
  max-width: var(--container-width);
}

/* Header & Footer */
.header-container {
  max-width: 1400px; /* Header wider as requested */
}
.footer-container {
  max-width: 1400px; /* Footer wider as requested */
}
.footer-link {
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: white !important;
  text-decoration: underline;
}

/* Product Section */
.product-image {
  width: 100%;
  max-width: var(--image-width);
  height: auto;
  object-fit: contain;
}
.content-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-color) 0px 2px 8px;
}
.decor-box {
  position: relative;
}

/* Highlight Box (Content 6) */
.highlight-box {
  background: var(--gradient-primary);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border: 2px solid var(--highlight-color);
}
.highlight-box p {
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Button (Content 3) */
.cta-button {
  background: var(--highlight-color);
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
}
.cta-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}
.cta-button span {
  color: var(--dark-color) !important;
}
.cta-button:hover span {
  color: var(--light-color) !important;
}


/* Features List (Content 5) */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  color: white !important;
  background-color: var(--accent-color) !important;
}

/* Testimonials */
.testimonial-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  color: white !important;
  background-color: var(--accent-color) !important;
}

/* Center 5th testimonial on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-cols-1.md\:grid-cols-2 > article:nth-child(5) {
        grid-column: span 2 / span 2;
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Center 5th testimonial on desktop */
@media (min-width: 1024px) {
    .grid-cols-1.md\:grid-cols-2 > article:nth-child(5):last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 1rem); /* (100% / 2 cols) - (gap / 2) */
        margin-left: auto;
        margin-right: auto;
    }
}