/**
 * Styles for the [fitrx_contact] shortcode. Shares the same "paper" palette,
 * Anton/Manrope type pairing, and 1520/20 container convention as
 * [fitrx_where_to_buy] and [fitrx_privacy_policy] — this is meant to feel
 * like the same site, not a bolted-on support page. The FAQ grid reuses the
 * same "bento cards on a hairline background" structure as
 * .fitrx-wtb-pillars in where-to-buy.css.
 *
 * 'Anton' and 'Manrope' are the same two fonts every block/shortcode in
 * this plugin uses, loaded once site-wide by fitrx_blocks_enqueue_fonts()
 * in fitrx-blocks.php — not repeated here.
 */

.fitrx-contact-page,
.fitrx-contact-page *,
.fitrx-contact-page *::before,
.fitrx-contact-page *::after {
	box-sizing: border-box;
}

.fitrx-contact-page {
	--ink: #181818;
	--ink-soft: rgba(24, 24, 24, 0.64);
	--ink-softer: rgba(24, 24, 24, 0.44);
	--line: rgba(24, 24, 24, 0.12);
	--red: #ce0e2d;
	--red-dim: #a80c25;
	--paper: #f7f3ee;
	--card: #ffffff;

	display: block;
	background: var(--paper);
	color: var(--ink);
	font-family: 'Manrope', -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.fitrx-contact-page a { color: inherit; text-decoration: none; }
.fitrx-contact-page :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.fitrx-contact-inner { max-width: 1520px; margin: 0 auto; padding: 20px; }

/* ---------- hero: copy on the left, a real contact card on the right —
   same "copy paired with something concrete" shape as .fitrx-wtb-hero,
   with the card standing in for the photo since there's nothing to
   photograph here ---------- */
.fitrx-contact-hero {
	display: grid;
	grid-template-columns: minmax(360px, 46%) 1fr;
	align-items: center;
	gap: 44px;
	padding: 72px 0 0;
}

.fitrx-contact-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--red);
	margin: 0 0 18px;
}

.fitrx-contact-eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--red); }

.fitrx-contact-heading {
	font-family: 'Anton', sans-serif;
	font-weight: 400;
	font-size: clamp(34px, 4.4vw, 54px);
	line-height: 1;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.fitrx-contact-heading em { font-style: normal; color: var(--red); }

.fitrx-contact-sub { max-width: 42ch; font-size: 17px; font-weight: 600; line-height: 1.65; color: var(--ink-soft); margin: 0; }

.fitrx-contact-card {
	position: relative;
	overflow: hidden;
	background: var(--card);
	border-radius: 24px;
	padding: 38px 40px;
	box-shadow: 0 30px 60px -30px rgba(24, 24, 24, 0.3);
}

.fitrx-contact-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 4px;
	background: var(--red);
}

.fitrx-contact-card-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-softer);
	margin: 0 0 10px;
}

.fitrx-contact-page a.fitrx-contact-email {
	display: inline-block;
	font-weight: 800;
	font-size: clamp(19px, 2vw, 23px);
	color: var(--ink);
	border-bottom: 2px solid transparent;
	word-break: break-word;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.fitrx-contact-page a.fitrx-contact-email:hover,
.fitrx-contact-page a.fitrx-contact-email:focus-visible {
	color: var(--red);
	border-color: var(--red);
}

.fitrx-contact-card-divider { height: 1px; background: var(--line); margin: 26px 0; }

.fitrx-contact-hours-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	font-size: 14.5px;
}

.fitrx-contact-hours-row + .fitrx-contact-hours-row { border-top: 1px solid var(--line); }
.fitrx-contact-hours-row span:first-child { font-weight: 700; color: var(--ink); }
.fitrx-contact-hours-row span:last-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: right; }

.fitrx-contact-social { display: flex; gap: 10px; margin-top: 20px; }

.fitrx-contact-page a.fitrx-contact-social-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fitrx-contact-page a.fitrx-contact-social-btn:hover,
.fitrx-contact-page a.fitrx-contact-social-btn:focus-visible {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
	transform: translateY(-2px);
}

@media (max-width: 860px) {
	.fitrx-contact-hero { grid-template-columns: 1fr; padding-top: 48px; }
}

/* ---------- FAQ: same bento-card-on-hairline structure as
   .fitrx-wtb-pillars, just sized for six categories instead of three
   pillars, each one holding its own native <details> accordion ---------- */
.fitrx-contact-faq {
	max-width: 900px;
	margin: 0 auto;
	padding: 88px 0 90px;
	text-align: center;
}

.fitrx-contact-faq-kicker {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--red);
	margin: 0 0 16px;
}

.fitrx-contact-faq-heading {
	font-family: 'Anton', sans-serif;
	font-weight: 400;
	font-size: clamp(30px, 4.2vw, 48px);
	line-height: 1;
	text-transform: uppercase;
	margin: 0 0 48px;
}

.fitrx-contact-faq-heading em { font-style: normal; color: var(--red); }

.fitrx-contact-faq-grid {
	max-width: 1160px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--line);
	border-radius: 20px;
	overflow: hidden;
	text-align: left;
}

.fitrx-contact-faq-category { background: var(--card); padding: 34px 38px; }

.fitrx-contact-faq-category h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	margin: 0 0 4px;
}

.fitrx-contact-faq-category h3::before { content: ''; width: 8px; height: 8px; flex: 0 0 auto; background: var(--red); }

details.fitrx-contact-faq-item { border-top: 1px solid var(--line); }
details.fitrx-contact-faq-item:last-of-type { border-bottom: 1px solid var(--line); }

details.fitrx-contact-faq-item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--ink);
}

details.fitrx-contact-faq-item summary::-webkit-details-marker { display: none; }
details.fitrx-contact-faq-item summary::marker { content: ''; }

.fitrx-contact-faq-icon { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.fitrx-contact-faq-icon::before,
.fitrx-contact-faq-icon::after { content: ''; position: absolute; background: var(--ink); transition: transform 0.2s ease, background 0.2s ease; }
.fitrx-contact-faq-icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.fitrx-contact-faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }

details.fitrx-contact-faq-item[open] summary { color: var(--red); }
details.fitrx-contact-faq-item[open] .fitrx-contact-faq-icon::before,
details.fitrx-contact-faq-item[open] .fitrx-contact-faq-icon::after { background: var(--red); }
details.fitrx-contact-faq-item[open] .fitrx-contact-faq-icon::after { transform: rotate(90deg); opacity: 0; }

.fitrx-contact-faq-item p { margin: 0 0 20px; padding-right: 26px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.fitrx-contact-faq-item p a { color: var(--red); text-decoration: underline; }

@media (max-width: 760px) {
	.fitrx-contact-faq { padding: 64px 0 72px; }
	.fitrx-contact-faq-grid { grid-template-columns: 1fr; }
}
