/*
Theme Name: ABEAM
Description: Theme of abeamcrew.com. Look only; vacancies, team, testimonials and forms are in the mu-plugins.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: abeam
*/

/* Fonts: served from the site, not from Google (no visitor data to third parties). */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/montserrat-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('assets/fonts/montserrat-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('assets/fonts/open-sans-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('assets/fonts/open-sans-italic.woff2') format('woff2'); }

:root {
    --dark: #2b2d42;
    --red: #d80032;
    --red-light: #ef233c;
    --grey: #8d98ad;
    --light: #edf2f4;
    --text: #666;
    --white: #fff;
    --heading: 'Montserrat', Helvetica, Arial, sans-serif;
    --body: 'Open Sans', Arial, sans-serif;
    --wrap: min(80%, 1280px);
    --section: clamp(40px, 4vw, 64px);
    --header: 74px;
    --shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font: 15px/1.7 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grey); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--dark); line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 400; }
p, ul, ol, dl { margin: 0 0 1em; }
[hidden] { display: none !important; }
#cookie-notice #cn-more-info { white-space: nowrap; } /* keeps "Cookie Policy" in the banner on one line */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 8px 16px; background: var(--white); color: var(--dark); }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Buttons as on the Divi site */
.button, .wp-block-button__link, input[type=submit] {
    display: inline-block; padding: .3em 1em; border: 2px solid var(--light); border-radius: 16px;
    background: var(--red); color: var(--light); font: 700 16px/1.7 var(--heading);
    box-shadow: 6px 6px 18px rgba(0, 0, 0, .3); cursor: pointer; transition: background .2s, transform .2s;
}
.button:hover, .wp-block-button__link:hover, input[type=submit]:hover { background: var(--red-light); color: var(--white); transform: translateY(-1px); }
p:has(> .button) { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 1.5em; }

/* Header: sticky and white; on the home page fixed and transparent over the hero, and on scroll it shrinks
   while the white background fades in (sizes and colours as on the Divi home page). */
.site-header { position: sticky; top: 0; z-index: 50; background-color: var(--white); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); transition: background-color .5s ease, box-shadow .5s ease; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* Phones: the admin bar scrolls away; site.js keeps the fixed home header right under it. */
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header); transition: min-height .5s ease, padding .5s ease; }
.site-logo img { width: auto; height: 50px; transition: height .5s ease; }
.site-nav { margin-left: auto; display: flex; align-items: center; }
.site-nav .menu { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu a, .site-search__button { color: var(--dark); transition: color .4s ease; }
.site-nav .menu a { font: 700 14px/1 var(--body); }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--red); }

.has-hero .site-header { position: fixed; inset: 0 0 auto; background-color: rgba(255, 255, 255, 0); box-shadow: none; }
.has-hero .site-header.is-scrolled, .has-hero .site-header.is-open { background-color: var(--white); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.has-hero .site-header__inner { min-height: 114px; }
.has-hero .site-logo img { height: 100px; }
.has-hero .is-scrolled .site-header__inner { min-height: 59px; }
.has-hero .is-scrolled .site-logo img { height: 45px; }
.has-hero .site-nav .menu a, .has-hero .site-search__button { color: var(--grey); }
.has-hero .site-nav .current-menu-item > a { color: var(--dark); }
.has-hero .site-nav .menu a:hover { color: var(--red); }

.site-search { display: flex; align-items: center; }
.site-search input { width: 0; padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; font: 14px var(--body); transition: width .3s; }
.site-search:focus-within input { width: 160px; border-bottom-color: var(--grey); background: var(--white); }
.site-search__button { padding: 4px; border: 0; background: none; cursor: pointer; }
.nav-toggle { display: none; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2.5px; margin: auto; border-radius: 1px; background: var(--grey); position: relative; transition: transform .3s; content: ''; }
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.is-open .nav-toggle__bar { background: transparent; }
.is-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199px) {
    .site-header__inner { gap: 16px; }
    .nav-toggle { display: block; }
    .site-search { margin-left: auto; }
    /* Slides open: height and opacity are animated (display cannot be). */
    .site-nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; max-height: 0; overflow: hidden; padding: 0 10%;
        background: var(--white); box-shadow: 0 8px 16px rgba(0, 0, 0, .1); border-top: 0 solid var(--red); opacity: 0; visibility: hidden;
        transition: max-height .45s ease, padding .45s ease, opacity .3s ease, visibility 0s linear .45s, border-top-width .45s ease; }
    .is-open .site-nav { max-height: calc(100svh - var(--header)); overflow-y: auto; padding: 8px 10% 24px; border-top-width: 3px; opacity: 1; visibility: visible;
        transition: max-height .45s ease, padding .45s ease, opacity .3s ease, visibility 0s, border-top-width .45s ease; }
    .site-nav .menu { flex-direction: column; gap: 0; }
    .site-nav .menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--light); }
}
@media (max-width: 980px) {
    /* 5px more room above the logo until the header shrinks, so it does not touch the top of the screen */
    .has-hero .site-header__inner { min-height: 69px; padding-top: 5px; }
    .has-hero .site-logo img { height: 60px; }
    .has-hero .is-scrolled .site-header__inner { min-height: 36px; padding-top: 0; }
    .has-hero .is-scrolled .site-logo img { height: 27px; }
}

