/* -------------------------------------------------------------------------
   Homepage sections.
   ---------------------------------------------------------------------- */

/* --- Hero -------------------------------------------------------------- */
.fb-hero {
	padding: 20px 0 0;
}

.fb-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(360px, 38vw, 540px);
	padding: clamp(24px, 3vw, 46px);
	border-radius: var(--fb-radius-lg);
	background-color: #111;
	background-image: var(--fb-hero-image);
	background-position: center;
	background-size: cover;
	overflow: hidden;
}

.fb-hero__inner::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Matched to the live hero, which sits much darker across the whole
	   width — measured, not eyeballed. */
	background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .78) 45%, rgba(0, 0, 0, .72) 100%);
}

.fb-hero__panel {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	padding: clamp(24px, 3vw, 46px);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: var(--fb-radius-lg);
	background: rgba(255, 255, 255, .05);
	backdrop-filter: blur(2px);
	color: var(--fb-white);
}

.fb-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 .5em;
	color: rgba(255, 255, 255, .85);
	font-size: 1rem;
	font-weight: 500;
}

/* Bullet: the jviens.web.id hero dot — 8px, ringed at 20%. currentColor so
   it matches the eyebrow text beside it exactly. */
.fb-hero__eyebrow::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .2);
}

@keyframes fb-divider-glow {
	0%, 100% { box-shadow: 0 0 8px rgba(255, 255, 255, .35); }
	50%      { box-shadow: 0 0 16px rgba(255, 255, 255, .7); }
}

.fb-hero__title {
	margin: 0 0 .35em;
	color: var(--fb-white);
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

/* Divider: a hairline of white under the headline that fades out to the
   right, lifted by a glow that slowly breathes. */
.fb-hero__title::after {
	content: "";
	display: block;
	width: 190px;
	max-width: 100%;
	height: 1px;
	margin-top: .38em;
	background: linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
	box-shadow: 0 0 10px rgba(255, 255, 255, .5);
	animation: fb-divider-glow 2.6s ease-in-out infinite;
}

.fb-hero__text {
	margin: 0 0 1.6em;
	max-width: 42ch;
	color: rgba(255, 255, 255, .88);
	font-size: .9375rem;
}

.fb-hero__cta { text-transform: none; font-size: .9375rem; }

/* Darkens rather than going black, like the product buttons. */
.fb-hero__cta:hover,
.fb-hero__cta:focus {
	background: var(--fb-green-dark);
	border-color: var(--fb-green-dark);
	color: var(--fb-white);
}

/* --- Section dividers --------------------------------------------------- */
/* The same hairline the USP bar above the footer sits on, opening the two
   product grids and the closing copy block. */
.fb-home-products:not(.fb-home-bestsellers),
.fb-home-seo { border-top: 1px solid var(--fb-grey-300); }

/* --- Product grid ------------------------------------------------------ */
.fb-home-products .fb-product-grid { margin-bottom: 0; }

/* --- Category tiles ---------------------------------------------------- */
.fb-cat-tiles {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fb-cat-tile a {
	display: block;
	text-align: center;
}

.fb-cat-tile__media {
	display: block;
	overflow: hidden;
	border-radius: var(--fb-radius-lg);
	background: var(--fb-grey-200);
}

.fb-cat-tile__media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .4s ease;
}

.fb-cat-tile a:hover .fb-cat-tile__media img { transform: scale(1.05); }

.fb-cat-tile__label {
	display: block;
	margin-top: 14px;
	font-size: .9375rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
}

/* --- Benefits ---------------------------------------------------------- */
/* Runs full-bleed black, with the copy column reversed out. */
.fb-home-benefits {
	background: var(--fb-black);
	color: var(--fb-white);
}

.fb-home-benefits .fb-benefits__title { color: var(--fb-white); }

/* Divider beneath the heading — the hero's hairline, on black. */
.fb-home-benefits .fb-benefits__title::after {
	content: "";
	display: block;
	width: 190px;
	max-width: 100%;
	height: 1px;
	margin-top: .45em;
	background: linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
	box-shadow: 0 0 10px rgba(255, 255, 255, .5);
	animation: fb-divider-glow 2.6s ease-in-out infinite;
}

/* CTA darkens rather than going black — it sits on black already. */
.fb-home-benefits .fb-btn:hover,
.fb-home-benefits .fb-btn:focus {
	background: var(--fb-green-dark);
	border-color: var(--fb-green-dark);
	color: var(--fb-white);
}

.fb-home-benefits .fb-benefits__text { color: rgba(255, 255, 255, .8); }

.fb-home-benefits .fb-benefits__text a { color: var(--fb-white); }

.fb-home-benefits .fb-benefits__text a:hover { color: var(--fb-green); }

.fb-benefits {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 4vw, 60px);
	align-items: center;
}

.fb-benefits__title {
	margin-bottom: .6em;
	font-size: clamp(1.5rem, 2.8vw, 2.125rem);
}

.fb-benefits__text {
	color: var(--fb-grey-800);
	font-size: .875rem;
}

.fb-benefits__text p { margin-bottom: 1.4em; }

