/* ==========================================================================
   Maathuis Installations theme — base styles
   Palette and type scale reverse-engineered from solinoor.com:
   dark blue #054B6E, gold #FFC01B, accent orange #FFAF1A,
   light blue #579ABC, footer teal #1E709A.
   Headings: Poppins. Body: Open Sans.
   ========================================================================== */

:root {
	--color-primary: #054B6E;
	--color-primary-dark: #033349;
	--color-accent: #FFC01B;
	--color-accent-2: #FFAF1A;
	--color-light-blue: #579ABC;
	--color-band: #579ABC;
	--color-tint: #F9F9F9;
	--color-teal: #1E709A;
	--color-footer-bg: #1E709A;
	--color-white: #ffffff;
	--color-text: #054B6E;
	--color-muted: #616161;
	--color-border: #e5eaee;
	--font-heading: 'Poppins', Helvetica, Arial, sans-serif;
	--font-body: 'Open Sans', Helvetica, Arial, sans-serif;
	--container-width: 164rem;
	--radius: 1rem;
	--shadow: 0 3px 20px rgba(5, 75, 110, 0.12);
	/* Wave section dividers, matching solinoor.com's curved section seams
	   instead of hard rectangular edges — colour must match the section
	   that follows the wave. */
	--wave-white: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201440%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M0%2C40%20C240%2C100%20480%2C0%20720%2C30%20C960%2C60%201200%2C100%201440%2C50%20L1440%2C100%20L0%2C100%20Z%22/%3E%3C/svg%3E");
	--wave-band: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201440%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23579ABC%22%20d%3D%22M0%2C40%20C240%2C100%20480%2C0%20720%2C30%20C960%2C60%201200%2C100%201440%2C50%20L1440%2C100%20L0%2C100%20Z%22/%3E%3C/svg%3E");
	--wave-tint: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201440%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23F9F9F9%22%20d%3D%22M0%2C40%20C240%2C100%20480%2C0%20720%2C30%20C960%2C60%201200%2C100%201440%2C50%20L1440%2C100%20L0%2C100%20Z%22/%3E%3C/svg%3E");
	--wave-accent: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201440%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23FFC01B%22%20d%3D%22M0%2C40%20C240%2C100%20480%2C0%20720%2C30%20C960%2C60%201200%2C100%201440%2C50%20L1440%2C100%20L0%2C100%20Z%22/%3E%3C/svg%3E");
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.8rem;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-white);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .25s ease; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 2rem;
	color: var(--color-primary);
}
h1 { font-size: clamp(3.4rem, 5vw, 5.6rem); }
h2 { font-size: clamp(2.8rem, 4vw, 4.4rem); }
h3 { font-size: 2.4rem; }
p { margin: 0 0 1.6rem; }
.text-accent { color: var(--color-accent-2); }

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 4rem;
}
.container--narrow { max-width: 920px; }

.section { padding: 10rem 0; }
.section__heading { text-align: center; margin-bottom: 1.5rem; }
.section__text { max-width: 760px; margin: 0 auto 3rem; text-align: center; color: var(--color-muted); }
.section__cta { text-align: center; margin-top: 4rem; }
.section__cta--right { text-align: right; }