/* Page head: picture with the title box overlapping its bottom edge */
.page-banner { height: clamp(180px, 22vw, 300px); background: var(--grey) center / cover no-repeat; }
.page-title { position: relative; margin-top: -70px; padding: 2vw 2vw 1vw; background: var(--white); }
.page-title h1 { margin: 0; font-size: clamp(28px, 3.2vw, 46px); font-weight: 300; }

/* Sections and their wave decorations */
.section { position: relative; padding-block: var(--section); }
.section--first { padding-top: calc(var(--section) * .6); }
.section--tight { padding-top: 0; }
.section--dark { background-color: var(--dark); color: var(--light); }
.section--dark h2 { color: var(--white); }
.section--dark a:not(.button) { color: var(--white); }
/* Waves sit behind the content (isolation keeps them above the section's own background). */
.waves-right, .waves-left { isolation: isolate; }
.waves-right::before, .waves-left::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url('assets/img/bg_line_mask1.png') right bottom / min(560px, 42vw) auto no-repeat;
}
.waves-left::before { background-image: url('assets/img/bg_line_mask3.png'); background-position: left bottom; }
.section--dark::before { opacity: .45; }
.waves-above-footer { height: clamp(80px, 10vw, 160px); background: url('assets/img/bg_line_mask3.png') left bottom / min(560px, 42vw) auto no-repeat; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%; align-items: start; }
.split--reverse .split__media { order: 2; }
.split--single { grid-template-columns: 1fr; max-width: 820px; }
.split--form { grid-template-columns: 1fr 1.1fr; }
.split--intro { grid-template-columns: 1fr 1.6fr; margin-bottom: 40px; }
.split__media img { width: 100%; border-radius: 2px; }

