/* =========================================================================
   Customer care: template-customer-care.php (/customercare/).
   Scoped to .cc, mobile first, min-width queries at 640 / 768 / 900 / 1200.
   The house recipe from docs/superpowers/specs/2026-09-18-support-and-
   content-pages-design.md, renamed, plus the hub's card grid and help band.
   ========================================================================= */

.cc {
	--cc-navy: #181d46;      /* Billi Blue */
	--cc-lightblue: #90cdeb; /* primary button on dark, accents */
	--cc-grey: #eaeaea;      /* borders, rules */
	--cc-band-grey: #f5f5f5;
	--cc-band-tint: #f1f5f5; /* Green Grey */
	--cc-text: #000;
	--cc-muted: #75757b;
	--cc-gutter: 20px;

	font-family: var(--font-din);
	color: var(--cc-text);
	line-height: 1.5;
}

@media (min-width: 900px) {
	.cc { --cc-gutter: 40px; }
}

.cc *,
.cc *::before,
.cc *::after { box-sizing: border-box; }

/* framework.css sets a global img { width: 100% }: width must be reset, not
   just max-width. */
.cc img { max-width: 100%; width: auto; height: auto; display: block; }

.cc-container {
	width: 100%;
	max-width: 1436px;
	margin: 0 auto;
	padding-left: var(--cc-gutter);
	padding-right: var(--cc-gutter);
}

.cc-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}


/* ---- Sections: white, grey or tint bands; navy only mid-page ------------- */

.cc-section { padding: 48px 0; }

@media (min-width: 900px) {
	.cc-section { padding: 80px 0; }
}

.cc-section--grey { background: var(--cc-band-grey); }
.cc-section--tint { background: var(--cc-band-tint); }

/* Headings are real h2/h3 elements printed from plain-text fields. desktop.css
   gives bare h2/h3 a 1.688rem size and #000, so every rule carries .cc. */
.cc :is(h2, h3) {
	margin-top: 0;
	text-transform: none;
	letter-spacing: normal;
}

.cc .cc-section-heading {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.18;
	color: var(--cc-navy);
	text-transform: none;
	letter-spacing: normal;
}

.cc-section-intro {
	margin: 0;
	max-width: 66ch;
	font-size: 17px;
	line-height: 1.55;
	color: var(--cc-muted);
}

.cc-section-head { margin-bottom: 28px; }
.cc-section-head > :last-child { margin-bottom: 0; }

@media (min-width: 900px) {
	.cc .cc-section-heading { font-size: 34px; }
	.cc-section-head { margin-bottom: 40px; }
}


/* ---- Buttons --------------------------------------------------------------
   desktop.css has a global a:hover { opacity: .7 }: every button opts out. */

/* 16px on a 1.5 line with 12px padding: 48px tall, the size the homepage,
   Why Billi, Specify Billi and the sector pages use. */
.cc .cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cc .cc-btn:hover,
.cc .cc-btn:focus-visible { opacity: 1; }

