/* fonts (local, css/font) */
@font-face {
	font-family: "Work Sans";
	src: url("font/Work_Sans/WorkSans-VariableFont_wght.ttf") format("truetype");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Barlow";
	src: url("font/Barlow/Barlow-Light.ttf") format("truetype");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Barlow";
	src: url("font/Barlow/Barlow-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Barlow";
	src: url("font/Barlow/Barlow-SemiBold.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Barlow";
	src: url("font/Barlow/Barlow-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* general */

/* container: centred, side padding 12px desktop / 48px tablet / 16px mobile, so the topbar and every section share one left and right edge */
.container {
	box-sizing: border-box;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 12px;
	padding-right: 12px;
}

/* tablet: 48px side margin */
@media (max-width: 1199.98px) {
	.container {
		padding-left: 48px;
		padding-right: 48px;
	}
}

/* mobile: 16px side margin */
@media (max-width: 428px) {
	.container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* desktop content width: 1200px (+ 2 x 12px container padding) */
@media (min-width: 1200px) {
	.container {
		max-width: 1224px;
	}
}

/* SVG icons, inlined so they take the text colour */
.icon {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	vertical-align: -0.25em;
	fill: currentColor;
	flex-shrink: 0;
}

body {
	margin: 0;
	font-family: "Barlow", sans-serif;
	color: #4d4d4d;
	font-size: 16px;
	line-height: 1.6em;
	font-weight: 300;
}

/* body text: 16px on desktop, 14px on tablet and mobile */
@media (max-width: 1023.98px) {
	body {
		font-size: 14px;
	}
}

/* Show outline when elements are focused (keyboard navigation).
   Solid outline meets 3:1 contrast and survives forced-colors mode; glow is decorative. */
:focus-visible {
  outline: 2px solid #67267a;
  outline-offset: 2px;
  box-shadow: 0 0 6px 3px rgba(255, 143, 66, 0.7);
}

/* links: three solid rings, white / orange / purple from the inside out.
   Transparent outline turns into a visible system-colour ring in forced-colors mode,
   where box-shadow is dropped. Low specificity so pill buttons keep their radius */
a:focus-visible {
  border-radius: 4px;
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff8f42, 0 0 0 6px #67267a;
}

a {
	color: #67267a;
	text-decoration: none;
}

a:hover {
	color: #ff8f42;
	text-decoration: none;
}

/* links inside running text stay underlined so they don't rely on colour alone (WCAG 1.4.1) */
.card-text a {
	text-decoration: underline;
}

h3 {
	font-family: "Work Sans", sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2em;
	color: #67267a;
	text-align: left;
	margin-bottom: 12px;
}

/* heading scale: desktop / 1024 */
@media (max-width: 1024px) {
	h3 {
		font-size: 20px;
	}
}

p {
	hyphens: auto;
	hyphenate-limit-chars: 10 3 4;
}

@media (max-width: 428px) {
	body {
		font-size: 14px;
		line-height: 1.5em;
	}
}

/* top bar */
#topbar {
	display: flex;
	align-items: center;
	font-size: 14px;
	background: linear-gradient(180deg, rgba(230,230,230,1) 0%, rgba(255,255,255,1) 100%);
	padding: 6px 0;
}

#topbar .container {
	display: flex;
	justify-content: space-between;
}

#topbar .contact {
  	flex: 1 1 0;
  	min-width: 0;
  	display: flex;
  	align-items: center;
}

#topbar .contact-left {
  	justify-content: flex-start;
}

#topbar .contact-center {
  	justify-content: center;
}

#topbar .contact-right {
  	justify-content: flex-end;
}

#topbar .contact-left {
	gap: 24px;
}

#topbar .contact a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #4d4d4d;
	line-height: 1;
	transition: 0.3s;
}

#topbar .contact a:hover {
	color: #ff8f42;
}

#topbar .icon {
	width: 24px;
	height: 24px;
	color: #67267a;
	vertical-align: middle;
}

#topbar .socialmedia {
	display: flex;
	gap: 24px;
}

#topbar .socialmedia a:hover .icon {
	color: #ff8f42;
}

