/* ============================================================
   NextWave FAQ Page — Isolated Vanilla Module
   All styles are scoped to .nw-faq-page
   ============================================================ */


/* ── 0. LOCAL RESET ─────────────────────────────────────────
   Scope: every element inside .nw-faq-page
   Purpose: neutralise inherited/global theme styles
   ---------------------------------------------------------- */

.nw-faq-page *,
.nw-faq-page *::before,
.nw-faq-page *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Normalise buttons — remove all browser chrome */
.nw-faq-page button {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	line-height: normal;
	text-align: left;
}

/* Normalise links */
.nw-faq-page a {
	color: inherit;
	text-decoration: none;
}

/* Normalise media */
.nw-faq-page img,
.nw-faq-page svg {
	display: block;
	max-width: 100%;
}

/* Strip list styles */
.nw-faq-page ul,
.nw-faq-page ol {
	list-style: none;
}


/* ── 1. DESIGN TOKENS ───────────────────────────────────────
   Defined on the root wrapper so they are locally scoped
   ---------------------------------------------------------- */

.nw-faq-page {
	display: block;
	width: 100%;

	/* Brand palette */
	--nwfaq-navy:      #07111f;
	--nwfaq-navy-mid:  #0d1f35;
	--nwfaq-blue:      #0077b6;
	--nwfaq-cyan:      #00b4d8;
	--nwfaq-white:     #ffffff;
	--nwfaq-off-white: #f8fafc;
	--nwfaq-text-h:    #111827;
	--nwfaq-text-body: #374151;
	--nwfaq-on-dark:   rgba(255, 255, 255, 0.65);
	--nwfaq-border:    #e5e7eb;

	/* Layout */
	--nwfaq-max-w:   1180px;
	--nwfaq-gutter:  32px;

	/* Misc */
	--nwfaq-radius:    10px;
	--nwfaq-radius-sm: 6px;
	--nwfaq-speed:     0.25s;
	--nwfaq-ease:      cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── 2. HERO BANNER ─────────────────────────────────────────  */

.nw-faq-hero {
	position: relative;
	width: 100%;
	min-height: 400px;
	background-image: url('../images/faq-hero.avif');
	background-size: cover;
	background-position: center 30%;
	background-color: var(--nwfaq-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.nw-faq-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(7, 17, 31, 0.30) 0%, rgba(7, 17, 31, 0.88) 100%),
		linear-gradient(135deg, rgba(0, 119, 182, 0.20) 0%, transparent 55%);
	z-index: 1;
}

.nw-faq-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 80px var(--nwfaq-gutter) 90px;
}

.nw-faq-hero__breadcrumb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.40);
	margin-bottom: 20px;
}

.nw-faq-hero__breadcrumb a {
	color: rgba(255, 255, 255, 0.40);
	transition: color var(--nwfaq-speed) var(--nwfaq-ease);
}

.nw-faq-hero__breadcrumb a:hover {
	color: var(--nwfaq-cyan);
}

.nw-faq-hero__breadcrumb span[aria-hidden] {
	color: rgba(255, 255, 255, 0.18);
}

.nw-faq-hero__title {
	font-size: clamp(2.8rem, 7vw, 4.8rem);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nwfaq-white);
	line-height: 1;
	margin-bottom: 18px;
}

.nw-faq-hero__title::after {
	content: '';
	display: block;
	width: 44px;
	height: 3px;
	background: var(--nwfaq-cyan);
	margin: 18px auto 0;
	border-radius: 2px;
}

.nw-faq-hero__subtitle {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.02em;
	line-height: 1.65;
}


/* ── 3. MAIN SECTION — white background ─────────────────────  */

.nw-faq-main {
	background: var(--nwfaq-white);
	padding: 80px 0 100px;
}

.nw-faq-grid {
	max-width: var(--nwfaq-max-w);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--nwfaq-gutter);
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 64px;
	align-items: start;
}

/* Prevent grid children from overflowing viewport */
.nw-faq-left,
.nw-faq-right {
	min-width: 0;
}


/* ── 4. LEFT COLUMN ─────────────────────────────────────────  */

.nw-faq-left__inner {
	position: sticky;
	top: 100px;
}

/* Badge */
.nw-faq-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 13px;
	background: rgba(0, 180, 216, 0.10);
	color: var(--nwfaq-cyan);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	border-radius: 100px;
	border: 1px solid rgba(0, 180, 216, 0.28);
	margin-bottom: 16px;
}

