/**
 * Franchise page.
 *
 * Loaded only on the page with slug "franchise". Figma frame "Franchise", 1512
 * wide. Uses the theme design tokens from main.css.
 *
 * 1. Hero
 * 2. Marquee
 * 3. Stats
 * 4. How it works
 * 5. Why Burger Boi
 * 6. Enquiry form
 * 7. Responsive
 */

/* -------------------------------------------------------------------------- */
/* 1. Hero                                                                     */
/* -------------------------------------------------------------------------- */

.frhero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(500px, 50vw, 764px);
	padding-block: clamp(64px, 7vw, 110px);
	background: var(--c-purple);
	color: var(--c-white);
	isolation: isolate;
}

.frhero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.frhero__media img,
.frhero__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.frhero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(20 12 42 / 88%) 0%, rgb(20 12 42 / 55%) 48%, rgb(20 12 42 / 15%) 100%);
}

.frhero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(16px, 1.8vw, 24px);
}

/* The copy block sits against the left gutter and is capped in width, rather
   than the whole container being narrowed (which would centre it). The title is
   given a little more room so a longer headline keeps its intended line breaks
   instead of orphaning a word, and balances if it has none. */
.frhero__eyebrow {
	max-width: 720px;
}

.frhero__title {
	max-width: 860px;
	text-wrap: balance;
}

.frhero__eyebrow {
	margin: 0;
	font-size: clamp(16px, 1.587vw, 24px);
	font-weight: var(--fw-semibold);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--c-lilac);
}

.frhero__title {
	margin: 0;
	font-size: clamp(40px, 4.76vw, 72px);
	font-weight: var(--fw-bold);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.frhero__subtitle {
	max-width: 560px;
	margin: 0;
	font-size: clamp(16px, 1.32vw, 20px);
	font-weight: var(--fw-medium);
	line-height: 1.55;
	color: var(--c-off-white);
}

.frhero__btn {
	margin-top: 8px;
}

/* -------------------------------------------------------------------------- */
/* 2. Marquee                                                                  */
/* -------------------------------------------------------------------------- */

.frmarquee {
	overflow: hidden;
	padding-block: 18px;
	background: var(--c-ink);
	color: var(--c-white);
}

.frmarquee__track {
	display: flex;
	width: max-content;
	animation: frmarquee-scroll 30s linear infinite;
}

.frmarquee__list {
	display: flex;
	align-items: center;
	gap: 56px;
	margin: 0;
	padding: 0 28px;
	list-style: none;
}

.frmarquee__item {
	font-size: clamp(16px, 1.32vw, 20px);
	font-weight: var(--fw-semibold);
	white-space: nowrap;
}

.frmarquee__item::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 56px;
	border-radius: 50%;
	background: var(--c-lilac);
	vertical-align: middle;
}

@keyframes frmarquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.frmarquee__track { animation: none; }
}

/* -------------------------------------------------------------------------- */
/* 3. Stats                                                                    */
/* -------------------------------------------------------------------------- */

.frstats {
	padding-block: clamp(40px, 4.6vw, 70px);
	background: var(--c-white);
}

.frstats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0;
}

