/**
 * Sirejacob — Joomla integration layer.
 *
 * design.css holds the approved design, copied verbatim from the React export
 * (app/globals.css). This file only adds what Joomla needs on top of it:
 * icons, module markup, system messages and the contact form. Keep the two
 * separate so design.css can be refreshed from the source without losing this.
 */

/* ------------------------------------------------------------------ icons */
/* The React build used inline lucide SVG. The import replaces those with
   <span class="sj-icon sj-icon-name">, drawn here as a CSS mask so the icon
   always takes the colour of its surrounding text. */

.sj-icon {
	display: inline-block;
	width: 1.05em;
	height: 1.05em;
	flex: 0 0 auto;
	vertical-align: -0.16em;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.sj-icon-arrow-right {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

.sj-icon-arrow-left {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
}

.sj-icon-check {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.sj-icon-mail {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.sj-icon-phone {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.sj-icon-map-pin {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.sj-icon-file-text {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E");
}

.sj-icon-arrow-up {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E");
}

.back-to-top .sj-icon {
	width: 22px;
	height: 22px;
}

.sj-icon-chevron-down,
.sj-icon-chevron-right,
.sj-icon-chevron-left {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

.sj-icon-chevron-down { transform: rotate(90deg); }
.sj-icon-chevron-left { transform: rotate(180deg); }

.sj-icon-menu,
.sj-icon-x {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------- skip link & body */

.sj-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 14px 20px;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
}

.sj-skip:focus {
	left: 0;
}

body.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

#sj-content {
	flex: 1 0 auto;
}

/* Articles arrive wrapped in their original page class, so nothing extra is
   needed around them. Kill the default com_content chrome instead. */
.com-content-article__body > .sj-home > section:first-child,
.com-content-article__body > div > section:first-child {
	margin-top: 0;
}

.com-content-article > .page-header,
.com-content-article__info,
.com-content-article__aside,
.article-info,
.icons {
	display: none;
}

/* --------------------------------------------------------- mod_menu (nav) */

.topbar nav ul.mod-menu {
	display: flex;
	gap: 38px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar nav ul.mod-menu ul {
	display: none;
}

.topbar nav .mod-menu__sub {
	display: none;
}

.topbar nav li.nav-item > a {
	font-weight: 700;
	color: #334452;
	white-space: nowrap;
}

.topbar nav li.nav-item > a:hover,
.topbar nav li.current > a,
.topbar nav li.active > a {
	color: var(--blue);
}

/* ------------------------------------------------------- mod_languages */

.header-actions .mod-languages ul {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--navy);
	text-transform: uppercase;
}

.header-actions .mod-languages li.lang-active a,
.header-actions .mod-languages li.lang-active {
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 5px;
}

@media (max-width: 650px) {
	.header-actions .mod-languages {
		display: none;
	}
}

/* ------------------------------------------------------ mobile navigation */

.sj-mobile-toggle {
	display: none;
	border: 0;
	background: none;
	padding: 6px;
	font: inherit;
	color: var(--navy);
	cursor: pointer;
}

.sj-mobile-toggle .sj-icon {
	width: 26px;
	height: 26px;
}

.sj-mobile-panel {
	display: none;
	padding: 20px clamp(20px, 5vw, 82px) 28px;
	background: #fff;
	border-bottom: 1px solid #e7eaec;
}

.sj-mobile-panel.is-open {
	display: block;
}

.sj-mobile-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sj-mobile-panel li > a {
	display: block;
	padding: 13px 0;
	font-weight: 700;
	color: var(--navy);
	border-bottom: 1px solid #eceff1;
}

.sj-mobile-panel li li > a {
	padding-left: 18px;
	font-weight: 400;
	color: #5d6972;
}

.sj-mobile-panel .mod-languages ul {
	display: flex;
	gap: 18px;
	margin-top: 18px;
	font-weight: 700;
	text-transform: uppercase;
}

.sj-mobile-panel .mod-languages li > a {
	border: 0;
}

@media (max-width: 1000px) {
	.sj-mobile-toggle {
		display: block;
	}
}

/* -------------------------------------------------------- call to action */

.contact-cta-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 34px 32px;
	background: #fff;
	border: 1px solid #dfe4e7;
	box-shadow: 0 14px 36px rgba(8, 42, 69, 0.07);
}

.contact-cta-panel strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 25px;
	font-weight: 400;
	color: var(--navy);
}

.contact-cta-panel p {
	margin: 0;
	color: var(--muted);
	line-height: 1.65;
	max-width: 46ch;
}

/* -------------------------------------------------------- com_contact form */

.contact-page-form .com-contact__form,
.contact-page-form form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 640px;
}

.contact-page-form fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-page-form legend {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.2em;
	color: #59809b;
	text-transform: uppercase;
	padding: 0;
}

.contact-page-form .control-group,
.contact-page-form .controls {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.contact-page-form label {
	font-weight: 700;
	color: var(--navy);
	font-size: 0.95rem;
}

.contact-page-form input[type="text"],
.contact-page-form input[type="email"],
.contact-page-form input[type="tel"],
.contact-page-form select,
.contact-page-form textarea {
	width: 100%;
	padding: 14px 15px;
	border: 1px solid #c9d2d7;
	background: #fff;
	color: var(--ink);
	font: inherit;
	border-radius: 0;
}

.contact-page-form input:focus,
.contact-page-form select:focus,
.contact-page-form textarea:focus {
	outline: 2px solid var(--blue);
	outline-offset: 1px;
}

.contact-page-form .checkbox,
.contact-page-form .form-check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-weight: 400;
	color: var(--muted);
	line-height: 1.55;
}

.contact-page-form button[type="submit"],
.contact-page-form .btn-primary {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 17px 26px;
	border: 0;
	background: var(--navy);
	color: #fff;
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
}

.contact-page-form button[type="submit"]:hover {
	background: var(--blue);
}

.contact-page-form .invalid,
.contact-page-form .form-control-feedback {
	color: #a4242b;
}

/* --------------------------------------------------------- system output */

#system-message-container {
	padding: 0 clamp(24px, 6vw, 90px);
	margin-top: 24px;
}

.joomla-alert {
	display: block;
	padding: 16px 20px;
	border-left: 4px solid var(--blue);
	background: #eef3f6;
	color: var(--ink);
}

.joomla-alert--danger,
.joomla-alert[type="danger"] {
	border-left-color: #a4242b;
	background: #f9eded;
}

.joomla-alert--success,
.joomla-alert[type="success"] {
	border-left-color: #2c7a4b;
	background: #edf6f0;
}

.joomla-alert button.joomla-alert-close {
	float: right;
	border: 0;
	background: none;
	cursor: pointer;
}

/* --------------------------------------------------------------- helpers */

[hidden] {
	display: none !important;
}

.sj-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media print {
	.topbar,
	footer,
	.back-to-top,
	.contact-cta-panel a {
		display: none !important;
	}
}

/* ====================================================================== */
/* v2 — modular homepage                                                  */
/* ====================================================================== */

/* Blocks are modules now. The chrome wraps each one in <section class="sj-block
   {original section class}">, so every rule in design.css still applies. */

.sj-block {
	display: block;
}

.sj-anchor {
	display: block;
	height: 0;
	overflow: hidden;
	scroll-margin-top: 90px;
}

/* Fallback when a module has no SJ_TITLE marker in its content. */
.sj-block-head {
	margin-bottom: 26px;
}

/* ------------------------------------------------- team blocks (Widgetkit) */

/* Blocks 4 and 5 pull their people from Widgetkit, which renders UIkit markup
   inside a .uk-scope wrapper. These rules pull that output back towards the
   approved design: cream cards, serif names, no UIkit card chrome. */

.team-module {
	padding-top: 0;
}

.team-module .team-module-copy {
	max-width: 62ch;
	margin-bottom: 26px;
}

.team-module .team-module-copy h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(25px, 2.4vw, 31px);
	font-weight: 400;
	color: var(--navy);
	margin: 0 0 10px;
}

.team-module .team-module-copy p {
	margin: 0 0 8px;
	color: var(--muted);
	line-height: 1.65;
}

.team-module .team-module-copy small {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #59809b;
}

.team-module-legal {
	background: #e8f0f5;
}

.team-module-admin {
	background: #efe9dd;
}

.team-module .uk-scope {
	--uk-leader-fill-content: "";
}

.team-module .uk-scope .uk-card,
.team-module .uk-scope .uk-card-default {
	background: #fff;
	border: 1px solid #dfe4e7;
	border-radius: 0;
	box-shadow: none;
}

.team-module .uk-scope img {
	width: 100%;
	height: auto;
	display: block;
}

.team-module .uk-scope .uk-h3,
.team-module .uk-scope h3,
.team-module .uk-scope h4 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 400;
	color: var(--navy);
	margin: 0;
	padding: 13px 10px;
	text-align: center;
	background: #fff;
	border: 1px solid #dfe4e7;
	border-top: 0;
}

.team-module .uk-scope a.uk-position-cover {
	cursor: pointer;
}

/* The lightbox: photo left, name and biography right. */
.uk-scope .uk-modal-full .uk-h3,
.uk-scope .uk-modal-full h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	color: var(--navy);
}

.uk-scope .uk-modal-full p,
.uk-scope .uk-modal-full div {
	line-height: 1.7;
}

.uk-scope .uk-modal-full .team-profile-role,
.uk-scope .uk-modal-full p.team-profile-role {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #59809b;
}

.uk-scope .uk-thumbnav > * > * {
	border: 1px solid #dfe4e7;
}
