/*
Theme Name: Present Connection
Description: Theme for presentconnection.eu, ported from the static site in html/.
Version: 0.1.0
Requires PHP: 8.3
Text Domain: present-connection
*/

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0f2940;
  --orange: #e95a20;
  --orange-dark: #c94812;
  --grey: #6e7e8c;
  --muted: #86939f;
  --field: #eef0f2;
  --grey-bg: #f0f0f0;
  --white: #fff;
  --container: 1224px;
  --gutter: 108px;
  --radius: 24px;
  --shadow: 0 6px 22px rgba(15, 41, 64, .13);
  --font-button: "Open Sans", "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h1 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.07; }
h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.22; }
h3 { font-size: 24px; line-height: 1.25; }
h4 { font-size: 20px; line-height: 1.35; }
.h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.22; }
p { margin: 0 0 24px; }

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.lead {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.33;
  margin: 12px 0 40px;
}

.section { padding: 70px 0 100px; }
.section-head { margin-bottom: 56px; }
.section-head p:not(.eyebrow) { max-width: 480px; margin-top: 30px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}
/* Clear the WordPress toolbar shown to logged-in users (46px tall up to its own 782px breakpoint) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.header-inner {
  padding: 28px 84px 0 45px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.logo img { width: 188px; }
.main-nav { display: flex; align-items: center; gap: 29px; padding-top: 22px; }
.main-nav a, .lang-toggle { text-decoration: none; font-size: 14px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange); }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 4px; padding: 0; background: none; border: 0; cursor: pointer;
}
.lang-toggle::after {
  content: ""; border: 3px solid transparent; border-top: 4px solid currentColor; margin-top: 4px;
}
.lang-toggle[aria-expanded="true"]::after { transform: rotate(180deg); margin: 0 0 4px; }
.lang-switcher { position: relative; }
.lang-menu {
  position: absolute; top: 100%; right: 0; z-index: 1;
  min-width: 160px; margin: 10px 0 0; padding: 8px 0; list-style: none;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
}
.lang-menu a { display: block; padding: 8px 20px; white-space: nowrap; }
.lang-menu a[aria-current] { color: var(--orange); }
.nav-toggle { display: none; }

/* ---------- Buttons & links ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
/* Button blocks: .wp-block-button__link is a primary button, the Outline style an outline one */
.btn, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 36px;
  border-radius: 22px;
  border: 1px solid var(--orange);
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary, .wp-block-button__link { background: var(--orange); color: var(--white); }
.btn-primary:hover, .wp-block-button__link:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline { background: var(--white); color: var(--orange); }
.is-style-outline .wp-block-button__link { padding: 0 36px; border: 1px solid var(--orange); background: var(--white); color: var(--orange); }
.btn-outline:hover, .is-style-outline .wp-block-button__link:hover { background: var(--orange); color: var(--white); }
.btn-sm, .btn-sm .wp-block-button__link { padding: 0 28px; }
.wp-block-button.btn-sm { padding: 0; } /* the class sits on the block's wrapper, not on its link */

/* Also the button blocks with the class btn-arrow, the steps of the recruitment process
   and the open positions, whose blocks can't carry the class or an empty span */
.arrow::after, .is-style-more .wp-block-button__link::after, .btn-arrow .wp-block-button__link::after,
.step::after, .position-list a::after {
  content: "";
  width: 16px; height: 10px;
  background: currentColor;
  -webkit-mask: url("assets/icons/arrow.svg") no-repeat center / contain;
  mask: url("assets/icons/arrow.svg") no-repeat center / contain;
  transition: transform .2s;
}
a.arrow:hover::after, .btn.arrow:hover::after, .is-style-more .wp-block-button__link:hover::after,
.btn-arrow .wp-block-button__link:hover::after, .position-list a:hover::after { transform: translateX(4px); }

/* Also the "Link with arrow" style of the button block */
.link-more, .is-style-more .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 12px;
  height: auto; padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--orange);
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}
.wp-block-buttons > .is-style-more { display: flex; } /* no line box around the link */