.prose > :last-child { margin-bottom: 0; }
.prose--narrow { max-width: 900px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { color: var(--red); font-weight: 500; margin-top: 1.2em; }
.prose a { color: var(--grey); text-decoration: underline; text-underline-offset: 2px; }
.prose a.button { text-decoration: none; color: var(--white); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 14px; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid #dde3e8; text-align: left; vertical-align: top; }
.prose th { background: var(--light); color: var(--dark); }
.prose figure { margin: 0 0 1.5em; overflow-x: auto; }
.prose ul { padding-left: 1.3em; }
.prose .red-square { margin: 2rem 0; padding: 1rem 1.5rem; background: var(--red); color: var(--white); font: 1.05rem/1.6 var(--heading); }
.prose .red-square h3, .prose .red-square h4 { color: var(--white); }
.prose .pullqu { margin: 2em 0; text-align: center; font: italic 300 1.6rem/1.5 var(--heading); }

@media (max-width: 980px) {
    .split, .split--form { grid-template-columns: 1fr; gap: 32px; }
    .split--reverse .split__media { order: 0; }
}

/* Home: hero */
/* Full screen; text placed from the top as on the Divi home page (heading at 255px on a 1440px screen, 140px on phones) */
.hero { min-height: 100vh; min-height: 100svh; padding: calc(130px + 8.7vw) 0 80px; background: var(--dark) center / cover no-repeat; color: var(--white); }
.hero__text { width: 47.2%; }
.hero h1 { margin: 0 0 .5em; padding-bottom: 10px; color: var(--white); font-size: 65px; font-weight: 500; line-height: 1.3; }
.hero h1 span { font-weight: 100 !important; }
.hero p { margin: 0; font: 300 20px/1.19 var(--heading); color: var(--white) !important; }
.hero p span { color: inherit !important; }
.hero p:has(> .button) { margin-top: 99px; }
@media (max-width: 980px) {
    .hero { padding-top: 135px; }
    .hero__text { width: auto; }
    .hero p:has(> .button) { margin-top: 89px; } /* buttons 10px higher: off the bottom edge on tall phones */
}

/* Home: our team — one row on desktop, photo left and text right */
.team-row { display: grid; gap: 24px; align-items: start; }
@media (min-width: 981px) {
    .team-row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
/* Photo left; name and role, then contacts on the right. On phones as on the Divi site: the photo across the whole
   card, everything else under it. */
.team-card { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; grid-template-rows: auto 1fr; grid-template-areas: "photo head" "photo contacts" "bio bio";
    gap: 0 20px; padding: 20px; background: var(--light); font: 14px/1.6 var(--heading); }
.team-card__photo { grid-area: photo; }
.team-card__head { grid-area: head; }
.team-card__contacts { grid-area: contacts; }
.team-card__bio { grid-area: bio; margin-top: 20px; font-family: var(--body); }
.team-card__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.team-card h3 { margin: 0 0 .4em; font-size: 16px; font-weight: 700; }
.team-card__role { font-style: italic; }
.team-card__contacts a { color: var(--grey); overflow-wrap: anywhere; }
.team-card__contacts > :last-child { margin-bottom: 0; }
.team-card .social { margin-top: 1.2em; }
.team-card .social a { width: 32px; height: 32px; }
@media (max-width: 600px) {
    .team-card { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "photo" "head" "contacts" "bio"; gap: 0; }
    .team-card__photo img { aspect-ratio: 1; border-radius: 12px; }
    .team-card__head { margin-top: 46px; }
}

.social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 3px; background: var(--grey); color: var(--white) !important; }
.social a:hover { background: var(--red); }

/* Home: testimonials slider — slides in a row (flex stretches them to the tallest), the track slides sideways */
.testimonials { display: grid; grid-template-columns: 44px minmax(0, 860px) 44px; justify-content: center; align-items: center; gap: 16px 24px; }
.testimonials__viewport { overflow: hidden; padding: 12px; margin: -12px; touch-action: pan-y; }
.testimonials__track { display: flex; gap: 24px; transition: transform .6s ease; }
.testimonial { flex: 0 0 100%; margin: 0; padding: 20px 24px; background: var(--white); color: var(--text); border-radius: 4px; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .testimonials__track { transition: none; } }
.testimonial figcaption { display: flex; flex-direction: column; margin-bottom: .6em; }
.testimonial__yacht { color: var(--dark); font: 700 12px var(--heading); }
.testimonial__position { color: var(--dark); font: italic 400 20px/1.5 var(--heading); }
.testimonial blockquote { margin: 0; font: 14px/1.6 var(--heading); }
.testimonial blockquote p:last-child { margin: 0; }
.testimonials__arrow { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; position: relative; }
.testimonials__arrow::before { content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border: solid var(--white); border-width: 0 0 3px 3px; transform: translateX(2px) rotate(45deg); }
.testimonials__arrow--next::before { transform: translateX(-2px) rotate(-135deg); }
.testimonials__arrow:hover { background: var(--red-light); }
.testimonials__dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; }
.testimonials__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--grey); cursor: pointer; }
.testimonials__dots button[aria-selected=true] { background: var(--white); }
.testimonials.is-single .testimonials__arrow, .testimonials.is-single .testimonials__dots { display: none; }
@media (max-width: 640px) {
    /* Arrows go under the card next to the dots instead of squeezing it. */
    .testimonials { grid-template-columns: 44px 1fr 44px; }
    .testimonials__viewport { grid-column: 1 / -1; grid-row: 1; }
    .testimonials__arrow--prev { grid-column: 1; grid-row: 2; }
    .testimonials__arrow--next { grid-column: 3; grid-row: 2; }
    .testimonials__dots { grid-column: 2; grid-row: 2; }
}

