/* ==========================================================================
   Schindlers Group — one page, full-viewport scroll-snapped sections
   ========================================================================== */

:root {
	--red: #c8102e;
	--navy: #0a1420;
	--dark: #18191c;
	--dark-2: #202225;
	--text: #24252a;
	--text-soft: #4a4b52;
	--white: #ffffff;
	--font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
	--font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
	--header-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--font-body);
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

/* ---------------------------------------------------------------- */
/* Scroll container — one section per scroll, full desktop viewport  */
/* ---------------------------------------------------------------- */

.schindlers-scroll {
	scroll-snap-type: y mandatory;
	overflow-y: auto;
	overflow-x: hidden;
	height: 100vh;
	scroll-behavior: smooth;
}

.panel {
	position: relative;
	min-height: 100vh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	width: 100%;
}

.panel-split {
	flex-direction: row;
}
.panel-split.panel-split-reverse {
	flex-direction: row-reverse;
}

.panel-media {
	flex: 1 1 50%;
	min-height: 100vh;
	background-size: cover;
	background-position: center;
	position: relative;
}

.panel-content {
	flex: 1 1 50%;
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	padding: calc(var(--header-h) - 2px) 5vw 12px;
	overflow-y: auto;
}

.panel-content-inner {
	max-width: 640px;
	margin: -15px auto 0;
	width: 100%;
	padding: 0 10px;
}

/* Long-list sections (Management, Contact) anchor to the top instead of
   vertically centering, so they degrade gracefully instead of pushing
   the heading up under the fixed header when content runs long. */
.panel-content-top { align-items: flex-start; }
.panel-content-top .panel-content-inner { padding-top: 4px; }

.panel-heading {
	display: block;
	color: #C92434 !important;
	font-family: 'Montserrat', 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
	font-size: 45px;
	font-weight: 500;
	line-height: 1em;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 2px solid var(--red);
}

.panel-copy p { margin: 0 0 12px; line-height: 22.1px; color: #000; }
.panel-copy p:last-child { margin-bottom: 0; }
.panel-copy-justify,
.panel-copy-justify p { text-align: justify; text-justify: inter-word; }

/* Body-copy paragraphs site-wide (excludes the large pull-quotes, which
   are a distinct display element, not reading copy). */
.panel-copy-justify,
.panel-copy-justify p {
	font-family: Montserrat, 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
	font-size: 13px !important;
	line-height: 22.1px !important;
}

/* Popup card paragraphs (jurisdiction description + contact details,
   team member bios) — same family, slightly smaller. */
.popup-description,
.popup-contact p {
	font-family: Montserrat, 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
	font-size: 13px !important;
}

/* Body-copy weight/justification/spacing, site-wide — every reading
   paragraph and list item across the sections, the popup card, and
   standalone pages (e.g. Privacy Policy). */
.panel-content p,
.panel-content li,
.popup-body p,
.popup-body li,
.static-page-content p,
.static-page-content li {
	font-weight: 600;
}
.panel-content p,
.popup-body p,
.static-page-content p {
	text-align: justify;
	text-justify: inter-word;
	padding-bottom: 1em;
	margin-bottom: 0;
}

/* ---------------------------------------------------------------- */
/* Header (fixed, persists over every section)                       */
/* ---------------------------------------------------------------- */

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 5vw;
	pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.site-logo {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s ease, visibility 0s linear 0s;
}
body:not(.at-hero) .site-logo {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .3s ease, visibility 0s linear .3s;
}
.site-logo img {
	height: 44px;
	width: auto;
}
.site-logo .logo-dark { display: none; }
body:not(.at-dark-panel) .site-logo .logo-light { display: none; }
body:not(.at-dark-panel) .site-logo .logo-dark { display: block; }

.nav-toggle {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background: rgba(10, 20, 32, .55);
	backdrop-filter: blur(2px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	transition: background .2s ease;
}
.nav-toggle:hover { background: var(--red); }
.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--white);
}
body:not(.at-dark-panel) .nav-toggle { background: rgba(10, 20, 32, .12); }
body:not(.at-dark-panel) .nav-toggle span { background: var(--dark); }
body:not(.at-dark-panel) .nav-toggle:hover { background: var(--red); }
body:not(.at-dark-panel) .nav-toggle:hover span { background: var(--white); }