/* ---------- Cards ---------- */
/* Also the internship's features, items of a list block, which can't carry the class */
.card, .feature-grid > li {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) 0;
}
.rounded { border-radius: 0 0 var(--radius) 0; overflow: hidden; }
.card-icon { height: 52px; width: auto; align-self: flex-start; margin-bottom: 36px; }
.card-icon img { height: 100%; width: auto; } /* the icon of an image block */

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-block;
  padding: 1px 12px;
  border: 1px solid var(--orange);
  border-radius: 12px;
  color: var(--orange);
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
}
a.pill:hover { background: var(--orange); color: var(--white); }
.tags, .is-style-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.tags li, .is-style-tags li {
  padding: 1px 9px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ---------- Hero banners (image behind text) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: var(--hero-h, 710px);
  padding-top: 178px;
}
.hero-img {
  position: absolute;
  top: var(--img-top, 0);
  right: 0;
  width: 100%;
  min-width: 1440px;
  z-index: -1;
}
.hero-text { max-width: 560px; }
.hero-text h1, .hero-text h2 { margin-bottom: 40px; }
.hero h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.22; }
.hero-text .lead { margin-top: 14px; }

/* Home hero */
.hero-home { --hero-h: 885px; --img-top: 182px; }
.hero-home .hero-text { max-width: 470px; }
.hero-home h1 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.07; margin: 10px 0 0; }
.hero-home .lead { margin: 14px 0 52px; }

/* Sub-page heroes with the photo starting under the header */
.hero-sub { --img-top: 89px; padding-top: 182px; }
.hero-sub .hero-text { max-width: 560px; }
.hero-sub .hero-text p { max-width: 360px; }
.hero-sub h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.22; margin-bottom: 36px; }
.hero-career { --hero-h: 722px; }
.hero-internship { --hero-h: 720px; }
.hero-job { --hero-h: 573px; }
.hero-job .hero-text p { margin-bottom: 0; }
.hero-detail { --hero-h: 595px; }

/* ---------- Home ---------- */
.belief { padding: 90px 0 110px; overflow-x: clip; }
.belief .split-text { position: relative; z-index: 1; } /* above the image, which overlaps it */
.belief-media { margin-top: 20px; }
.belief-media img { width: 174%; max-width: none; margin-left: -23.3%; margin-top: -40px; }

.services-intro { padding-bottom: 80px; }
.services-intro .lead { margin-top: 36px; }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 70px;
}
.service-card { padding: 40px 40px 34px; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 20px; }
.service-card p { flex: 1; margin-bottom: 36px; max-width: 300px; }

.approach { padding: 0 0 40px; }
.approach .split { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 100px; }
.approach h2 { margin-bottom: 30px; }
.approach-media { max-width: 620px; margin-top: -10px; }

.clients .eyebrow { margin-bottom: 40px; }
.clients img { width: 100%; }

/* ---------- People / contact ---------- */
.contact { padding: 110px 0 125px; }
.contact h2 { margin-bottom: 60px; }
.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 120px;
}
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 34px; }
.person h3 { font-size: 16px; }
.person .role { font-size: 14px; text-transform: uppercase; margin: 2px 0 34px; }
.person p:not(.role) { max-width: 540px; margin-bottom: 36px; }

/* HR contact with form */
.hr-contact { padding: 60px 0 100px; }
.hr-contact .people { grid-template-columns: minmax(0, 540px) minmax(0, 464px); gap: 40px 88px; }
.hr-contact .person p:not(.role) { margin-bottom: 24px; }
.contact-form { padding-top: 94px; }
.contact-form h3 { margin-bottom: 12px; }
.contact-form label { display: block; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 7px 14px;
  border: 0;
  border-radius: 0;
  background: var(--field);
  font-size: 16px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--orange); outline-offset: -2px; }
