/* ============================================================
   Refer a Friend — goGLOW
   Uses brand kit: Sofia Pro, black/white, pill buttons,
   20px-rounded media, 90rem container.
   ============================================================ */

.raf {
	font-family: 'sofia-pro', 'Sofia Pro', sans-serif;
	color: #000;
	background: #fff;
}

.raf * { box-sizing: border-box; }

.raf-container {
	max-width: 90rem;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 64px);
}

/* Shared bits ------------------------------------------------ */

.raf-eyebrow {
	display: inline-block;
	font-family: 'sofia-pro', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 6px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	line-height: 1;
}

.raf-section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.raf-section-head--center { text-align: center; }
.raf-section-head .raf-eyebrow { margin-bottom: 16px; }

.raf-section-title {
	font-family: 'sofia-pro', sans-serif;
	font-weight: 600;
	font-size: clamp(32px, 4.5vw, 56px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0;
	color: #000;
}

.raf-section-title em {
	font-style: italic;
	font-weight: 600;
}

.raf-fineprint {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #535353;
	text-align: center;
	max-width: 720px;
	margin: 32px auto 0;
}

/* Buttons (uses brand pill/sweep aesthetic) ------------------ */

.raf-btn {
	position: relative;
	display: inline-block;
	padding: 16px 32px;
	border: 2px solid #000;
	border-radius: 100px;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s ease-in;
	z-index: 1;
	text-decoration: none;
}

.raf-btn span {
	position: relative;
	z-index: 2;
	display: inline-block;
	font-family: 'Sofia Pro', sans-serif;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: color 0.45s cubic-bezier(0.66, 0, 0.1, 1);
}

.raf-btn::before,
.raf-btn::after {
	content: "";
	position: absolute;
	left: 50%;
	display: block;
	border-radius: 50%;
	transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
	z-index: 0;
}
.raf-btn::before {
	top: 100%;
	width: 150%;
	height: 200%;
	transform: translateX(-50%) scaleY(1) scaleX(1.25);
}
.raf-btn::after {
	top: 180%;
	width: 170%;
	height: 200%;
	transform: translateX(-50%) scaleY(1) scaleX(1.45);
}

.raf-btn--dark { background: #000; border-color: #000; }
.raf-btn--dark span { color: #fff; }
.raf-btn--dark::before, .raf-btn--dark::after { background: #fff; }
.raf-btn--dark:hover span { color: #000; }
.raf-btn--dark:hover::before { top: -35%; transform: translateX(-50%) scaleY(1.3) scaleX(0.9); }
.raf-btn--dark:hover::after  { top: -45%; transform: translateX(-50%) scaleY(1.3) scaleX(0.9); }

.raf-btn--light { background: #fff; border-color: #fff; }
.raf-btn--light span { color: #000; }
.raf-btn--light::before, .raf-btn--light::after { background: #000; }
.raf-btn--light:hover span { color: #fff; }
.raf-btn--light:hover::before { top: -35%; transform: translateX(-50%) scaleY(1.3) scaleX(0.9); }
.raf-btn--light:hover::after  { top: -45%; transform: translateX(-50%) scaleY(1.3) scaleX(0.9); }

/* PMS 320U — brand accent */
.raf-btn--blue { background: #009CA6; border-color: #009CA6; }
.raf-btn--blue span { color: #fff; }
.raf-btn--blue::before, .raf-btn--blue::after { background: #fff; }
.raf-btn--blue:hover span { color: #009CA6; }
.raf-btn--blue:hover::before { top: -35%; transform: translateX(-50%) scaleY(1.3) scaleX(0.9); }
.raf-btn--blue:hover::after  { top: -45%; transform: translateX(-50%) scaleY(1.3) scaleX(0.9); }

/* HERO ------------------------------------------------------- */

.raf-hero {
	padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 7vw, 112px);
}

.raf-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.raf-hero__copy { max-width: 560px; }

.raf-hero__title {
	font-family: 'sofia-pro', sans-serif;
	font-weight: 600;
	font-size: clamp(40px, 6vw, 80px);
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0 0 24px;
	color: #000;
}

.raf-hero__title em {
	font-style: italic;
	font-weight: 600;
}

.raf-hero__title-line {
	display: block;
	text-transform: none;
	font-size: 0.55em;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-top: 12px;
	color: #181818;
}

.raf-hero__lede {
	font-size: clamp(16px, 1.2vw, 19px);
	line-height: 1.55;
	font-weight: 400;
	color: #2b2b2b;
	margin: 0 0 32px;
	max-width: 50ch;
}

.raf-hero__media img,
.raf-why__media img {
	filter: saturate(1.18) contrast(1.12);
}

.raf-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* HOW IT WORKS ----------------------------------------------- */

.raf-how {
	padding: clamp(56px, 7vw, 120px) 0;
	background: #f6f4f1; /* warm off-white, close to brand */
}

.raf-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 3vw, 40px);
	counter-reset: step;
}

.raf-step {
	background: #fff;
	border-radius: 20px;
	padding: clamp(28px, 3vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 25px 50px -28px rgba(0,0,0,0.18);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.raf-step:hover {
	transform: translateY(-4px);
	box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 35px 60px -28px rgba(0,0,0,0.22);
}

.raf-step__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1.5px solid #000;
	border-radius: 999px;
	color: #000;
	background: #fff;
	transition: background 0.3s ease, color 0.3s ease, transform 0.4s ease;
}

.raf-step:hover .raf-step__icon {
	background: #009CA6;
	border-color: #009CA6;
	color: #fff;
}

.raf-step__num {
	font-family: 'sofia-pro', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.18em;
	color: #535353;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0,0,0,0.18);
	width: fit-content;
	margin-top: 4px;
}

.raf-step__title {
	font-family: 'sofia-pro', sans-serif;
	font-weight: 600;
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.2;
	margin: 0;
	color: #000;
}

.raf-step__body {
	font-size: 16px;
	line-height: 1.55;
	color: #4a4a4a;
	margin: 0;
}

/* WHY PEOPLE SHARE ------------------------------------------- */

.raf-why {
	padding: clamp(56px, 7vw, 120px) 0;
}

.raf-why__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.raf-why__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	object-fit: cover;
	object-position: center 20%;
	aspect-ratio: 2 / 3;
}

.raf-why__copy .raf-eyebrow { margin-bottom: 16px; }
.raf-why__copy .raf-section-title { margin-bottom: 20px; }

.raf-why__lede {
	font-size: clamp(16px, 1.2vw, 19px);
	line-height: 1.55;
	color: #2b2b2b;
	margin: 0 0 28px;
	max-width: 52ch;
}

.raf-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.raf-checks li {
	position: relative;
	padding-left: 36px;
	font-size: 17px;
	line-height: 1.5;
	color: #000;
}

.raf-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 22px;
	height: 22px;
	background-image: url('/wp-content/uploads/2025/10/black-checkmark.svg');
	background-size: contain;
	background-repeat: no-repeat;
}

/* FAQ -------------------------------------------------------- */

.raf-faq {
	padding: clamp(56px, 7vw, 120px) 0;
	background: #f6f4f1;
}

.raf-faq__inner { max-width: 980px; margin: 0 auto; }

.raf-accordion {
	display: flex;
	flex-direction: column;
}

/* Each item is a horizontal bar with top + bottom hairlines and 32px gap */
.raf-faq-item {
	margin: 0 0 32px;
	background: transparent;
}

.raf-faq-item:last-child { margin-bottom: 0; }

.raf-faq-item__summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 16px 48px;
	border-top: 1px solid #D5D8DC;
	border-bottom: 1px solid #D5D8DC;
	background: transparent;
	transition: background 0.2s ease;
}

.raf-faq-item__summary::-webkit-details-marker,
.raf-faq-item__summary::marker { display: none; content: none; }

.raf-faq-item__q {
	flex: 1;
	font-family: 'sofia-pro', sans-serif;
	font-weight: 700;
	font-size: clamp(18px, 1.6vw, 25px);
	line-height: 1.4;
	color: #1F2124;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
}

.raf-faq-item__icon {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.raf-faq-item__icon svg { display: block; }
.raf-faq-item__icon-open { display: none; }
.raf-faq-item[open] .raf-faq-item__icon-closed { display: none; }
.raf-faq-item[open] .raf-faq-item__icon-open { display: inline-flex; }

.raf-faq-item:hover .raf-faq-item__summary { background: rgba(0,0,0,0.015); }

.raf-faq-item__body {
	padding: 20px 48px 8px;
	font-family: 'sofia-pro', sans-serif;
	font-weight: 300;
	font-size: 17px;
	line-height: 1.5;
	color: #000;
}

.raf-faq-item__body p { margin: 0 0 14px; }
.raf-faq-item__body p:last-child { margin-bottom: 0; }

/* FINAL CTA -------------------------------------------------- */

.raf-final {
	padding: clamp(64px, 8vw, 128px) 0;
	background: #000;
	color: #fff;
}

.raf-final__inner {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}

.raf-final__title {
	font-family: 'sofia-pro', sans-serif;
	font-weight: 600;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #fff;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.raf-final__title em {
	font-style: italic;
	font-weight: 600;
}

.raf-final__lede {
	font-size: clamp(16px, 1.3vw, 20px);
	line-height: 1.55;
	color: rgba(255,255,255,0.85);
	max-width: 56ch;
	margin: 0 auto 36px;
}

/* Responsive ------------------------------------------------- */

@media (max-width: 1024px) {
	.raf-steps { grid-template-columns: 1fr 1fr; }
	.raf-steps li:nth-child(3) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
}

@media (max-width: 768px) {
	.raf-hero__grid,
	.raf-why__grid { grid-template-columns: 1fr; }
	.raf-hero__grid { gap: 32px; }
	.raf-why__grid { gap: 32px; }
	.raf-hero__media { order: -1; }
	.raf-steps,
	.raf-steps li:nth-child(3) { grid-template-columns: 1fr; max-width: none; margin: 0; }
	.raf-steps { gap: 16px; }
	.raf-faq-item__summary { padding: 16px 20px; gap: 16px; }
	.raf-faq-item__body { padding: 18px 20px 6px; font-size: 16px; }
	.raf-faq-item { margin-bottom: 20px; }
	.raf-why__media img { aspect-ratio: 4 / 3; }
}

@media (max-width: 430px) {
	.raf-btn { padding: 14px 24px; }
	.raf-btn span { font-size: 14px; }
}

/* Hide stray title bar from theme if it renders before main */
.page-template-template-refer-a-friend .entry-header,
.page-template-template-refer-a-friend .page-header { display: none; }
