/* ==========================================================================
   Guide Plugin – Frontend Styles
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   Launcher buttons (bottom-right)
   -------------------------------------------------------------------------- */

.guide-launcher {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.guide-launcher-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 400;
	font-size: 9px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	line-height: 1;
	padding: 0;
}

.guide-launcher-btn:hover {
	transform: scale(1.07);
	box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.guide-launcher-btn:active {
	transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   Modal Wrapper
   -------------------------------------------------------------------------- */

.guide-modal-wrap {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
}

.guide-modal-wrap.is-open {
	pointer-events: all;
}

/* Mobile backdrop */
.guide-modal-wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.guide-modal-wrap.is-open::before {
	opacity: 1;
	pointer-events: all;
}

@media (min-width: 768px) {
	.guide-modal-wrap::before {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.guide-modal {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-modal-wrap.is-open .guide-modal {
	transform: translateY(0);
}

@media (min-width: 768px) {
	.guide-modal-wrap {
		padding: 0 24px 90px 0;
	}

	.guide-modal {
		width: 360px;
		height: min(680px, 88vh);
		border-radius: 15px;
		box-shadow: 0 24px 64px rgba(0,0,0,0.28);
		transform: translateY(16px);
		opacity: 0;
		transition: transform 0.3s ease, opacity 0.3s ease;
	}

	.guide-modal-wrap.is-open .guide-modal {
		transform: translateY(0);
		opacity: 1;
	}
}

/* --------------------------------------------------------------------------
   Nav bar
   -------------------------------------------------------------------------- */

.guide-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 5px 10px 15px;
	flex-shrink: 0;
}

.guide-nav-logo {
	width: 40px;
	flex-shrink: 0;
	cursor: pointer;
}

.guide-nav-logo img {
	display: block;
	max-height: 36px;
	width: auto;
}

.guide-nav-back {
	position: absolute;
	left: 50%;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateX(-50%) scale(0.8);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.guide-nav-back.is-visible {
	opacity: 0.5;
	width: 32px;
	transform: translateX(-50%) scale(1);
	pointer-events: all;
}

.guide-nav-close {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 600;
	font-size: 7px;
	letter-spacing: 2.25pt;
	text-transform: uppercase;
	color: #DDD5D0;
	padding: 4px 8px;
}

.guide-nav-close:hover {
	color: #FFF;
}

/* --------------------------------------------------------------------------
   Cards container
   -------------------------------------------------------------------------- */

.guide-cards-wrap {
	position: relative;
	flex: 1;
	overflow: hidden;
}

.guide-card {
	position: absolute;
	inset: 0;
	overflow: hidden;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
	display: flex;
	flex-direction: column;
}

.guide-card--home,
.guide-card--contact {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.guide-card--list .guide-list-body {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.guide-card.is-active {
	transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Home card
   -------------------------------------------------------------------------- */

.guide-card--home {
	/* background set via inline style from button_color setting */
}

.guide-home-header {
	padding: 40px 28px 24px;
	flex-shrink: 0;
	text-align: center;
}

.guide-title {
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 600;
	font-size: 34px;
	color: #FCF8F6;
	margin: 0 0 60px;
	line-height: 1.1;
	text-align: center;
}

.guide-subtitle {
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 600;
	font-size: 22px;
	color: #FCF8F6;
	margin: 0;
	line-height: 1.2;
	text-align: center;
}

.guide-home-body {
	flex: 1;
	padding: 18px 38px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.guide-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
	align-items: flex-start;
	align-content: flex-start;
	width: 100%;
}

.guide-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 26px;
	border: 1.5px solid #FCF8F6;
	border-radius: 100px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #FCF8F6;
	background: transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease;
	white-space: nowrap;
	height: auto;
	align-self: flex-start;
}

.guide-pill:hover {
	background: #FCF8F6;
	color: #15352D;
}

.guide-reach-team {
	text-align: center;
}

.guide-card--home .guide-reach-team {
	position: absolute;
	bottom: 42px;
	left: 0;
	right: 0;
}

.guide-reach-link {
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 400;
	font-size: 13px;
	color: rgba(255,255,255,0.55);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.18s;
}

.guide-reach-link:hover {
	color: rgba(255,255,255,0.9);
}

/* --------------------------------------------------------------------------
   List card
   -------------------------------------------------------------------------- */

.guide-card--list {
	background: #f5f2ef;
}

.guide-list-header {
	padding: 32px 28px 56px;
	flex: 1 0 auto;
	text-align: center;
}

.guide-list-label {
	display: block;
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 400;
	font-size: 7px;
	letter-spacing: 2px;
	color: rgba(255,255,255,0.7);
	margin-bottom: 24px;
	text-align: center;
}

.guide-list-title {
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 600;
	font-size: 22px;
	color: #FCF8F6;
	margin: 0;
	text-align: center;
}

.guide-list-body {
	flex: 0 1 auto;
	min-height: 73%;
	background: #f5f2ef;
	border-radius: 21px 21px 0 0;
	padding: 32px 42px 24px;
	margin-top: -21px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.guide-list-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 26px;
	background: rgba(221,213,208,0.4);
	border-radius: 12px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #15352D;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s ease;
}

.guide-list-item:hover {
	background: rgba(221,213,208,0.7);
}

.guide-list-body:has(.guide-list-item--has-avatar) {
	padding-left: 48px;
}

.guide-list-item--has-avatar {
	position: relative;
	padding-left: 28px;
}

.guide-list-item--has-avatar .guide-list-avatar {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translate(-50%, -50%);
	height: 60%;
	width: auto;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Contact card
   -------------------------------------------------------------------------- */

.guide-card--contact {
	overflow-y: auto;
}

.guide-contact {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 88px 28px 40px;
	min-height: 100%;
}

.guide-contact-title {
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 600;
	font-size: 22px;
	color: #FCF8F6;
	margin: 0 0 60px;
	text-align: center;
}

.guide-contact-subtitle {
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: rgba(255,255,255,0.75);
	text-align: center;
	margin: 0 0 40px;
}

.guide-channels {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-top: auto;
	margin-bottom: 0;
	width: 100%;
}

.guide-channels-divider {
	width: 1px;
	height: 80px;
	background: #DDD5D0;
	flex-shrink: 0;
	opacity: 0.5;
}

.guide-channel {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	padding: 16px 8px;
	transition: opacity 0.18s;
}

.guide-channel:hover {
	opacity: 0.8;
}

.guide-channel-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	width: 56px;
	max-width: 100%;
	aspect-ratio: 1;
}

.guide-channel-icon svg,
.guide-channel-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.guide-channel-label {
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 400;
	font-size: 12px;
	color: #FCF8F6;
}

.guide-contact-info {
	text-align: center;
	margin-top: auto;
}

.guide-contact-info h3 {
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #FCF8F6;
	margin: 0 0 26px;
}

.guide-contact-link {
	display: block;
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #FCF8F680;
	text-decoration: none;
	margin-bottom: 20px;
	transition: color 0.18s;
}

.guide-contact-link:hover {
	color: #fff;
}