.contact-form .btn { display: flex; margin: 8px 0 0 auto; padding: 0 34px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Services page ---------- */
.catalysts { margin-top: -80px; padding-bottom: 130px; position: relative; }
.catalysts .cards-3 { margin-top: 0; }
.catalyst { padding: 50px 34px 36px; }
.catalyst .card-icon { margin-bottom: 40px; }
.catalyst h2 { font-size: 24px; line-height: 1.3; }
.catalyst-tagline { font-weight: 600; margin: 4px 0 24px; }
.catalyst h3 { font-size: 16px; font-weight: 400; margin: 0; }
.catalyst ul { margin: 0; padding: 0 0 0 18px; }
.catalyst li { padding-left: 14px; }

.integrated { padding-bottom: 14px; overflow-x: clip; }

.integrated h2 { margin-bottom: 30px; }
.integrated .split-text { position: relative; z-index: 1; }
.integrated .split-text p { max-width: 470px; }
.integrated-media img { width: 160%; max-width: none; margin: -95px 0 0 -21.3%; }

.capabilities { padding-bottom: 120px; }
.capabilities h2 { margin-bottom: 56px; }
.capability-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.capability-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  min-height: 168px;
  padding: 44px 8px 20px;
  text-align: center;
  line-height: 1.3;
}
.capability-grid img { height: 32px; width: auto; }

/* ---------- News ---------- */
.page-top { padding-top: 135px; }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.social-row { display: flex; gap: 20px; align-items: center; }
.social-row img { height: 14px; width: auto; }

.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 40px;
  padding: 20px 20px 20px 35px;
  margin-bottom: 40px;
}
.news-featured .news-body { padding: 18px 0 18px; display: flex; flex-direction: column; }
.news-featured h2 { font-size: 36px; line-height: 1.25; margin-bottom: 40px; }
.news-featured p { flex: 1; }
.news-featured img { width: 100%; height: 100%; object-fit: cover; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 41px;
}
.news-card { padding: 20px 20px 34px; display: flex; flex-direction: column; }
.news-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 24px; }
.news-card .news-body { padding: 0 15px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 20px; line-height: 1.35; margin-bottom: 26px; }
.news-card .link-more { margin-top: auto; }
.news-card .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 34px;
}
.news-date { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.load-more { margin: 40px 0 100px; }
/* The last page of news has no "Load more" under the grid */
.news-grid:last-child { margin-bottom: 100px; }

/* Article */
.article-hero { padding-top: 124px; }
.article-hero img { width: 100%; aspect-ratio: 1232 / 520; object-fit: cover; }
.article-share { display: flex; justify-content: flex-end; margin: 20px 0 24px; }
.article-head {
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.article-head h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.24; margin-bottom: 34px; }
.author { display: flex; gap: 16px; align-items: center; }
.author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author strong { display: block; font-size: 14px; font-weight: 600; }
.author span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.article-body { max-width: 800px; padding-bottom: 110px; }
.article-intro { font-size: 20px; line-height: 1.4; margin-bottom: 70px; }
.article-body h2 { font-size: 16px; line-height: 1.5; margin: 0; }
.article-body > p, .article-body section p { font-size: 15px; line-height: 1.6; }
.article-body section { margin-bottom: 60px; }
.article-body blockquote {
  margin: 0 0 60px;
  padding: 0 0 0 30px;
  border-left: 2px solid var(--orange);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  max-width: 740px;
}
.article-body figure { margin: 0 0 60px; }
.article-body figcaption { color: var(--grey); font-size: 14px; margin-top: 10px; }
.article-body figure img { width: 100%; }
/* The text of a news item comes from core blocks: a Quote keeps its text in a paragraph,
   an Image block carries the figure, so its photo gets the rounded corner */
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body .wp-block-image img { border-radius: 0 0 var(--radius) 0; }

/* ---------- Cases ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 20px;
}
.case-card { padding: 20px 20px 36px; display: flex; flex-direction: column; }
.case-card img { width: 100%; aspect-ratio: 548 / 296; object-fit: cover; margin-bottom: 30px; }
.case-card .case-body { padding: 0 9px; display: flex; flex-direction: column; flex: 1; }
.case-card h2 { font-size: 20px; margin: 0 0 18px 8px; }
.case-card p { flex: 1; margin-bottom: 40px; }
.case-card .link-more { margin-left: 8px; }

/* Case detail */
.case-hero { position: relative; padding-top: 135px; min-height: 690px; }
.case-hero .hero-text { max-width: 480px; }
.case-hero h1 { margin-bottom: 30px; }
.case-hero h2 { font-size: 24px; margin-top: 30px; }
.case-hero-img { position: absolute; top: 94px; left: calc(50% - 114px); width: 772px; z-index: -1; }
.case-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; position: relative; }
.case-cards .card { padding: 50px 40px 50px 42px; }
.case-cards img { height: 54px; width: auto; margin-bottom: 28px; }
.case-cards h2 { font-size: 24px; margin-bottom: 26px; }
.client-experience { position: relative; overflow: hidden; min-height: 831px; margin-top: -76px; padding-top: 168px; }
.client-experience .bg { position: absolute; top: 0; right: 0; width: 100%; min-width: 1440px; z-index: -1; }
.client-experience .split-text { max-width: 540px; }
.client-experience h2 { margin-bottom: 36px; }

