/**
 * AR Edilizia - Modern Service Detail Page Styles
 * Complete redesign with compact hero and modern sections
 * Version: 2.0
 */

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

.service-hero-compact {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 60px 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.service-hero-compact__bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  opacity: 0.6;
}

.service-hero-compact__bg-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.03));
}

.service-hero-compact__container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.service-hero-compact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left Column - Content */
.service-hero-compact__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-hero-compact__category-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 24px;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
  backdrop-filter: blur(10px);
}

.service-hero-compact__category-link:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(14, 165, 233, 0.5);
  transform: translateX(4px);
}

.service-hero-compact__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-hero-compact__summary {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.service-hero-compact__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-badge--featured {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.hero-badge--popular {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.hero-badge--info {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}

/* Price Box */
.service-hero-compact__price-box {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.price-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.price-display {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.price-value {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-range {
  font-size: 28px;
  font-weight: 700;
  color: #94a3b8;
}

.price-unit {
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
}

.price-notes {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* CTA Buttons */
.service-hero-compact__cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn-hero svg {
  width: 20px;
  height: 20px;
}

.btn-hero--primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
}

.btn-hero--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-hero--secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-hero--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Right Column - Visual */
.service-hero-compact__visual {
  position: relative;
  height: 450px;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

/* Icon Placeholder */
.hero-icon-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-icon-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  animation: rotate-glow 20s linear infinite;
}

@keyframes rotate-glow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-icon-wrapper {
  position: relative;
  z-index: 1;
  animation: float-icon 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-icon-svg {
  width: 200px !important;
  height: 200px !important;
  color: white;
  stroke: white;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

.features-grid-section {
  padding: 80px 0;
  background: #f8fafc;
}

[data-theme="dark"] .features-grid-section {
  background: #0f172a;
}

.features-grid-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.features-grid-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.section-badge svg {
  width: 16px;
  height: 16px;
}

.section-badge--features {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

[data-theme="dark"] .section-title {
  color: #f8fafc;
}

.section-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

[data-theme="dark"] .section-subtitle {
  color: #94a3b8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card-modern {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.3s ease;
}

[data-theme="dark"] .feature-card-modern {
  background: #1e293b;
  border-color: #334155;
}

.feature-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
  border-color: #0ea5e9;
}

.feature-card-modern__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.feature-card-modern__icon svg,
.feature-card-modern__icon .service-icon {
  width: 28px !important;
  height: 28px !important;
  color: white;
  stroke: white;
}

.feature-icon-emoji {
  font-size: 28px;
}

.feature-card-modern__content {
  flex: 1;
}

.feature-card-modern__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

[data-theme="dark"] .feature-card-modern__title {
  color: #f8fafc;
}

.feature-card-modern__description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

[data-theme="dark"] .feature-card-modern__description {
  color: #94a3b8;
}

/* ============================================
   BENEFITS MODERN SECTION
   ============================================ */

.benefits-modern-section {
  padding: 80px 0;
  background: white;
}

[data-theme="dark"] .benefits-modern-section {
  background: #1e293b;
}

.benefits-modern-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.benefits-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.benefits-modern-card {
  padding: 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .benefits-modern-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #334155;
}

.benefits-modern-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.benefits-icon-wrapper {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.benefits-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.benefits-icon-wrapper--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.benefits-icon-wrapper--blue {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.benefits-modern-card__title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

[data-theme="dark"] .benefits-modern-card__title {
  color: #f8fafc;
}

.benefits-modern-card__subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

[data-theme="dark"] .benefits-modern-card__subtitle {
  color: #94a3b8;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefits-list__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.benefits-list__item:hover {
  background: rgba(14, 165, 233, 0.05);
}

.benefits-list__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.benefits-list__icon svg {
  width: 18px;
  height: 18px;
}

.benefits-list__icon--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.benefits-list__icon--blue {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
}

.benefits-list__text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.6;
}

[data-theme="dark"] .benefits-list__text {
  color: #e2e8f0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .service-hero-compact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-hero-compact__visual {
    order: -1;
    height: 350px;
  }

  .service-hero-compact__title {
    font-size: 40px;
  }

  .benefits-modern-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-hero-compact {
    padding: 40px 0;
    min-height: auto;
  }

  .service-hero-compact__title {
    font-size: 32px;
  }

  .service-hero-compact__summary {
    font-size: 16px;
  }

  .price-value {
    font-size: 28px;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 32px;
  }

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

  .benefits-modern-grid {
    grid-template-columns: 1fr;
  }

  .benefits-modern-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .service-hero-compact__visual {
    height: 280px;
  }

  .hero-icon-svg {
    width: 140px !important;
    height: 140px !important;
  }

  .feature-card-modern {
    padding: 20px;
  }

  .feature-card-modern__icon {
    width: 48px;
    height: 48px;
  }

  .feature-card-modern__icon svg,
  .feature-card-modern__icon .service-icon {
    width: 24px !important;
    height: 24px !important;
  }
}