/* ---------------------------------------------------------------- */
/* Full-screen nav overlay (matches images/toggle-menu.png)          */
/* ---------------------------------------------------------------- */

/* A fixed-width drawer sliding in from the right (matches the client's
   existing desktop nav) rather than a full-screen takeover — the rest of
   the page stays visible to the left of it. */
.nav-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(24vw, 360px);
	min-width: 280px;
	height: 100%;
	z-index: 100;
	background: rgba(6, 8, 12, .97);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 60px 36px;
	visibility: hidden;
	transform: translateX(100%);
	transition: transform .4s ease, visibility 0s linear .4s;
}
.nav-overlay.is-open {
	visibility: visible;
	transform: translateX(0);
	transition: transform .4s ease;
}

.nav-overlay-menu { display: flex; flex-direction: column; gap: 26px; }
.nav-overlay-menu .nav-link {
	color: var(--white);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .01em;
	text-decoration: none;
	opacity: .92;
	transition: opacity .2s ease, color .2s ease;
}
.nav-overlay-menu .nav-link:hover { opacity: 1; color: var(--red); }

.nav-close {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.6);
	background: transparent;
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, border-color .2s ease;
}
.nav-close:hover { background: var(--red); border-color: var(--red); }

@media (max-width: 640px) {
	/* Full-screen on phones instead of a slim drawer — matches the
	   client's own mobile nav (images/toggle-menu.png). */
	.nav-overlay { width: 100%; min-width: 0; align-items: center; text-align: center; padding: 60px 30px; }
	.nav-overlay-menu { align-items: center; }
}

/* ---------------------------------------------------------------- */
/* Hero                                                               */
/* ---------------------------------------------------------------- */

.panel-hero {
	background-size: cover;
	background-position: center;
	align-items: flex-end;
	justify-content: flex-start;
}
.panel-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6,10,16,.35) 0%, rgba(6,10,16,.15) 40%, rgba(6,10,16,.75) 100%);
}
.panel-hero-content {
	position: relative;
	z-index: 2;
	padding: 0 5vw 90px;
	max-width: 720px;
}
.panel-hero-tagline {
	color: var(--white);
	font-family: Montserrat, 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
	font-size: 22px;
	font-weight: 600 !important;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: .01em;
	margin: 0;
}
.scroll-cue {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	background: none;
	border: none;
	color: var(--white);
	opacity: .8;
	animation: schindlers-bounce 2s infinite;
	z-index: 2;
}
@keyframes schindlers-bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, 8px); }
}

/* ---------------------------------------------------------------- */
/* Media panels with a quote overlay (Trusted Choice / Group Services) */
/* ---------------------------------------------------------------- */

.panel-media-quote {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 18vh;
}
.panel-media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6,12,24,.55) 0%, rgba(6,12,24,.15) 45%, rgba(6,12,24,.15) 100%);
}
.panel-quote {
	position: relative;
	z-index: 2;
	margin: 0;
	max-width: 420px;
	text-align: center;
	color: var(--white);
}
.panel-quote p {
	font-family: Montserrat, 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 14px;
}
.panel-quote cite {
	font-family: Montserrat, 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
	font-style: normal;
	font-size: 14px;
	opacity: .85;
}

/* ---------------------------------------------------------------- */
/* Trusted Choice grid                                                */
/* ---------------------------------------------------------------- */

.trusted-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-flow: column;
	grid-template-rows: repeat(4, auto);
	column-gap: 40px;
	row-gap: 10px;
}
.trusted-item h3 {
	font-family: Montserrat, 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
	font-weight: 600;
	font-size: 15px;
	color: #C92434 !important;
	margin-bottom: 5px;
}
.trusted-item p {
	font-size: 13px;
	line-height: 22.1px;
	margin: 0;
	padding-bottom: 0;
	color: #000;
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: break-word;
}

/* ---------------------------------------------------------------- */
/* Accordion lists (Group Services / Divisions / ESG / Contact)      */
/* ---------------------------------------------------------------- */

.accordion-list { margin-top: 8px; }
.accordion-item { border-bottom: none; }
.accordion-item:first-child { border-top: none; }

.accordion-trigger {
	width: 100%;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 2px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	color: var(--text);
	text-align: left;
}
.accordion-trigger:disabled { cursor: default; }

