/* Packages Section - WebMar Studios - Brevo-Inspired Comparison Design */

/* Packages Section */
.packages-section {
  background-color: var(--color-light-gray);
  position: relative;
  overflow: hidden;
}

/* Remove immersive text-shadow effects from packages section */
.packages-section .section-title::after {
  display: none;
}

.packages-section .package-title {
  text-shadow: none;
}

.packages-section h3,
.packages-section h4 {
  text-shadow: none;
}

/* Packages Grid - 4 Column Horizontal Layout */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch; /* Ensure all cards have equal height */
}

/* Package Card - Clean Brevo-Inspired Design */
.package-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-medium-gray);
  border-radius: var(--radius-xl);
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%; /* Fill grid cell height for equal card heights */
  /* overflow: hidden; <- Removed to allow badges to appear above card */
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Tier-Specific Color Coding */
.package-card-tier1 {
  border-color: rgba(5, 191, 219, 0.3);
}

.package-card-tier1:hover {
  border-color: var(--color-aqua);
  box-shadow: 0 12px 35px rgba(5, 191, 219, 0.25);
}

.package-card-tier2 {
  border-color: var(--color-aqua);
  border-width: 3px;
  background: linear-gradient(135deg, rgba(5, 191, 219, 0.02) 0%, rgba(5, 191, 219, 0.08) 100%);
}

.package-card-tier2:hover {
  border-color: var(--color-teal);
  box-shadow: 0 16px 45px rgba(5, 191, 219, 0.35);
}

.package-card-tier3 {
  border-color: rgba(8, 131, 149, 0.3);
}

.package-card-tier3:hover {
  border-color: var(--color-teal);
  box-shadow: 0 12px 35px rgba(8, 131, 149, 0.25);
}

.package-card-tier4 {
  border-color: var(--color-deep-ocean);
  border-width: 3px;
  background: linear-gradient(135deg, rgba(10, 77, 104, 0.02) 0%, rgba(8, 131, 149, 0.05) 100%);
}

.package-card-tier4:hover {
  border-color: var(--color-teal);
  box-shadow: 0 16px 45px rgba(10, 77, 104, 0.35);
}

/* Featured Package Enhancement */
.package-card-featured {
  transform: scale(1.03);
  z-index: 2;
}

.package-card-featured:hover {
  transform: translateY(-6px) scale(1.03);
}

/* Package Badge */
.package-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-aqua) 0%, var(--color-teal) 100%);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(5, 191, 219, 0.5);
  z-index: 20;
  white-space: nowrap;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(5, 191, 219, 0.5);
  }
  50% {
    box-shadow: 0 4px 20px rgba(5, 191, 219, 0.8);
  }
}

.package-badge-premium {
  background: linear-gradient(135deg, var(--color-deep-ocean) 0%, var(--color-teal) 100%);
  box-shadow: 0 4px 12px rgba(10, 77, 104, 0.6);
}

/* Package Header - Top Section with Pricing & CTA */
.package-header {
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  border-bottom: 2px solid var(--color-light-gray);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex-shrink: 0; /* Prevent header from shrinking */
}

.package-tier {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
  min-height: 1rem; /* Consistent height even if text varies */
}

.package-card-tier2 .package-tier,
.package-card-tier4 .package-tier {
  color: var(--color-deep-ocean);
}

.package-title {
  height: 5rem; /* Fixed height to accommodate longest title (3 lines) */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inconsolata', monospace;
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  margin: 0;
}

/* Package Pricing - Prominent Display */
.package-pricing {
  height: 9rem; /* Fixed height to accommodate all pricing variations */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) 0;
}

.pricing-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-deep-ocean);
  line-height: 1;
}

.package-card-tier2 .pricing-amount,
.package-card-tier4 .pricing-amount {
  color: var(--color-teal);
}

.pricing-note {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

.pricing-consultation {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-deep-ocean);
}