/* ---------- Career ---------- */
.values { padding: 60px 0 20px; }
.values .section-head { margin-bottom: 64px; }
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.value {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 40px;
  align-items: center;
  min-height: 120px;
  padding: 20px 40px;
}
.value img { height: 34px; width: auto; justify-self: center; }
.value > .wp-block-image { justify-self: center; } /* the icon of an image block */
.value h3 { margin-bottom: 4px; }
.value p { margin: 0; }

.carousel { position: relative; margin: 30px 0 0; }
.carousel-track { position: relative; height: 383px; }
.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 575px;
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%) translateX(calc(var(--pos) * 245px)) scale(var(--scale));
  z-index: var(--z);
  opacity: var(--opacity);
  transition: transform .45s ease, opacity .45s ease;
}
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn {
  position: absolute;
  top: 190px;
  z-index: 10;
  width: 40px; height: 40px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  background: var(--white);
  color: var(--orange);
  cursor: pointer;
  display: grid; place-items: center;
}
.carousel-btn::after {
  content: "";
  width: 16px; height: 10px;
  background: currentColor;
  -webkit-mask: url("assets/icons/arrow.svg") no-repeat center / contain;
  mask: url("assets/icons/arrow.svg") no-repeat center / contain;
}
.carousel-btn.prev { left: 37px; }
.carousel-btn.prev::after { transform: scaleX(-1); }
.carousel-btn.next { right: 37px; }
.carousel-btn:hover { background: var(--orange); color: var(--white); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.carousel-dots button {
  width: 12px; height: 12px; padding: 0;
  border-radius: 50%;
  border: 1px solid #b7c0c8;
  background: var(--white);
  cursor: pointer;
}
.carousel-dots button[aria-current="true"] { background: #b7c0c8; }

.benefits .section-head { margin: 30px 0 48px; }
.benefit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 40px;
}
.benefit img { height: 34px; width: auto; margin-bottom: 12px; }
.benefit h3 { margin-bottom: 18px; }
.benefit p { margin: 0; max-width: 260px; }

.recruitment { position: relative; overflow: hidden; padding-top: 300px; }
.recruitment .bg { position: absolute; top: 0; right: 0; width: 100%; min-width: 1440px; z-index: -1; }
.recruitment .section-head { margin-bottom: 100px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 47px; padding-bottom: 20px; }
.step { position: relative; padding: 36px 33px 64px; min-height: 400px; }
.step-number { display: block; font-size: 60px; font-weight: 600; line-height: 1; color: var(--orange); margin-bottom: 30px; }
.step h3 { margin-bottom: 24px; }
.step::after { position: absolute; right: 33px; bottom: 26px; background: var(--orange); }

.positions { padding: 80px 0 40px; }
.positions .section-head { margin-bottom: 28px; }
.position-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--orange); }
.position-list li { border-bottom: 1px solid var(--orange); }
.position-list a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 400;
  color: var(--orange);
  text-decoration: none;
}
.position-list a::after { width: 26px; height: 14px; }

