/* ==========================================================================
   ANNEX ROOFING — FAQ
   Loaded on /faq/ only. Uses the theme's own tokens, container width and type
   scale, so the page reads as part of the site rather than as a template of
   its own. No cards, no shadows, no rounded grey boxes: hairlines and type.
   ========================================================================== */

/* .faq is already taken by the question lists on About and Contact, so this
   page scopes itself under .faqpage and inherits none of those rules. */
.faqpage {
	--faq-max: 1280px;
	--faq-pad: clamp(18px, 4vw, 40px);
	--faq-rule: var(--annex-divider, #DCE3EA);

	background: var(--annex-white, #fff);
	color: var(--annex-text, #0A2148);
}

.faq-wrap {
	max-width: var(--faq-max);
	margin-inline: auto;
	padding-inline: var(--faq-pad);
}

/* ---- hero ---------------------------------------------------------------
   Deliberately small: a page opening, not a landing page.
   ------------------------------------------------------------------------ */
.faq-hero {
	padding: clamp(34px, 5vw, 72px) 0 clamp(26px, 3.4vw, 44px);
}
.faq-hero__inner { max-width: 54ch; }

.faq-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 clamp(14px, 1.8vw, 22px);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--annex-red, #E52B24);
}
.faq-kicker__tick {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--annex-red, #E52B24);
}

.faq-hero__h1 {
	margin: 0;
	font-size: clamp(32px, 4.4vw, 60px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -.035em;
	color: var(--annex-text, #0A2148);
}
.faq-hero__lead {
	margin: clamp(14px, 1.6vw, 20px) 0 0;
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.55;
	color: var(--annex-text-secondary, #5F6F84);
}
.faq-hero__note {
	margin: 10px 0 0;
	font-size: clamp(14px, 1.1vw, 16px);
	line-height: 1.55;
	color: var(--annex-text-secondary, #5F6F84);
	border-left: 2px solid var(--annex-red, #E52B24);
	padding-left: 12px;
}

/* ---- category navigation ------------------------------------------------
   A row on a wide screen; on a phone it scrolls sideways inside its own
   track, so the page itself never gains a horizontal scrollbar.
   ------------------------------------------------------------------------ */
.faq-nav {
	border-top: 1px solid var(--faq-rule);
	border-bottom: 1px solid var(--faq-rule);
	position: relative;
}
.faq-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(18px, 2vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.faq-nav__item { display: block; }
.faq-nav__link {
	display: block;
	padding: 14px 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--annex-text-secondary, #5F6F84);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color .18s ease, border-color .18s ease;
}
.faq-nav__link:hover,
.faq-nav__link:focus-visible {
	color: var(--annex-text, #0A2148);
	border-bottom-color: var(--annex-red, #E52B24);
}
.faq-nav__link:focus-visible {
	outline: 2px solid var(--annex-red, #E52B24);
	outline-offset: 3px;
}

/* ---- a category ---------------------------------------------------------- */
.faq-set { border-bottom: 1px solid var(--faq-rule); }
.faq-set:last-of-type { border-bottom: 0; }

.faq-set__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(18px, 2.4vw, 32px);
	padding-block: clamp(30px, 4vw, 58px);
}
.faq-set__head { align-self: start; }

.faq-set__title {
	margin: 0;
	font-size: clamp(23px, 2.2vw, 31px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.025em;
	color: var(--annex-text, #0A2148);
}
.faq-set__lead {
	margin: 10px 0 0;
	max-width: 34ch;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--annex-text-secondary, #5F6F84);
}

.faq-set__list { min-width: 0; }

/* ---- one question --------------------------------------------------------
   Native <details>: keyboard operable, found by the browser's own find, and
   open by default for anyone without CSS. The marker is drawn with a
   pseudo-element so no icon font or SVG is needed.
   ------------------------------------------------------------------------ */
.faq-q { border-top: 1px solid var(--faq-rule); }
.faq-q:first-child { border-top: 0; }

.faq-q__s {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(15px, 1.7vw, 20px) 0;
	cursor: pointer;
	list-style: none;
}
.faq-q__s::-webkit-details-marker { display: none; }
.faq-q__s::marker { content: ""; }

.faq-q__t {
	font-size: clamp(16.5px, 1.35vw, 20px);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -.015em;
	color: var(--annex-text, #0A2148);
	transition: color .18s ease;
}
.faq-q__s:hover .faq-q__t { color: var(--annex-red, #E52B24); }

/* the plus: two hairlines, one of which turns away when the answer opens */
.faq-q__mark {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-top: 6px;
}
.faq-q__mark::before,
.faq-q__mark::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto 0;
	height: 2px;
	background: var(--annex-red, #E52B24);
	transform: translateY(-50%);
	transition: transform .22s ease, opacity .22s ease;
}
.faq-q__mark::after { transform: translateY(-50%) rotate(90deg); }
.faq-q[open] .faq-q__mark::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }

.faq-q__s:focus-visible {
	outline: 2px solid var(--annex-red, #E52B24);
	outline-offset: -2px;
}

.faq-q__a {
	padding: 0 0 clamp(18px, 2vw, 24px);
	max-width: 68ch;
}
.faq-q__a p {
	margin: 0;
	font-size: clamp(15px, 1.15vw, 16.5px);
	line-height: 1.65;
	color: var(--annex-text-secondary, #5F6F84);
}

/* ---- closing call ------------------------------------------------------- */
.faq-final {
	background: var(--annex-navy-deep, #071B3D);
	color: var(--annex-white, #fff);
}
.faq-final__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(22px, 2.6vw, 40px);
	align-items: center;
	padding-block: clamp(34px, 4.4vw, 62px);
}
.faq-final__h {
	margin: 0;
	font-size: clamp(27px, 3.2vw, 42px);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -.03em;
	color: var(--annex-white, #fff);
}
.faq-final__lead {
	margin: 12px 0 0;
	max-width: 56ch;
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .78);
}
.faq-final__actions {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.6vw, 22px);
	flex-wrap: wrap;
}
.faq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 26px;
	background: var(--annex-red, #E52B24);
	color: var(--annex-white, #fff);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s ease;
}
.faq-btn:hover { background: var(--annex-red-dark, #C9231E); }
.faq-phone {
	font-size: 15px;
	font-weight: 600;
	color: var(--annex-white, #fff);
	text-decoration: none;
	border-bottom: 2px solid var(--annex-red, #E52B24);
	padding-bottom: 3px;
}
.faq-phone:hover { color: var(--annex-text-light, #B7C1D0); }
.faq-btn:focus-visible,
.faq-phone:focus-visible {
	outline: 2px solid var(--annex-white, #fff);
	outline-offset: 3px;
}

/* ---- wide screens -------------------------------------------------------
   The category name moves to the left column and the questions sit beside it.
   ------------------------------------------------------------------------ */
@media (min-width: 900px) {
	.faq-set__grid {
		grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
		gap: clamp(32px, 4vw, 72px);
	}
	.faq-final__inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* ---- phones -------------------------------------------------------------
   The category row becomes one scrollable track. Scrolling happens inside the
   list, never on the page, so there is no horizontal overflow.
   ------------------------------------------------------------------------ */
@media (max-width: 760px) {
	.faq-nav__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 0 20px;
		padding-inline: var(--faq-pad);
		margin-inline: calc(var(--faq-pad) * -1);
	}
	.faq-nav__list::-webkit-scrollbar { display: none; }
	.faq-nav__item { flex: 0 0 auto; }
	.faq-nav__link { white-space: nowrap; padding: 13px 0; }

	.faq-hero__inner { max-width: none; }
	.faq-q__s { gap: 14px; }
	.faq-final__actions { width: 100%; }
	.faq-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.faq-q__mark::before,
	.faq-q__mark::after,
	.faq-q__t,
	.faq-nav__link { transition: none; }
}
