/* ============================================================
   CephX FAQs page — cephx-faqs.css
   Values sourced directly from post-1718.css + post-7.css (production).
   Global color tokens (resolved):
     --e-global-color-primary          #005DFC  (blue)
     --e-global-color-secondary        #000000  (black — heading/body text)
     --e-global-color-a82b2b3          #FFFFFF  (white — button bg, heading text)
     --e-global-color-a91dcac          #6DD395  (mint green — button text, gradient start)
     --e-global-color-45fa9eb          #5DD041  (bright green — gradient end, hover glow)
     --e-global-color-36878d1          #EEF4FE  (light blue — FAQ section bg)
   ============================================================ */

/* ============================================================
   HERO — mirrors elementor-element-7ef242c (e-con-boxed)
   --padding-top/bottom: 75px, --padding-left/right: 0px
   ============================================================ */

.cephx-faqs-hero {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	padding: 75px 0;
}

/* Inner boxed container — mirrors e-con-inner
   Kit: --container-max-width: 1260px (desktop), responsive at each breakpoint */
.cephx-hero-inner {
	display: flex;
	flex-direction: column;
	gap: 30px;            /* --gap: 30px 30px */
	max-width: 1260px;
	width: 100%;
	margin-inline: auto;
}

/* H1 — elementor-element-12366ec
   font: Orbitron 63px/700; color: var(--e-global-color-secondary) = #000000 */
