/* =========================================================================
   ICA FRANCHISE REVIEW PAGE  —  franchise-review.css
   Companion stylesheet. Load AFTER the theme's style.css.
   Every rule is scoped under .fr-page so nothing leaks into the theme.
   No inline CSS anywhere. Palette matched to ScriptCrown theme.
   ========================================================================= */

.fr-page {
  --fr-indigo:   #393185;
  --fr-blue:     #616dfd;
  --fr-yellow:   #ffc926;
  --fr-ink:      #1c1c2b;
  --fr-body:     #4a4a5a;
  --fr-line:     #e6e7f2;
  --fr-panel:    #ffffff;
  --fr-soft:     #f5f6fc;
  --fr-radius:   14px;
  --fr-shadow:   0 10px 30px rgba(57, 49, 133, 0.10);
  --fr-shadow-sm:0 4px 14px rgba(57, 49, 133, 0.08);
  --fr-max:      1200px;
  --fr-gap:      32px;

  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  color: var(--fr-body);
  background: var(--fr-soft);
  -webkit-font-smoothing: antialiased;
  padding-top: 100px;
}

.fr-page *,
.fr-page *::before,
.fr-page *::after { box-sizing: border-box; }

.fr-wrap {
  max-width: var(--fr-max);
  margin: 0 auto;
  padding: 56px 20px 72px;
}

/* ----------------------------- Page head ------------------------------ */
.fr-head { text-align: center; margin-bottom: 44px; }

.fr-head .fr-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--fr-indigo);
  background: rgba(97, 109, 253, 0.12);
  padding: 7px 16px;
  border-radius: 40px;
  margin-bottom: 16px;
}

.fr-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--fr-ink);
  margin: 0 0 14px;
}

.fr-head h1 span { color: var(--fr-indigo); }

.fr-head p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

/* --------------------------- Two-column grid -------------------------- */
.fr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--fr-gap);
  align-items: stretch;   /* side column stretches to full height so sticky can travel */
}

/* Left = videos (column 1). Right = CTA/links (column 2).
   CTA is FIRST in the DOM for mobile, placed to the right on desktop. */
.fr-main { grid-column: 1; grid-row: 1; min-width: 0; }
.fr-side { grid-column: 2; grid-row: 1; align-self: stretch; height: 100%; }

.fr-side-inner {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------------------------- Section label --------------------------- */
.fr-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--fr-ink);
  margin: 0 0 20px;
}
.fr-block-title::before {
  content: "";
  width: 6px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--fr-indigo), var(--fr-blue));
}
.fr-shorts-title { margin-top: 40px; }

/* --------------------------- Landscape videos ------------------------- */
.fr-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.fr-video {
  background: var(--fr-panel);
  border: 1px solid var(--fr-line);
  border-radius: var(--fr-radius);
  overflow: hidden;
  box-shadow: var(--fr-shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.fr-video:hover { box-shadow: var(--fr-shadow); transform: translateY(-2px); }

.fr-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}

.fr-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fr-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Play button overlay */
.fr-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 28, 43, 0.18);
  transition: background .2s ease;
}
.fr-media:hover .fr-play { background: rgba(28, 28, 43, 0.32); }

.fr-play span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--fr-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform .2s ease;
}
.fr-media:hover .fr-play span { transform: scale(1.08); }

.fr-play span::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent var(--fr-indigo);
  margin-left: 4px;
}

.fr-caption {
  padding: 16px 18px 18px;
}
.fr-caption h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fr-ink);
  margin: 0 0 6px;
  line-height: 1.35;
}
.fr-caption p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--fr-body);
}
.fr-caption .fr-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--fr-blue);
  margin-top: 10px;
}

/* ------------------------------- Shorts ------------------------------- */
.fr-shorts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fr-short {
  background: var(--fr-panel);
  border: 1px solid var(--fr-line);
  border-radius: var(--fr-radius);
  overflow: hidden;
  box-shadow: var(--fr-shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.fr-short:hover { box-shadow: var(--fr-shadow); transform: translateY(-2px); }

.fr-short .fr-media { aspect-ratio: 9 / 16; }

.fr-short .fr-caption { padding: 12px 14px 14px; }
.fr-short .fr-caption h3 { font-size: 14px; }

/* ------------------------------ CTA card ------------------------------ */
.fr-cta {
  background: linear-gradient(150deg, var(--fr-indigo) 0%, #4a41a6 55%, var(--fr-blue) 130%);
  border-radius: var(--fr-radius);
  padding: 26px 24px;
  color: #fff;
  box-shadow: var(--fr-shadow);
}
.fr-cta h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
  color: #fff;
}
.fr-cta p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
}

.fr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.fr-btn + .fr-btn { margin-top: 12px; }

.fr-btn-primary {
  background: var(--fr-yellow);
  color: var(--fr-ink);
  box-shadow: 0 6px 16px rgba(255, 201, 38, 0.35);
}
.fr-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 201, 38, 0.45); }

.fr-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.fr-btn-ghost:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

.fr-cta .fr-note {
  font-size: 12px;
  line-height: 1.5;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------ Link panel ---------------------------- */
.fr-links {
  background: var(--fr-panel);
  border: 1px solid var(--fr-line);
  border-radius: var(--fr-radius);
  padding: 22px 22px 12px;
  box-shadow: var(--fr-shadow-sm);
}
.fr-links h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--fr-ink);
  margin: 0 0 14px;
}
.fr-links ul { list-style: none; margin: 0; padding: 0; }
.fr-links li { border-top: 1px solid var(--fr-line); }
.fr-links li:first-child { border-top: 0; }

.fr-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fr-ink);
  text-decoration: none;
  transition: color .15s ease, padding-left .15s ease;
}
.fr-links a:hover { color: var(--fr-indigo); padding-left: 8px; }
.fr-links a::after {
  content: "\2192";
  color: var(--fr-blue);
  font-weight: 700;
  transition: transform .15s ease;
}
.fr-links a:hover::after { transform: translateX(3px); }

/* --------------------------- Trust strip ------------------------------ */
.fr-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  margin: 48px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--fr-line);
  max-width: 900px;
}
.fr-trust div { text-align: center; }
.fr-trust strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--fr-indigo);
  line-height: 1.1;
}
.fr-trust small { font-size: 12.5px; color: var(--fr-body); }

/* ------------------------------ Responsive ---------------------------- */
@media (max-width: 1024px) {
  .fr-grid { grid-template-columns: 1fr; }
  /* CTA/links move to top on mobile since they are first in the DOM */
  .fr-main { grid-column: 1; grid-row: 2; }
  .fr-side { grid-column: 1; grid-row: 1; }
  .fr-side-inner { position: static; }  /* kill sticky on small screens */
  .fr-shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .fr-wrap { padding: 36px 16px 52px; }
  .fr-videos { grid-template-columns: 1fr; }
  /* Shorts become a horizontal swipe strip so they keep their tall ratio */
  .fr-shorts {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .fr-shorts .fr-short {
    flex: 0 0 68%;
    max-width: 260px;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fr-page *,
  .fr-page *::before,
  .fr-page *::after { transition: none !important; }
}
