/* =========================================================================
   Disability access services: template-accessibility.php.
   Scoped to .da, mobile first, min-width queries at 640 / 768 / 900 / 1200.
   The house recipe from the 18 Sep 2026 spec, renamed, plus the split hero,
   the statement, the dispenser cards and the link cards. The enquiry section
   is product.css's .pd-enquiry.
   ========================================================================= */

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

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

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

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

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

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

/* ---- Sections ------------------------------------------------------------ */

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

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

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

/* Headings are real h2/h3 elements printed from plain-text fields. */
.da .da-section-heading {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.18;
	color: var(--da-navy);
	text-transform: none;
	letter-spacing: normal;
}

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

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

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

/* WYSIWYG output. Base rules sit inside :where() so that band overrides win. */
:where(.da) .da-text > :first-child { margin-top: 0; }
:where(.da) .da-text > :last-child { margin-bottom: 0; }
:where(.da) .da-text p { margin: 0 0 0.85em; }
:where(.da) .da-text :is(h2, h3, h4) {
	margin: 1.4em 0 0.5em;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--da-navy);
}
:where(.da) .da-text :is(ul, ol) { margin: 0 0 0.9em; padding-left: 1.15em; }
:where(.da) .da-text li { margin: 0 0 0.45em; }
:where(.da) .da-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---- 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. */
.da .da-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;
}

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

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

.da .da-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.da .da-btn--ghost:hover,
.da .da-btn--ghost:focus-visible { background: #fff; color: var(--da-navy); box-shadow: none; }

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

/* ---- Split hero ------------------------------------------------------------
   Navy text on the left, the product cut-out on its own white panel on the
   right. The title is an <h1>: typography.css gives it DM Serif Display at
   400. Never set its font-weight or font-family. */

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

.da-hero__inner { width: 100%; padding-top: 48px; padding-bottom: 48px; }
.da-hero__content { max-width: 720px; }

.da-hero--split .da-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.da-hero--split .da-hero__inner > * { min-width: 0; }

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

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

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

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

.da-hero__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 460px;
	aspect-ratio: 1 / 1;
	padding: 24px;
	border-radius: 4px;
	background: #fff;
}

/* Prefixed: the namespace img reset would otherwise win. */
.da .da-hero__img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 899px) {
	.da-hero__panel { max-width: 320px; }
}

@media (min-width: 900px) {
	.da-hero__inner { padding-top: 72px; padding-bottom: 72px; }
	.da-hero--split .da-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; }
	.da-hero__panel { justify-self: end; }
	.da .da-hero__title { font-size: 52px; }
	.da-hero__intro { font-size: 18px; }
}

/* ---- Statement ----------------------------------------------------------------- */

.da-lede__text {
	max-width: 70ch;
	font-size: 17px;
	line-height: 1.65;
}

@media (min-width: 900px) {
	.da-lede__text { font-size: 19px; }
}

/* ---- Dispenser cards -----------------------------------------------------------
   Three different kinds of picture: a banner cropped to its tap, a 185px
   close-up shown at its natural size, and a cut-out on white. The panel
   takes each on its own terms instead of stretching the small ones. */

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

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

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

.da-product {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--da-grey);
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.da-product__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	border-bottom: 1px solid var(--da-grey);
	background: #fff;
}

@media (min-width: 900px) {
	.da-product__media { height: 240px; }
}

.da-product__media--contain { padding: 16px; }

.da .da-product__media--contain .da-product__img { width: auto; height: 100%; object-fit: contain; }

/* Banners put the product right of centre, with the left kept for copy. */
.da .da-product__media--cover .da-product__img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }

.da .da-product__media--natural .da-product__img { width: auto; height: auto; }

.da-product__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 22px 22px 24px;
}

.da .da-product__title {
	margin: 0 0 10px;
	color: var(--da-navy);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: normal;
}

.da-product__text { font-size: 16px; line-height: 1.55; }

.da .da-product__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 18px;
	color: var(--da-navy);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.da .da-product__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.da-product__link svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---- Enquiry (#da-enquiry) ---------------------------------------------------------
   product.css's .pd-enquiry, unchanged apart from the aside's steps title,
   which is a <p> here rather than a div. */

.da .pd-steps__title { margin: 0 0 16px; }

/* ---- Link cards (help band) ---------------------------------------------------------
   A white band: it follows the enquiry section's grey band, and Green Grey
   under that grey reads as a seam. The cards keep the house hairline. */

.da-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 18px 20px;
	border: 1px solid var(--da-grey);
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.da-card__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 2px;
	background: var(--da-band-tint);
	color: var(--da-navy);
}

.da .da-card__icon svg { display: block; width: 24px; height: 24px; }

.da-card__body { flex: 1 1 auto; min-width: 0; }

.da .da-card__title {
	margin: 0;
	color: var(--da-navy);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: normal;
}

/* desktop.css sets a { font-weight: 600 } and fades links on hover. */
.da .da-card__link { color: inherit; font-weight: inherit; text-decoration: none; }
.da .da-card__link::after { content: ''; position: absolute; inset: 0; border-radius: 4px; }
.da .da-card__link:hover { opacity: 1; }

/* The focus ring goes round the whole card, which is what the link covers. */
.da .da-card__link:focus-visible { outline: none; }
.da .da-card__link:focus-visible::after { outline: 2px solid var(--da-navy); outline-offset: 3px; }

.da-card__text {
	margin: 2px 0 0;
	color: var(--da-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
}

.da-card__chevron {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: var(--da-navy);
	transition: transform 0.2s ease;
}

.da-card--link:hover .da-card__chevron { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
	.da .da-btn,
	.da-card,
	.da-card__chevron { transition: none; }
	.da-card--link:hover .da-card__chevron { transform: none; }
}
