/**
 * Franchising Support — unified background effect matching text-4-columns-block:
 * - Base background: #E9F7F8 (light teal)
 * - Background image opacity: 0.24
 * - Using shared bg2.webp
 */

.franchising-support {
  position: relative;
  width: 100%;
  padding: 100px 80px 40px;
  overflow: hidden;
  /* Base light teal background - unified with text-4-columns-block */
  background: #E9F7F8;
}

/* Background image container - fills the entire section - unified effect */
.franchising-support-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.franchising-support-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.24; /* Unified opacity with text-4-columns-block */
  max-width: none;
  transform-origin: center center;
}

/* Light teal overlay - unified subtle tint */
.franchising-support-overlay {
  position: absolute;
  inset: 0;
  background: rgba(233, 247, 248, 0.2); /* Unified overlay with other blocks */
  z-index: 1;
}

/* Content container - positioned above overlay */
.franchising-support-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

/* Header */
.franchising-support-header {
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.franchising-support-header .home-section-label {
  justify-content: center;
}

.franchising-support-header .home-section-label span {
  color: #0097a7;
  font-weight: 700;
}

/* Header: theme .es-section-title / .es-section-subtitle */

/* Cards Grid */
.franchising-support-cards {
  display: flex;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

/* Individual Card */
.franchising-support-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 24px;
  
}

.franchising-support-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.franchising-support-card-icon svg {
  width: 100%;
  height: 100%;
}

/* Card headings: theme .es-card-title */

.franchising-support-card-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--smith-grey, #404a50);
  margin: 0;
}

/* CTA Button */
.franchising-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 8px 32px;
  border-radius: 8px;
  background-color: var(--btn-primary-rest);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.franchising-support-btn:hover {
  background-color: var(--btn-primary-hover);
  box-shadow: 0px 6px 14px rgba(1, 13, 20, 0.1);
}

.franchising-support-btn:active {
  background-color: var(--btn-primary-pressed);
  box-shadow: none;
}

.franchising-support-btn:focus-visible {
  outline: 2px solid var(--btn-primary-pressed);
  outline-offset: 2px;
}

/* Tablet — from styles.css (max-width: 1024px) */
@media (max-width: 1024px) {
  .franchising-support {
    padding: 80px 40px 40px;
  }

  .franchising-support-inner {
    gap: 48px;
  }

  .franchising-support-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .franchising-support-card:nth-child(4),
  .franchising-support-card:nth-child(5) {
    grid-column: span 1;
  }
}

/* Mobile + serif scale — from styles.css @media (max-width: 768px) */
@media (max-width: 768px) {
  .franchising-support {
    padding: 60px 24px 40px;
  }

  .franchising-support-inner {
    gap: 40px;
  }

  .franchising-support-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .franchising-support-card {
    padding: 32px 24px;
  }

  .franchising-support-btn {
    height: 44px;
    padding: 8px 24px;
    font-size: 15px;
  }
}