.cc .cc-btn svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.cc .cc-btn--navy { background: var(--cc-navy); color: #fff; }

.cc .cc-btn--navy:hover,
.cc .cc-btn--navy:focus-visible {
	background: #fff;
	color: var(--cc-navy);
	box-shadow: inset 0 0 0 1px var(--cc-navy);
}

/* On navy or a photograph. */
.cc .cc-btn--light { background: var(--cc-lightblue); color: var(--cc-navy); }

.cc .cc-btn--light:hover,
.cc .cc-btn--light:focus-visible { background: #fff; color: var(--cc-navy); }

.cc .cc-btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.cc .cc-btn--ghost:hover,
.cc .cc-btn--ghost:focus-visible {
	background: #fff;
	color: var(--cc-navy);
	box-shadow: none;
}

.cc .cc-btn--outline {
	background: transparent;
	color: var(--cc-navy);
	box-shadow: inset 0 0 0 1px var(--cc-navy);
}

.cc .cc-btn--outline:hover,
.cc .cc-btn--outline:focus-visible { background: var(--cc-navy); color: #fff; }

/* framework.css removes focus outlines sitewide. Navy on light grounds
   (#90cdeb on white is 1.7:1), white on the navy hero. */
.cc :is(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--cc-navy);
	outline-offset: 3px;
}

.cc .cc-hero :is(a, button, summary):focus-visible { outline-color: #fff; }


/* ---- Hero -----------------------------------------------------------------
   Navy, no photograph: the hub is a list of routes and gets to them fast.
   The title is an <h1>: typography.css gives it DM Serif Display at 400.
   Never set its font-weight or font-family (DM Serif has no bold). */

.cc-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 340px;
	background: var(--cc-navy);
	color: #fff;
	overflow: hidden;
}

.cc-hero__inner {
	width: 100%;
	padding-top: 48px;
	padding-bottom: 48px;
}

.cc-hero__content { max-width: 720px; }

.cc-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--cc-lightblue);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cc .cc-hero__title {
	margin: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1.12;
}

.cc-hero__intro {
	margin: 16px 0 0;
	max-width: 62ch;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	line-height: 1.5;
}

.cc .cc-hero__intro a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.cc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.cc-hero__actions:empty { display: none; }

@media (min-width: 900px) {
	.cc-hero__inner { padding-top: 72px; padding-bottom: 72px; }
	.cc .cc-hero__title { font-size: 52px; }
	.cc-hero__intro { font-size: 18px; }
}


/* ---- Cards ------------------------------------------------------------------
   Whole card clickable through ONE stretched link on the title (no nested
   links). 3x3 at desktop, 2-up from 640px. */

.cc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

@media (min-width: 640px) {
	.cc-grid--2,
	.cc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.cc-grid { gap: 28px; }
	.cc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* On a phone the cards stack, so they are compact: icon beside the title
   and text, which roughly halves the scroll. From 640px, icon on top. */
.cc-card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 16px;
	align-items: start;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--cc-grey);
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
	.cc-card {
		display: flex;
		flex-direction: column;
		padding: 24px;
	}
}

.cc-card--link:hover {
	border-color: var(--cc-navy);
	box-shadow: 0 6px 24px rgba(24, 29, 70, 0.08);
}

.cc-card__icon {
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	background: var(--cc-band-tint);
	color: var(--cc-navy);
}

@media (min-width: 640px) {
	.cc-card__icon { width: 48px; height: 48px; margin-bottom: 16px; }
}

.cc .cc-card__icon svg { width: 26px; height: 26px; }

.cc .cc-card__title {
	align-self: center;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--cc-navy);
}

@media (min-width: 640px) {
	.cc .cc-card__title { align-self: auto; font-size: 19px; }
}

/* desktop.css sets a { font-weight: 600 } globally: the link inherits instead. */
.cc .cc-card__link {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
}

.cc .cc-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 4px;
}

.cc .cc-card__link:hover { opacity: 1; }

.cc-card__ext {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.9em;
	font-weight: 400;
}

.cc-card__text {
	grid-column: 2;
	margin: 4px 0 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--cc-muted);
}

/* The ring goes round the whole card rather than the title text. Browsers
   without :has() keep the link's own ring from the rule above. */
@supports selector(:has(a)) {
	.cc .cc-card__link:focus-visible { outline: none; }

	.cc .cc-card:has(.cc-card__link:focus-visible) {
		outline: 2px solid var(--cc-navy);
		outline-offset: 3px;
	}
}


/* ---- Closing band -------------------------------------------------------------
   Green Grey with the standard navy button. Never navy above the navy footer. */

.cc-help__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.cc .cc-help .cc-section-heading { margin-bottom: 0; }

.cc-help__text {
	margin: 12px 0 0;
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.55;
	color: var(--cc-text);
}

.cc .cc-help__text a {
	color: var(--cc-navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cc .cc-help__text a:hover { opacity: 1; }

.cc-help__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (min-width: 768px) {
	.cc-help__row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
	}

	.cc-help__actions { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.cc .cc-btn,
	.cc-card { transition: none; }
}
