/* ==========================================================================
   Depthslide FAQ Page Styles
   Desktop: full list (all answers visible)
   Mobile (<=921px): accordion (tap to expand)
   ========================================================================== */

/* --- Reset / container (homepage CSS scopes .ds-container to .depthslide-front-page) --- */
/* Safety net: hide any leftover Astra footer (custom footer is rendered in template) */
.depthslide-faq #colophon,
.depthslide-faq #colophon.site-footer {
	display: none !important;
}

/* --- Astra layout override (mirrors homepage so main + custom footer stack vertically,
   not side-by-side via Astra's default flex container) --- */
.depthslide-faq .site-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
}

.depthslide-faq #primary {
	padding: 0 !important;
	margin: 0 !important;
}

.depthslide-faq .ast-container {
	max-width: 100% !important;
	padding: 0 !important;
	flex-direction: column !important;
}

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

.depthslide-faq .ds-container {
	max-width: var(--ds-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Inner-page hero (light, distinct from homepage dark hero) --- */
.ds-page-hero {
	background: linear-gradient(135deg, #e8f4f6 0%, #f7f9fa 100%);
	padding: clamp(56px, 9vw, 96px) 0 clamp(36px, 6vw, 56px);
	border-bottom: 1px solid var(--ds-border);
	text-align: center;
}

.ds-page-hero .ds-page-eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ds-accent);
	margin-bottom: 12px;
}

.ds-page-hero h1 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	color: var(--ds-text);
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	line-height: 1.2;
}

.ds-page-hero p {
	max-width: 640px;
	margin: 0 auto;
	font-size: clamp(0.95rem, 1.6vw, 1.1rem);
	color: var(--ds-text-muted);
	line-height: 1.6;
}

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

.ds-faq-item {
	background: var(--ds-white);
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius);
	margin-bottom: 16px;
	overflow: hidden;
	transition: var(--ds-transition);
}

.ds-faq-item:hover {
	box-shadow: var(--ds-shadow);
}

.ds-faq-item.open {
	border-color: var(--ds-accent);
	background: #f0f7f9;
	box-shadow: 0 2px 12px rgba(10, 110, 125, 0.08);
}

/* Open state: ensure text stays readable (overrides any Astra .open leak) */
.ds-faq-item.open .ds-faq-q {
	color: var(--ds-primary);
	background: #e8f4f6 !important;
}

.ds-faq-item.open .ds-faq-a {
	color: var(--ds-text);
}

.ds-faq-q {
	width: 100%;
	text-align: left;
	background: #eef6f7;
	border: none;
	font-family: var(--ds-font);
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	font-weight: 600;
	color: var(--ds-text);
	padding: 22px 56px 22px 24px;
	position: relative;
	cursor: pointer;
	line-height: 1.4;
	display: flex;
	align-items: center;
	transition: background var(--ds-transition, 0.2s ease);
}

.ds-faq-q:hover {
	color: var(--ds-primary);
	background: #e6f2f4;
}

.ds-faq-q:focus-visible {
	outline: 2px solid var(--ds-accent);
	outline-offset: -2px;
	border-radius: var(--ds-radius-sm);
}

/* + / - toggle icon (mobile only) */
.ds-faq-icon {
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.ds-faq-icon::before,
.ds-faq-icon::after {
	content: '';
	position: absolute;
	background: var(--ds-primary);
	border-radius: 2px;
	transition: var(--ds-transition);
}

.ds-faq-icon::before {
	top: 50%;
	left: 3px;
	right: 3px;
	height: 2px;
	transform: translateY(-50%);
}

.ds-faq-icon::after {
	left: 50%;
	top: 3px;
	bottom: 3px;
	width: 2px;
	transform: translateX(-50%);
}

.ds-faq-item.open .ds-faq-icon::after {
	transform: translateX(-50%) scaleY(0);
	opacity: 0;
}

.ds-faq-a {
	padding: 0 24px 24px;
	color: var(--ds-text-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.ds-faq-a p {
	margin: 0 0 0.8rem;
}

.ds-faq-a p:last-child {
	margin-bottom: 0;
}

.ds-faq-a a {
	color: var(--ds-primary);
	font-weight: 600;
	text-decoration: none;
}

.ds-faq-a a:hover {
	text-decoration: underline;
}

/* --- Contact CTA --- */
.ds-faq-contact {
	background: linear-gradient(135deg, #0a6e7d 0%, #074f5a 100%);
	color: #ffffff;
	text-align: center;
}

.ds-faq-contact .ds-section-title {
	color: #ffffff;
}

.ds-faq-contact-sub {
	max-width: 620px;
	margin: 0 auto clamp(24px, 4vw, 36px);
	font-size: 1.05rem;
	opacity: 0.9;
	line-height: 1.6;
}

.ds-faq-contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.ds-faq-contact .ds-btn-outline {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.5);
}

.ds-faq-contact .ds-btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
	color: #ffffff;
}

.ds-faq-contact .ds-btn[aria-disabled="true"] {
	opacity: 0.85;
	cursor: default;
}

/* ================================================================
   DESKTOP (>=922px): list form — all answers visible, no toggle
   ================================================================ */
@media (min-width: 922px) {
	.ds-faq-q {
		cursor: default;
		pointer-events: none;
	}

	.ds-faq-icon {
		display: none;
	}

	.ds-faq-a {
		display: block;
	}
}

/* ================================================================
   MOBILE (<=921px): accordion — collapsed unless .open
   Only collapses when JS is available (.js class set in <head>),
   so no-JS users still see every answer.
   ================================================================ */
@media (max-width: 921px) {
	.js .ds-faq-a {
		display: none;
	}

	.js .ds-faq-item.open .ds-faq-a {
		display: block;
	}
}

/* ================================================================
   Small phones (<=480px): tighter padding
   ================================================================ */
@media (max-width: 480px) {
	.ds-faq-q {
		padding: 18px 48px 18px 18px;
		font-size: 1rem;
	}

	.ds-faq-icon {
		right: 16px;
		width: 20px;
		height: 20px;
	}

	.ds-faq-a {
		padding: 0 18px 18px;
	}
}
