/*
 * SEO content blocks (inc/seo-sections.php). Loaded only on pages that contain them:
 * the homepage builder sections and product-category Top/Bottom Content (.dws-seo).
 *
 * Layout comes from the native Betheme builder settings. This file only adds what the
 * builder can't set natively, keyed off the elements' native "Classes" field:
 *
 *   .dws-hs, .dws-hs-<section>   section        (dws-hs-corp / -ind / -care / -why / -faq)
 *   .dws-hs-frame                wrap           photo frame
 *   .dws-hs-card                 wrap           Hospitality / Healthcare / School card
 *   .dws-hs-eyebrow              heading (p)    small label above an H2
 *   .dws-hs-card-title           heading (p)    card title
 *   .dws-hs-photo                image
 *   .dws-chips, .dws-hs-more, .dws-faq*, .dws-readmore*   HTML inside Column elements
 *
 * Fonts/sizes/colours follow the theme (DM Sans body, Roboto headings, #161922 / #626262).
 */

/* ---------- Read More (intro column) ---------- */
.dws-readmore__toggle { display: none; margin-top: 15px; }
.dws-js .dws-readmore__toggle { display: inline-block; }
/* Collapsed with max-height, never display:none, so the copy stays crawlable. */
.dws-js .dws-readmore__body { max-height: 0; overflow: hidden; transition: max-height .5s ease; }

/* ---------- Category Top / Bottom Content ---------- */
.dws-seo--top { margin: 0 0 30px; }
.dws-seo--bottom { margin: 40px 0 20px; }
.dws-seo h2 { margin: 30px 0 15px; }
.dws-seo h3 { margin: 25px 0 12px; font-size: 26px; line-height: 34px; font-weight: 400; }
.dws-seo > h2:first-child,
.dws-seo > h3:first-child { margin-top: 0; }

/* ---------- Headings ---------- */
/* Theme H2 is 65px — bigger than the H1. Keep these H2s below the H1. */
.dws-hs h2.title,
.dws-seo h2,
.dws-readmore__body h2 { font-size: 36px; line-height: 44px; font-weight: 400; }

.dws-hs-eyebrow .title {
	font-family: "Roboto", Arial, sans-serif;
	font-size: 19px;
	line-height: 30px;
	font-weight: 300;
	color: #161922;
	margin: 0;
}
.dws-hs .dws-hs-eyebrow .mcb-column-inner { margin-bottom: 5px; }

/* ---------- Photo frame ---------- */
.dws-hs-frame { border: 1px solid #e2e2e2; }
/* Photos keep their own portrait ratio (600x849): nobody is cropped; top-anchored for the 600x800 one. */
.dws-hs-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 600 / 849;
	object-fit: cover;
	object-position: center top;
}

/* ---------- Category chips ---------- */
.dws-hs .dws-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dws-hs .dws-chips li { list-style: none; margin: 0; padding: 0; }
.dws-hs .dws-chips li:before { display: none; }
.dws-chips a {
	display: inline-block;
	padding: 8px 15px;
	border: 1px solid #161922;
	color: #161922;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.dws-chips a:hover,
.dws-chips a:focus-visible { background: #000; color: #fff; }

/* ---------- Cards ---------- */
.dws-hs-card > .mcb-wrap-inner { border: 1px solid #e2e2e2; align-content: flex-start; }
.dws-hs-card .column_image .mcb-column-inner { margin: 0 0 20px; }
.dws-hs-card .column_heading .mcb-column-inner,
.dws-hs-card .column_column .mcb-column-inner { margin-left: 25px; margin-right: 25px; }
.dws-hs .dws-hs-card-title .mcb-column-inner { margin-bottom: 5px; }
.dws-hs-card-title .title {
	font-family: "DM Sans", Arial, sans-serif;
	font-size: 17px;
	line-height: 27px;
	font-weight: 700;
	color: #161922;
	margin: 0;
}
.dws-hs-more { font-weight: 700; color: #000; text-decoration: none; }
.dws-hs-more:hover,
.dws-hs-more:focus-visible { text-decoration: underline; }

/* ---------- FAQ accordion (questions stay H4) ---------- */
.dws-faqs { border-top: 1px solid #e2e2e2; }
.dws-faq { border-bottom: 1px solid #e2e2e2; }
.dws-faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 18px 0;
}
.dws-faq summary::-webkit-details-marker { display: none; }
.dws-faq summary h4 { margin: 0; }
.dws-faq summary::after {
	content: "+";
	flex: none;
	font-size: 26px;
	line-height: 1;
	color: #161922;
	transition: transform .3s;
}
.dws-faq[open] summary::after { transform: rotate(45deg); }
.dws-faq-a { padding: 0 0 18px; }
.dws-faq-a p { margin: 0; }
/* Smooth open/close where the browser supports animating to height:auto. */
@supports (interpolate-size: allow-keywords) {
	.dws-faqs { interpolate-size: allow-keywords; }
	.dws-faq::details-content { height: 0; overflow: hidden; transition: height .3s ease, content-visibility .3s allow-discrete; }
	.dws-faq[open]::details-content { height: auto; }
}

/* ---------- Tablet ---------- */
@media (max-width: 959px) {
	.dws-hs h2.title,
	.dws-seo h2,
	.dws-readmore__body h2 { font-size: 32px; line-height: 40px; }
	/* Frame stacks above/below the text here; give it room. */
	.dws-hs-frame { margin-bottom: 30px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.dws-hs h2.title,
	.dws-seo h2,
	.dws-readmore__body h2 { font-size: 28px; line-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.dws-js .dws-readmore__body,
	.dws-faq::details-content,
	.dws-faq summary::after { transition: none; }
}
