/* Costanoa FAQ (HWV-153) — SAME layout as the batch-1 highway2021 FAQ revamp
   (faq-headline / quick-answers / policy-tables / category panel / guest CTA),
   only the COLORS and FONTS differ to match the Costanoa (Kalium) design system.
   Ported 1:1 from highway2021 _faq.scss / _faq-quick-answers.scss / _faq-policy.scss,
   scoped under .cfaq so it neither bleeds into nor inherits Kalium page styles. */

/* Header link legibility is handled the native Kalium way — page 386 carries the
   same per-page "Page Header Styling" (teal nav links) that /offers/ and the other
   interior pages use — so no CSS header override is needed here. See the plugin
   readme / feasibility note for the exact postmeta. */

.cfaq {
	/* Color roles (batch-1 navy $faqBlue -> Costanoa teal; orange -> olive; gray panel -> cream) */
	--c-head: #003b4c;      /* headings + table header bar (Costanoa heading teal) */
	--c-accent: #708400;    /* accents: qa-number, borders, hovers, icon (Costanoa olive) */
	--c-accent-dark: #657700;
	--c-panel: #f2eee7;     /* module panel background (Costanoa cream) */
	--c-line: #e2ddd1;      /* borders */
	--c-text: #202124;      /* body copy (QA #76851: text color per tester) */
	--c-white: #ffffff;
	--c-link: #657700;
	/* Fonts (batch-1 Aliens-And-Cows / Source-Sans -> Costanoa Avenir / apercu) */
	--c-head-font: "Avenir", "Century Gothic", "Segoe UI", Arial, sans-serif;
	--c-body-font: "apercu", "Helvetica Neue", Arial, Helvetica, sans-serif;

	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px 40px;
	font-family: var(--c-body-font);
	color: var(--c-text);
}
.cfaq *,
.cfaq *::before,
.cfaq *::after { box-sizing: border-box; }
.cfaq [id] { scroll-margin-top: 120px; }

/* ============ Headline (.faq-headline) ============ */
.cfaq .faq-headline .fh-inner { max-width: 760px; margin: 0 auto; text-align: center; }
/* Force the module heading font here too: Kalium styles the page <h1> with the
   brand script face, but batch-1 keeps H1 + module headings in one display font. */
.cfaq .faq-headline h1 {
	/* HWV-153 #76849: match the site's display/hero heading font ('cowgirl', loaded
	   site-wide via UseAnyFont). Script face -> no uppercase, no tracking, normal weight. */
	font-family: "cowgirl", var(--c-head-font) !important;
	text-transform: none;
	color: var(--c-head) !important;
	letter-spacing: normal;
	font-size: 40px; /* HWV-153 #76855 */
	line-height: 1.2;
	font-weight: 400 !important;
	margin: 40px 0 20px;
}
.cfaq .faq-headline p {
	font-family: var(--c-body-font);
	max-width: 680px;
	margin: 0 auto;
	line-height: 1.55;
	color: var(--c-text); /* HWV-153 #76851: intro text per tester (#202124) */
	font-size: 16.5px;
}

/* ============ Module panels (quick answers + policy tables) ============ */
.cfaq .faq-quick-answers,
.cfaq .faq-policy-tables { position: relative; }
.cfaq .faq-quick-answers { margin-top: 46px; }
.cfaq .faq-quick-answers .module-inner,
.cfaq .faq-policy-tables .module-inner {
	background: var(--c-panel);
	border-radius: 4px;
	padding: 30px 34px 34px;
	margin: 0 0 28px;
}
.cfaq .module-heading {
	font-family: var(--c-head-font);
	text-transform: uppercase;
	color: var(--c-head);
	letter-spacing: 0.06em;
	font-size: clamp(24px, 3vw, 33px);
	line-height: 1.08;
	font-weight: 400; /* HWV-153 #76850: h2 module headings at normal weight */
	margin: 0 0 10px;
	text-align: left;
}
.cfaq .module-intro {
	font-family: var(--c-body-font);
	font-size: 15.5px;
	color: var(--c-text); /* HWV-153 #76851: module intro per tester (#202124) */
	line-height: 1.45;
	margin: 0 0 22px;
}

/* ============ Quick-answer cards (.qa-grid / .qa-card) ============ */
.cfaq .qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cfaq .qa-card {
	display: block;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: 5px;
	padding: 18px 14px 14px;
	min-height: 156px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.025);
	text-decoration: none;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.cfaq a.qa-card:hover,