/* ---- Buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	padding: 1rem 4.5rem;
	border-radius: 3rem;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.6rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .25s ease;
}
.btn--primary { background: var(--color-accent); color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary); color: var(--color-white); }
.btn--ghost { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }
.btn--arrow { background: none; padding: 0; color: var(--color-primary); font-weight: 700; }
.btn--arrow::after { content: '\2192'; margin-left: .6rem; transition: transform .25s ease; display: inline-block; }
.btn--arrow:hover { color: var(--color-accent); }
.btn--arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: var(--color-white);
	box-shadow: var(--shadow);
}
.site-header--transparent { background: transparent; box-shadow: none; }
.site-header--transparent.is-scrolled,
.site-header:not(.site-header--transparent) { position: fixed; background: var(--color-primary); box-shadow: var(--shadow); }
.site-header--transparent.is-scrolled { background: var(--color-primary); }
body:not(.has-transparent-header) { padding-top: 9.6rem; }
.site-header--transparent:not(.is-scrolled) { position: absolute; }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 9.6rem;
}
.site-header__logo img { max-height: 4.4rem; width: auto; }
.site-header__logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; color: var(--color-white); }
.site-header:not(.site-header--transparent) .site-header__logo-text,
.site-header.is-scrolled .site-header__logo-text { color: var(--color-white); }

.site-header__nav { display: flex; align-items: center; gap: 3.6rem; }
.primary-menu { display: flex; align-items: center; gap: 3.2rem; }
.primary-menu a {
	color: var(--color-white);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.6rem;
}
.site-header--transparent:not(.is-scrolled) .primary-menu a { color: var(--color-white); text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.primary-menu a:hover,
.primary-menu li.current-menu-item > a { color: var(--color-accent); }

.lang-switcher { display: flex; gap: 1rem; margin-left: 1rem; }
.lang-switcher__item a { color: var(--color-white); font-size: 1.3rem; font-weight: 700; opacity: .7; }
.lang-switcher__item.is-active a,
.lang-switcher__item a:hover { opacity: 1; color: var(--color-accent); }

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: .5rem;
	background: var(--color-accent);
	border: none;
	border-radius: 1rem;
	width: 5rem;
	height: 4rem;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.nav-toggle span { display: block; width: 2.4rem; height: 2px; background: var(--color-primary); transition: all .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 78vh; display: flex; }
.hero__slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	display: flex; align-items: flex-end;
	opacity: 0; visibility: hidden; transition: opacity .8s ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(5,75,110,.8) 0%, rgba(5,75,110,.25) 55%, rgba(5,75,110,.65) 100%);
}
.hero__content { position: relative; color: var(--color-white); padding: 16rem 0 8rem; max-width: 900px; }
.hero__content h1 { color: var(--color-white); }
.hero__subheading { font-size: 2rem; max-width: 620px; opacity: .95; }
.hero__actions { display: flex; align-items: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; z-index: 2; }
.hero__dot { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--color-white); background: transparent; cursor: pointer; }
.hero__dot.is-active { background: var(--color-accent); border-color: var(--color-accent); }
.hero__scrolldown { position: absolute; bottom: 2rem; right: 3rem; width: 3rem; height: 4.8rem; border: 2px solid rgba(255,255,255,.6); border-radius: 2rem; }
.hero__scrolldown::before {
	content: ''; position: absolute; top: .8rem; left: 50%; width: 4px; height: 8px;
	margin-left: -2px; background: var(--color-white); border-radius: 2px;
	animation: scrolldown 1.8s infinite;
}
@keyframes scrolldown { 0% { opacity: 1; top: .8rem; } 100% { opacity: 0; top: 2.2rem; } }

/* ==========================================================================
   Intro — solinoor.com renders this ("Introducing new technologies…") as
   a light-blue colour band with white text, curving into the next
   section via a wave divider, not a plain white block.
   ========================================================================== */
.intro { position: relative; background: var(--color-band); color: var(--color-white); overflow: hidden; padding-bottom: 14rem; }
.intro__inner { max-width: 900px; text-align: center; margin: 0 auto; position: relative; z-index: 1; }
.intro h2 { color: var(--color-white); }
.intro__text { color: rgba(255,255,255,.9); margin-bottom: 3rem; }
.intro::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 8rem;
	background-image: var(--wave-white); background-size: 100% 100%; background-repeat: no-repeat;
}

/* ==========================================================================
   Rich text (WYSIWYG output): entry-content, the homepage intro text and
   project content sections all render editor HTML, so lists/images need
   their own styling — the global reset above strips list markers for the
   nav/card UI, but real body copy still needs bullets, numbers and
   rounded images matching the site's card/button radius.
   ========================================================================== */
.entry-content ul, .entry-content ol,
.intro__text ul, .intro__text ol,
.project-section__text ul, .project-section__text ol {
	margin: 0 0 1.6rem;
	padding-left: 2rem;
}
.entry-content ul, .intro__text ul, .project-section__text ul { list-style: disc; }
.entry-content ol, .intro__text ol, .project-section__text ol { list-style: decimal; }
.entry-content li, .intro__text li, .project-section__text li { margin-bottom: .5rem; }
.entry-content a, .intro__text a, .project-section__text a { text-decoration: underline; }
.entry-content img, .intro__text img, .project-section__text img {
	border-radius: var(--radius);
	margin: 2rem 0;
}