/* ---------- Internship ---------- */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 36px;
}
.feature-grid { max-width: 1198px; }
.feature, .feature-grid > li { min-height: 238px; padding: 39px 39px 30px; font-size: 24px; line-height: 1.25; }
.feature-grid strong { font-weight: 600; }

.details { padding: 60px 0 80px; }
.details .split { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 50px; }
.details h3 { margin: 50px 0 24px; }
.details dl { margin: 0; }
.details dt { font-weight: 600; }
.details dd { margin: 0 0 24px; max-width: 460px; }
/* The same terms as heading blocks, their descriptions as paragraphs */
.details h4 { font-size: inherit; line-height: inherit; }
.details h4 + p { max-width: 460px; }

.dates { padding: 40px 0 80px; }
.dates .section-head { margin-bottom: 30px; }
.date-row { border-top: 1px solid var(--orange); border-bottom: 1px solid var(--orange); padding: 22px 0 30px; color: var(--orange); }
.date-row h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 400; margin-bottom: 40px; }
.date-meta { display: grid; grid-template-columns: 229px 282px 1fr auto; gap: 20px; align-items: end; }
.date-meta dl { margin: 0; }
.date-meta dd { margin: 0; font-weight: 600; }
/* The same as two paragraphs in a group */
.date-meta p { margin: 0; }
.date-meta p + p { font-weight: 600; }

.fact { position: relative; margin-bottom: 20px; }
.fact > img, .fact > .wp-block-image img { width: 100%; height: 380px; object-fit: cover; }
.fact-box {
  position: absolute;
  left: calc(50% + 210px);
  bottom: -18px;
  width: 372px;
  padding: 26px 30px;
  background: var(--orange);
  color: var(--white);
  font-size: 24px;
  line-height: 1.25;
  border-radius: 0 0 var(--radius) 0;
  box-shadow: var(--shadow);
}
.fact-box strong { display: block; font-weight: 600; }

.how-to { padding: 40px 0 60px; }
.you-we { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; margin-top: 30px; }
.you-we h3 {
  font-size: 60px;
  line-height: 1;
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
  margin-bottom: 18px;
  max-width: 590px;
}
.you-we ol { margin: 0; padding-left: 20px; }

.outcome { position: relative; overflow: hidden; min-height: 620px; padding-top: 70px; }
.outcome .bg { position: absolute; top: 120px; right: 0; width: 100%; min-width: 1440px; z-index: -1; }
.outcome .split-text { max-width: 590px; }
.outcome h2 { margin-bottom: 30px; }