/* Package Delivery - Compact Display */
.package-delivery {
  height: 3rem; /* Fixed height for delivery badge alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-light-gray);
  border-radius: var(--radius-md);
}

.package-delivery .icon {
  width: 16px;
  height: 16px;
  color: var(--color-teal);
  flex-shrink: 0;
}

.package-delivery span {
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

/* Package CTA Button */
.btn-package-cta {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  background-color: rgba(5, 191, 219, 0.08);
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-align: center;
  box-shadow: none;
  min-height: 3.75rem;
  height: 3.75rem;
  line-height: 1.3;
}

.btn-package-cta:hover {
  background: var(--gradient-aqua);
  color: var(--color-white);
  border: none;
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-package-cta-primary {
  background: var(--gradient-aqua);
  color: var(--color-white);
  border: none;
  box-shadow: none;
  min-height: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.btn-package-cta-primary:hover {
  box-shadow: none;
  transform: translateY(-2px);
}

/* Package Features Section - Progressive Disclosure */
.package-features-section {
  padding: var(--spacing-lg) var(--spacing-xl);
  flex: 1; /* Grow to fill remaining space - ensures buttons align at bottom */
  display: flex;
  flex-direction: column;
}

.features-header {
  height: 3rem; /* Fixed height for features header alignment */
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-medium-gray);
}

/* Package Features - Checkmark List */
.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.package-features li:hover {
  color: var(--color-text-primary);
  transform: translateX(3px);
}

.package-features li:hover .feature-icon {
  color: var(--color-aqua);
  transform: scale(1.15);
}

/* Feature Icon - Checkmark */
.feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-teal);
  transition: all 0.2s ease;
  margin-top: 2px;
}

.package-features li strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

/* Always Included Box - Seth Godin Style */
.packages-included-box {
  background: linear-gradient(135deg, rgba(5, 191, 219, 0.05) 0%, rgba(5, 191, 219, 0.12) 100%);
  border: 2px solid rgba(5, 191, 219, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl) var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
}

.packages-included-box h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-deep-ocean);
  margin-bottom: var(--spacing-lg);
  text-shadow: none;
}

.included-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

.included-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.included-item .icon {
  width: 32px;
  height: 32px;
  color: var(--color-teal);
  transition: transform 0.3s ease;
}

.included-item:hover .icon {
  transform: scale(1.15);
  color: var(--color-aqua);
}

.included-item span {
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-align: center;
}

/* Website On Demand Box - Enhanced */
.website-on-demand-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) var(--spacing-2xl);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 107, 53, 0.12) 100%);
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-xl);
  max-width: 900px;
  margin: var(--spacing-2xl) auto 0;
  transition: all 0.3s ease;
}

.website-on-demand-box:hover {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
  transform: translateY(-2px);
}

.wod-icon {
  flex-shrink: 0;
}

.wod-icon .icon {
  width: 48px;
  height: 48px;
  color: var(--color-coral);
}

.wod-content {
  flex-grow: 1;
  text-align: left;
}

.wod-content h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-deep-ocean);
  margin-bottom: var(--spacing-sm);
  text-shadow: none;
}

.wod-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
}

.wod-content strong {
  color: var(--color-deep-ocean);
  font-weight: var(--font-weight-bold);
}

.wod-link {
  display: inline-flex;
  align-items: center;
  margin-top: var(--spacing-sm);
  color: var(--color-teal);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all 0.2s ease;
}

.wod-link:hover {
  color: var(--color-coral);
  transform: translateX(3px);
}

