/* ==========================================================================
   Crown Office Supplies — FAQ page

   Loads after cos-home.css, which supplies the tokens AND the accordion
   itself (.cos-faq__list / __item / __q / __sign / __a). Reusing that
   accordion is deliberate: the homepage already has one, and a second
   implementation would drift from it. Only page-specific layout lives here.
   ========================================================================== */

/* Same Bootstrap 75%-column trap as the homepage and contact templates. */
body.cos-faq-page .content-area {
	flex: 0 0 100%;
	max-width: 100%;
}

body.cos-faq-page { overflow-x: hidden; }

@supports (overflow-x: clip) {
	body.cos-faq-page { overflow-x: clip; }
}

body.cos-faq-page .breadcrumb { margin-bottom: 0; }

.cos-fq-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   1 — Hero
   -------------------------------------------------------------------------- */
.cos-fq-hero {
	background:
		radial-gradient(75% 120% at 10% 0%, #fbf7ff 0%, rgba(251, 247, 255, 0) 60%),
		var(--cos-surface-2);
}

.cos-fq-hero__copy { max-width: 720px; }
.cos-page .cos-fq-hero .cos-h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.cos-fq-hero .cos-lead { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   2 — Quick answers

   These three exist because Search Console showed people landing here on
   "crown office supplies phone number" and "crown office supplies login" —
   neither of which the page previously contained anywhere.
   -------------------------------------------------------------------------- */
.cos-fq-quick { background: var(--cos-surface); }

.cos-fq-quick__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.cos-page .cos-fq-card {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 22px 24px;
	border: 1px solid var(--cos-line);
	border-radius: var(--cos-r-lg);
	background: var(--cos-surface);
	text-decoration: none;
	transition: transform .45s var(--cos-ease), box-shadow .45s var(--cos-ease), border-color .3s ease;
}

.cos-page .cos-fq-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 10px rgba(22, 9, 31, .05), 0 24px 44px -22px rgba(46, 9, 78, .32);
	border-color: var(--cos-line-strong);
	text-decoration: none;
}

.cos-page .cos-fq-card:focus-visible {
	outline: 3px solid var(--cos-yellow);
	outline-offset: 3px;
}

.cos-fq-card__k {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--cos-muted);
}

.cos-fq-card__v {
	font-family: var(--cos-font-display);
	font-weight: 700;
	font-size: 1.22rem;
	letter-spacing: -.025em;
	color: var(--cos-navy);
	font-variant-numeric: tabular-nums;
}

.cos-fq-card__d {
	font-size: .85rem;
	color: var(--cos-muted);
	line-height: 1.5;
}

.cos-page .cos-fq-card--accent {
	background: linear-gradient(150deg, var(--cos-navy-700) 0%, var(--cos-navy) 100%);
	border-color: transparent;
}

.cos-page .cos-fq-card--accent .cos-fq-card__k { color: var(--cos-yellow); }
.cos-page .cos-fq-card--accent .cos-fq-card__v { color: #fff; }
.cos-page .cos-fq-card--accent .cos-fq-card__d { color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------------------
   3 — Question groups
   -------------------------------------------------------------------------- */
.cos-fq-list { background: var(--cos-surface-2); }

.cos-fq-group + .cos-fq-group { margin-top: clamp(34px, 4vw, 54px); }

.cos-page .cos-fq-group__t {
	font-family: var(--cos-font-display);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--cos-navy);
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cos-line-strong);
}

/* The accordion comes from cos-home.css, where it is centred inside a narrower
   column (`max-width: 860px; margin: 0 auto`). Here the questions are grouped
   under left-aligned section labels, so that centring leaves the list visibly
   indented from its own heading. Full width, left aligned. */
.cos-fq-list .cos-faq__list {
	max-width: none;
	margin-inline: 0;
}

/* This section sits on the tinted background, so the items need a surface. */
.cos-fq-list .cos-faq__item { background: var(--cos-surface); }

/* --------------------------------------------------------------------------
   4 — Video
   -------------------------------------------------------------------------- */
.cos-fq-video { background: var(--cos-surface); }

.cos-fq-video__frame {
	position: relative;
	max-width: 900px;
	margin-inline: auto;
	aspect-ratio: 16 / 9;
	border-radius: var(--cos-r-lg);
	overflow: hidden;
	background: #0d0219;
	box-shadow: 0 4px 12px rgba(22, 9, 31, .08), 0 30px 60px -28px rgba(46, 9, 78, .5);
}

.cos-fq-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* --------------------------------------------------------------------------
   5 — CTA
   -------------------------------------------------------------------------- */
.cos-fq-cta {
	background: linear-gradient(140deg, var(--cos-navy-700) 0%, var(--cos-navy) 55%, #1c0431 100%);
	color: #fff;
	text-align: center;
}

.cos-fq-cta__inner { max-width: 720px; }
.cos-page .cos-fq-cta .cos-h2 { color: #fff; }
.cos-fq-cta .cos-lead { color: rgba(255, 255, 255, .8); margin-inline: auto; }

.cos-fq-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.cos-fq-quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.cos-fq-quick__grid { grid-template-columns: minmax(0, 1fr); }
	.cos-fq-cta__actions .cos-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.cos-page .cos-fq-card { transition: none; }
	.cos-page .cos-fq-card:hover { transform: none; }
}

/* Links inside the dark CTA band.
   cos-home.css only whitelists `.cos-net30` and `.cos-cta` for on-dark link
   colours, so an inline link in THIS band inherited the light-background navy
   and rendered nearly invisible (navy on navy). */
.cos-page .cos-fq-cta .cos-lead a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--cos-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.cos-page .cos-fq-cta .cos-lead a:hover,
.cos-page .cos-fq-cta .cos-lead a:focus { color: var(--cos-yellow); }