/* Heading */
.nw-faq-heading {
	font-size: clamp(1.7rem, 2.6vw, 2.25rem);
	font-weight: 800;
	color: var(--nwfaq-text-h);
	line-height: 1.22;
	letter-spacing: -0.015em;
	margin-bottom: 18px;
}

/* Intro text */
.nw-faq-intro {
	font-size: 0.97rem;
	line-height: 1.8;
	color: var(--nwfaq-text-body);
	margin-bottom: 36px;
}


/* ── 5. IMAGE BLOCK ─────────────────────────────────────────  */

.nw-faq-imgblock {
	position: relative;
	padding-bottom: 26px;
	padding-right: 26px;
}

.nw-faq-imgblock__photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--nwfaq-radius);
	overflow: hidden;
	background: linear-gradient(155deg, #0a1e36 0%, #023e7d 52%, #0c3460 100%);
	border: 1px solid rgba(0, 0, 0, 0.06);
	position: relative;
}

.nw-faq-imgblock__photo::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 22% 78%, rgba(0, 180, 216, 0.26) 0%, transparent 52%),
		radial-gradient(ellipse at 78% 22%, rgba(0, 119, 182, 0.20) 0%, transparent 46%);
	z-index: 1;
}

.nw-faq-imgblock__photo::after {
	content: 'NextWave BPO';
	position: absolute;
	bottom: 16px;
	left: 20px;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.18);
	z-index: 2;
}

/* Stat badge — overlaps photo corner */
.nw-faq-imgblock__stat {
	position: absolute;
	bottom: 0;
	right: 0;
	background: var(--nwfaq-cyan);
	color: var(--nwfaq-navy);
	padding: 16px 18px;
	border-radius: var(--nwfaq-radius);
	box-shadow: 0 6px 22px rgba(0, 180, 216, 0.34);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 110px;
}

.nw-faq-imgblock__num {
	display: block;
	font-size: 1.85rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.nw-faq-imgblock__label {
	display: block;
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-top: 4px;
	opacity: 0.80;
	text-align: center;
	line-height: 1.35;
}


/* ── 6. ACCORDION ───────────────────────────────────────────  */

.nw-faq-right {
	padding-top: 4px;
}

/* Single unified content block — not floating separate pills */
.nw-faq-accordion {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--nwfaq-border);
	border-radius: var(--nwfaq-radius);
	overflow: hidden;
	background: var(--nwfaq-white);
}

/* Item — row inside the block, separated by thin dividers */
.nw-faq-item {
	border-bottom: 1px solid var(--nwfaq-border);
	background: var(--nwfaq-white);
	overflow: hidden;
	transition: background var(--nwfaq-speed) var(--nwfaq-ease);
}

.nw-faq-item:last-child {
	border-bottom: none;
}

.nw-faq-item:hover {
	background: #f9fafb;
}

.nw-faq-item.is-open {
	background: var(--nwfaq-white);
}

/* Trigger button */
.nw-faq-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
}

/* Focus: structural indicator only — no button-like chrome */
.nw-faq-trigger:focus-visible {
	outline: 2px solid rgba(0, 0, 0, 0.18);
	outline-offset: -2px;
}

/* Question text */
.nw-faq-question {
	font-size: 0.97rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--nwfaq-text-h);
	flex: 1;
}

/* Chevron — cyan used only as icon accent */
.nw-faq-chevron {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: #9ca3af;
	transition:
		transform 0.35s var(--nwfaq-ease),
		color var(--nwfaq-speed) var(--nwfaq-ease);
}

.nw-faq-item.is-open .nw-faq-chevron {
	transform: rotate(180deg);
	color: var(--nwfaq-cyan);
}

/* Panel — animated via max-height */
.nw-faq-panel {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.4s var(--nwfaq-ease);
}

/* CSS fallback: keeps first panel visible before JS runs */
.nw-faq-item.is-open .nw-faq-panel:not([hidden]) {
	max-height: 800px;
}

.nw-faq-body {
	padding: 0 24px 22px;
	border-top: 1px solid var(--nwfaq-border);
}

.nw-faq-body p {
	margin-top: 14px;
	font-size: 0.94rem;
	line-height: 1.82;
	color: var(--nwfaq-text-body);
}