.photo-band { height: clamp(220px, 30vw, 440px); background: center / cover no-repeat; }

/* Jobs Board */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.filter a { padding: 6px 16px; border: 1px solid #dde3e8; border-radius: 3px; background: var(--white); color: var(--grey); font: 600 13px var(--heading); }
.filter a:hover { color: var(--red); border-color: var(--red); }
.filter a.is-active { border-color: var(--red); background: var(--red); color: var(--white); }
.vacancy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.vacancy-grid--top { margin-top: 40px; }
.vacancy-card { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 20px; padding: 16px; background: var(--light); box-shadow: var(--shadow); color: var(--text); }
/* The vacancy pictures are posters with text: shown whole, never cropped. */
.vacancy-card__image img { width: 100%; border-radius: 6px; background: var(--white); }
.vacancy-card__text { display: flex; flex-direction: column; min-width: 0; font: 13px/1.6 var(--heading); }
.vacancy-card__title { margin: 0 0 .4em; font-size: 18px; font-weight: 500; }
.vacancy-card__title a { color: var(--dark); }
.vacancy-card__title a:hover { color: var(--red); }
.vacancy-card__speciality { margin: 0 0 .6em; color: var(--red); font-size: 12px; }
.vacancy-card__facts { margin: 0; }
.vacancy-card__facts dt { display: inline; color: #2ea3f2; }
.vacancy-card__facts dd { display: inline; margin: 0; }
.vacancy-card__number { margin: auto 0 0; padding-top: 8px; text-align: right; color: var(--grey); font-size: 11px; }
/* Filled: the same red band as on the vacancy page, across a greyed picture */
.vacancy-card.is-filled .vacancy-card__image { position: relative; overflow: hidden; border-radius: 6px; }
.vacancy-card.is-filled .vacancy-card__image img { filter: grayscale(.8) opacity(.6); }
.vacancy-card.is-filled .vacancy-card__image::after {
    content: 'Filled'; position: absolute; top: 50%; left: -15%; right: -15%; transform: translateY(-50%) rotate(-12deg);
    padding: 6px 0; background: var(--red); color: var(--white); text-align: center; font: 700 15px var(--heading); letter-spacing: .08em; text-transform: uppercase;
}
.vacancy-card__status { display: inline-block; align-self: flex-start; margin: 0 0 .6em; padding: 2px 10px; border-radius: 99px; background: var(--grey); color: var(--white); font: 700 11px var(--heading); text-transform: uppercase; letter-spacing: .05em; }
.vacancy-card.is-filled .vacancy-card__title a { color: var(--text); }
.empty { padding: 24px; background: var(--light); }
@media (max-width: 1100px) { .vacancy-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .vacancy-card { grid-template-columns: 1fr; } }

/* Vacancy page: poster | facts card + text; on phones facts, poster, text */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .4em; font: 600 13px var(--heading); }
.breadcrumbs a { color: var(--grey); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { color: #c3cad6; }
.breadcrumbs a:last-of-type + span { display: none; }

.vacancy-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "media facts" "media text"; gap: 32px 5.5%; align-items: start; }
.vacancy-layout__media { grid-area: media; position: sticky; top: calc(var(--header) + 24px); }
.vacancy-facts { grid-area: facts; }
.vacancy-layout__text { grid-area: text; }
.vacancy-poster { position: relative; overflow: hidden; border-radius: 6px; box-shadow: var(--shadow); }
.vacancy-poster img { width: 100%; }
.is-filled .vacancy-poster img { filter: grayscale(.8) opacity(.6); }
.is-filled .vacancy-poster::after {
    content: 'Position filled'; position: absolute; top: 50%; left: -10%; right: -10%; transform: translateY(-50%) rotate(-12deg);
    padding: 12px 0; background: var(--red); color: var(--white); text-align: center; font: 700 clamp(18px, 2.4vw, 28px) var(--heading);
    letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.vacancy-facts { padding: 22px 24px; background: var(--light); border-top: 4px solid var(--red); box-shadow: var(--shadow); font-family: var(--heading); }
.is-filled .vacancy-facts { border-top-color: var(--grey); }
.is-filled .vacancy-facts__list { opacity: .65; }
.vacancy-facts__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.vacancy-facts__meta { color: var(--grey); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 99px; background: var(--white); color: var(--dark); font: 700 12px var(--heading); text-transform: uppercase; letter-spacing: .05em; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(216, 0, 50, .18); }
.status--filled { background: var(--grey); color: var(--white); }
.status--filled::before { background: var(--white); box-shadow: none; }
.vacancy-facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0 0 22px; }
.vacancy-facts__list dt { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; color: var(--grey); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.vacancy-facts__list dt svg { color: var(--red); flex: none; }
.vacancy-facts__list dd { margin: 0 0 0 28px; color: var(--dark); font-size: 15px; font-weight: 500; line-height: 1.4; }
.vacancy-facts__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid #dde3e8; }
.share { display: flex; align-items: center; gap: 6px; color: var(--grey); font-size: 12px; font-weight: 600; }
.share a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--dark); transition: background .2s, color .2s; }
.share a:hover { background: var(--red); color: var(--white); }

.vacancy-text h3:first-child { margin-top: 0; }
.vacancy-text ul { list-style: none; padding: 0; }
.vacancy-text li { position: relative; padding-left: 22px; margin-bottom: .35em; }
.vacancy-text li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.vacancy-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin: 1.4em 0; }
.vacancy-block h4 { margin: 0 0 .7em; padding-bottom: .4em; border-bottom: 2px solid var(--light); color: var(--dark); font: 700 13px var(--heading); text-transform: uppercase; letter-spacing: .08em; }

