/* =========================================================
   FRANCHISE SECTION
========================================================= */

.franchise_section {
  position: relative;
  padding: 50px 0;
  background: #fff;
  overflow: hidden;
}

/* =========================================================
   HEADING
========================================================= */

.franchise_section .franchise_heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 55px;
  text-align: center;
}

.franchise_section .franchise_subtitle {
  display: inline-block;
  margin-bottom: 12px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: #d00000;
}

.franchise_section .franchise_heading h2 {
  margin: 0;

  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;

  color: #111;
}

.franchise_section .franchise_heading h2 span {
  position: relative;
  display: inline-block;
  color: #d00000;
}

.franchise_section .franchise_heading h2 span::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 100%;
  height: 3px;

  background: linear-gradient(90deg, #ff3b30, #d00000);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.45s ease;
}

.franchise_section .franchise_heading:hover h2 span::after {
  transform: scaleX(1);
}

.franchise_section .franchise_heading p {
  max-width: 580px;
  margin: 20px auto 0;

  color: #666;
  font-size: 16px;
  line-height: 1.7;
}

/* =========================================================
   GRID
========================================================= */

.franchise_section .franchise_grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* =========================================================
   CARD
========================================================= */

.franchise_section .franchise_card {
  position: relative;

  aspect-ratio: 0.78;

  overflow: hidden;
  border-radius: 22px;

  background: #111;

  cursor: pointer;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

.franchise_section .franchise_card:hover {
  transform: translateY(-10px);

  box-shadow: 0 25px 55px rgba(208, 0, 0, 0.22);
}

/* =========================================================
   IMAGE
========================================================= */

.franchise_section .franchise_image_wrap {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;
}

.franchise_section .franchise_image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.franchise_section .franchise_card:hover .franchise_image {
  transform: scale(1.1);
  filter: brightness(0.78);
}

/* =========================================================
   RED + DARK OVERLAY
========================================================= */

.franchise_section .franchise_overlay {
  position: absolute;
  inset: 0;

  z-index: 1;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 20%,
    rgba(0, 0, 0, 0.18) 42%,
    rgba(70, 0, 0, 0.55) 68%,
    rgba(90, 0, 0, 0.94) 100%
  );

  transition: background 0.45s ease;
}

.franchise_section .franchise_card:hover .franchise_overlay {
  background: linear-gradient(
    to bottom,
    rgba(80, 0, 0, 0.05) 15%,
    rgba(100, 0, 0, 0.25) 45%,
    rgba(120, 0, 0, 0.95) 100%
  );
}

/* =========================================================
   CONTENT
========================================================= */

.franchise_section .franchise_content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;

  padding: 28px 25px;

  color: #fff;
}

/* =========================================================
   LOCATION
========================================================= */

.franchise_section .franchise_location {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 10px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.88);
}

.franchise_section .location_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;

  font-size: 15px;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(5px);

  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.franchise_section .franchise_card:hover .location_icon {
  background: #fff;
  border-color: #fff;
  color: #d00000;
}

/* =========================================================
   NAME
========================================================= */

.franchise_section .franchise_content h3 {
  margin: 0;
  padding-right: 50px;

  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;

  color: #fff;

  transition:
    transform 0.4s ease,
    color 0.4s ease;
}

.franchise_section .franchise_card:hover .franchise_content h3 {
  transform: translateX(4px);
}

/* =========================================================
   ARROW
========================================================= */

.franchise_section .franchise_arrow {
  position: absolute;

  right: 24px;
  bottom: 27px;

  width: 43px;
  height: 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;

  font-size: 20px;
  font-weight: 600;

  color: #fff;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(8px);

  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

.franchise_section .franchise_card:hover .franchise_arrow {
  background: #fff;
  border-color: #fff;

  color: #d00000;

  transform: rotate(45deg);
}

/* =========================================================
   TOP RED ACCENT
========================================================= */

.franchise_section .franchise_card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  z-index: 3;

  background: linear-gradient(90deg, #ff3b30, #d00000);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.45s ease;
}

.franchise_section .franchise_card:hover::before {
  transform: scaleX(1);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
  .franchise_section .franchise_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .franchise_section {
    padding: 80px 0;
  }

  .franchise_section .franchise_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .franchise_section .franchise_card {
    aspect-ratio: 0.9;
  }
}

@media (min-width: 0px) and (max-width: 575.98px) {
  .franchise_section {
    padding: 65px 0;
  }

  .franchise_section .franchise_heading {
    margin-bottom: 35px;
  }

  .franchise_section .franchise_heading h2 {
    font-size: 34px;
  }

  .franchise_section .franchise_heading p {
    font-size: 14px;
  }

  .franchise_section .franchise_grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .franchise_section .franchise_card {
    aspect-ratio: 1 / 1.05;
    border-radius: 18px;
  }

  .franchise_section .franchise_content {
    padding: 24px 20px;
  }

  .franchise_section .franchise_content h3 {
    font-size: 20px;
  }
}