/* language switch: two pills, the active one filled */
#topbar .contact-right {
	gap: 8px;
}

#topbar .contact-right .language {
	display: inline-block;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 2px 9px;
	border: none;
	border-radius: 20px;
	background-color: #fff;
	font-weight: 400;
	line-height: 20px;
	color: #67267a;
	cursor: pointer;
}

#topbar .contact-right .language:hover {
	background-color: #ff8f42;
	color: #fff;
}

#topbar .contact-right .language[aria-current],
#topbar .contact-right .language[aria-current]:hover {
	background-color: #67267a;
	color: #fff;
	cursor: default;
}

@media (max-width:1024px) {
	#topbar .contact .mobile-hidden {
		display: none;
	}
}

/* intro */
#intro {
	padding: 32px 0px 0px;
	text-align: center;
}

#intro h1 {
	font-family: "Work Sans", sans-serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2em;
	color: #67267a;
	margin-top: 0;
	margin-bottom: 12px;
}

#intro .intro-text {
	max-width: 720px;
	margin: 0 auto;
	line-height: 1.6em;
	color: #4d4d4d;
}

@media (max-width: 1024px) {
	#intro h1 {
		font-size: 28px;
	}
}

/* philosophy */
#philosophy {
	background-color: transparent;
	padding: 16px 0px 32px;
}

#philosophy .card {
	border: 0;
	border-radius: 0;
	margin-bottom: 32px;
}

#philosophy .card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
}

/* buttons line up at the bottom of the equal-height cards */
#philosophy .card-body .button {
	margin-top: auto;
	align-self: center;
}

#philosophy .card-title {
	color: #67267a;
	font-weight: 400;
	margin-bottom: 12px;
	text-align: center;
}

#philosophy .card-text {
	line-height: 1.6em;
	color: #4d4d4d;
	margin-bottom: 20px;
	text-align: center;
}

#philosophy .button {
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 1px;
	display: inline-block;
	padding: 12px 24px ;
	border-radius: 50px;
	transition: 0.5s;
	line-height: 1;
	text-align: center;
	color: #fff;
	background-color: #67267a;
}

#philosophy .button:hover {
	background-color: #ff8f42;
	color: #fff;
}

@media (max-width: 1024px) {
	#philosophy {
    	background-attachment: scroll;
		margin-top: 16px;
	}
	#philosophy .card {
    	margin-top: 20px;
		margin-bottom: 0;
	}
}

/* desktop: the three philosophy cards sit side by side in one row;
   their images scale with the card */
@media (min-width: 992px) {
	#philosophy .card-row {
		display: flex;
		flex-wrap: nowrap;
		margin-left: -12px;
		margin-right: -12px;
	}
	#philosophy .card-col {
		box-sizing: border-box;
		display: flex;
		flex: 0 0 33.3333%;
		max-width: 33.3333%;
		min-width: 0;
		padding-left: 12px;
		padding-right: 12px;
	}
}

#philosophy .card-col {
	min-width: 0;
}

#philosophy .card-img-top {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

/* one corner radius for all cards */
.card {
	border-radius: 4px !important;
	overflow: hidden;
}

.card .card-img-top {
	border-radius: 0;
}

/* touch screens: 40px tap targets in the top bar,
   icons stay where they were (gaps shrink by the extra tap area) */
@media (max-width: 991.98px) {
	#topbar {
		padding: 0;
	}
	#topbar .contact a,
	#topbar .socialmedia a {
		justify-content: center;
		min-width: 40px;
		height: 40px;
	}
	#topbar .contact-left,
	#topbar .socialmedia {
		gap: 8px;
	}
	#topbar .contact-left {
		margin-left: -8px;
	}
	/* pills stay unchanged; an invisible overlay makes them 40px tall to tap */
	#topbar .contact-right .language {
		position: relative;
	}
	#topbar .contact-right .language::after {
		content: "";
		position: absolute;
		inset: -8px -4px;
	}
}

/* icons inside the email / phone links turn orange together with the text */
#topbar .contact a:hover .icon,
#topbar .contact a:hover span {
	color: #ff8f42;
}