.accordion-icon {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid #c8c8c8;
	position: relative;
	margin-left: 16px;
}
.accordion-icon::before, .accordion-icon::after {
	content: '';
	position: absolute;
	background: #9a9a9a;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
}
.accordion-icon::before { width: 9px; height: 1.5px; }
.accordion-icon::after {
	width: 1.5px; height: 9px;
	opacity: 1;
	transition: opacity .25s ease;
}
.accordion-item.is-open .accordion-icon::after { opacity: 0; }
.accordion-icon-static::after { display: none; }

.accordion-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
}
.accordion-item.is-open .accordion-panel { max-height: 400px; }
.accordion-panel-inner { padding: 0 2px 18px; }
.accordion-panel-inner p { font-size: 13px; line-height: 22.1px; color: #000; margin: 0; }
.accordion-panel-inner p:last-child { margin-bottom: 0; }
.accordion-panel-inner ul { margin: 0 0 12px; padding-left: 20px; }
.accordion-panel-inner ul:last-child { margin-bottom: 0; }
.accordion-panel-inner li { font-size: 13px; line-height: 22.1px; color: #000; margin-bottom: 8px; }
.accordion-panel-inner li:last-child { margin-bottom: 0; }
.accordion-panel-inner li strong { color: var(--text); }
.accordion-panel-inner a { color: #1a73c7; }

/* ---------------------------------------------------------------- */
/* Management team list                                              */
/* ---------------------------------------------------------------- */

.team-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.team-trigger {
	background: none;
	border: none;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	text-align: left;
}
.team-trigger:hover { color: var(--red); }
.team-icon {
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid var(--red);
	color: var(--red);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	line-height: 1;
}

/* ---------------------------------------------------------------- */
/* Jurisdictions strip                                                */
/* ---------------------------------------------------------------- */

.panel-jurisdictions { padding: 0; }
.jurisdictions-strip {
	display: flex;
	width: 100%;
	min-height: 100vh;
}
.jurisdiction-tile {
	flex: 1 1 0;
	min-height: 100vh;
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: #1b1b1b;
	border-left: 1px solid rgba(255,255,255,.08);
	filter: grayscale(1) brightness(.75);
	transition: filter .4s ease, flex-grow .4s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.jurisdiction-tile:first-child { border-left: none; }
.jurisdiction-tile:hover, .jurisdiction-tile:focus-within {
	filter: grayscale(0) brightness(1);
	flex-grow: 1.4;
}
.jurisdiction-tile-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%);
	pointer-events: none;
}
.jurisdiction-tile-label {
	position: relative;
	z-index: 2;
	color: var(--white);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	background: rgba(15,15,15,.55);
	border: none;
	cursor: pointer;
	transition: background .25s ease;
	padding: 8px 16px;
	border-radius: 3px;
	white-space: nowrap;
}
.jurisdiction-tile-label:hover,
.jurisdiction-tile-label:focus-visible { background: var(--red); }

/* ---------------------------------------------------------------- */
/* Contact — office locations map                                    */
/* ---------------------------------------------------------------- */

.panel-globe {
	background-color: #23262b;
	background-size: cover;
	background-position: center;
}

/* ---------------------------------------------------------------- */
/* Popup card (jurisdiction / team member)                           */
/* ---------------------------------------------------------------- */

.popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(8, 10, 14, .72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s;
}
.popup-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }

.popup-card {
	background: var(--white);
	width: min(1300px, 96vw);
	display: flex;
	position: relative;
	box-shadow: 0 30px 80px rgba(0,0,0,.5);
	transform: translateY(14px);
	transition: transform .3s ease;
	margin: auto;
}
.popup-overlay.is-open .popup-card { transform: translateY(0); }

.popup-body {
	flex: 1 1 74%;
	padding: 56px 52px;
}
.popup-title {
	color: var(--red);
	font-size: 28px;
	font-weight: 600;
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 1px solid #d8d8d8;
}
.popup-description {
	font-size: 14px;
	line-height: 1.75;
	color: var(--text-soft);
	text-align: justify;
	margin: 0 0 26px;
}
.popup-contact-heading {
	color: var(--red);
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 12px;
}
.popup-contact p { font-size: 14px; line-height: 1.7; color: var(--text-soft); margin: 0 0 10px; text-align: justify; text-justify: inter-word; }
.popup-contact a { color: #1a73c7; }

.popup-image {
	flex: 1 1 26%;
	background-size: cover;
	background-position: center;
	background-color: #eee;
}

/* No photo (e.g. a team member popup) — a red accent edge stands in for
   the missing image column instead of leaving a blank gap. */
.popup-card.popup-no-image .popup-body { border-right: 3px solid var(--red); }

.popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: rgba(20,20,20,.55);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
}
.popup-close:hover { background: var(--red); }

/* ---------------------------------------------------------------- */
/* Standalone pages (e.g. Privacy Policy) — normal scrolling, not      */
/* part of the one-page scroller.                                     */
/* ---------------------------------------------------------------- */

.static-page {
	display: block;
	min-height: 100vh;
}
.static-page-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: calc(var(--header-h) + 40px) 5vw 60px;
}
.static-page-title {
	display: block;
	margin-bottom: 26px;
}
.static-page-content :is(h2, h3, h4) {
	font-family: 'Montserrat', 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	color: var(--red);
	font-weight: 600;
	margin: 1.4em 0 .6em;
}
.static-page-content h2 { font-size: 22px; }
.static-page-content h3 { font-size: 18px; }
.static-page-content h4 { font-size: 16px; }
.static-page-content :is(h2, h3, h4):first-child { margin-top: 0; }
.static-page-content ul,
.static-page-content ol {
	margin: 0 0 1em;
	padding-left: 22px;
}
.static-page-content li {
	font-size: 13px;
	line-height: 22.1px;
	color: #000;
	margin-bottom: 8px;
	font-family: 'Montserrat', 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
}
.static-page-content a { color: #1a73c7; }

@media (max-width: 640px) {
	.static-page-inner { padding-top: calc(var(--header-h) + 24px); }
}

/* ---------------------------------------------------------------- */
/* Footer                                                             */
/* ---------------------------------------------------------------- */

.site-footer {
	background: var(--dark);
	color: rgba(255,255,255,.75);
	padding: 0 5vw;
	scroll-snap-align: end;
	scroll-snap-stop: always;
}
.site-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	flex-wrap: wrap;
}
.site-footer-row-alt { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--white); }
.site-footer-copy { font-size: 13px; opacity: .8; }
.back-to-top {
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.3);
	background: transparent;
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
}
.back-to-top:hover { background: var(--red); border-color: var(--red); }
.site-footer-credit { font-size: 12px; opacity: .6; }
.site-footer-social { display: flex; gap: 14px; }
.social-icon {
	width: 30px; height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.25);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,.75);
}
.social-icon:hover { border-color: var(--red); color: var(--white); background: var(--red); text-decoration: none; }

