/* 
  franchise.css 
  Styles specific to the Franchise page redesign
*/

/* --------------------------------------
   Utility Classes
---------------------------------------*/
.text-center { text-align: center; }
.text-left { text-align: left; }

/* --------------------------------------
   Hero & Trust Banner
---------------------------------------*/
.hero-franchise-redesign {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  background: var(--color-bg-soft);
}

.hero-franchise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-franchise-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-franchise__content {
  text-align: left;
}

.hero-franchise__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-franchise__lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 50ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Embedded Franchise Form */
.franchise-form-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.franchise-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fafafa;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 169, 127, 0.15);
}

.franchise-form-card .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Trust Banner */
.trust-banner {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 3rem 0;
}

.trust-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .trust-banner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.trust-stat__label {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
}

/* --------------------------------------
   Circular "Why Us" Section
---------------------------------------*/
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 2rem;
  }
}

.why-us-card {
  text-align: center;
}

.why-us-card__image {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 6px solid #fff;
}

.why-us-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.why-us-card:hover .why-us-card__image img {
  transform: scale(1.05);
}

.why-us-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
}

.why-us-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 32ch;
  margin: 0 auto;
}

/* --------------------------------------
   Vertical Process List
---------------------------------------*/
.process-scroll-container {
  position: relative;
  height: auto;
  background: #FFFCF5;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .process-scroll-container {
    height: 300vh;
    padding: 0;
  }
}

.process-sticky-wrapper {
  position: relative;
  height: auto;
  width: 100%;
  overflow: visible;
}

@media (min-width: 768px) {
  .process-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #FFFCF5;
  }
}

.process-sticky-content {
  width: 100%;
}

.process-redesign-container {
  max-width: 900px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
}

@media (min-width: 768px) {
  .process-redesign-container {
    max-width: 1100px;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    margin-top: 0;
    align-items: center;
  }
}

.process-graphic-col {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 250px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .process-graphic-col {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 450px;
    margin: 0 auto;
  }
}

/* Dash connecting line behind cup layers */
.process-graphic-col::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 2px dashed rgba(0, 169, 127, 0.25);
  z-index: 1;
}

.cup-layer {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
  .cup-layer {
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .cup-layer.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .cup-layer.is-active:hover {
    transform: scale(1.05) translateY(-4px);
  }
}

.cup-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
}

.process-steps-col {
  display: flex;
  flex-direction: column;
}

.process-steps-viewport {
  height: auto;
  overflow: visible;
}

@media (min-width: 768px) {
  .process-steps-viewport {
    height: 120px;
    overflow: hidden;
    position: relative;
  }
}

.process-steps-track {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .process-steps-track {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.process-redesign-item {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  border-radius: 0.75rem;
  transition: all 0.25s ease;
}

.process-redesign-item:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .process-redesign-item {
    height: 120px;
    min-height: 120px;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    border-bottom: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease;
  }

  .process-redesign-item.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1.02);
    background: rgba(0, 169, 127, 0.04);
  }
}

.process-redesign-item__num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-bg-soft);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 169, 127, 0.15);
  box-shadow: 0 4px 10px rgba(0, 169, 127, 0.05);
}

.process-redesign-item__content {
  display: flex;
  flex-direction: column;
}

.process-redesign-item__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.process-redesign-item__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 55ch;
}

/* --------------------------------------
   Characteristics of Success
---------------------------------------*/
.characteristics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .characteristics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.char-card {
  text-align: center;
}

.char-card__icon-ring {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.char-card__icon-ring svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  fill: none;
}

.char-card__icon-ring span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.char-card__title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.char-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 28ch;
  margin: 0 auto;
}

/* --------------------------------------
   USA Territories
---------------------------------------*/
.territories-banner {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.territories-banner__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.territory-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.territory-tab {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.territory-tab.is-active {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}

.territory-content {
  background: rgba(255,255,255,0.05);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  backdrop-filter: blur(8px);
}

.territory-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .territory-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.territory-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.territory-list li::before {
  content: "•";
  color: var(--color-accent);
  font-size: 1.5rem;
}

.territories-canada {
  margin-top: 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.territories-canada a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}

/* --------------------------------------
   Accordion FAQs
---------------------------------------*/
.faq-accordion-group {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-details {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 1.5rem 0;
}

.faq-details[open] .faq-summary::after {
  content: "−";
  color: var(--color-primary);
}

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none; /* remove default arrow */
  color: var(--color-text);
  transition: color 0.2s ease;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  color: var(--color-primary);
}

.faq-summary::after {
  content: "+";
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq-body {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  padding-right: 2rem;
}

/* --------------------------------------
   Testimonials (Horizontal Scroll)
---------------------------------------*/
.testimonials-section {
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
}

.testimonials-section .section__title {
  color: #fff;
}

.testimonial-scroll {
  display: flex;
  gap: 2rem;
  padding: 1rem 5vw;
  margin: 3rem calc(-50vw + 50%); /* full bleed horizontal scroll */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* firefox */
}

@media (min-width: 1200px) {
  .testimonial-scroll {
    justify-content: center;
  }
}

.testimonial-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 350px;
  scroll-snap-align: center;
  background: #fff;
  color: var(--color-text);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 450px;
  }
}

.testimonial-card__quote {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card__quote::before {
  content: "“";
  font-family: Georgia, serif;
  font-size: 4rem;
  color: rgba(0, 169, 127, 0.15);
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author__img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author__info h4 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.testimonial-author__info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --------------------------------------
   End CTA Banner
---------------------------------------*/
.end-cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  overflow: hidden;
}

.end-cta-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (min-width: 768px) {
  .end-cta-grid {
    flex-direction: row;
    text-align: center;
    justify-content: stretch;
  }
  .end-cta-text-col {
    padding: 4rem 8vw;
  }
}

.end-cta-text-col {
  flex: 1;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.end-cta-image-col {
  flex: 1;
  display: flex;
  margin: 0;
  padding: 0;
}

.end-cta-banner__cup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  margin: 0;
  padding: 0;
  display: block;
  transform: scale(1.15) translateX(-2%);
}

.end-cta-banner .section__title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.end-cta-banner .section__lead {
  color: rgba(255,255,255,0.9);
  margin: 0 auto 2.5rem;
  max-width: 40ch;
}

@media (min-width: 768px) {
  .end-cta-banner .section__lead {
    margin: 0 auto 2.5rem;
  }
}

.end-cta-banner .btn {
  background: #A6D13B;
  color: #111;
  font-weight: 800;
  border-radius: 1.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  display: inline-block;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.end-cta-banner .btn:hover {
  background: #b7e344;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 209, 59, 0.4);
}
