/* -------------------------------------------------------------------------
   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__panel {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	padding: clamp(24px, 3vw, 46px);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--fb-radius-lg);
	/* The photo runs untinted now, so this panel is the only thing holding the
	   white copy up against it. */
	background: rgba(0, 0, 0, .46);
	backdrop-filter: blur(3px);
	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
   assortment grid and the closing copy block. */
.fb-home-products,
.fb-home-seo { border-top: 1px solid var(--fb-grey-300); }

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

/* --- 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-green);
	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 benefits banner above pays its own bottom padding, so the FAQ only tops
   the gap up rather than stacking a full section padding onto it. */
.fb-home-faq { padding-top: clamp(40px, 4.6vw, 66px); }

.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 above the SEO block, set here rather than stacking two section
   paddings with the blog row above it. */
.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-benefits { grid-template-columns: 1fr; }

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

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

	/* Phones get the 1080px hero; the preload in <head> uses this same breakpoint,
	   so a device downloads exactly one of the two files. */
	.fb-hero__inner { background-image: var(--fb-hero-image-sm, var(--fb-hero-image)); }

	.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-faq-contact__list { flex-direction: column; gap: 10px; }
}
