/*
Theme Name: ICY Astra Child
Description: Bewerkbare ICY-ontwerpbasis voor Astra, gebaseerd op Home.png. Versie met vervangbare beeldvlakken.
Author: Studio Daan en ED
Template: astra
Version: 0.6.16
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: icy-astra-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --icy-brand: #00adb0;
  --icy-dark: var(--ast-global-color-0);
  --icy-button: #007b80;
  --icy-deep: #164f50;
  --icy-knowledge-gradient: linear-gradient(to bottom, #2A9FA0, #237773);
  --icy-ink: #223d40;
  --icy-muted: #587174;
  --icy-pink: #bc297a;
  --icy-width: 1400px;
  --icy-gutter: clamp(20px, 5vw, 80px);
  --icy-radius: 18px;
  --icy-shadow: 0 3px 9px rgb(14 60 61 / 17%);
}

/* All design rules are namespaced. Astra and WooCommerce keep their own styles. */
.icy-shell { margin: 0; background: #fff; }
.icy-shell #page { position: relative; }
.icy-header, .icy-footer, .icy-homepage, .icy-inner { box-sizing: border-box; }
.icy-header *, .icy-footer *, .icy-homepage *, .icy-inner * { box-sizing: border-box; }
.icy-header a, .icy-footer a, .icy-homepage a { text-decoration: none; }
.icy-header a:focus-visible, .icy-header button:focus-visible,
.icy-footer a:focus-visible, .icy-homepage a:focus-visible {
  outline: 3px solid #172f32; outline-offset: 5px;
}
.icy-footer a:focus-visible { outline-color: #fff; }
.icy-homepage img { display: block; max-width: 100%; }
.icy-homepage p, .icy-homepage ul, .icy-homepage h1, .icy-homepage h2, .icy-homepage h3,
.icy-homepage figure, .icy-homepage .wp-block-group, .icy-homepage .wp-block-buttons { margin-block: 0; }
.icy-homepage h1, .icy-homepage h2, .icy-homepage h3 { font-family: inherit; letter-spacing: -.025em; }
.icy-homepage p, .icy-homepage li { line-height: 1.65; }
.icy-homepage .wp-block-group > * + * { margin-block-start: 0; }
.icy-homepage .icy-container, .icy-container { width: min(var(--icy-width), calc(100% - var(--icy-gutter) * 2)); margin-inline: auto; }
.icy-template .icy-site-content > .ast-container { max-width: none; width: 100%; padding: 0; display: block; }
.icy-template .site-content > .ast-container { max-width: none; width: 100%; padding: 0; display: block; }
.icy-template #primary.icy-main { float: none; width: 100%; margin: 0; padding: 0; border: 0; }
.icy-template .entry-content { margin: 0; padding: 0; }
.icy-template .entry-content > * { max-width: none; }
.icy-template .entry-content > .wp-block-group.icy-homepage { padding: 0 !important; }
.icy-homepage .wp-block-image, .icy-homepage .wp-block-group { max-width: none; }
.icy-skip { position: fixed; top: 12px; left: 12px; z-index: 100000; padding: 12px 20px; background: #fff; color: #173f41; transform: translateY(-160%); }
.icy-skip:focus { transform: none; }

/* Header: logo row plus the rounded white navigation from the supplied design. */
.icy-header { position: relative; z-index: 50; background: var(--icy-dark); padding-block: 24px 22px; }
.icy-home .icy-header { position: absolute; inset: 0 0 auto; background: linear-gradient(rgb(0 51 56 / 44%), transparent); }
.icy-header__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.icy-brand { display: inline-flex; align-items: center; color: #fff; gap: 12px; }
.icy-brand img { display: block; width: auto; max-width: 250px; max-height: 62px; }
.icy-brand__fallback { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: .2em; }
.icy-account { font-size: 13px; line-height: 1.4; color: #fff; border: 1px solid currentColor; border-radius: 100px; padding: 7px 18px; }
.icy-header a:hover { color: #fff; }
.icy-nav { border-radius: 9px; background: #fff; box-shadow: 0 2px 5px rgb(0 53 55 / 8%); }
.icy-nav[hidden] { display: none !important; }
.icy-nav ul { padding: 0; margin: 0; list-style: none; }
.icy-nav > ul { display: flex; justify-content: space-evenly; align-items: stretch; gap: 0; }
.icy-nav li { position: relative; }
.icy-nav a { display: block; padding: 11px 14px; color: var(--icy-dark); font-size: 14px; line-height: 1.4; }
.icy-nav a:hover, .icy-nav a:focus { color: var(--icy-dark); background: #e7f6f5; border-radius: 7px; }
.icy-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; width: 240px; padding: 8px; background: #fff; box-shadow: var(--icy-shadow); border-radius: 10px; }
.icy-nav > ul > li:last-child .sub-menu { left: auto; right: 0; }
.icy-nav li:hover > .sub-menu, .icy-nav li:focus-within > .sub-menu { display: block; }
.icy-menu-toggle { display: none; align-items: center; gap: 8px; background: #fff; color: var(--icy-dark); border: 0; padding: 10px 15px; border-radius: 8px; font: inherit; cursor: pointer; }
.icy-menu-toggle svg { width: 22px; height: 22px; }
.icy-menu-toggle:hover, .icy-menu-toggle:focus { background: #e7f6f5; color: var(--icy-dark); }

/* Astra Header Builder integration. Configure the rows and elements in
   Appearance > Customize > Header; shared styles apply on all pages, with an overlay only on
   the ICY homepage. Header Builder remains the source of the markup. */
.site-header { position: relative; z-index: 50; background: var(--icy-brand); }
.icy-home .site-header { position: absolute; inset: 0 0 auto; z-index: 50; width: 100%; background: transparent; }
.site-header .ast-primary-header-bar,
.site-header .ast-above-header-bar,
.site-header .ast-below-header-bar { border: 0; background: transparent; }
.site-header .ast-primary-header-bar { padding-block: 20px 16px; }
.site-header .ast-primary-header-bar .ast-builder-grid-row-container { width: min(var(--icy-width), calc(100% - var(--icy-gutter) * 2)); max-width: none; margin-inline: auto; padding-inline: 0; }
.site-header .ast-primary-header-bar .ast-builder-grid-row { min-height: 62px; }
.site-header .site-logo-img { max-height: 62px; width: auto; }
.site-header .ast-header-html-1,
.site-header .ast-header-html-1 a { color: #fff; font-size: 15px; }
.site-header .ast-header-html-1 a:hover { color: #fff; }
.site-header .ast-header-button-1 .ast-custom-button { min-width: 200px; padding: 10px 22px; border: 1px solid #fff; border-radius: 999px; background: transparent; color: #fff; box-shadow: none; font-size: 15px; line-height: 1.35; }
.site-header .ast-header-button-1 .ast-custom-button:hover,
.site-header .ast-header-button-1 .ast-builder-button-wrap a:hover { background: #fff; color: var(--icy-dark); }
.site-header .ast-below-header-bar { padding-block: 0 18px; }
.site-header .ast-below-header-bar .ast-builder-grid-row-container { width: min(var(--icy-width), calc(100% - var(--icy-gutter) * 2)); max-width: none; margin-inline: auto; padding-inline: 8px; border-radius: 10px; background: #fff; box-shadow: 0 2px 5px rgb(0 53 55 / 10%); }
.site-header .ast-below-header-bar .ast-builder-grid-row { min-height: 39.6px; }
.site-header .ast-below-header-bar .main-header-menu { width: 100%; justify-content: space-evenly; }
.site-header .ast-below-header-bar .main-header-menu > .menu-item > .menu-link { padding: 9px 19px; color: var(--icy-dark); font-size: 16px; line-height: 1.35; }
.site-header .ast-below-header-bar .main-header-menu > .menu-item > .menu-link:hover,
.site-header .ast-below-header-bar .main-header-menu > .menu-item.current-menu-item > .menu-link { color: var(--icy-dark); background: #e7f6f5; border-radius: 7px; }
.site-header .ast-below-header-bar .sub-menu { border: 0; border-radius: 9px; box-shadow: var(--icy-shadow); }
.site-header .ast-below-header-bar .sub-menu .menu-link { color: var(--icy-dark); }
.site-header .ast-below-header-bar .ast-header-search { color: var(--icy-dark); }
.site-header .ast-mobile-header-wrap,
.site-header .ast-mobile-header-content { background: transparent; border: 0; }
.site-header .ast-mobile-header-content { background: #fff; }
.site-header .ast-mobile-header-wrap .ast-builder-grid-row-container { width: calc(100% - var(--icy-gutter) * 2); margin-inline: auto; }
.site-header .ast-mobile-header-wrap .main-header-menu .menu-link { color: var(--icy-dark); }
#masthead:not(.icy-is-sticky) .ast-mobile-header-wrap .menu-toggle { color: #fff; border-color: #fff; background: transparent; }
#masthead .ast-mobile-header-wrap .menu-toggle .ast-mobile-svg { fill: currentColor; }

/* Homepage. Images are regular editable WordPress image blocks. */
.icy-homepage { font-size: 16px; line-height: 1.6; }
.icy-homepage .icy-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 690px; padding: 180px 0 75px; background: var(--icy-brand); overflow: hidden; }
.icy-homepage .icy-hero-media { position: absolute; z-index: -1; inset: 0 27% 0 0; margin: 0; overflow: hidden; border-radius: 0 40% 43% 0 / 0 65% 65% 0; }
.icy-homepage .icy-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.icy-homepage .icy-hero__inner { display: flex; justify-content: flex-end; align-items: center; }
.icy-homepage .icy-hero-card { width: min(480px, 100%); padding: 32px; border-radius: var(--icy-radius); background: rgb(255 255 255 / 96%); box-shadow: 3px 4px 8px rgb(0 46 47 / 24%); }
.icy-homepage .icy-hero-card h1 { color: var(--icy-dark); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.18; font-weight: 700; margin-bottom: 22px; }
.icy-homepage .icy-checks { list-style: none; padding: 0; margin: 0 0 24px; }
.icy-homepage .icy-checks li { position: relative; padding-left: 24px; margin: 7px 0; font-size: 15px; }
.icy-homepage .icy-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--icy-button); font-weight: 700; }
.icy-homepage .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.icy-homepage .wp-block-button { margin: 0; }
.icy-homepage .wp-block-button__link, .icy-homepage .icy-link-button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 25px; border-radius: 9px; background: var(--icy-button); color: #fff; font-size: 15px; line-height: 1.4; font-weight: 500; text-decoration: none; border: 0; box-shadow: none; transition: background .15s ease; }
.icy-homepage .wp-block-button__link:hover, .icy-homepage .icy-link-button:hover { background: #005b61; color: #fff; }
.icy-homepage .icy-section { padding-block: 65px 95px; }
.icy-homepage .icy-section-title { color: var(--icy-dark); font-size: clamp(25px, 2.3vw, 34px); line-height: 1.25; font-weight: 400; text-align: center; margin-bottom: 46px; }
.icy-sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.icy-sector-card { --icy-sector: #42894b; display: flex; flex-direction: column; min-width: 0; border: 1px solid #dce6e5; border-top: 11px solid var(--icy-sector); border-radius: var(--icy-radius); overflow: hidden; background: #fff; box-shadow: var(--icy-shadow); }
.icy-sector--holiday { --icy-sector: #aa9500; }
.icy-sector--marina { --icy-sector: #005795; }
.icy-sector--staff { --icy-sector: #f57900; }
.icy-sector--student { --icy-sector: #8424c4; }
.icy-sector--business { --icy-sector: #939393; }
.icy-sector-photo { width: 100%; margin: 0; }
.icy-sector-photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.icy-sector-body { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 23px 26px 22px; }
.icy-sector-body h3 { font-size: 21px; line-height: 1.25; color: var(--icy-dark); font-weight: 500; }
.icy-sector-body ul { padding-left: 18px; margin: 0 0 10px; font-size: 14px; }
.icy-sector-body .wp-block-buttons { margin-top: auto; justify-content: center; }
.icy-homepage .icy-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--icy-brand); color: #073f42; }
.icy-homepage .icy-feature-media { height: 100%; min-height: 480px; overflow: hidden; border-radius: 0 9999px 9999px 0; margin: 0; }
.icy-homepage .icy-feature-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.icy-homepage .icy-feature-copy { width: min(580px, 100%); padding: 78px 65px; align-self: center; }
.icy-homepage .icy-feature-copy h2 { color: #073f42; font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; line-height: 1.2; margin-bottom: 30px; }
.icy-homepage .icy-feature-copy p { margin-bottom: 30px; font-size: 16px; }
.icy-homepage .icy-feature-copy .wp-block-button__link { background: #fff; color: var(--icy-dark); }
.icy-homepage .icy-feature-copy .wp-block-button__link:hover { background: #e8ffff; }
.icy-homepage .icy-references { padding-block: 65px 80px; }
.icy-homepage .icy-logo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-bottom: 0; }
.icy-homepage .icy-logo-grid figure { margin: 0; border: 1px solid #dfe7e6; border-radius: 3px; padding: 10px; }
.icy-homepage .icy-logo-grid img { width: 100%; aspect-ratio: 1.6; object-fit: contain; }
.icy-homepage .icy-references .wp-block-buttons { justify-content: center; margin-block-start: 48px; }
.icy-homepage .icy-references .wp-block-button__link { background: var(--icy-pink); border-radius: 100px; }
.icy-homepage .icy-references .wp-block-button__link:hover { background: #93215f; }
.icy-homepage .icy-knowledge { padding-block: 55px 72px; background: var(--icy-knowledge-gradient); color: #fff; }
.icy-homepage .icy-knowledge .icy-section-title { color: #fff; }
.icy-homepage .icy-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; padding: 0; margin: 0; list-style: none; }
.icy-homepage .icy-post-grid > li { min-width: 0; margin: 0; list-style: none; }
.icy-homepage .wp-block-post-featured-image { margin: 0 0 24px; }
.icy-homepage .wp-block-post-featured-image img { width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: 13px; }
.icy-homepage .wp-block-post-title { font-size: 25px; font-weight: 400; line-height: 1.2; margin-bottom: 17px; color: inherit; }
.icy-homepage .wp-block-post-title a { color: inherit; }
.icy-homepage .wp-block-post-title a:hover { text-decoration: underline; }
.icy-homepage .wp-block-post-excerpt { font-size: 15px; }
.icy-homepage .wp-block-post-excerpt p { margin: 0; }
.wp-block-group.icy-contact { position: relative; isolation: isolate; padding: 75px 0; overflow: hidden; text-align: center; box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }
.icy-contact *, .icy-contact *::before, .icy-contact *::after { box-sizing: inherit; }
.icy-contact :where(figure, .wp-block-group, .wp-block-buttons) { margin-block: 0; }
.icy-contact .icy-contact-media { position: absolute; inset: 0; z-index: -2; width: 100%; max-width: none; height: 100%; margin: 0; border-radius: 0 !important; }
.icy-contact .icy-contact-media img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.icy-contact::before { content: ''; position: absolute; inset: 0; background: rgb(255 255 255 / 87%); z-index: -1; }
.icy-contact h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.3; font-weight: 600; color: var(--icy-dark); margin: 0 0 30px; font-family: inherit; letter-spacing: -.025em; }
.icy-contact .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.icy-contact .wp-block-button__link { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 25px; border: 0; border-radius: 100px; background: var(--icy-button); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.4; text-decoration: none; box-shadow: none; }
.icy-contact .wp-block-button__link:hover { background: #005b61; color: #fff; }
.icy-contact a:focus-visible { outline: 3px solid #172f32; outline-offset: 5px; }
.icy-homepage .icy-news { padding-block: 50px 80px; color: #073f42; background: linear-gradient(#fff 0 40%, var(--icy-brand) 40% 100%); }
.icy-homepage .icy-news .icy-section-title { color: var(--icy-dark); }
.icy-homepage .wp-block-query-no-results { padding: 24px; border: 1px solid currentColor; border-radius: 12px; }
.icy-inner { width: min(var(--icy-width), calc(100% - var(--icy-gutter) * 2)); margin: 60px auto 90px; }
.icy-inner > h1 { color: var(--icy-dark); font-size: clamp(32px, 4vw, 52px); margin: 0 0 35px; }
.icy-homepage [id] { scroll-margin-top: 24px; }

/* Footer. Content comes from menus and the WordPress Customizer. */
.icy-footer { padding-block: 65px 28px; background: #060c0d; color: #fff; font-size: 14px; line-height: 1.6; }
.icy-footer__grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.1fr; gap: 40px; }
.icy-footer h2 { color: #fff; font-family: inherit; font-size: 18px; font-weight: 600; margin: 0 0 22px; }
.icy-footer p { margin: 0 0 15px; }
.icy-footer ul { margin: 0; padding: 0; list-style: none; }
.icy-footer a { color: #00B1B0; }
.icy-footer a:hover { color: #00B1B0; text-decoration: underline; }
.icy-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #283133; color: #fff; font-size: 12px; }

/* Native Astra Footer Builder: shared by all templates and ordinary pages. */
.icy-footer-band { display: block; width: 100%; height: 50px; min-height: 50px; background: var(--icy-brand); }
#colophon.site-footer,
#colophon.site-footer :is(.site-above-footer-wrap, .site-primary-footer-wrap, .site-below-footer-wrap) { background-color: #060c0d; color: #fff; }
#colophon.site-footer :where(.widget, .widget-title, h1, h2, h3, h4, h5, h6, p, li, address, small, .ast-footer-copyright, .ast-builder-html-element, .site-footer-section) { color: #fff; }
#colophon.site-footer a,
#colophon.site-footer a :where(span, strong, em),
#colophon.site-footer .menu-link { color: #00B1B0; }
#colophon.site-footer a:hover,
#colophon.site-footer a:focus-visible { color: #00B1B0; text-decoration: underline; }
#colophon.site-footer a:focus-visible { outline: 2px solid #00B1B0; outline-offset: 4px; }

@media (min-width: 1800px) { .icy-homepage .icy-hero { min-height: 780px; } }
@media (max-width: 1050px) {
  .icy-sector-grid { gap: 28px; }
  .icy-sector-body { padding: 20px; }
  .icy-homepage .icy-feature-copy { padding: 50px 35px; }
  .icy-homepage .icy-post-grid { gap: 28px; }
  .icy-footer__grid { gap: 28px; }
}
@media (max-width: 782px) {
  :root { --icy-gutter: 24px; }
  .icy-header { padding-block: 18px; }
  .icy-header__top { margin-bottom: 0; flex-wrap: wrap; gap: 16px; }
  .icy-brand img { max-width: 175px; max-height: 45px; }
  .icy-brand__fallback { font-size: 29px; }
  .icy-account { margin-left: auto; padding: 6px 12px; font-size: 12px; }
  .icy-js .icy-menu-toggle { display: inline-flex; }
  .icy-nav { margin-top: 16px; padding: 8px; max-height: 65vh; overflow: auto; }
  .icy-nav > ul { display: block; }
  .icy-nav a { padding: 12px; }
  .icy-nav .sub-menu { display: block; position: static; width: auto; padding: 0 0 0 16px; border: 0; box-shadow: none; }
  .icy-nav .sub-menu a { padding-block: 8px; }
  .icy-homepage .icy-hero { min-height: 660px; padding: 350px 0 40px; }
  .icy-homepage .icy-hero-media { inset: 0 0 180px; border-radius: 0 0 45% 0 / 0 0 20% 0; }
  .icy-homepage .icy-hero__inner { justify-content: center; }
  .icy-homepage .icy-hero-card { width: min(480px, 100%); padding: 27px; }
  .icy-homepage .icy-section { padding-block: 45px 60px; }
  .icy-homepage .icy-section-title { margin-bottom: 30px; }
  .icy-sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .icy-homepage .icy-feature { grid-template-columns: 1fr; }
  .icy-homepage .icy-feature-media { min-height: 0; height: 320px; width: 94%; border-radius: 0 9999px 9999px 0; }
  .icy-homepage .icy-feature-copy { width: 100%; padding: 38px var(--icy-gutter) 45px; }
  .icy-homepage .icy-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
  .icy-homepage .icy-references { padding-block: 45px 55px; }
  .icy-homepage .icy-references .wp-block-buttons { margin-block-start: 32px; }
  .icy-homepage .icy-post-grid { grid-template-columns: 1fr; gap: 40px; }
  .icy-homepage .wp-block-post-featured-image img { aspect-ratio: 1.75; }
  .wp-block-group.icy-contact { padding-block: 55px; }
  .icy-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
}
@media (max-width: 480px) {
  :root { --icy-gutter: 20px; }
  .icy-header__top { gap: 10px; }
  .icy-account { order: 3; flex-basis: 100%; text-align: center; margin-left: 0; }
  .icy-menu-toggle { margin-left: auto; }
  .icy-sector-grid { grid-template-columns: 1fr; }
  .icy-sector-photo img { aspect-ratio: 3 / 1.2; }
  .icy-sector-body { padding: 24px; }
  .icy-homepage .icy-hero { min-height: 650px; padding-top: 310px; }
  .icy-homepage .icy-hero-card h1 { font-size: clamp(22px, 6vw, 26px); }
  .icy-homepage .icy-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icy-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .icy-homepage *, .icy-header * { transition: none !important; scroll-behavior: auto !important; } }


/* Donker verloop bovenaan de hero, over foto én turquoise vlak */
.icy-hero::before,
.icy-system-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 260px;
    background: linear-gradient(
        to bottom,
        rgba(0, 45, 48, 0.35) 0%,
        rgba(0, 45, 48, 0.15) 45%,
        rgba(0, 45, 48, 0) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Hero-inhoud boven het verloop houden */
.icy-hero__inner,
.icy-system-hero-inner {
    position: relative;
    z-index: 1;
}


/* Editable homepage slideshow. The first image also works without JavaScript. */
.icy-homepage .icy-hero-media.icy-hero-slideshow { display: block; }
.icy-homepage .icy-hero-slideshow .wp-block-image {
    position: absolute; inset: 0; width: 100%; height: 100%;
    padding: 0; margin: 0; opacity: 0; overflow: hidden;
    transition: opacity 1.2s ease-in-out;
}
.icy-homepage .icy-hero-slideshow:not(.is-ready) .wp-block-image:first-child,
.icy-homepage .icy-hero-slideshow .wp-block-image.is-active { opacity: 1; z-index: 2; }
.icy-homepage .icy-hero-slideshow .wp-block-image.is-previous { opacity: 1; z-index: 1; }
.icy-homepage .icy-hero-slideshow .wp-block-image img {
    display: block; width: 100%; height: 100%; object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
    .icy-homepage .icy-hero-slideshow .wp-block-image { transition: none; }
}

/* Compact navigation with more readable menu labels. */
.site-header .main-header-menu > .menu-item > .menu-link,
.site-header .main-header-menu > .menu-item > details > summary.menu-link { font-size: 16px; line-height: 1.35; min-height: 39.6px; padding: 9px 19px; }

/* Ordinary content photos only; shared with the block editor via editor styles. */
:where(.entry-content, .editor-styles-wrapper)
:is(.wp-block-image, .wp-block-gallery, .wp-block-media-text__media, .wp-caption) img:where(:not(
    .icy-homepage *, .icy-system-section *, .icy-contact *, .woocommerce *,
    .icy-logo-grid *, .wp-block-site-logo *, .wp-block-social-links *,
    .is-style-icy-square-image *, .icy-square-image *, .icy-square-image,
    .is-style-rounded *, .icon *, .icon, .logo *, .logo, .custom-logo, .avatar,
    [src$=".svg" i], [src*=".svg?" i], [src^="data:image/svg+xml" i]
)) { border-radius: 16px; }

/* Compact WPML chooser in Astra HTML1. */
#masthead .icy-lang-switcher { display: inline-flex; color: #fff; font-size: 15px; line-height: 1.4; }
#masthead.icy-is-sticky .icy-lang-switcher { color: var(--ast-global-color-0); }
.icy-lang-switcher details { position: relative; }
.icy-lang-switcher summary { display: flex; align-items: center; gap: 9px; padding: 8px 4px; cursor: pointer; list-style: none; font-weight: 600; }
.icy-lang-switcher summary::marker { content: ''; }
.icy-lang-switcher summary::-webkit-details-marker { display: none; }
.icy-lang-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.icy-lang-switcher details[open] .icy-lang-chevron { transform: translateY(2px) rotate(225deg); }
#masthead .icy-lang-switcher .icy-lang-options { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 110; display: flex; align-items: center; width: max-content; margin: 0; padding: 8px 10px; list-style: none; border: 1px solid #d4e6e4; border-radius: 8px; background: #fff; color: var(--ast-global-color-0); box-shadow: 0 4px 16px #00383b24; }
.icy-lang-options li { display: flex; align-items: center; margin: 0; padding: 0; }
.icy-lang-options li + li::before { content: '|'; padding-inline: 6px; color: var(--icy-brand); }
#masthead .icy-lang-switcher .icy-lang-options a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 10px; color: var(--ast-global-color-0); font-weight: 600; text-decoration: none; border-radius: 4px; }
#masthead .icy-lang-switcher .icy-lang-options a:hover { background: #e7f6f5; }
.icy-lang-switcher :is(summary, a):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Compact search list: only a small, undistorted thumbnail and a title. */
body.search #content .icy-search-results { width: 100%; max-width: none; margin-block: 40px; padding: 0; border: 0; }
.icy-search-heading h1 { margin: 0 0 28px; color: var(--icy-dark); font-size: clamp(25px, 3vw, 34px); }
#content .icy-search-list { list-style: none; margin: 0; padding: 0; }
.icy-search-item { margin: 0; padding: 0; border-bottom: 1px solid #d4e6e4; }
#content .icy-search-link { display: flex; align-items: center; gap: 20px; min-height: 100px; padding: 14px 8px; color: var(--icy-dark); text-decoration: none; }
.icy-search-thumbnail { display: flex; align-items: center; justify-content: center; flex: 0 0 80px; width: 80px; height: 80px; overflow: hidden; }
#content .icy-search-thumbnail img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.icy-search-title { font-size: 19px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
#content .icy-search-link:hover { background: #f4f8f8; }
#content .icy-search-link:focus-visible { outline: 2px solid var(--icy-dark); outline-offset: -2px; }
@media (max-width: 544px) {
  #content .icy-search-link { gap: 14px; min-height: 80px; padding-block: 12px; }
  .icy-search-thumbnail { flex-basis: 60px; width: 60px; height: 60px; }
  .icy-search-title { font-size: 17px; }
}

/* Readable text across the shared green gradient sections. */
#content :is(.icy-knowledge, .icy-system-revenue, .icy-product-advice-band) :is(h1, h2, h3, h4, p, li) { color: #fff; }
#content .icy-knowledge .wp-block-post-title a,
#content .icy-knowledge .wp-block-post-title a:hover,
#content .icy-knowledge .wp-block-post-title a:focus,
#content .icy-knowledge .wp-block-post-title a:visited { color: #fff; text-decoration: none; }

/* White article text on the green part of Actueel; section heading stays readable on white. */
#content .icy-news .icy-post-grid :is(h2, h3, h4, p, li) { color: #fff; }
#content .icy-news .wp-block-post-title a,
#content .icy-news .wp-block-post-title a:hover,
#content .icy-news .wp-block-post-title a:focus,
#content .icy-news .wp-block-post-title a:visited { color: #fff; text-decoration: none; }

/* Let desktop dropdowns grow with their longest label, including the sticky header. */
body:not(.ast-header-break-point) #masthead .main-header-menu .sub-menu {
  width: max-content;
  min-width: 320px;
  max-width: calc(100vw - 40px);
}
body:not(.ast-header-break-point) #masthead .main-header-menu .sub-menu .menu-link {
  white-space: nowrap;
  padding-inline: 20px;
}
@media (min-width: 922px) {
  .icy-nav .sub-menu { width: max-content; min-width: 320px; max-width: calc(100vw - 40px); }
  .icy-nav .sub-menu a { white-space: nowrap; }
}

/* Astra and block-level image settings must not round full-bleed homepage photos. */
.icy-homepage .wp-block-image img { border-radius: 0 !important; }
.icy-homepage .wp-block-image:not(.icy-hero-media):not(.icy-feature-media) { border-radius: 0 !important; }

/* Sector cards are reusable independently of the homepage wrapper. */
.wp-block-group.icy-sectors { padding: 65px 0 95px; margin-block: 0; }
.icy-sectors .icy-section-title { color: var(--icy-dark); font-size: clamp(25px, 2.3vw, 34px); line-height: 1.25; font-weight: 400; text-align: center; margin: 0 0 46px; }
.icy-sector-grid, .icy-sector-card { box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; color: var(--icy-ink); }
.icy-sector-grid *, .icy-sector-card * { box-sizing: inherit; }
.icy-sector-grid, .icy-sector-card, .icy-sector-body { margin-block: 0; }
.icy-sector-grid > *, .icy-sector-card > *, .icy-sector-body > * { max-width: none; }
.icy-sector-body :is(h3, li) { margin-block: 0; }
.icy-sector-body h3 { font-family: inherit; letter-spacing: -.025em; }
.icy-sector-body li { line-height: 1.65; }
.icy-sector-photo, .icy-sector-photo img { display: block; border-radius: 0 !important; }
.icy-sector-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.icy-sector-body .wp-block-button { margin: 0; }
.icy-sector-body .wp-block-button__link { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 25px; border-radius: 9px; background: var(--icy-button); color: #fff; font-size: 15px; line-height: 1.4; font-weight: 500; text-decoration: none; border: 0; box-shadow: none; transition: background .15s ease; }
.icy-sector-body .wp-block-button__link:hover { background: #005b61; color: #fff; }
.icy-sector-card a:focus-visible { outline: 3px solid #172f32; outline-offset: 3px; }
@media (max-width: 782px) {
  .wp-block-group.icy-sectors { padding-block: 45px 60px; }
  .icy-sectors .icy-section-title { margin-bottom: 30px; }
}
.icy-sector-card .icy-sector-photo { margin: 0; width: 100%; }

/* One H2 weight across Astra, WooCommerce, reusable blocks and the editor. */
h2 { font-weight: 600 !important; }

/* Bring ordinary posts and their sidebar closer to the header. */
body.single-post.ast-separate-container #primary,
body.single-post.ast-separate-container #secondary { margin-block: 32px; }
@media (max-width: 921px) {
  body.single-post.ast-separate-container #primary,
  body.single-post.ast-separate-container #secondary { margin-block: 24px; }
}

/* A shared light-blue title band for ordinary pages without an existing hero. */
.icy-page-banner { padding-block: 54px; background: #edf8f8; }
.icy-page-banner .entry-title { margin: 0; color: var(--ast-global-color-0); font-size: clamp(36px, 4vw, 58px); line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
body.icy-has-page-banner #primary,
body.icy-has-page-banner #secondary { margin-block: 32px; }
@media (max-width: 782px) {
    .icy-page-banner { padding-block: 36px; }
    body.icy-has-page-banner #primary,
    body.icy-has-page-banner #secondary { margin-block: 24px; }
}
