/*
 * SHS Custom Styles - homepage (page ID 5)
 * Rebuilt from class names and block structure; the original BlankSlate CSS was lost.
 * Uses the Extendable theme's colour presets where they exist.
 */

:root {
	--shs-blue: #00c0ff;
	--shs-red: #c8102e;
	--shs-navy: var(--wp--preset--color--secondary, #1c0a63);
	--shs-primary: var(--wp--preset--color--primary, #381d92);
	--shs-band: var(--wp--preset--color--tertiary, #f2f2fa);
	--shs-max: 1120px;
	--shs-gutter: clamp(16px, 4vw, 40px);
	--shs-section-y: clamp(48px, 7vw, 96px);
}

/* ------------------------------------------------------------------
   1. Break out of the theme's 42rem column
   ------------------------------------------------------------------ */
body.page-id-5 main#wp--skip-link--target {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.page-id-5 .entry-content.wp-block-post-content {
	padding-left: 0;
	padding-right: 0;
	max-width: none;
}

body.page-id-5 .entry-content.wp-block-post-content > * {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Empty spacer paragraphs left over from the old theme */
body.page-id-5 .entry-content p:empty {
	display: none;
}

/* Inner content column used on columns and groups */
.content-width {
	width: 100%;
	max-width: var(--shs-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--shs-gutter);
	padding-right: var(--shs-gutter);
	box-sizing: border-box;
}

.content-wrapper {
	width: 100%;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------
   2. Banner: one image per breakpoint, title overlaid on the open left side
   ------------------------------------------------------------------ */
.wp-block-image.home-header,
.wp-block-image.home-header-1268,
.wp-block-image.home-header-785 {
	display: none;
	margin: 0;
	background: var(--shs-band); /* shows through the transparent slanted bottom edge */
}

.wp-block-image.home-header img,
.wp-block-image.home-header-1268 img,
.wp-block-image.home-header-785 img {
	display: block;
	width: 100%;
	height: auto;
}

/* Desktop 1920x1080 */
@media (min-width: 1269px) {
	.wp-block-image.home-header { display: block; }
	.header-titles {
		aspect-ratio: 1920 / 1080;
		margin-top: -56.25% !important;
		padding: 0 52% 6% 7%;
	}
}

/* Tablet / small laptop 1268x754 */
@media (min-width: 786px) and (max-width: 1268px) {
	.wp-block-image.home-header-1268 { display: block; }
	.header-titles {
		aspect-ratio: 1268 / 754;
		margin-top: -59.46% !important;
		padding: 0 42% 6% 6%;
	}
}

/* Mobile 785x754 (near square: text sits in the open lower half) */
@media (max-width: 785px) {
	.wp-block-image.home-header-785 { display: block; }
	.header-titles {
		aspect-ratio: 785 / 754;
		margin-top: -96.05% !important;
		padding: 0 7% 16% 7%;
		justify-content: flex-end !important;
	}
}

.header-titles {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	color: var(--shs-navy);
}

.header-main-title {
	margin: 0;
	color: var(--shs-navy);
	font-size: clamp(1.8rem, 4.6vw, 4.5rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.header-sub-title {
	margin: 1rem 0 0;
	color: var(--shs-navy);
	font-size: clamp(0.95rem, 1.6vw, 1.6rem);
	font-weight: 500;
	line-height: 1.35;
}

@media (min-width: 786px) and (max-width: 1268px) {
	.header-main-title { font-size: clamp(1.6rem, 4.4vw, 3rem); }
	.header-sub-title  { font-size: clamp(0.9rem, 1.7vw, 1.25rem); }
}

@media (max-width: 785px) {
	.header-main-title { font-size: clamp(1.7rem, 8vw, 2.6rem); }
	.header-sub-title  { font-size: clamp(0.9rem, 3.8vw, 1.15rem); }
}

/* ------------------------------------------------------------------
   3. Intro / services background band
   ------------------------------------------------------------------ */
.services-background {
	background: var(--shs-band);
	padding-top: var(--shs-section-y);
	padding-bottom: var(--shs-section-y);
}

.services-background > * {
	margin-top: 0;
	margin-bottom: clamp(40px, 5vw, 72px);
}

.services-background > *:last-child {
	margin-bottom: 0;
}

.services-background .wp-block-columns {
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}

.science-woman,
.center-image,
.about-us-image,
.testimonial-image,
.register-image {
	margin-top: 0;
}

.science-woman img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	max-width: 420px;
}

.center-image {
	margin-bottom: 1.5rem;
}

.center-image img {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
}

.bold-text {
	font-weight: 600;
	font-size: 1.15em;
	color: var(--shs-navy);
}

.p-padding-top    { padding-top: 1rem; }
.p-padding-bottom { padding-bottom: 1rem; }

.header-red {
	color: var(--shs-red);
}

.header-uppercase {
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.services-background > .header-red {
	max-width: var(--shs-max);
	margin-left: auto;
	margin-right: auto;
	padding: 0 var(--shs-gutter);
	text-align: center;
	font-size: clamp(1.15rem, 2.4vw, 1.75rem);
	line-height: 1.3;
}

/* ------------------------------------------------------------------
   4. About cards
   ------------------------------------------------------------------ */
.about-us-columns {
	align-items: stretch !important;
}

.group-box-shadow {
	height: 100%;
	box-sizing: border-box;
	padding: clamp(24px, 3vw, 40px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(28, 10, 99, 0.10);
}

.group-box-shadow p {
	font-size: 0.95rem;
	line-height: 1.6;
}

.about-us-image {
	margin-bottom: 1rem;
}

.about-us-image img {
	display: block;
	width: 100%;
	max-width: 140px;
	height: auto;
	margin: 0 auto;
}

.about-us-header {
	margin: 0 0 1rem;
	text-align: center;
	color: var(--shs-primary);
	font-size: 1.25rem;
	letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------
   5. Testimonials
   ------------------------------------------------------------------ */
.testimonials {
	align-items: center !important;
}

.testimonial-image img {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto;
	border-radius: 14px;
}

.testimonial-carousel-column {
	text-align: center;
}

.testimonial-open-quote,
.testimonial-end-quote {
	margin: 0;
	color: var(--shs-blue);
	font-size: clamp(3rem, 6vw, 5rem);
	line-height: 0.8;
	font-family: Georgia, "Times New Roman", serif;
}

.testimonial-open-quote { text-align: left; }
.testimonial-end-quote  { text-align: right; }

.testimonial-carousel-column .testimonial_rotator_quote {
	font-style: italic;
	font-size: 1.05rem;
	line-height: 1.6;
}

.testimonial-carousel-column .testimonial_rotator_author_info,
.testimonial-carousel-column .testimonial_rotator_author_info p {
	margin-top: 0.75rem;
	text-align: center;
	font-size: 0.9rem;
	font-style: normal;
	font-weight: 600;
	color: var(--shs-primary);
}

/* ------------------------------------------------------------------
   6. Consultancy services
   ------------------------------------------------------------------ */
.services-header {
	margin: 0 0 clamp(24px, 3vw, 40px);
	text-align: center;
	color: var(--shs-navy);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.services-header::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: 0.6rem auto 0;
	border-radius: 2px;
	background: var(--shs-blue);
}

.services-container {
	margin-bottom: 20px;
	padding: clamp(20px, 2.5vw, 32px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(28, 10, 99, 0.08);
}

.services-container:last-child {
	margin-bottom: 0;
}

.services-container .wp-block-columns {
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
	margin: 0;
}

.services-first-column {
	text-align: center;
}

.services-first-column img {
	display: block;
	width: 100%;
	max-width: 140px;
	height: auto;
	margin: 0 auto;
}

.services-container h4 {
	margin: 0 0 0.6rem;
	color: var(--shs-primary);
	font-size: 1.15rem;
}

.services-container .wp-block-column:not(.services-first-column) p {
	position: relative;
	margin: 0 0 0.35rem;
	padding-left: 1.1em;
	font-size: 0.95rem;
	line-height: 1.5;
}

.services-container .wp-block-column:not(.services-first-column) p::before {
	content: "\203A";
	position: absolute;
	left: 0;
	color: var(--shs-blue);
	font-weight: 700;
}

/* ------------------------------------------------------------------
   7. Register band
   ------------------------------------------------------------------ */
.content-wrapper:not(.services-background):not(.contact-us) {
	padding-top: var(--shs-section-y);
	padding-bottom: var(--shs-section-y);
	text-align: center;
}

.register-image img {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
	margin: 0 auto 1.5rem;
}

.register-title {
	margin: 0 0 1rem;
	color: var(--shs-navy);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.register-paragraph {
	max-width: 640px;
	margin: 0 auto 2rem;
}

/* Forminator's own selectors are more specific, hence the extra qualifiers */
.content-wrapper form.forminator-ui.forminator-custom-form {
	max-width: 640px;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: left;
}

/* ------------------------------------------------------------------
   8. Contact / footer band
   ------------------------------------------------------------------ */
.contact-us {
	padding-top: clamp(40px, 5vw, 72px);
	padding-bottom: clamp(40px, 5vw, 72px);
	background: var(--shs-navy);
	color: #fff;
}

.contact-us .wp-block-columns {
	gap: clamp(24px, 4vw, 56px);
	margin: 0;
}

.contact-us p,
.contact-us div {
	color: #fff;
}

.contact-us a {
	color: #fff;
	text-decoration: none;
}

.contact-us a:hover,
.contact-us a:focus {
	text-decoration: underline;
}

/* Beat the inline red styling on the menu-style links */
.contact-us span[style*="color"] {
	color: var(--shs-blue) !important;
}

.contact-us-column-1 img {
	display: block;
	max-width: 240px;
	height: auto;
	margin-bottom: 1rem;
}

.contact-us-column-1 p,
.contact-us-column-2 > p,
.contact-us-address {
	font-size: 0.9rem;
	line-height: 1.6;
	opacity: 0.9;
}

.contact-us-phone {
	margin-top: 1rem;
	color: var(--shs-blue) !important;
	font-size: 1.5rem;
	font-weight: 700;
}

.contact-us .wp-block-image,
.contact-us .wp-block-image img {
	margin-top: 0;
}
