/**
 * Offer Section — Modern 2025 Design
 * Enhanced cards with subtle gradients, improved depth, and refined interactions
 * Professional therapy practice aesthetic with contemporary flair
 */

/* ========================================
   Design Tokens — Using Global Color Scheme
   ======================================== */
:root {
  /* Using global color variables for consistency */
  --offer-primary: var(--accent);
  --offer-primary-dark: var(--accent-hover);
  --offer-primary-light: var(--accent-light);
  --offer-accent: var(--accent-sage);
  --offer-text: var(--fg);
  --offer-text-secondary: var(--fg-secondary);
  --offer-background: var(--bg);
  --offer-surface: var(--surface);
  --offer-border: var(--border);

  /* Card sizing - comfortable proportions */
  --offer-card-padding: clamp(1.75rem, 3vw, 2.5rem);
  --offer-gap: clamp(1.5rem, 3vw, 2rem);

  /* Motion - smooth and gentle */
  --offer-transition: var(--transition-base);
}

/* ========================================
   Section Container — Warm, Inviting
   ======================================== */
#oferta {
  position: relative;
  background: var(--offer-background);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

/* ========================================
   Grid Layout — Responsive, Clean
   ======================================== */
#offer-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--offer-gap);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4, 1rem);
}

@media (min-width: 768px) {
  #offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Card — Modern 2025 Design with WOW Gradient Effect
   Now as clickable link
   ======================================== */
.offer-card {
  position: relative;
  /* Subtle modern gradient - warm honey with depth */
  background: linear-gradient(
    135deg,
    var(--card-highlight) 0%,
    #fffdf5 50%,
    var(--card-highlight-hover) 100%
  );
  border: 1px solid var(--offer-border);
  border-radius: 1.5rem; /* 24px - organic feel */
  padding: var(--offer-card-padding);
  transition: all var(--offer-transition);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.03),
    0 2px 8px rgba(0, 0, 0, 0.02),
    0 4px 16px rgba(245, 184, 65, 0.03);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Subtle accent glow on top edge */
.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--offer-primary) 0%, var(--offer-accent) 100%);
  opacity: 0;
  transition: opacity var(--offer-transition);
}

/* Subtle radial gradient overlay for depth - WOW effect */
.offer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top right,
    rgba(249, 199, 79, 0.08) 0%,
    rgba(244, 162, 97, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--offer-transition);
}

/* Hover state — gentle lift with warm golden glow - WOW! */
.offer-card:hover {
  border-color: var(--offer-primary-light);
  transform: translateY(-4px);
  /* Enhanced gradient on hover */
  background: linear-gradient(135deg, #fff9ec 0%, #fffcf2 50%, #fff4d6 100%);
  box-shadow:
    0 8px 16px rgba(245, 184, 65, 0.12),
    0 4px 8px rgba(245, 184, 65, 0.08),
    0 12px 32px rgba(245, 184, 65, 0.06);
}

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

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

/* Focus state for accessibility */
.offer-card:focus-within {
  outline: 2px solid var(--offer-primary);
  outline-offset: 2px;
}

/* ========================================
   Card Content Layout
   ======================================== */
.offer-card__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  height: 100%; /* Fill the card */
  min-height: 280px; /* Ensure consistent minimum height */
}

/* ========================================
   Typography — Enhanced Hierarchy
   ======================================== */

/* Card Title */
.offer-card__title {
  font-size: clamp(1.25rem, 2.5vw, 1.375rem); /* 20-22px - larger */
  font-weight: 600;
  line-height: 1.25;
  color: var(--offer-text);
  margin: 0;
  letter-spacing: -0.01em;
  /* Prevent inappropriate word breaking */
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* Card Description */
.offer-card__description {
  font-size: clamp(0.9375rem, 1.75vw, 1rem); /* 15-16px */
  font-weight: 400;
  line-height: 1.65;
  color: var(--offer-text-secondary);
  margin: 0;
  flex-grow: 1; /* Push CTA to the bottom */
}

/* ========================================
   Call-to-Action Link — Modern Style (now span inside clickable card)
   ======================================== */
.offer-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto; /* Always at the bottom */
  padding: 0.875rem 1.5rem;

  font-size: 1rem; /* 16px - larger */
  font-weight: 600; /* Bold */
  text-transform: uppercase; /* Uppercase */
  letter-spacing: 0.05em; /* Better spacing for uppercase */
  color: white;
  background: linear-gradient(135deg, var(--offer-primary) 0%, var(--offer-primary-dark) 100%);
  text-decoration: none;
  border-radius: 2rem; /* Rounded button */

  transition: all var(--offer-transition);
  position: relative;
  box-shadow: 0 4px 12px rgba(245, 184, 65, 0.25);
  pointer-events: none; /* Card handles the click */
}

/* Underline effect - remove as we now have a button style */
.offer-card__cta::after {
  display: none;
}

/* CTA hover state - triggered by card hover */
.offer-card:hover .offer-card__cta {
  background: linear-gradient(135deg, var(--offer-primary-dark) 0%, var(--offer-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 184, 65, 0.35);
}

.offer-card:hover .offer-card__cta::after {
  display: none;
}

/* CTA icon animation - triggered by card hover */
.offer-card:hover .offer-card__cta svg {
  transform: translateX(4px);
}
/* CTA icon styling */
.offer-card__cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--offer-transition);
  flex-shrink: 0;
}

/* CTA icon animation - triggered by card hover */
.offer-card:hover .offer-card__cta svg {
  transform: translateX(4px);
}

/* Focus state for keyboard navigation */
.offer-card:focus-visible {
  outline: 2px solid var(--offer-primary);
  outline-offset: 2px;
  border-radius: 1.5rem;
}

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

/* Mobile */
@media (max-width: 640px) {
  :root {
    --offer-gap: 1.5rem;
  }

  .offer-card__content {
    min-height: 240px;
  }

  .offer-card__title {
    font-size: 1.25rem; /* 20px */
  }

  .offer-card__description {
    font-size: 0.9375rem; /* 15px */
  }

  .offer-card__cta {
    font-size: 0.875rem; /* 14px on mobile */
    padding: 0.75rem 1.25rem;
  }
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .offer-card,
  .offer-card__cta,
  .offer-card__cta svg,
  .offer-card::before,
  .offer-card::after {
    transition: none !important;
  }

  .offer-card:hover {
    transform: none;
  }

  .offer-card__cta:hover {
    transform: none;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .offer-card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}