/* ---------- Job / internship detail ---------- */
.job-intro { padding-top: 60px; }
.job-intro p { font-size: 20px; line-height: 1.4; max-width: 800px; margin-bottom: 28px; }
.job-body { max-width: 800px; padding: 40px 0 0; }
.job-body h2 { font-size: 16px; line-height: 1.5; }
.job-body p, .job-body li { font-size: 16px; }
.job-body section { margin-bottom: 24px; }
.job-body ul { margin: 0 0 24px; padding-left: 18px; }
.job-body li::marker { color: var(--navy); }
.offer-list li::marker { color: var(--orange); }
.offer-list strong { color: var(--orange); font-weight: 600; }
.job-body .btn-row { margin: 50px 0 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grey-bg); padding: 46px 0 50px; }
.footer-inner {
  padding: 0 120px 0 45px;
  display: grid;
  grid-template-columns: 223px repeat(3, minmax(0, 208px)) minmax(max-content, 1fr) auto;
  column-gap: 32px;
  align-items: start;
}
.site-footer address { font-style: normal; font-size: 14px; line-height: 1.5; }
.site-footer address strong { display: block; font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.site-footer address a { text-decoration: none; }
.footer-side { display: flex; flex-direction: column; gap: 32px; }
.social { display: flex; gap: 22px; align-items: center; height: 24px; }
.social img { height: 16px; width: auto; }
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links a { color: var(--orange); text-decoration: none; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .header-inner { padding-right: 36px; }
  .main-nav { gap: 20px; }
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0 var(--gutter); }
  .footer-inner .logo { grid-column: 1 / -1; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .case-hero-img { left: auto; right: 0; width: 55%; }
  /* Beside the 800px title the author would get too little room */
  .article-head { grid-template-columns: 1fr; gap: 0; margin-bottom: 48px; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; margin-top: 4px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); }
  .main-nav {
    display: none;
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
    background: var(--white); box-shadow: 0 8px 20px rgba(15, 41, 64, .08);
  }
  .main-nav a, .lang-toggle { padding: 12px 0; font-size: 16px; }
  .lang-toggle { margin: 0; }
  .lang-menu { position: static; min-width: 0; margin: 0; padding: 0 0 0 16px; border-radius: 0; box-shadow: none; }
  .lang-menu a { padding: 12px 0; }
  .nav-open .main-nav { display: flex; }

  .hero { min-height: 0; padding-top: 140px; display: flex; flex-direction: column; }
  .hero > .container { order: 1; }
  .hero-img { position: static; order: 2; min-width: 0; margin-top: 24px; z-index: 0; }
  .section { padding: 64px 0; }

  .split, .approach .split, .details .split { grid-template-columns: 1fr; gap: 24px; }
  .belief-media img { width: 136%; margin-left: -18%; }
  .integrated-media img { width: 130%; margin-left: -15%; }
  .cards-3, .news-grid, .steps, .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .catalysts { margin-top: 0; padding: 40px 0 72px; }
  .catalyst { padding: 32px 24px; }
  .capability-grid { grid-template-columns: repeat(3, 1fr); }
  .people, .hr-contact .people { grid-template-columns: 1fr; }
  .contact-form { padding-top: 0; }

  .news-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .news-featured { grid-template-columns: 1fr; padding: 20px; }
  .news-featured .news-body { order: 2; padding: 0 10px; }
  .news-featured h2 { font-size: 28px; margin-bottom: 24px; }
  .article-hero { padding-top: 100px; }

  .cases-grid, .case-cards { grid-template-columns: 1fr; }
  .case-hero { min-height: 0; display: flex; flex-direction: column; }
  .case-hero > .container { width: 100%; } /* a flex item with auto margins would shrink to its text */
  .case-hero-img { position: static; order: 2; width: 100%; margin-top: 24px; }
  .client-experience, .recruitment, .outcome { min-height: 0; margin-top: 0; padding-top: 64px; display: flex; flex-direction: column; }
  .client-experience .bg, .recruitment .bg, .outcome .bg { position: static; order: 2; min-width: 0; margin-top: 24px; }
  .recruitment .section-head { margin-bottom: 40px; }
  .steps { order: 3; }
  .step { min-height: 0; }

  .value { grid-template-columns: 48px 1fr; gap: 20px; padding: 20px; }
  .value img { width: 36px; }
  .carousel-item { width: 70%; transform: translate(-50%, -50%) translateX(calc(var(--pos) * 40%)) scale(var(--scale)); }
  .carousel { height: auto; }
  .carousel-track { height: 50vw; min-height: 220px; }
  .carousel-btn { top: calc(25vw - 20px); }
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }

  .date-meta { grid-template-columns: 1fr 1fr; }
  .date-meta :is(.btn, .wp-block-buttons) { grid-column: 1 / -1; justify-self: start; }
  .fact > img, .fact > .wp-block-image img { height: 260px; }
  .fact-box { position: relative; left: auto; bottom: auto; width: auto; margin: -40px var(--gutter) 0; }
  .you-we { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .header-inner { padding: 20px 16px 0; }
  .logo img { width: 150px; }
  .btn-row { gap: 12px; }
  .belief, .contact { padding: 64px 0; }
  .services-intro, .capabilities { padding-bottom: 72px; }
  .footer-inner { grid-template-columns: 1fr; padding: 0 16px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .feature, .feature-grid > li { min-height: 0; font-size: 20px; }
  .you-we h3 { font-size: 44px; }
}
