/* ==========================================================================
   GlobalFrameStudio - Services & Offers Sections
   ========================================================================== */

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   Offers Category
   ========================================================================== */

.offers-category {
  margin-bottom: var(--space-2xl);
}

.offers-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
  position: relative;
  display: inline-block;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

/* ==========================================================================
   Offers Grid
   ========================================================================== */

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: left;
}

/* ==========================================================================
   Offer Card
   ========================================================================== */

.offer-card {
  position: relative;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Featured Card */
.offer-card.featured {
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.offer-card.featured:hover {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

/* Badge */
.offer-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 0.4rem 0.8rem;
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  z-index: 10;
}

/* ==========================================================================
   Offer Preview (Video/Icon)
   ========================================================================== */

.offer-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.offer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offer-card:hover .offer-video {
  transform: scale(1.05);
}

.offer-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

/* Icon Placeholder */
.offer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg) 100%);
}

.offer-icon svg {
  width: 64px;
  height: 64px;
  color: var(--color-text-muted);
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.offer-card:hover .offer-icon svg {
  transform: scale(1.1);
  opacity: 0.8;
}

/* ==========================================================================
   Offer Content
   ========================================================================== */

.offer-content {
  padding: var(--space-md);
}

.offer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.offer-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

/* ==========================================================================
   Offer Features List
   ========================================================================== */

.offer-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.offer-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.4;
}

.offer-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.7;
}

/* Alternative checkmark style */
.offer-card.featured .offer-features li::before {
  background: transparent;
  border: 2px solid var(--color-accent);
  width: 6px;
  height: 6px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Center the third card on 2-column layout */
  .offers-grid .offer-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .offers-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .offers-grid .offer-card:nth-child(3) {
    max-width: none;
  }

  .offer-preview {
    height: 180px;
  }

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

@media (max-width: 480px) {
  .services {
    padding: var(--space-xl) var(--space-sm);
  }

  .offer-content {
    padding: var(--space-sm);
  }

  .offer-preview {
    height: 160px;
  }
}

/* ==========================================================================
   Hover Effects for Video Play
   ========================================================================== */

.offer-card .offer-video {
  opacity: 0.9;
}

.offer-card:hover .offer-video {
  opacity: 1;
}

/* Play indicator */
.offer-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A1A1A'%3E%3Cpolygon points='9.5,7.5 16.5,12 9.5,16.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.offer-preview:has(.offer-video):hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