.frstat {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.frstat__value {
	margin: 0;
	color: var(--c-purple);
	font-size: clamp(40px, 4.76vw, 72px);
	font-weight: var(--fw-semibold);
	line-height: 1;
}

.frstat__suffix {
	font-size: 0.45em;
	font-weight: var(--fw-medium);
}

.frstat__label {
	color: var(--c-charcoal);
	font-size: clamp(14px, 1.19vw, 18px);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------------- */
/* 4. How it works                                                             */
/* -------------------------------------------------------------------------- */

.frsteps {
	padding-block: clamp(56px, 6.35vw, 96px);
	background: var(--c-cream);
}

.frsteps__head {
	max-width: 820px;
	margin-bottom: clamp(32px, 3.6vw, 56px);
}

.frsteps__title {
	margin: 0;
	color: var(--c-charcoal);
	font-size: clamp(30px, 3.17vw, 48px);
	font-weight: var(--fw-bold);
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.frsteps__subtitle {
	margin: 16px 0 0;
	color: var(--c-grey);
	font-size: clamp(16px, 1.32vw, 20px);
	font-weight: var(--fw-medium);
	line-height: 1.6;
}

/*
 * The four steps sit in a single card with a connector line running through the
 * step numbers along the top.
 */
.frsteps__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(24px, 2.6vw, 40px);
	margin: 0;
	padding: clamp(28px, 3vw, 44px);
	border: 1px solid rgb(51 51 51 / 12%);
	border-radius: 16px;
	background: var(--c-white);
	list-style: none;
	counter-reset: frstep;
}

.frstep {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.frstep__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
}

/* The connector line between the step numbers. */
.frstep:not(:last-child) .frstep__head::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgb(51 51 51 / 18%);
}

.frstep__tag {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: var(--c-charcoal);
	color: var(--c-white);
	font-size: 12px;
	font-weight: var(--fw-medium);
}

.frstep__num {
	color: var(--c-grey);
	font-size: 28px;
	font-weight: var(--fw-semibold);
	line-height: 1;
}

.frstep__title {
	margin: 0;
	color: var(--c-charcoal);
	font-size: clamp(20px, 1.587vw, 24px);
	font-weight: var(--fw-semibold);
	font-style: italic;
	line-height: 1.2;
}

.frstep__desc {
	margin: 0;
	color: var(--c-grey);
	font-size: clamp(15px, 1.19vw, 18px);
	font-weight: var(--fw-medium);
	line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* 5. Why Burger Boi                                                           */
/* -------------------------------------------------------------------------- */

.frwhy {
	padding-block: clamp(56px, 6.35vw, 96px);
	background: var(--c-white);
}

.frwhy__grid {
	display: grid;
	grid-template-columns: minmax(0, 610fr) minmax(0, 790fr);
	gap: clamp(40px, 4.6vw, 70px);
	align-items: center;
}

.frwhy__eyebrow {
	margin: 0 0 16px;
	color: var(--c-purple);
	font-size: 16px;
	font-weight: var(--fw-semibold);
}

.frwhy__title {
	margin: 0 0 20px;
	color: var(--c-charcoal);
	font-size: clamp(30px, 3.17vw, 48px);
	font-weight: var(--fw-bold);
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.frwhy__title-accent {
	display: block;
	color: var(--c-purple);
}

.frwhy__text {
	margin: 0 0 clamp(24px, 2.6vw, 36px);
	color: var(--c-grey);
	font-size: clamp(16px, 1.19vw, 18px);
	font-weight: var(--fw-medium);
	line-height: 1.6;
}

.frwhy__media img,
.frwhy__media video {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* 6. Enquiry form                                                             */
/* -------------------------------------------------------------------------- */

.frform {
	padding-block: clamp(56px, 6.35vw, 96px);
	background: var(--c-purple);
	color: var(--c-white);
}

.frform__inner {
	max-width: 900px;
}

.frform__head {
	margin-bottom: clamp(28px, 3vw, 44px);
	text-align: center;
}

.frform__title {
	margin: 0 0 12px;
	font-size: clamp(30px, 3.17vw, 48px);
	font-weight: var(--fw-bold);
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.frform__text {
	max-width: 560px;
	margin: 0 auto;
	font-size: clamp(15px, 1.19vw, 18px);
	font-weight: var(--fw-medium);
	line-height: 1.55;
}

.frform__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.frform__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.frform__field {
	position: relative;
	display: block;
}

.frform__input {
	width: 100%;
	min-height: 52px;
	padding: 14px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--c-off-white);
	color: var(--c-charcoal);
	font-family: inherit;
	font-size: 16px;
	font-weight: var(--fw-medium);
	line-height: 1.4;
}

.frform__input::placeholder {
	color: var(--c-grey);
	opacity: 1;
}

.frform__input:focus {
	outline: 2px solid var(--c-purple-light);
	outline-offset: 2px;
}

/* Phone field: a fixed +44 prefix sits inside the input. */
.frform__field--phone {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border-radius: 10px;
	background: var(--c-off-white);
}

.frform__prefix {
	display: inline-flex;
	align-items: center;
	padding: 0 14px;
	background: rgb(51 51 51 / 8%);
	color: var(--c-charcoal);
	font-size: 16px;
	font-weight: var(--fw-semibold);
	white-space: nowrap;
}

.frform__input--phone {
	border-radius: 0;
	background: transparent;
}

.frform__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23757575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	padding-right: 44px;
	cursor: pointer;
}

.frform__textarea {
	min-height: 120px;
	resize: vertical;
	line-height: 1.5;
}

.frform__actions {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

/* -------------------------------------------------------------------------- */
/* 7. Responsive                                                               */
/* -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
	.frsteps__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.frstep:nth-child(2) .frstep__head::after {
		display: none;
	}

	.frwhy__grid {
		grid-template-columns: 1fr;
	}

	.frwhy__media {
		order: -1;
	}
}

@media (max-width: 720px) {
	.frstats__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 24px;
	}
}

@media (max-width: 600px) {
	.frsteps__list {
		grid-template-columns: 1fr;
	}

	.frstep__head::after {
		display: none !important;
	}

	.frform__row {
		grid-template-columns: 1fr;
	}
}