.cephx-faqs-hero h1 {
	font-family: "Orbitron", sans-serif;
	font-size: 63px;
	font-weight: 700;
	color: var(--e-global-color-secondary, #000000);
	margin: 0;
	line-height: 1.2;
}

/* Subtitle — elementor-element-9f6a054
   margin: -30px 0px ...; font: Lexend 18px/400; p { margin-block-end: 0 } */
.faq-hero-subtitle {
	font-family: "Lexend", sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: var(--e-global-color-secondary, #000000);
	margin-top: -30px;     /* counteracts the flex gap */
}

.faq-hero-subtitle p {
	margin: 0;
	margin-block-end: 0;
}

/* Paragraph — elementor-element-5c4afe4
   font: Lexend 18px/400/28px; a { color: var(--e-global-color-primary) } */
.faq-hero-text {
	font-family: "Lexend", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	color: var(--e-global-color-secondary, #000000);
}

.faq-hero-text p {
	margin: 0;
}

.faq-hero-text a {
	color: var(--e-global-color-primary, #005DFC);
	text-decoration: none;
}

/* ---- Nav buttons — elementor-element-ee46cae
   --justify-content: flex-start; --gap: 20px 20px
   Each button: bg #FFFFFF, text #6DD395, Lexend 16px/700, radius 26px, padding 17px 0px
   Fixed widths: 181px most, 250px for "Data Privacy & Integration"
   ---- */
.cephx-faq-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 20px;
}

.cephx-faq-nav .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--e-global-color-a82b2b3, #FFFFFF);
	color: var(--e-global-color-a91dcac, #6DD395);
	font-family: "Lexend", sans-serif;
	font-size: 16px;
	font-weight: 700;
	border-radius: 26px;
	padding: 17px 0;
	min-width: 181px;
	width: max-content;
	text-decoration: none;
	transition: box-shadow 0.3s ease;
	text-align: center;
	box-sizing: border-box;
}

/* Override global: .elementor-button:hover/:focus/:visited { color:#fff }
   The FAQ nav buttons have a white background so text must stay green at all states. */
.cephx-faq-nav .elementor-button:visited {
	color: var(--e-global-color-a91dcac, #6DD395);
}
.cephx-faq-nav .elementor-button:hover,
.cephx-faq-nav .elementor-button:focus {
	box-shadow: 0px 4px 54px 0px #5DD041;
	color: var(--e-global-color-a91dcac, #6DD395);
	text-decoration: none;
}

.cephx-faq-nav .elementor-button-content-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;      /* horizontal breathing room within the pill */
}

/* ============================================================
   CONTENT SECTION — elementor-element-9e6b771
   bg: #EEF4FE; padding: 52px 0
   ============================================================ */

.cephx-faqs-content {
	background-color: var(--e-global-color-36878d1, #EEF4FE);
	padding: 52px 0;
}

/* Inner — e-con-inner with --content-width: 816px (≥768px) */
.cephx-faqs-inner {
	max-width: 816px;
	width: 100%;
	margin-inline: auto;
}

/* ============================================================
   SECTION HEADINGS — elementor-element-4ea060d / 5e38456 / etc.
   display: inline-block (elementor-widget__width-initial = auto width)
   padding: 7px 0px 10px 30px
   bg: linear-gradient(90deg, #6DD395 0%, #5DD041 100%)
   font: Orbitron 42px/700; color: #FFFFFF
   margin-top: 66px (not first)
   ============================================================ */

.cephx-faq-section-heading {
	/*
	 * display: block + width via CSS custom property mirrors Elementor's widget container approach.
	 * Avoids inline baseline/strut extra vertical space that display:inline-block caused.
	 * --heading-width is set per-heading via inline style in PHP (matching production px values).
	 */
	display: block;
	width: var(--heading-width, fit-content);
	max-width: var(--heading-width, 100%);
	font-family: "Orbitron", sans-serif;
	font-size: 42px;
	font-weight: 700;
	color: var(--e-global-color-a82b2b3, #FFFFFF);
	background-image: linear-gradient(90deg, var(--e-global-color-a91dcac, #6DD395) 0%, var(--e-global-color-45fa9eb, #5DD041) 100%);
	padding: 7px 0 10px 30px;
	margin-block-start: 66px;
	margin-block-end: 20px;  /* matches --kit-widget-spacing: 20px between heading and accordion */
	margin-inline: 0;
	line-height: 1;       /* tight — matches Elementor heading title default */
	white-space: nowrap;  /* prevent wrapping at desktop (heading width > text width) */
}

.cephx-faq-section-heading--first {
	margin-block-start: 0;
}

/* ============================================================
   ACCORDION WRAPPER — elementor-element-214b1b1 / f8156c6 / etc.
   CSS variables exactly as in post-1718.css:
   --n-accordion-icon-size: 30px  ← production value (NOT 45px)
   ============================================================ */

.cephx-faq-accordion {
	--n-accordion-title-font-size: 22px;
	--n-accordion-title-justify-content: space-between;
	--n-accordion-title-flex-grow: 1;
	--n-accordion-title-icon-order: initial;
	--n-accordion-item-title-space-between: 0px;
	--n-accordion-item-title-distance-from-content: 0px;
	--n-accordion-border-radius: 0px;
	--n-accordion-title-normal-color: var(--e-global-color-secondary, #000000);
	--n-accordion-icon-size: 30px;              /* production: 30px */
	--n-accordion-padding: 17px 0px 17px 0px;
	/* Default border vars (from widget-nested-accordion.min.css defaults) */
	--n-accordion-border-width: 1px;
	--n-accordion-border-color: #d5d8dc;
	--n-accordion-border-style: solid;
	--n-accordion-icon-gap: 0 10px;
}

/* Accordion item (details element)
   Bottom border creates the separator line between items.
   Elementor widget CSS has 1px solid #d5d8dc by default on titles.
   Production removes border-style from title & content, leaving item border. */
.cephx-faq-accordion .e-n-accordion-item {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--n-accordion-border-color, #d5d8dc);
}

.cephx-faq-accordion .e-n-accordion-item:not(:last-child) {
	margin-block-end: var(--n-accordion-item-title-space-between, 0px);
}

/* Summary (title row) — no border (production: border-style: none on title element) */
.cephx-faq-accordion .e-n-accordion-item-title {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: var(--n-accordion-title-justify-content, space-between);
	gap: var(--n-accordion-icon-gap, 0 10px);   /* Elementor: gap between text and icon */
	cursor: pointer;
	padding: var(--n-accordion-padding, 17px 0);
	border: none;
	list-style: none;
	width: 100%;
	background: none;
	color: var(--n-accordion-title-normal-color, #000000);
}

.cephx-faq-accordion .e-n-accordion-item-title::-webkit-details-marker {
	display: none;
}

/* Title header (contains the text) */
.cephx-faq-accordion .e-n-accordion-item-title-header {
	display: flex;
	flex-grow: var(--n-accordion-title-flex-grow, 1);
}

/* Title text — production uses Lexend for question titles */
.cephx-faq-accordion .e-n-accordion-item-title-text {
	font-family: "Lexend", sans-serif;
	font-size: var(--n-accordion-title-font-size, 22px);
	font-weight: 700;
	line-height: 28px;
	color: var(--n-accordion-title-normal-color, #000000);
	align-items: center;
}

/* Icon container — width: fit-content (Elementor: fit-content, not fixed px) */
.cephx-faq-accordion .e-n-accordion-item-title-icon {
	display: flex;
	flex-direction: row;
	align-items: center;
	order: var(--n-accordion-title-icon-order, initial);
	flex-shrink: 0;
	width: fit-content;
	-moz-width: -moz-fit-content;
	position: relative;
}

/* Span wrappers around SVG — Elementor: height: var(--n-accordion-icon-size); width: auto */
.cephx-faq-accordion .e-n-accordion-item-title-icon span {
	display: flex;
	align-items: center;
	height: var(--n-accordion-icon-size, 30px);
	width: auto;
}

/* SVG icons — sized to match --n-accordion-icon-size (30px production) */
.cephx-faq-accordion .e-n-accordion-item-title-icon span > svg {
	height: var(--n-accordion-icon-size, 30px);
	width: auto;
	display: block;
}

/* Icon state — default: closed icon shown, open icon hidden */
.cephx-faq-accordion .e-n-accordion-item-title-icon .e-opened { display: none; }
.cephx-faq-accordion .e-n-accordion-item-title-icon .e-closed { display: flex; }

/* When item is open: flip icons */
.cephx-faq-accordion .e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-opened { display: flex; }
.cephx-faq-accordion .e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-closed  { display: none; }

/* Answer content — elementor-element-cbe0384 / 7598703 / etc.
   font: Lexend 18px/400; no border (production: border-style: none on .e-con) */
.cephx-faq-answer {
	font-family: "Lexend", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--e-global-color-secondary, #000000);
	border: none;
	padding-bottom: 17px;
}

.cephx-faq-answer p {
	margin: 0 0 16px;
}

.cephx-faq-answer p:last-child {
	margin-bottom: 0;
}

.cephx-faq-answer a {
	color: var(--e-global-color-primary, #005DFC);
	text-decoration: none;
}

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

.cephx-faq-answer img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 16px 0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — from post-1718.css exactly
   ============================================================ */

/* ---- ≥768px: 816px content width ---- */
@media (min-width: 768px) {
	.cephx-faqs-inner {
		max-width: 816px;
	}
}

/* ---- ≤1366px (Elementor "laptop") ---- */
@media (max-width: 1366px) {
	.cephx-hero-inner {
		max-width: 1180px;
	}
	.cephx-faq-nav .elementor-button {
		font-size: 14px;
	}
	.cephx-faq-section-heading {
		font-size: 40px;
	}
}

/* ---- ≤1200px — overrides 1366px rule; container widens to fill viewport ---- */
@media (max-width: 1200px) {
	.cephx-hero-inner {
		max-width: 1200px;  /* wider than viewport, so content fills full width */
	}
}

/* ---- ≤1024px ---- */
@media (max-width: 1024px) {
	.cephx-hero-inner {
		max-width: 1024px;
	}
}

/* ---- ≤880px ---- */
@media (max-width: 880px) {
	.cephx-hero-inner {
		max-width: 768px;
	}
}

/* ---- ≤767px (Elementor "mobile") ---- */
@media (max-width: 767px) {
	/* Hero: bg shifts, 30px padding all sides */
	.cephx-faqs-hero {
		background-position: 77% 0%;
		padding: 30px;
	}

	.cephx-hero-inner {
		max-width: none;    /* full width — outer section's padding: 30px provides margins */
	}

	/* H1: 50px */
	.cephx-faqs-hero h1 {
		font-size: 50px;
	}

	/* Subtitle: margin -10px, 25px/28px */
	.faq-hero-subtitle {
		margin-top: -10px;
		font-size: 25px;
		line-height: 28px;
	}

	/* Paragraph: 25px/30px */
	.faq-hero-text {
		font-size: 25px;
		line-height: 30px;
	}

	/* Buttons: full width, 20px font */
	.cephx-faq-nav .elementor-button {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		font-size: 20px;
		line-height: 100%;
	}

	/* Content section: 30px horizontal padding */
	.cephx-faqs-content {
		padding: 52px 30px;
	}

	.cephx-faqs-inner {
		max-width: none;
	}

	/* Section headings: full-width, centered, 35px, padding 15px 0
	   !important needed to override --heading-width inline custom property */
	.cephx-faq-section-heading {
		width: 100% !important;
		max-width: 100% !important;
		white-space: normal !important;
		text-align: center;
		font-size: 35px;
		padding: 15px 0;
		margin-block-start: 66px;
	}

	.cephx-faq-section-heading--first {
		margin-block-start: 0;
	}

	/* Answer content: Lexend 25px/400/32px (matches production mobile text-editor styles) */
	.cephx-faq-answer {
		font-family: "Lexend", sans-serif;
		font-size: 25px;
		line-height: 32px;
		font-weight: 400;
	}

	/* Accordion title: 30px */
	.cephx-faq-accordion {
		--n-accordion-title-font-size: 30px;
	}
}

/* ---- ≥2400px (Elementor "widescreen") ---- */
@media (min-width: 2400px) {
	/* Hero inner: 1662px (kit --container-max-width at widescreen) */
	.cephx-hero-inner {
		max-width: 1662px;
	}

	/* Hero: 96px padding */
	.cephx-faqs-hero {
		padding: 96px 0;
	}

	/* H1: 85px */
	.cephx-faqs-hero h1 {
		font-size: 85px;
	}

	/* Subtitle: 25px */
	.faq-hero-subtitle {
		font-size: 25px;
	}

	/* Paragraph: 25px */
	.faq-hero-text {
		font-size: 25px;
	}

	/* Buttons: 20px */
	.cephx-faq-nav .elementor-button {
		font-size: 20px;
	}

	/* Content: 1088px inner */
	.cephx-faqs-inner {
		max-width: 1088px;
	}

	/* Section headings: 55px with production-measured widths (from post-1718.css @media min-width:2400px).
	   Must override `width` directly — cannot override the `--heading-width` custom property because
	   it is set via inline style in PHP, and inline style custom properties win the CSS cascade. */
	.cephx-faq-section-heading {
		font-size: 55px;
	}
	#questions.cephx-faq-section-heading { width: 650px; max-width: 650px; }
	#started.cephx-faq-section-heading   { width: 554px; max-width: 554px; }
	#privacy.cephx-faq-section-heading   { width: 992px; max-width: 992px; }
	#pricing.cephx-faq-section-heading   { width: 553px; max-width: 553px; }
	#technical.cephx-faq-section-heading { width: 638px; max-width: 638px; }

	/* Accordion title: 30px */
	.cephx-faq-accordion {
		--n-accordion-title-font-size: 30px;
	}

	/* Answer content: 25px/32px */
	.cephx-faq-answer {
		font-size: 25px;
		line-height: 32px;
	}
}