.vacancy-apply__inner > * { max-width: 900px; }
.vacancy-apply__sub { color: var(--grey); font: 500 14px var(--heading); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.section-head__link { color: var(--red); font: 600 14px var(--heading); }

@media (max-width: 980px) {
    .vacancy-layout { grid-template-columns: 1fr; grid-template-areas: "facts" "media" "text"; }
    .vacancy-layout__media { position: static; max-width: 480px; }
}
@media (max-width: 480px) {
    .vacancy-facts { padding: 18px 16px; }
    .vacancy-facts__list { grid-template-columns: 1fr; }
}

.notice { padding: 14px 18px; border-left: 4px solid var(--red); background: var(--light); }
.form-pending { margin-top: 24px; padding: 18px 20px; border: 2px dashed var(--grey); background: var(--light); color: var(--text); }
.section--dark .form-pending a { color: var(--dark); }

/* Forms (abeam-forms mu-plugin): grey fields with the label inside, as on the Divi site */
.abeam-form { font-size: 14px; }
.abeam-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.abeam-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3%; }
.abeam-form__field { margin: 0 0 3%; }
.abeam-form__field--wide { grid-column: 1 / -1; }
.abeam-form input[type=text], .abeam-form input[type=email], .abeam-form input[type=tel], .abeam-form textarea {
    width: 100%; padding: 16px; border: 2px solid transparent; border-radius: 0; background: #eee; color: #4e4e4e; font: 14px/1.4 var(--body);
}
.abeam-form textarea { resize: vertical; min-height: 150px; }
.abeam-form input:focus, .abeam-form textarea:focus { outline: none; border-color: var(--grey); background: #f4f4f4; }
.abeam-form ::placeholder { color: #999; }
.abeam-form .has-error input, .abeam-form .has-error textarea { border-color: var(--red); }
.abeam-form__error { display: block; margin-top: 4px; color: var(--red); font-size: 13px; }
.abeam-form__error:empty { display: none; }
.abeam-form__alert { margin-bottom: 16px; padding: 12px 16px; border-left: 4px solid var(--red); background: #fdecef; color: var(--dark); }
.abeam-form__files { padding: 16px; background: #eee; color: #666; }
.abeam-form__files label { display: block; margin-bottom: 8px; color: var(--dark); font-weight: 600; }
.abeam-form__files input[type=file] { max-width: 100%; font: 14px var(--body); }
.abeam-form__files input[type=file]::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 2px solid #2ea3f2; border-radius: 3px; background: var(--white); color: #2ea3f2; font: 600 14px var(--body); cursor: pointer; }
.abeam-form__hint { display: block; margin-top: 8px; font-size: 13px; }
.abeam-form__consents { display: grid; gap: 10px; margin: 8px 0 20px; }
.abeam-form__consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.abeam-form__consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); }
.abeam-form__consent.has-error span { color: var(--red); }
.abeam-form__submit { display: flex; justify-content: flex-end; margin: 0 0 24px; }
.abeam-form__submit .button:disabled { opacity: .7; cursor: wait; transform: none; }
.abeam-form__notice { color: var(--dark); font-size: 12px; line-height: 1.6; }
.abeam-form__notice p { margin-bottom: .8em; }
.abeam-form--sent { padding: 20px 24px; border-left: 4px solid var(--red); background: var(--light); color: var(--dark); font: 16px/1.5 var(--heading); }
.abeam-form--sent p { margin: 0; }
.section--dark .abeam-form__consent, .section--dark .abeam-form__notice { color: var(--light); }
.section--dark .abeam-form__notice a { color: var(--white); text-decoration: underline; }
@media (max-width: 600px) { .abeam-form__grid { grid-template-columns: 1fr; } .abeam-form__field { margin-bottom: 12px; } }

/* Newsletter and search */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow); }
.post-card__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__text { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 18px; font-weight: 600; }
.post-card__title a { color: var(--dark); }
.post-card__date { color: var(--grey); font-size: 13px; margin-bottom: .6em; }
.post-card__more { margin-top: auto; color: var(--red); font: 600 13px var(--heading); }
.pagination { margin-top: 32px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 4px 12px; border: 1px solid #dde3e8; color: var(--dark); }
.pagination .current { background: var(--red); border-color: var(--red); color: var(--white); }
.search-form { display: flex; gap: 8px; max-width: 420px; }
.search-form input[type=search] { flex: 1; padding: 8px 10px; border: 1px solid #ccd; font: inherit; }

/* Footer */
.site-footer { padding: 60px 0 24px; background: var(--dark); color: var(--white); font: 14px/1.7 var(--heading); }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 5.5%; }
.site-footer h4 { color: var(--white); font-size: 20px; font-weight: 300; margin-bottom: 1em; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--red-light); }
.site-footer .muted, .site-footer a.muted { color: var(--grey); }
.site-footer__logo { width: 60%; margin-bottom: 16px; }
.legal-links, .footer-links { margin: 0; padding: 0; list-style: none; }
.legal-links a { color: var(--grey); font-size: 12px; line-height: 2; }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 12px; }
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Phones (side margins stay 10% as on the Divi site) */
@media (max-width: 600px) {
    :root { --header: 64px; }
    .page-title { margin-top: -40px; padding: 14px 16px 8px; }
}
@media (prefers-reduced-motion: reduce) { .site-nav, .is-open .site-nav { transition: none; } }