/* ==========================================================================
   Cards grid (essence / services / page-builder cards)
   ========================================================================== */
.cards-grid {
	display: grid;
	gap: 3rem;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 5rem;
}
.cards-grid--1 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 3px 3px 12px rgba(0,0,0,.1);
	color: var(--color-text);
	height: 100%;
	transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 26px rgba(5,75,110,.18); }
.card__figure { position: relative; margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.card__figure img { width: 100%; height: 100%; object-fit: cover; }
.card__figure::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(145deg, rgba(5,75,110,.25) 0%, rgba(255,192,27,.25) 100%);
	opacity: 0; transition: opacity .3s ease;
}
.card:hover .card__figure::before { opacity: 1; }
.card__body { padding: 2.4rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--color-teal); }
.card:hover .card__body h3 { color: var(--color-accent); }
.card__body p { color: var(--color-muted); font-size: 1.6rem; margin-bottom: 0; }

/* ==========================================================================
   Projects grid + cards
   ========================================================================== */
.projects-preview { position: relative; padding-bottom: 14rem; }
.projects-preview::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5rem;
	background-image: var(--wave-accent); background-size: 100% 100%; background-repeat: no-repeat;
	opacity: .5; pointer-events: none;
}
.projects-grid { display: grid; gap: 3rem; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; }
.project-card {
	display: flex; flex-direction: column;
	background: var(--color-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 3px 3px 12px rgba(0,0,0,.1);
	color: var(--color-text);
	transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 14px 26px rgba(5,75,110,.18); }
.project-card__figure { position: relative; margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--color-border); }
.project-card__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-card__figure img { transform: scale(1.06); }
.project-card__tag {
	position: absolute; top: 1.4rem; left: 1.4rem;
	background: var(--color-accent); color: var(--color-primary);
	font-size: 1.2rem; font-weight: 700; padding: .5rem 1.2rem; border-radius: 2rem;
}
.project-card__body { padding: 2.4rem; }
.project-card__body h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--color-teal); }
.project-card:hover .project-card__body h3 { color: var(--color-accent); }
.project-card__body p { color: var(--color-muted); font-size: 1.6rem; }
.project-card__meta { display: flex; gap: 1.6rem; font-size: 1.4rem; font-weight: 700; color: var(--color-light-blue); margin-top: 1rem; }

.project-filters { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1rem; }
.project-filters__item {
	padding: 1rem 2rem; border-radius: 2rem; border: 2px solid var(--color-border);
	font-weight: 600; font-size: 1.4rem; color: var(--color-primary);
}
.project-filters__item:hover,
.project-filters__item.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

.pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 5rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 4.4rem; height: 4.4rem; border-radius: 50%;
	border: 2px solid var(--color-border); font-weight: 700;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
/* Plain pages get the same light-blue colour band + wave divider as the
   homepage intro (solinoor.com uses this for its breadcrumb/heading area
   on every ordinary content page — only pages with an actual photo get
   the dark image-overlay treatment in page-header--image below). */
.page-header { position: relative; padding: 6rem 0 9rem; background: var(--color-band); color: var(--color-white); overflow: hidden; }
.page-header--image { background-size: cover; background-position: center; padding: 18rem 0 8rem; overflow: visible; }
.page-header__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,75,110,.85), rgba(5,75,110,.55)); }
.page-header__content { position: relative; z-index: 1; }
.page-header h1 { color: var(--color-white); margin-bottom: 1rem; }
.page-header__intro { max-width: 700px; opacity: .9; }
.page-header::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 6rem;
	background-image: var(--wave-white); background-size: 100% 100%; background-repeat: no-repeat;
}
.page-header--image::after { display: none; }

/* ==========================================================================
   Project single
   ========================================================================== */
.project-hero { position: relative; min-height: 50vh; display: flex; align-items: flex-end; background-size: cover; background-position: center; background-color: var(--color-primary); color: var(--color-white); }
.project-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,75,110,.35), rgba(5,75,110,.85)); }
.project-hero__content { position: relative; padding: 14rem 0 5rem; }
.project-hero__breadcrumb a { color: var(--color-white); opacity: .8; font-size: 1.4rem; font-weight: 600; }
.project-hero h1 { color: var(--color-white); margin-bottom: .8rem; }
.project-hero__subtitle { font-size: 1.9rem; opacity: .9; }