.cfaq a.qa-card:focus-visible {
	border-color: var(--c-accent);
	box-shadow: 0 4px 14px rgba(0, 59, 76, 0.10);
	transform: translateY(-2px);
	text-decoration: none;
}
.cfaq .qa-number {
	font-family: var(--c-body-font);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--c-accent);
}
.cfaq .qa-title {
	font-family: var(--c-head-font);
	color: var(--c-head);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.1;
	margin: 8px 0;
}
.cfaq .qa-text {
	font-family: var(--c-body-font);
	font-size: 14px;
	font-weight: 400; /* HWV-153 #76852 (QA corrected: 400, not 700) */
	line-height: 1.45;
	color: var(--c-text);
	margin: 0;
}

/* ============ Policy tables (.tables-grid / .policy-table) ============ */
.cfaq .faq-policy-tables .tables-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	align-items: start;
}
.cfaq .policy-table {
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: 5px;
	overflow: hidden;
}
.cfaq .policy-table .table-title {
	caption-side: top;
	text-align: left;
	font-family: var(--c-head-font);
	text-transform: uppercase;
	color: var(--c-head);
	letter-spacing: 0.05em;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
	padding: 18px 18px 12px;
}
.cfaq .policy-table table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--c-body-font);
	font-size: 13.5px;
	line-height: 1.4;
}
.cfaq .policy-table thead th {
	text-align: left;
	background: var(--c-head);
	color: var(--c-white);
	padding: 10px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.cfaq .policy-table tbody th {
	text-align: left;
	font-weight: 800;
	padding: 12px;
	border-bottom: 1px solid var(--c-line);
	vertical-align: top;
	color: var(--c-text);
}
.cfaq .policy-table td {
	padding: 12px;
	border-bottom: 1px solid var(--c-line);
	vertical-align: top;
	color: var(--c-text);
}
.cfaq .policy-table tr:last-child th,
.cfaq .policy-table tr:last-child td { border-bottom: 0; }
/* HWV-153 #76864: the theme sets word-break:break-word on cells, so in the
   narrow first column a word broke mid-character ("Designate|d fire pits").
   Keep whole words — the table widens (and scrolls) instead of splitting words. */
.cfaq .policy-table th,
.cfaq .policy-table td { word-break: normal; overflow-wrap: normal; }

/* ============ FAQ category panel (pills + accordion) ============ */
.cfaq .faq-category { position: relative; }
.cfaq .faq-sections-panel {
	background: var(--c-panel);
	border-radius: 4px;
	padding: 30px 34px 34px;
	margin-top: 46px;
	margin-bottom: 40px;
}
.cfaq .faq-sections-header .module-heading { margin-bottom: 0; }

/* Pills (category nav) */
.cfaq .faq-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.cfaq .faq-pills .pill {
	background: var(--c-white);
	border: 1px solid var(--c-line);
	color: var(--c-head);
	font-family: var(--c-body-font);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.035em;
	padding: 10px 12px;
	border-radius: 3px;
	text-decoration: none;
	transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.cfaq .faq-pills .pill:hover,
.cfaq .faq-pills .pill:focus-visible {
	border-color: var(--c-accent);
	background: var(--c-accent);
	color: var(--c-white);
	text-decoration: none;
}

/* FAQ groups + accordion rows */
.cfaq .main-faq-category { margin-top: 26px; }
.cfaq .main-faq-category .card { background: transparent; border: none; margin-bottom: 26px; outline: none; }
.cfaq .main-faq-category .card:last-child { margin-bottom: 0; }
.cfaq .main-faq-category .card-faq { background: transparent; border-radius: 0; padding: 0; }
.cfaq .main-faq-category .card-title {
	font-family: var(--c-head-font);
	text-transform: uppercase;
	color: var(--c-head);
	letter-spacing: 0.05em;
	font-size: clamp(20px, 2.4vw, 25px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 13px;
}
.cfaq .faq-info {
	display: block;
	background: var(--c-white);
	border-radius: 3px;
	min-height: 38px;
	padding: 11px 17px;
	margin: 0 0 9px;
	border-left: 3px solid transparent;
	transition: border-color .2s ease;
}
.cfaq .faq-info.is-open {
	border-left-color: var(--c-accent);
	padding: 13px 17px 15px 14px;
}
.cfaq .faq-title { margin: 0; font-size: inherit; }
/* native <button> reset — !important because Kalium/WPBakery style bare <button> */
.cfaq .faq-btn-title {
	display: flex !important;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0;
	height: auto;
	text-align: left;
	text-transform: none !important;
	letter-spacing: normal;
	cursor: pointer;
	color: var(--c-head) !important;
	font-family: var(--c-body-font);
}
.cfaq .faq-btn-title:hover,
.cfaq .faq-btn-title:focus { background: none !important; color: var(--c-head) !important; }
.cfaq .faq-btn-title:focus-visible { outline: 2px solid var(--c-accent) !important; outline-offset: 2px; }
.cfaq .faq-q-text {
	font-family: var(--c-body-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 19px;
	color: var(--c-head);
}
.cfaq .faq-btn-icon {
	flex: 0 0 auto;
	color: var(--c-accent);
	font-family: var(--c-body-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.05;
}
.cfaq .faq-info.is-open .faq-btn-icon { color: var(--c-accent); }
.cfaq .faq-detail {
	font-family: var(--c-body-font);
	color: var(--c-text); /* HWV-153 #76851: unify answer text to the tester color */
	font-weight: 400;
	line-height: 21px;
	font-size: 15px;
	margin: 8px 0 0;
}
.cfaq .faq-detail p { margin: 0; }
.cfaq .faq-detail a { color: var(--c-link); text-decoration: none; } /* HWV-153 #76858: no underline */
.cfaq .faq-detail a:hover { color: var(--c-head); }

/* ============ Guest-support CTA (.faq-guest-cta) ============ */
.cfaq .faq-guest-cta { position: relative; margin-bottom: 40px; }
.cfaq .faq-guest-cta-inner {
	background: var(--c-panel);
	border-left: 4px solid var(--c-accent);
	border-radius: 4px;
	padding: 26px 30px;
}
.cfaq .faq-guest-cta-heading {
	font-family: var(--c-head-font);
	text-transform: uppercase;
	color: var(--c-head);
	letter-spacing: 0.05em;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 8px;
}
.cfaq .faq-guest-cta-body { font-family: var(--c-body-font); font-size: 15px; line-height: 1.55; color: var(--c-text); }
.cfaq .faq-guest-cta-body p { margin: 0 0 16px; }
.cfaq .faq-guest-cta-body a { color: var(--c-link); text-decoration: none; } /* HWV-153 #76858: no underline */
.cfaq .faq-guest-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.cfaq .cfaq-btn {
	display: inline-block;
	text-decoration: none;
	text-align: center; /* HWV-153 #76847: center button label */
	font-family: var(--c-body-font);
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 4px;
	font-size: 14px;
	letter-spacing: 0.02em;
	transition: background .2s ease, color .2s ease;
}
.cfaq .cfaq-btn--primary { background: var(--c-accent); color: var(--c-white); }
.cfaq .cfaq-btn--primary:hover,
.cfaq .cfaq-btn--primary:focus-visible { background: var(--c-accent-dark); color: var(--c-white); }
.cfaq .cfaq-btn--secondary { background: transparent; color: var(--c-head); border: 2px solid var(--c-head); }
.cfaq .cfaq-btn--secondary:hover,
.cfaq .cfaq-btn--secondary:focus-visible { background: var(--c-head); color: var(--c-white); }

/* ============ Responsive ============ */
@media all and (max-width: 1199px) {
	.cfaq .qa-grid { grid-template-columns: repeat(2, 1fr); }
}
@media all and (max-width: 1199px) {
	/* HWV-153 #76863: stack the policy tables to one column below 1200px. In the
	   2-up layout each 3-column table cell got too narrow (~500px) and clipped the
	   3rd column's text (.policy-table has overflow:hidden). Full width fits all 3. */
	.cfaq .faq-policy-tables .tables-grid { grid-template-columns: 1fr; }
}
@media all and (max-width: 767px) {
	.cfaq .qa-grid { grid-template-columns: 1fr; }
	.cfaq .qa-card { min-height: 0; }
	.cfaq .faq-headline h1 { line-height: 62px; } /* HWV-153 #76859: avoid script lines overlapping */
	.cfaq .faq-quick-answers .module-inner,
	.cfaq .faq-policy-tables .module-inner,
	.cfaq .faq-sections-panel { padding: 22px 16px 20px; } /* #76854: tighter side gutter */
	/* HWV-153 #76856: keep the full PC table on mobile and let it scroll sideways
	   (match Palm Canyon #76555/#76562) so no column/text is lost — do NOT stack. */
	.cfaq .policy-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.cfaq .policy-table table { min-width: 540px; }
}
@media (prefers-reduced-motion: reduce) {
	.cfaq .qa-card, .cfaq .faq-info, .cfaq .pill, .cfaq .cfaq-btn { transition: none; }
}