.fb-benefits__text a {
	color: var(--fb-black);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fb-benefits__text a:hover { color: var(--fb-green); }

.fb-benefits__media img {
	width: 100%;
	border-radius: var(--fb-radius-lg);
}

/* --- FAQ --------------------------------------------------------------- */
.fb-faq {
	max-width: 860px;
	margin: 0 auto;
}

.fb-faq__item {
	margin-bottom: 10px;
	border: 1px solid var(--fb-grey-300);
	border-radius: var(--fb-radius);
	background: var(--fb-grey-100);
	overflow: hidden;
}

.fb-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.fb-faq__q::-webkit-details-marker { display: none; }

.fb-faq__q:hover { color: var(--fb-green); }

.fb-faq__icon {
	flex: none;
	color: var(--fb-orange);
	transition: transform var(--fb-transition);
}

.fb-faq__item[open] .fb-faq__icon { transform: rotate(45deg); }

.fb-faq__a {
	padding: 0 20px 18px;
	color: var(--fb-grey-800);
	font-size: .875rem;
}

.fb-faq__a a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- FAQ contact ------------------------------------------------------- */
/* The panel is its own section now, so the gap above it is set once, on the
   FAQ section below — halved from what the stacked paddings gave. */
.fb-home-faq { padding-bottom: clamp(60px, 7.5vw, 111px); }

/* The section above and the FAQ were both paying full section padding, which
   left a ~240px hole before the heading. */
.fb-home-faq { padding-top: clamp(10px, 1.2vw, 18px); }

.fb-home-toppicks { padding-bottom: clamp(20px, 2.4vw, 34px); }

.fb-home-faq-contact { padding-top: 0; }

.fb-faq-contact {
	padding: clamp(30px, 4vw, 52px) clamp(20px, 4vw, 48px);
	border-radius: var(--fb-radius-lg);
	background: var(--fb-black);
	color: var(--fb-white);
	text-align: center;
}

.fb-faq-contact__title {
	margin-bottom: .4em;
	color: var(--fb-white);
}

/* Bullet on the title's line, in white against the black panel. */
.fb-faq-contact__title::before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: 8px;
	height: 8px;
	margin: -.1em 10px 0 0;
	border-radius: 50%;
	background: var(--fb-white);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .2);
}

.fb-faq-contact__text {
	margin-bottom: 1.4em;
	color: rgba(255, 255, 255, .85);
}

.fb-faq-contact__text a { color: var(--fb-white); }

.fb-faq-contact__text a:hover { color: var(--fb-green); }

.fb-faq-contact__list a { color: var(--fb-white); }

.fb-faq-contact__list a:hover { color: var(--fb-green); }

.fb-faq-contact__text a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fb-faq-contact__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fb-faq-contact__list a {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	font-size: .875rem;
	font-weight: 500;
}

.fb-faq-contact__list .fb-icon { color: var(--fb-green); }

/* --- Blog row ----------------------------------------------------------- */
/* Heading left, link to the archive on the right. */
.fb-home-blog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 34px;
}

.fb-home-blog__head .fb-section-head { margin-bottom: 0; }

.fb-home-blog__cta { flex: none; }

.fb-home-blog__cta:hover,
.fb-home-blog__cta:focus {
	background: var(--fb-green-dark);
	border-color: var(--fb-green-dark);
	color: var(--fb-white);
}

@media (max-width: 600px) {
	.fb-home-blog__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

/* --- Brands ------------------------------------------------------------ */
.fb-brands {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 26px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fb-brands__item {
	flex: 0 1 auto;
	display: flex;
	align-items: center;
}

.fb-brands__item img {
	width: auto;
	max-height: 54px;
	object-fit: contain;
}

/* Logos stay as they are on hover — only the cursor tells you they're links. */
.fb-brands__item a { cursor: pointer; }

/* Gap between the last product row and the SEO block, halved and set in
   one place rather than stacking two section paddings. */
.fb-home-bestsellers { padding-bottom: 0; }

.fb-home-seo { padding-top: clamp(40px, 4.4vw, 63px); }

/* --- SEO copy ---------------------------------------------------------- */

/* The SEO block keeps its smaller heading, not the section-head size, and
   sits closer to its copy. */
.fb-home-seo .fb-section-head__title { font-size: 1.25rem; }

.fb-home-seo .fb-section-head { margin-bottom: 15px; }

.fb-home-seo__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 4vw, 56px);
}

.fb-home-seo__col {
	color: var(--fb-grey-800);
	font-size: .8125rem;
	line-height: 1.85;
}

.fb-home-seo__col a {
	color: var(--fb-black);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fb-home-seo__col a:hover { color: var(--fb-green); }

/* --- Homepage editor content ------------------------------------------- */
.fb-home-editor .entry-content { font-size: .9375rem; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
	.fb-cat-tiles { grid-template-columns: repeat(3, 1fr); }

	.fb-benefits { grid-template-columns: 1fr; }

	.fb-benefits__media { order: -1; }
}

@media (max-width: 782px) {
	.fb-hero__panel { width: 100%; }

	.fb-home-seo__cols { grid-template-columns: 1fr; }

	.fb-brands { justify-content: center; gap: 22px 30px; }

	.fb-brands__item img { max-height: 40px; }
}

@media (max-width: 560px) {
	.fb-cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; }

	.fb-faq-contact__list { flex-direction: column; gap: 10px; }
}