.project-body__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 6rem; align-items: start; }
.project-section { margin: 4rem 0; }
.project-section__image { border-radius: var(--radius); margin-bottom: 2rem; }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin: 3rem 0; }
.project-gallery__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.project-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-gallery__item:hover img { transform: scale(1.08); }

.project-facts { background: #F5F9FF; border-radius: var(--radius); padding: 2.4rem; margin-bottom: 3rem; }
.project-facts__row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border); font-size: 1.5rem; }
.project-facts__row:last-child { border-bottom: none; }
.project-facts__row span { color: var(--color-muted); }
.project-body__more-title { margin-bottom: 2rem; }
.project-body__more { display: grid; gap: 2rem; }

/* ==========================================================================
   Page-builder blocks (page.php flexible content)
   ========================================================================== */
.block-text--center { text-align: center; }
.block-text-image__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.block-text-image--left .block-text-image__media { order: -1; }
.block-text-image__media img { border-radius: var(--radius); }
/* solinoor.com's CTA sections are plain centred text on white with a
   pill button — not a filled colour box. */
.block-cta__inner { max-width: 700px; text-align: center; margin: 0 auto; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.contact__form form { display: flex; flex-direction: column; gap: .6rem; }
.contact__form label { font-weight: 700; font-size: 1.4rem; margin-top: 1.2rem; }
.contact__form input, .contact__form textarea {
	font-family: var(--font-body); font-size: 1.6rem;
	padding: 1.4rem 1.6rem; border: 2px solid var(--color-border); border-radius: .8rem;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--color-accent); }
.contact__form button { align-self: flex-start; margin-top: 1.6rem; }
.form-notice { padding: 1.4rem 1.8rem; border-radius: .8rem; margin-bottom: 2rem; font-weight: 600; }
.form-notice--success { background: #e6f6ea; color: #1e7d3a; }
.form-notice--error { background: #fbe8e8; color: #b03434; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-footer-bg); color: var(--color-white); padding-top: 6rem; }
.site-footer a { color: var(--color-white); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer h4 { color: var(--color-white); font-size: 1.8rem; margin-bottom: 1.6rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; padding-bottom: 5rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.site-footer__logo img { max-height: 4rem; margin-bottom: 2rem; filter: brightness(0) invert(1); }
.site-footer__logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; margin-bottom: 1.6rem; }
.site-footer__address { opacity: .9; }
.footer-menu { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.6rem; }
.site-footer__col--certs { display: flex; flex-direction: column; gap: 1.6rem; align-items: flex-start; }
.site-footer__cert img { max-height: 6rem; background: var(--color-white); border-radius: .6rem; padding: .8rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 2.4rem 0; flex-wrap: wrap; gap: 1rem; font-size: 1.4rem; }
.site-footer__legal { display: flex; gap: 2rem; }

/* ==========================================================================
   Misc
   ========================================================================== */
.post-summary { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--color-border); }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
	.cards-grid, .cards-grid--3, .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.projects-grid { grid-template-columns: repeat(2, 1fr); }
	.project-body__grid { grid-template-columns: 1fr; }
	.contact__grid { grid-template-columns: 1fr; }
	.block-text-image__grid { grid-template-columns: 1fr; }
	.block-text-image--left .block-text-image__media { order: 0; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Switch to the burger menu well before the 7 nav items + language
   switcher start wrapping or overflowing the header on tablets/small
   laptops. */
@media (max-width: 1024px) {
	.site-header__nav {
		position: fixed; inset: 9.6rem 0 0 0; background: var(--color-primary);
		flex-direction: column; align-items: flex-start; padding: 3rem 2.4rem;
		transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
	}
	.site-header__nav.is-open { transform: translateX(0); }
	.primary-menu { flex-direction: column; align-items: flex-start; gap: 2rem; }
	.nav-toggle { display: inline-flex; }
	.lang-switcher { margin: 2rem 0 0; }
}

@media (max-width: 767px) {
	.container { padding: 0 2rem; }
	.cards-grid, .cards-grid--2, .cards-grid--3, .cards-grid--4 { grid-template-columns: 1fr; }
	.projects-grid { grid-template-columns: 1fr; }
	.project-gallery { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr; }
	.hero__actions { flex-direction: column; align-items: flex-start; }
}