/* ---------------------------------------------------------------- */
/* Responsive — stack columns, drop viewport-locked scroll-snap        */
/* ---------------------------------------------------------------- */

@media (max-width: 1024px) {
	/* Scroll-snap stays on for mobile too — but each half of a split
	   section (the text, then its photo) is now its own full-screen
	   page, snapped to individually, instead of one tall section. */
	.schindlers-scroll {
		scroll-snap-type: y mandatory;
		height: 100vh;
		height: 100dvh;
		overflow-y: auto;
		overflow-x: hidden;
	}
	.panel { min-height: auto; }
	.panel-hero { min-height: 100vh; min-height: 100dvh; justify-content: center; }
	.panel-hero-content { text-align: center; }
	.panel-split, .panel-split.panel-split-reverse { flex-direction: column; }
	/* Always text-above, image-below on mobile, regardless of which one
	   comes first in the markup (desktop alternates left/right). */
	.panel-split .panel-content { order: 1; }
	.panel-split .panel-media { order: 2; }
	.panel-content,
	.panel-media {
		flex: none;
		min-height: 100vh;
		min-height: 100dvh;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
	.panel-content { padding: 50px 7vw; }
	.panel-content-inner { max-width: 100%; }
	.jurisdictions-strip { flex-direction: column; min-height: auto; }
	.jurisdiction-tile { min-height: 220px; flex: none; border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
	.jurisdiction-tile:first-child { border-top: none; }
	.jurisdiction-tile:hover, .jurisdiction-tile:focus-within { flex-grow: 0; }
	.trusted-grid { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; }
	.popup-card { flex-direction: column; }
	.popup-image { min-height: 220px; }
	.popup-body { padding: 40px 28px; }
	.panel-heading { font-size: 32px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
	.nav-overlay { width: min(38vw, 340px); }
}
