/* ========== HUB PAGE SHARED STYLES (CARTES & INVITATIONS) ========== */

/* ========== COLOR SCHEMES ========== */

/* Cartes Color Scheme */
.page-hub--cartes {
  --hub-accent-color: var(--primary-color);
  --hub-gradient-primary: var(--primary-color);
  --hub-gradient-secondary: var(--accent-teal);
  --hub-gradient-print-start: #10b981;
  --hub-gradient-print-end: #059669;
  --hub-gradient-virtual-start: var(--primary-color);
  --hub-gradient-virtual-end: var(--accent-teal);
  --hub-icon-shadow: rgba(99, 102, 241, 0.25);
  --hub-cta-shadow-start: rgba(99, 102, 241, 0.25);
  --hub-cta-shadow-end: rgba(99, 102, 241, 0.35);
  --hub-cta-bg-start: var(--primary-color);
  --hub-cta-bg-end: var(--accent-pink);
  --hub-outline-btn-color: var(--primary-color);
}

/* Invitations Color Scheme */
.page-hub--invitations {
  --hub-accent-color: var(--accent-pink);
  --hub-gradient-primary: var(--secondary-color);
  --hub-gradient-secondary: var(--accent-pink);
  --hub-gradient-print-start: #9c27b0;
  --hub-gradient-print-end: #7b1fa2;
  --hub-gradient-virtual-start: var(--secondary-color);
  --hub-gradient-virtual-end: var(--accent-pink);
  --hub-icon-shadow: rgba(245, 158, 11, 0.25);
  --hub-cta-shadow-start: rgba(245, 158, 11, 0.25);
  --hub-cta-shadow-end: rgba(245, 158, 11, 0.35);
  --hub-cta-bg-start: var(--secondary-color);
  --hub-cta-bg-end: var(--accent-pink);
  --hub-outline-btn-color: var(--secondary-color);
}

/* Images Color Scheme */
.page-hub--images {
  --hub-accent-color: #f59e0b;
  --hub-gradient-primary: #f59e0b;
  --hub-gradient-secondary: #d97706;
  --hub-icon-shadow: rgba(245, 158, 11, 0.25);
  --hub-outline-btn-color: #d97706;
}

.page-hub-hero-section.page-hub--images {
  background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 100%);
}

/* ========== HERO SECTION ========== */

.page-hub-hero-section {
  background: linear-gradient(135deg, #fef3f8 0%, #f8fafc 100%);
  padding: 20px 0;
  margin-top: 10px;
  text-align: center;
}

.page-hub-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-hub-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-hub-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.page-hub-hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ========== CHOICE SECTION (Compact Layout) ========== */

.page-hub-choice-section {
  padding: 8px 0;
  background: white;
}

.page-hub-choice-compact {
  display: flex;
  align-items: center; /* Center vertically */
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #f0f0f0;
  padding: 10px;
}

.page-hub-choice-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--hub-accent-color);
  text-decoration: none;
  color: inherit;
}

.page-hub-choice-compact-img {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
  margin-right: 15px;
}

.page-hub-choice-compact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.page-hub-choice-compact:hover .page-hub-choice-compact-img img {
  transform: scale(1.08);
}

.page-hub-choice-compact-content {
  flex-grow: 1;
  min-width: 0; /* Important for text-overflow to work in flex child */
}

.page-hub-choice-compact-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.page-hub-choice-compact:hover .page-hub-choice-compact-title {
  color: var(--hub-accent-color);
}

.page-hub-choice-compact-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== WHY CHOOSE SECTION ========== */

.page-hub-why-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.page-hub-section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.page-hub-intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-hub-intro-text .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.page-hub-intro-text p {
  margin-bottom: 1.25rem;
}

/* ========== FEATURES SECTION ========== */

.page-hub-features-section {
  padding: 80px 0;
  background: white;
}

.page-hub-subsection-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.page-hub-feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  height: 100%;
}

.page-hub-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--hub-accent-color);
}

.page-hub-feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(45deg, var(--hub-gradient-primary), var(--hub-gradient-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px var(--hub-icon-shadow);
  transition: transform 0.3s ease;
}

.page-hub-feature-item:hover .page-hub-feature-icon {
  transform: scale(1.1);
}

.page-hub-feature-text h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.page-hub-feature-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ========== COMPARISON SECTION ========== */

.page-hub-comparison-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fef3f8 0%, #f8fafc 100%);
}

.page-hub-comparison-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-hub-comparison-text p {
  margin-bottom: 1.5rem;
}

/* ========== CTA SECTION ========== */

.page-hub-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--hub-cta-bg-start), var(--hub-cta-bg-end));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hub-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: pattern-move 30s linear infinite;
}

.page-hub-cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-hub-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.page-hub-cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  color: white;
}

.page-hub-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hub-cta-buttons .btn-modern-outline {
  background: white;
  color: var(--hub-outline-btn-color);
  border-color: white;
}

.page-hub-cta-buttons .btn-modern-outline:hover {
  background: var(--hub-outline-btn-color);
  color: white;
  border-color: white;
}

/* ========== RESPONSIVE - TABLETS ========== */

@media (max-width: 991px) {
  .page-hub-hero-title {
    font-size: 2.5rem;
  }

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

  .page-hub-subsection-title {
    font-size: 1.65rem;
  }

  .page-hub-cta-title {
    font-size: 2rem;
  }
}

/* ========== RESPONSIVE - MOBILE ========== */

@media (max-width: 768px) {
  .page-hub-hero-section {
    padding: 40px 0;
    margin-top: 10px;
  }

  .page-hub-hero-title {
    font-size: 2rem;
  }

  .page-hub-hero-subtitle {
    font-size: 1.15rem;
  }

  .page-hub-hero-description {
    font-size: 1rem;
  }

  .page-hub-choice-section {
    padding: 8px 0;
  }

  .page-hub-choice-content {
    padding: 1.5rem;
  }

  .page-hub-choice-title {
    font-size: 1.5rem;
  }

  .page-hub-choice-description {
    font-size: 0.95rem;
  }

  .page-hub-why-section,
  .page-hub-features-section,
  .page-hub-comparison-section,
  .page-hub-cta-section {
    padding: 50px 0;
  }

  .page-hub-section-title {
    font-size: 1.75rem;
  }

  .page-hub-subsection-title {
    font-size: 1.5rem;
  }

  .page-hub-feature-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  .page-hub-feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .page-hub-cta-title {
    font-size: 1.75rem;
  }

  .page-hub-cta-subtitle {
    font-size: 1.05rem;
  }

  .page-hub-cta-buttons {
    flex-direction: column;
  }

  .page-hub-cta-buttons .btn-modern {
    width: 100%;
  }
}

/* ========== RESPONSIVE - VERY SMALL MOBILE ========== */

@media (max-width: 480px) {
  .page-hub-hero-title {
    font-size: 1.75rem;
  }

  .page-hub-choice-image {
    aspect-ratio: 1 / 1;
  }

  .page-hub-choice-badge {
    font-size: 0.65rem;
  }
}