/* Enhanced Section Intro */
.section-intro {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.section-intro strong {
  color: var(--color-deep-ocean);
  font-weight: var(--font-weight-bold);
}

.section-highlight {
  display: block;
  margin-top: var(--spacing-sm);
  font-size: 1.05rem;
  color: var(--color-teal);
  font-weight: var(--font-weight-semibold);
}

/* Scroll Reveal Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
}

.slide-in:nth-child(1) { animation-delay: 0.1s; }
.slide-in:nth-child(2) { animation-delay: 0.2s; }
.slide-in:nth-child(3) { animation-delay: 0.3s; }
.slide-in:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */

/* Large Desktop (1200px - 1440px) */
@media (max-width: 1440px) {
  .packages-grid {
    max-width: 1200px;
  }

  .pricing-amount {
    font-size: 2.2rem;
  }
}

/* Desktop/Tablet Transition (1024px - 1200px) */
@media (max-width: 1200px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 800px;
  }

  .package-card-featured {
    transform: scale(1);
  }

  .package-card-featured:hover {
    transform: translateY(-6px) scale(1);
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .package-header {
    padding: var(--spacing-lg);
  }

  .package-features-section {
    padding: var(--spacing-lg);
  }

  .pricing-amount {
    font-size: 2rem;
  }

  .package-title {
    font-size: var(--font-size-lg);
  }
}

/* Mobile (below 768px) */
@media (max-width: 768px) {
  .packages-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .package-card {
    height: auto; /* Allow natural height on single-column mobile layout */
  }

  .package-header {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .package-features-section {
    padding: var(--spacing-md);
  }

  .package-title {
    font-size: var(--font-size-lg);
    height: auto; /* Allow natural height on mobile */
    min-height: 3rem;
  }

  .package-pricing {
    height: auto; /* Allow natural height on mobile */
    min-height: 7rem;
  }

  .package-delivery {
    height: auto; /* Allow natural height on mobile */
    min-height: 2.5rem;
  }

  .features-header {
    height: auto; /* Allow natural height on mobile */
    min-height: 2rem;
  }

  .package-badge {
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.65rem;
  }

  .pricing-amount {
    font-size: 2rem;
  }

  /* Always Included Box - Mobile */
  .packages-included-box {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .packages-included-box h3 {
    font-size: var(--font-size-lg);
  }

  .included-features {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .included-item .icon {
    width: 28px;
    height: 28px;
  }

  .included-item span {
    font-size: 0.8rem;
  }

  /* Website On Demand Box - Mobile */
  .website-on-demand-box {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    gap: var(--spacing-md);
  }

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

  .wod-content h3 {
    font-size: var(--font-size-lg);
  }

  .wod-content p {
    font-size: 0.9rem;
  }

  .wod-icon .icon {
    width: 40px;
    height: 40px;
  }

  .wod-link {
    justify-content: center;
  }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
  .packages-grid {
    gap: var(--spacing-md);
  }

  .package-header {
    padding: var(--spacing-md);
  }

  .package-features-section {
    padding: var(--spacing-md);
  }

  .package-title {
    font-size: var(--font-size-base);
  }

  .package-tier {
    font-size: 0.65rem;
  }

  .pricing-amount {
    font-size: 1.8rem;
  }

  .pricing-label {
    font-size: 0.75rem;
  }

  .pricing-note {
    font-size: 0.7rem;
  }

  .package-features li {
    font-size: 0.85rem;
  }

  .feature-icon {
    width: 18px;
    height: 18px;
  }

  .features-header {
    font-size: 0.8rem;
  }

  .package-delivery {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .package-delivery span {
    font-size: 0.75rem;
  }

  .btn-package-cta {
    font-size: 0.85rem;
    padding: var(--spacing-sm);
  }

  /* Always Included Box - Small Mobile */
  .packages-included-box {
    padding: var(--spacing-md);
  }

  .packages-included-box h3 {
    font-size: var(--font-size-base);
  }

  .included-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .included-item .icon {
    width: 24px;
    height: 24px;
  }

  .included-item span {
    font-size: 0.75rem;
  }

  /* Website On Demand Box - Small Mobile */
  .website-on-demand-box {
    padding: var(--spacing-md);
  }

  .wod-content h3 {
    font-size: var(--font-size-base);
  }

  .wod-content p {
    font-size: 0.85rem;
  }

  .wod-icon .icon {
    width: 36px;
    height: 36px;
  }
}

/* ================================
   WEBSITE ON DEMAND COMPARISON SECTION
   ================================ */

.wod-comparison-section {
  margin-top: var(--spacing-3xl);
  padding: var(--spacing-2xl) 0;
  border-top: 2px solid var(--color-medium-gray);
}

.wod-comparison-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.wod-comparison-header h3 {
  font-family: 'Inconsolata', monospace;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-deep-ocean);
  margin-bottom: var(--spacing-sm);
  text-shadow: none;
}

.wod-comparison-header p {
  font-size: 1.25rem;
  color: var(--color-teal);
  font-weight: 600;
}

.wod-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto var(--spacing-2xl);
}

.wod-comparison-card {
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.wod-old-way {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, rgba(220, 38, 38, 0.08) 100%);
  border: 2px solid rgba(220, 38, 38, 0.2);
}

.wod-old-way:hover {
  border-color: rgba(220, 38, 38, 0.4);
  transform: translateY(-4px);
}

.wod-new-way {
  background: linear-gradient(135deg, rgba(5, 191, 219, 0.03) 0%, rgba(5, 191, 219, 0.12) 100%);
  border: 3px solid var(--color-aqua);
  box-shadow: 0 8px 25px rgba(5, 191, 219, 0.2);
}

.wod-new-way:hover {
  border-color: var(--color-teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(5, 191, 219, 0.3);
}

.wod-card-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.wod-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.wod-old-way .wod-card-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
}

.wod-new-way .wod-card-icon {
  background: rgba(5, 191, 219, 0.2);
  color: var(--color-teal);
}

.wod-card-header h4 {
  font-family: 'Inconsolata', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-deep-ocean);
  margin: 0;
  text-shadow: none;
}

.wod-card-subtitle {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: var(--spacing-xs);
}

.wod-old-way .wod-card-subtitle {
  color: #DC2626;
}

.wod-new-way .wod-card-subtitle {
  color: var(--color-teal);
}

.wod-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wod-card-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.wod-card-list li:last-child {
  border-bottom: none;
  padding-top: var(--spacing-md);
  font-size: 1rem;
}

.wod-card-list li strong {
  font-weight: 700;
}

.wod-old-way .wod-card-list li strong {
  color: #DC2626;
}

.wod-new-way .wod-card-list li strong {
  color: var(--color-teal);
}

/* Example Prices */
.wod-example-prices {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.wod-example-prices p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.wod-price-tags {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.wod-price-tag {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: rgba(5, 191, 219, 0.1);
  border: 1px solid rgba(5, 191, 219, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-deep-ocean);
  transition: all 0.2s ease;
}

.wod-price-tag:hover {
  background: rgba(5, 191, 219, 0.2);
  transform: translateY(-2px);
}

/* WOD CTA Button */
.wod-cta {
  display: block;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  animation: pulse-cta 2.5s ease-in-out infinite;
}

@keyframes pulse-cta {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(10, 77, 104, 0.3);
  }
  50% {
    box-shadow: 0 8px 30px rgba(5, 191, 219, 0.5);
  }
}

/* WOD Comparison - Responsive */
@media (max-width: 768px) {
  .wod-comparison-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .wod-comparison-header h3 {
    font-size: 1.5rem;
  }

  .wod-comparison-header p {
    font-size: 1rem;
  }

  .wod-comparison-card {
    padding: var(--spacing-lg);
  }

  .wod-price-tags {
    flex-direction: column;
    align-items: center;
  }

  .wod-price-tag {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .wod-comparison-section {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg) 0;
  }

  .wod-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .wod-card-header h4 {
    font-size: 1.1rem;
  }

  .wod-card-list li {
    font-size: 0.9rem;
  }
}