/* ── 7. CTA SECTION ─────────────────────────────────────────  */

.nw-faq-cta {
	background: linear-gradient(135deg, #0d1f35 0%, #07111f 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 80px 0;
}

.nw-faq-cta__wrap {
	max-width: var(--nwfaq-max-w);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--nwfaq-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.nw-faq-cta__content {
	flex: 1;
	min-width: 0;
}

.nw-faq-cta__title {
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	font-weight: 800;
	color: var(--nwfaq-white);
	line-height: 1.22;
	letter-spacing: -0.01em;
	margin-top: 12px;
	margin-bottom: 14px;
}

.nw-faq-cta__text {
	font-size: 0.97rem;
	color: var(--nwfaq-on-dark);
	line-height: 1.75;
	max-width: 460px;
}

.nw-faq-cta__action {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	flex-shrink: 0;
	align-items: center;
}


/* ── 8. BUTTONS ─────────────────────────────────────────────  */

.nw-faq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 28px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: var(--nwfaq-radius-sm);
	border: 2px solid transparent;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background var(--nwfaq-speed) var(--nwfaq-ease),
		color var(--nwfaq-speed) var(--nwfaq-ease),
		border-color var(--nwfaq-speed) var(--nwfaq-ease),
		transform var(--nwfaq-speed) var(--nwfaq-ease),
		box-shadow var(--nwfaq-speed) var(--nwfaq-ease);
}

.nw-faq-btn--primary {
	background: var(--nwfaq-cyan);
	color: var(--nwfaq-navy);
	border-color: var(--nwfaq-cyan);
}

.nw-faq-btn--primary:hover,
.nw-faq-btn--primary:focus-visible {
	background: #00c9e8;
	border-color: #00c9e8;
	transform: translateY(-2px);
	box-shadow: 0 5px 18px rgba(0, 180, 216, 0.34);
	outline: none;
}

.nw-faq-btn--outline {
	background: transparent;
	color: rgba(255, 255, 255, 0.68);
	border-color: rgba(255, 255, 255, 0.22);
}

.nw-faq-btn--outline:hover,
.nw-faq-btn--outline:focus-visible {
	color: var(--nwfaq-white);
	border-color: rgba(255, 255, 255, 0.50);
	transform: translateY(-2px);
	outline: none;
}


/* ── 9. RESPONSIVE ──────────────────────────────────────────  */

/* Narrow desktop */
@media (max-width: 1080px) {
	.nw-faq-grid {
		grid-template-columns: 280px 1fr;
		gap: 48px;
	}
}

/* Tablet — single column */
@media (max-width: 900px) {
	.nw-faq-grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.nw-faq-left__inner {
		position: static;
	}

	.nw-faq-imgblock {
		max-width: 420px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.nw-faq-hero {
		min-height: 300px;
	}

	.nw-faq-hero__inner {
		padding: 60px 20px 68px;
	}

	.nw-faq-main {
		padding: 56px 0 72px;
		overflow-x: hidden;
	}

	.nw-faq-grid {
		padding: 0 20px;
		gap: 36px;
	}

	.nw-faq-trigger {
		padding: 17px 20px;
	}

	.nw-faq-body {
		padding: 0 20px 18px;
	}

	.nw-faq-cta {
		padding: 60px 0;
		overflow-x: hidden;
	}

	.nw-faq-cta__wrap {
		padding: 0 20px;
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
	}

	.nw-faq-cta__action {
		width: 100%;
	}

	.nw-faq-btn {
		flex: 1;
		min-width: 0;
		white-space: normal;
		text-align: center;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.nw-faq-hero__title {
		font-size: 2.4rem;
	}

	.nw-faq-main {
		padding: 44px 0 56px;
	}

	.nw-faq-grid {
		padding: 0 16px;
	}

	.nw-faq-question {
		font-size: 0.92rem;
	}

	/* Reflow stat badge: pull out of absolute positioning */
	.nw-faq-imgblock {
		padding-right: 0;
		padding-bottom: 0;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.nw-faq-imgblock__stat {
		position: static;
		flex-direction: row;
		justify-content: flex-start;
		gap: 12px;
		min-width: 0;
		width: auto;
		align-self: flex-start;
		border-radius: var(--nwfaq-radius);
	}

	.nw-faq-imgblock__label {
		text-align: left;
		margin-top: 0;
	}
}
