/* ==========================================================================
   SwiftFrame Brodplast — theme CSS
   The static build's assets/css/style.css (Figma "Indust" v1.0, rebranded),
   adapted for WordPress: design tokens resolve through the Global Settings
   palette (--sf-color-*), `.sf-inner` carries the section layout contract,
   plus what WP needs on top (admin bar offset, CF7 forms, long-form prose,
   404, post cards). Behaviour lives in assets/js/main.js.
   ========================================================================== */

:root {
  --navy: var(--sf-color-navy, #1d3960);
  --navy-deep: var(--sf-color-navy-deep, #1b304c);
  --ink: var(--sf-color-ink, #1d2635);
  --gray: var(--sf-color-gray, #566375);
  --bg: var(--sf-color-bg, #f2f5fb);
  --white: var(--sf-color-white, #ffffff);
  --light: #aaaaaa;
  --ph: #8f97a5;
  --line: rgba(29, 57, 96, 0.1);

  --font-display: "Manrope", "Nunito", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5.2vw, 100px);
  --max: 1720px;
  --section: clamp(64px, 8vw, 150px);
  --cut: 50px;

  --h1: clamp(42px, 4.2vw, 80px);
  --h2: clamp(34px, 2.9vw, 55px);
  --h3: clamp(30px, 2.3vw, 44px);
  --h4: clamp(26px, 1.9vw, 36px);
  --h5: clamp(22px, 1.5vw, 28px);
  --h6: clamp(20px, 1.25vw, 24px);
  --body: clamp(16px, 0.95vw, 18px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--gray);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); color: var(--ink); line-height: 1.15; }
h1, .h1 { font-size: var(--h1); font-weight: 800; letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--h2); font-weight: 800; letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--h3); font-weight: 700; letter-spacing: -0.01em; }
h4, .h4 { font-size: var(--h4); font-weight: 600; }
h5, .h5 { font-size: var(--h5); font-weight: 600; }
h6, .h6 { font-size: var(--h6); font-weight: 600; }

.small { font-size: 14px; }
.lead { font-size: clamp(18px, 1.15vw, 22px); }
.muted { opacity: 0.6; }
.white { color: var(--white); }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Layout: `.wrap` for chrome (header/footer/hero), `.sf-inner` for contract sections.
   `.sf-inner` is content-box so its max-width is the content width — exactly `.wrap`. */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sf-inner { box-sizing: content-box; }
.sf-inner > *:not(.reveal) { min-width: 0; }

/* The three vertical guide lines from the design (25 / 50 / 75 %) */
.bg-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%);
}
/* One stacking context for the whole page above the fixed guide lines. The
   template-part wrappers must NOT be positioned: the absolute .site-header
   (z-index 50) has to compete with the page sections directly, otherwise a
   later sibling wrapper paints over the header's wrapper. */
.wp-site-blocks { position: relative; z-index: 1; }

/* Chamfered corners — the signature shape of the design */
.cut-tr { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.cut-tl { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.cut-sm { --cut: 40px; }
.cut-lg { --cut: 100px; }

/* Images: cover by default; product cut-outs use .ph--contain */
.ph { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ph); }
.ph--contain { object-fit: contain; background: #fff; padding: 6%; }
.ph--empty { background: var(--ph) url("../img/ph/photo.svg") center / 34% no-repeat; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 30px;
  font-family: var(--font-body); font-size: var(--body); font-weight: 500; line-height: 1.5;
  border: 2px solid transparent; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Square icon button (arrow) */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; background: var(--navy); color: var(--white); flex: 0 0 auto;
  transition: background-color 0.2s ease;
}
.icon-btn img { width: 30px; height: 30px; }
.icon-btn:hover { background: var(--navy-deep); }

/* Slider arrows (prev = outlined, next = filled) */
.slider-nav { display: flex; gap: 0; }
.slider-nav button { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--navy); background: var(--white); }
.slider-nav button img { width: 30px; height: 30px; }
.slider-nav .prev img { transform: scaleX(-1); }
.slider-nav .next { background: var(--navy); border-color: var(--navy); }

/* Inline icon lists */
.icon-list li { display: flex; align-items: flex-start; gap: 9px; }
.icon-list img { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px; }
.check-list li { display: flex; align-items: center; gap: 4px; color: var(--gray); }
.check-list img { width: 24px; height: 24px; }
.check-list li + li { margin-top: 12px; }
.bullet-list { padding-left: 27px; list-style: disc; }
.bullet-list li + li { margin-top: 12px; }

/* The arrow glyph that follows currentColor */
.i-arrow {
  display: block; width: 30px; height: 30px; background: currentColor;
  -webkit-mask: url("../img/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../img/icons/arrow-right.svg") center / contain no-repeat;
  transition: transform 0.35s ease;
}

/* Section heading row */
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 4vw, 64px); }
.section-head h2 { max-width: 730px; }
.section-head .btn { flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; padding-top: 31px; color: var(--navy); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-header--dark { color: var(--white); }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { display: block; height: clamp(34px, 2.6vw, 46px); width: auto; }

.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; }
.nav-close { display: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 28px; height: 2px; background: currentColor; position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -9px; }
.nav-toggle span::after { top: 9px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-9px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 60px; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu > li { position: relative; }
.menu a { position: relative; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: var(--body); color: currentColor; padding-block: 4px; }
.menu a::before {
  content: ""; position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  width: 5px; height: 5px; background: currentColor; opacity: 0; transition: opacity 0.2s ease;
}
.menu a:hover::before, .menu li.is-active > a::before { opacity: 1; }

.has-sub > a::after {
  content: ""; width: 7px; height: 7px; margin-left: 4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.submenu {
  position: absolute; top: 100%; left: -20px; min-width: 240px; padding: 12px 0;
  background: var(--white); color: var(--navy); box-shadow: 0 20px 40px rgba(29, 38, 53, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.submenu a { display: block; padding: 8px 20px; }
.submenu a::before { display: none; }
.submenu a:hover, .submenu li.is-active > a { background: var(--bg); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.site-header--dark .btn-header { background: var(--white); color: var(--ink); border-color: var(--white); }
.site-header--dark .btn-header:hover { background: transparent; color: var(--white); }
.btn-header { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-header:hover { background: var(--navy); color: var(--white); }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(150px, 12vw, 200px);
  padding-bottom: calc(8vw + clamp(36px, 3vw, 48px));
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8vw), 0 100%); z-index: -1;
}
.hero h1 { color: var(--white); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.55fr); gap: 40px 60px; align-items: start; }
.hero-top h1 { max-width: 1069px; line-height: 1.17; }
.hero-top h1 em { font-style: normal; font-weight: 400; }
.hero-top p { justify-self: end; max-width: 555px; text-align: right; margin-top: clamp(20px, 3.5vw, 68px); }
.hero-actions { margin-top: clamp(24px, 2.5vw, 40px); display: flex; flex-wrap: wrap; gap: 16px; }
.hero-actions .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* --------------------------------------------------------------------------
   About (home)
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 624fr) minmax(0, 236fr) minmax(0, 860fr); gap: 40px; align-items: start; }
.about-media { aspect-ratio: 624 / 718; margin-top: clamp(60px, 7.4vw, 143px); --cut: 60px; }
.about-content { grid-column: 3; }
.about-content h2 { margin-bottom: clamp(32px, 4.5vw, 96px); }
.about-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
/* The badge sits beside the copy while the copy keeps at least 320px, otherwise it wraps below. */
.about-copy { flex: 1 1 320px; max-width: 453px; min-width: 0; }
.about-grid--top { align-items: flex-start; }
.about-copy p + p { margin-top: 20px; }
.about-actions { margin-top: 44px; display: grid; gap: 30px; justify-items: start; }
.about-call { display: inline-flex; align-items: center; gap: 6px; }
.about-call img { width: 24px; height: 24px; }
.about-call strong { color: var(--navy-deep); font-weight: 500; }

.since {
  flex: 0 0 auto;
  background: var(--navy); color: var(--white); padding: 30px; width: 276px; height: 243px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  --cut: 60px; justify-self: end;
}
.since strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 3.9vw, 75px); line-height: 1; align-self: flex-end; }

/* --------------------------------------------------------------------------
   Services (Naš asortiman)
   -------------------------------------------------------------------------- */
.carousel { display: flex; gap: 60px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: 0 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.service-card {
  background: var(--white); color: var(--ink); display: flex; flex-direction: column; --cut: 40px; overflow: hidden;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.service-card .card-body { padding: 40px 40px 30px; flex: 1; }
.service-card .card-icon { display: block; width: 60px; height: 60px; margin-bottom: 40px; color: var(--navy); transition: color 0.35s ease, transform 0.35s ease; }
.service-card h5 { margin-bottom: 8px; color: inherit; transition: color 0.35s ease; }
.service-card p { transition: color 0.35s ease; }
.service-card .card-media { position: relative; aspect-ratio: 494 / 251; }
.service-card .card-media .ph { transition: transform 0.5s ease; }
.service-card .ph--contain { background: transparent; }
.service-card .icon-btn { position: absolute; right: 40px; top: -25px; z-index: 1; color: var(--white); transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease; }
.services-grid .service-card.reveal { transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease, opacity 0.6s ease; }
a.service-card:hover, a.service-card:focus-visible { background: var(--navy); color: var(--white); }
.services-grid a.service-card.reveal:hover, .services-grid a.service-card.reveal:focus-visible { transform: translateY(-6px); }
.service-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
a.service-card:hover .card-icon, a.service-card:focus-visible .card-icon { color: var(--white); transform: translateY(-2px); }
a.service-card:hover p, a.service-card:focus-visible p { color: rgba(255, 255, 255, 0.8); }
a.service-card:hover .card-media .ph, a.service-card:focus-visible .card-media .ph { transform: scale(1.05); }
a.service-card:hover .icon-btn, a.service-card:focus-visible .icon-btn { background: var(--white); color: var(--navy); }
a.service-card:hover .i-arrow, a.service-card:focus-visible .i-arrow { transform: translateX(4px); }
a.service-card:hover .btn-primary, a.service-card:focus-visible .btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
@media (prefers-reduced-motion: reduce) { .service-card, .service-card *, .service-card:hover { transition: none; transform: none; } }

/* Featured row (HoReCa): text beside a full-height photo */
.services-grid .service-card--featured { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.services-grid .service-card--featured .card-body { flex: 0 0 46%; padding: 48px 48px 40px; display: flex; flex-direction: column; align-items: flex-start; }
.services-grid .service-card--featured .card-body p { max-width: 46ch; }
.services-grid .service-card--featured .card-body p + .btn { margin-top: 32px; }
.services-grid .service-card--featured .card-media { flex: 1 1 auto; aspect-ratio: auto; min-height: 320px; overflow: hidden; }
.services-grid .service-card--featured .card-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Featured products (home)
   -------------------------------------------------------------------------- */
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.product-card {
  position: relative; display: flex; flex-direction: column; background: var(--white); color: var(--ink); padding: 24px 24px 28px;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease, opacity 0.6s ease;
}
.products-grid .product-card.reveal { transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease, opacity 0.6s ease; }
.product-media { display: block; aspect-ratio: 1; background: var(--white); margin-bottom: 20px; overflow: hidden; }
.product-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.product-cat { display: block; font-size: 13px; font-weight: 600; color: var(--gray); margin-bottom: 6px; transition: color 0.35s ease; }
.product-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--h6); line-height: 1.25; padding-right: 56px; }
.product-go {
  position: absolute; right: 24px; bottom: 24px; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--navy); color: var(--white); transition: background-color 0.35s ease, color 0.35s ease;
}
.product-go .i-arrow { width: 24px; height: 24px; }
a.product-card:hover, a.product-card:focus-visible { background: var(--navy); color: var(--white); }
.products-grid a.product-card.reveal:hover, .products-grid a.product-card.reveal:focus-visible { transform: translateY(-6px); }
.product-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
a.product-card:hover .product-cat, a.product-card:focus-visible .product-cat { color: rgba(255, 255, 255, 0.7); }
a.product-card:hover .product-media img, a.product-card:focus-visible .product-media img { transform: scale(1.06); }
a.product-card:hover .product-go, a.product-card:focus-visible .product-go { background: var(--white); color: var(--navy); }
a.product-card:hover .i-arrow, a.product-card:focus-visible .i-arrow { transform: translateX(4px); }

/* Services grid variant (offer page): text card on top, image below */
.service-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 30px; }
.service-tile { display: flex; flex-direction: column; --cut: 40px; }
.service-tile .tile-top { background: var(--white); padding: 40px; flex: 1; }
.service-tile .tile-top .card-icon { display: block; width: 60px; height: 60px; margin-bottom: 40px; color: var(--navy); }
.service-tile h5 { margin-bottom: 8px; }
.service-tile .tile-media { aspect-ratio: 521 / 251; --cut: 50px; }

/* --------------------------------------------------------------------------
   Location & contact band
   -------------------------------------------------------------------------- */
.location { display: grid; grid-template-columns: minmax(0, 1153fr) minmax(0, 767fr); gap: clamp(32px, 5vw, 100px); align-items: start; }
.location-panel {
  position: relative; overflow: hidden; background: var(--navy); color: var(--white);
  --panel-pad: clamp(40px, 5vw, 66px);
  padding: var(--panel-pad);
  min-height: clamp(480px, 45vw, 875px);
  --cut: clamp(60px, 6vw, 120px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.map-box { position: relative; width: calc(100% + var(--panel-pad)); max-width: 820px; aspect-ratio: 480 / 440; margin: calc(-1 * var(--panel-pad)) calc(-1 * var(--panel-pad)) 0 auto; }
.map-box img.map { width: 100%; height: 100%; object-fit: contain; opacity: 0.95; }
.map-pin { position: absolute; width: 20px; height: 20px; transform: translate(-50%, -50%); }
.map-label { position: absolute; padding: 5px 20px; background: var(--white); color: var(--navy); font-weight: 500; transform: translate(-50%, -140%); white-space: nowrap; }
.big-stat { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding-left: clamp(0px, 10vw, 200px); }
.big-stat strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 4.2vw, 80px); line-height: 1; }
.big-stat span { max-width: 216px; }

.location-content h2 { margin-bottom: clamp(32px, 3.5vw, 60px); }
.contact-row { display: flex; gap: 25px; align-items: flex-start; }
.contact-row + .contact-row { margin-top: 40px; }
.contact-row .box { width: 70px; height: 70px; flex: 0 0 70px; background: var(--white); display: grid; place-items: center; }
.contact-row .box img { width: 30px; height: 30px; }
.contact-row small { display: block; font-size: 14px; margin-bottom: 5px; }
.contact-row strong { font-family: var(--font-display); font-weight: 600; font-size: var(--h6); color: var(--ink); }

.counters { display: flex; gap: clamp(32px, 4vw, 70px); flex-wrap: wrap; margin-top: clamp(48px, 6vw, 110px); }
.counter strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--h4); color: var(--navy); margin-bottom: 12px; }
.counter span { display: block; max-width: 247px; }

/* --------------------------------------------------------------------------
   Testimonials & certificate
   -------------------------------------------------------------------------- */
.social-proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.testimonial { display: grid; grid-template-columns: minmax(0, 473fr) minmax(0, 387fr); background: var(--white); min-height: 460px; }
.testimonial-body { padding: 50px; display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; margin-bottom: 24px; }
.stars img { width: 22px; height: 22px; }
.testimonial blockquote { margin: 0 0 24px; max-width: 362px; }
.testimonial cite { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: var(--h6); color: var(--ink); }
.testimonial .slider-nav { margin-top: auto; padding-top: 32px; }
.testimonial-media { --cut: 60px; }
.testimonial-media .ph { height: 100%; }

.certificate { background: var(--navy); color: var(--white); padding: 50px; min-height: 460px; display: flex; flex-direction: column; align-items: flex-start; --cut: 60px; }
.certificate-badge { width: 100px; height: auto; margin-bottom: 32px; background: var(--white); border-radius: 50%; }
.certificate-icon { width: 72px; height: 72px; margin-bottom: 32px; color: var(--white); opacity: 0.9; }
.certificate h3 { color: var(--white); font-weight: 700; margin-bottom: 16px; max-width: 14ch; }
.certificate p { color: rgba(255, 255, 255, 0.8); max-width: 52ch; }
.certificate-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.certificate-list li { position: relative; padding-left: 22px; }
.certificate-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 2px; background: var(--white); }
.certificate .text-link { margin-top: auto; padding-top: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: inherit; }
.text-link .i-arrow { width: 22px; height: 22px; transition: transform 0.3s ease; }
.text-link:hover .i-arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta { display: grid; grid-template-columns: minmax(0, 975fr) minmax(0, 745fr); background: var(--navy); color: var(--white); --cut: 70px; }
.cta--text-only { grid-template-columns: 1fr; }
.cta-body { padding: clamp(40px, 4.6vw, 89px) clamp(24px, 5.7vw, 110px); display: flex; flex-direction: column; justify-content: center; gap: 30px; align-items: flex-start; }
.cta-body h2 { color: var(--white); max-width: 841px; }
.cta-body p { max-width: 640px; opacity: 0.8; }
.cta-media { aspect-ratio: 745 / 435; }

/* --------------------------------------------------------------------------
   Blog / news cards
   -------------------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.blog-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-intro { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 10px; }
.blog-intro h2 { margin: 0; }
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-media { aspect-ratio: 392 / 232; flex: none; min-height: 0; overflow: hidden; }
.blog-card .card-media img { box-sizing: border-box; transition: transform 0.5s ease; }
.blog-card:hover .card-media img { transform: scale(1.04); }
.blog-card .card-body { background: var(--white); padding: 26px 24px; flex: 1; display: flex; flex-direction: column; gap: 24px; }
.blog-card h6 { min-height: 3.6em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; }

/* Paginated archive */
.post-list-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(40px, 4vw, 64px); }
.post-list-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 50px; height: 50px; padding: 0 14px; border: 1px solid var(--navy); color: var(--navy); background: var(--white); font-weight: 600; }
.post-list-pagination .page-numbers.current, .post-list-pagination .page-numbers:hover { background: var(--navy); color: var(--white); }
.post-list-pagination .page-numbers.dots { border: 0; background: transparent; }
.post-list-empty { text-align: center; padding: clamp(32px, 4vw, 64px) 0; }

/* Single post */
.post-article { max-width: 878px; }
.post-article .post-meta { font-size: 14px; margin-bottom: 24px; }
.post-article .post-thumb { aspect-ratio: 16 / 9; --cut: 60px; margin-bottom: clamp(32px, 3vw, 48px); }
.post-back { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(32px, 3vw, 48px); font-weight: 600; color: var(--navy); }
.post-back .i-arrow { width: 22px; height: 22px; transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; background: var(--navy); color: var(--white); padding: clamp(80px, 9.5vw, 183px) 0 0; overflow: hidden; --cut: clamp(60px, 5.2vw, 100px); }
.site-footer::after {
  content: ""; position: absolute; right: -120px; bottom: -100px; width: 612px; height: 598px;
  background: url("../img/logo/mark-white.svg") center / contain no-repeat; opacity: 0.03; pointer-events: none;
}
.footer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px 56px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 48px; }
.newsletter h6 { color: var(--white); margin-bottom: 25px; }
.newsletter form { display: flex; align-items: center; border: 1.5px solid var(--white); height: 50px; padding: 0 12px 0 20px; max-width: 420px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--white); font: inherit; font-size: 14px; }
.newsletter input::placeholder { color: var(--light); }
.newsletter button img { width: 30px; height: 30px; }
.newsletter .wpcf7-form { display: flex; align-items: center; border: 1.5px solid var(--white); height: 50px; padding: 0 12px 0 20px; max-width: 420px; }
.newsletter .wpcf7-form-control-wrap { flex: 1; display: block; min-width: 0; }
.newsletter .wpcf7-form input[type="email"] { width: 100%; }
.newsletter .wpcf7-form input[type="submit"] { color: var(--white); font-weight: 700; }
.newsletter .wpcf7-response-output { border: 0; margin: 12px 0 0; padding: 0; font-size: 14px; }
.newsletter .wpcf7-spinner { display: none; }

.footer-col h5 { color: var(--white); margin-bottom: 25px; }
.footer-links { display: flex; gap: 48px; }
.footer-links ul, .footer-col ul { display: grid; gap: 15px; align-content: start; }
.footer-col li a, .footer-col li span { opacity: 0.6; transition: opacity 0.2s ease; }
.footer-col li a:hover, .footer-col li.is-active a { opacity: 1; }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
.footer-contact li a, .footer-contact li span { opacity: 1; }
.footer-contact li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact img { width: 24px; height: 24px; flex: 0 0 24px; }
.footer-contact li + li { margin-top: 20px; }
.footer-bottom {
  margin-top: clamp(48px, 5vw, 96px); padding: 30px 0 36px; border-top: 2px solid rgba(255, 255, 255, 0.05);
  display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; font-size: 15px;
}
.footer-bottom p { margin: 0; }
.footer-credit { opacity: 0.7; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.footer-credit a { text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.footer-credit a:hover { opacity: 1; }
.footer-credit img { width: 14px; height: 14px; }
.footer-credit .sep { opacity: 0.5; }

/* --------------------------------------------------------------------------
   Inner page pieces
   -------------------------------------------------------------------------- */
.page-header h1 { max-width: 1069px; }
.page-header .lead { margin-top: 20px; max-width: 780px; }

/* Banner hero (offer page: full-width navy with centred title) */
.banner { margin-top: clamp(96px, 6.1vw, 118px); background: var(--navy); color: var(--white); text-align: center; padding: clamp(64px, 7vw, 134px) var(--gutter); }
.banner h1 { color: var(--white); font-size: clamp(38px, 3.9vw, 75px); }
.banner p { max-width: 733px; margin: 10px auto 0; opacity: 0.5; }
.banner { margin-bottom: calc(var(--section) * 0.6); }

/* Certificate band (brodplast/quote-band) and the white CTA card (cta variant "card") */
.quote-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
  background: var(--navy); color: var(--white); padding: clamp(28px, 3.6vw, 70px) clamp(24px, 4.7vw, 90px);
  max-width: 1375px; margin-inline: auto; --cut: 60px;
}
.quote-band .who { display: flex; align-items: center; gap: 21px; }
.quote-band .who img { width: 100px; height: 100px; flex: 0 0 100px; border-radius: 50%; background: var(--white); object-fit: contain; }
.quote-band__icon { width: 72px; height: 72px; flex: 0 0 72px; }
.quote-band .who h4 { color: var(--white); margin-bottom: 8px; }
.quote-band .who p { opacity: 0.6; max-width: 362px; }
.quote-band .row { display: flex; gap: 36px; flex-wrap: wrap; }
.quote-band .stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--h3); line-height: 1.1; }
.quote-band .stat span { display: block; font-size: 14px; opacity: 0.6; margin-top: 8px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--white); padding: 40px; max-width: 1040px; margin-inline: auto; }
.cta-card h4 { max-width: 610px; }
.cta-card p { margin-top: 10px; max-width: 610px; }

/* Long-form prose */
.sf-prose { max-width: 878px; }
.sf-prose--wide { max-width: none; }
.sf-prose { overflow-wrap: break-word; }
.sf-prose > * + * { margin-top: 1.1em; }
.sf-prose > ul, .sf-prose > ol { margin-bottom: 1.1em; }
.sf-prose > :last-child { margin-bottom: 0; }
.sf-prose h2, .sf-prose h3, .sf-prose h4, .sf-prose h5 { margin-top: 1.8em; margin-bottom: 0.5em; }
.sf-prose h2 { font-size: var(--h4); } .sf-prose h3 { font-size: var(--h5); } .sf-prose h4, .sf-prose h5 { font-size: var(--h6); }
.sf-prose > h2:first-child, .sf-prose > h3:first-child { margin-top: 0; }
.sf-prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.sf-prose ul, .sf-prose ol { padding-left: 27px; display: grid; gap: 10px; }
.sf-prose ul { list-style: disc; } .sf-prose ol { list-style: decimal; }
.sf-prose img { height: auto; }
.sf-prose figure { margin: 0; }
.sf-prose blockquote { margin: 0; padding: 20px 30px; border-left: 3px solid var(--navy); background: var(--white); }
.sf-prose table { width: 100%; border-collapse: collapse; }
.sf-prose th, .sf-prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sf-prose hr { border: 0; border-top: 1px solid var(--line); }
.sf-prose .sf-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sf-prose .sf-logos img { display: block; width: auto; height: auto; max-height: 64px; }
.prose-head h2 { margin-bottom: clamp(24px, 2.5vw, 40px); max-width: 878px; }
/* Prose with a right-hand column (year badge and / or image): text left at its usual
   width, the extra on the content's right edge — in line with the about block's badge. */
.prose-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.prose-main { flex: 1 1 auto; min-width: 0; }
.prose-aside { flex: 0 0 auto; display: grid; gap: 24px; justify-items: end; }
.prose-aside__img { display: block; width: min(300px, 100%); height: auto; }

/* File / PDF block (brodplast/post-file): pdf-embed.js swaps the <object> for canvas pages */
.sf-file { max-width: 878px; }
.sf-file__embed { display: block; width: 100%; height: 600px; background: var(--white); }
/* The rendered pages sit in a fixed-height window that scrolls, like a PDF viewer. */
.sf-pdf { height: min(75vh, 900px); overflow-y: auto; margin: 0 0 24px; padding: 16px; background: var(--white); border: 1px solid var(--line); scrollbar-width: thin; }
.sf-pdf__page { display: block; width: 100%; height: auto; box-shadow: 0 2px 14px rgba(29, 38, 53, 0.12); background: var(--white); }
.sf-pdf__page + .sf-pdf__page { margin-top: 16px; }
.sf-file__embed:not([hidden]) + .sf-file__button, .sf-pdf + .sf-file__button { margin-top: 0; }

/* Forms (contact page + CF7) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 46px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--gray); }
.field--lg label { font-size: var(--body); margin-bottom: 12px; }
.field input, .field textarea, .field select,
.sf-cf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .sf-cf7 textarea, .sf-cf7 select {
  width: 100%; height: 51px; padding: 12px 16px; background: var(--bg); border: 0; outline: 0; font: inherit; color: var(--ink);
}
.field textarea, .sf-cf7 textarea { height: 137px; resize: vertical; }
.field--sm textarea { height: 92px; }
.field input:focus, .field textarea:focus, .sf-cf7 input:focus, .sf-cf7 textarea:focus { box-shadow: inset 0 0 0 2px var(--navy); }
.field + .field { margin-top: 28px; }
.form-grid .field + .field { margin-top: 0; }
.sf-cf7 .wpcf7-form-control-wrap { display: block; }
.sf-cf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #b42318; }
.sf-cf7 .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border: 2px solid var(--navy); font-size: 14px; }
.sf-cf7 .wpcf7-form.sent .wpcf7-response-output { background: var(--navy); color: var(--white); }
.sf-cf7 .wpcf7-form.invalid .wpcf7-response-output, .sf-cf7 .wpcf7-form.failed .wpcf7-response-output { border-color: #b42318; }
.sf-cf7 .wpcf7-spinner { display: block; margin: 12px 0 0; }
.sf-cf7 .wpcf7-turnstile { margin-bottom: 18px; }
.sf-cf7 input[type="submit"] { cursor: pointer; }
.sf-cf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.sf-cf7 .wpcf7-acceptance input { width: auto; height: auto; margin-top: 4px; }

/* Contact page: navy info panel + white form */
.contact-block { display: grid; grid-template-columns: minmax(0, 714fr) minmax(0, 1006fr); background: var(--white); }
.contact-info { background: var(--navy); color: var(--white); padding: clamp(40px, 3.6vw, 70px); display: flex; flex-direction: column; gap: 32px; --cut: clamp(50px, 4.2vw, 80px); }
.contact-info h2 { color: var(--white); margin-bottom: 20px; }
.contact-info .intro { opacity: 0.8; max-width: 574px; }
.contact-info .hours strong { display: block; font-weight: 600; margin-bottom: 12px; }
.contact-info .hours p { font-size: 14px; opacity: 0.8; }
.contact-info .hours p + p:has(> strong) { margin-top: 14px; }
.contact-info .hours p > strong { margin-bottom: 4px; }
.contact-info .fig { aspect-ratio: 574 / 238; max-width: 574px; margin-top: auto; }
.contact-form { padding: clamp(32px, 3.5vw, 67px) clamp(24px, 3.7vw, 70px); }
.contact-form .btn, .contact-form input[type="submit"] { margin-top: 40px; }
.contact-form input[type="submit"] {
  display: inline-flex; padding: 12px 30px; background: var(--navy); color: var(--white); border: 2px solid var(--navy);
  font: inherit; font-weight: 500; line-height: 1.5; transition: background-color 0.2s ease;
}
.contact-form input[type="submit"]:hover { background: var(--navy-deep); }

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 392px)); gap: 50px; }
.offices-head { margin-bottom: clamp(40px, 4vw, 80px); }
.office { background: var(--white); padding: 40px; --cut: 50px; display: flex; flex-direction: column; }
.office h5 { margin-bottom: 30px; }
.office .office-sub { margin: -18px 0 22px; }
.office .icon-list { display: grid; gap: 15px; margin-bottom: 30px; }
.office .btn { margin-top: auto; align-self: flex-start; }

/* Link cards (index of subpages, e.g. EU projekti) */
.link-cards-head { margin-bottom: clamp(24px, 3vw, 48px); }
.link-cards-text { max-width: 780px; margin-bottom: clamp(24px, 3vw, 48px); }
.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.link-card { background: var(--white); color: var(--ink); padding: 40px; --cut: 50px; display: flex; flex-direction: column; transition: background-color 0.35s ease, color 0.35s ease; }
.link-cards .link-card.reveal { transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease, opacity 0.6s ease; }
.link-card__meta { margin-bottom: 10px; color: var(--navy); font-weight: 600; transition: color 0.35s ease; }
.link-card h5 { margin-bottom: 14px; color: inherit; }
.link-card__text { color: var(--gray); margin-bottom: 28px; transition: color 0.35s ease; }
.link-card__cta { margin-top: auto; color: var(--navy); transition: color 0.35s ease; }
a.link-card:hover, a.link-card:focus-visible { background: var(--navy); color: var(--white); }
a.link-card:hover .link-card__meta, a.link-card:focus-visible .link-card__meta,
a.link-card:hover .link-card__cta, a.link-card:focus-visible .link-card__cta { color: var(--white); }
a.link-card:hover .link-card__text, a.link-card:focus-visible .link-card__text { color: rgba(255, 255, 255, 0.8); }
a.link-card:hover .i-arrow, a.link-card:focus-visible .i-arrow { transform: translateX(4px); }
.link-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
/* Rows: title-only items as plain one-line links */
.link-cards--rows { grid-template-columns: 1fr; gap: 12px; max-width: 1100px; }
/* --cut 24px: the design's chamfer, scaled to a ~68px-tall row; the arrow sits clear of it. */
.link-cards--rows .link-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 36px 22px 28px; --cut: 24px; }
.link-cards--rows .link-card h5 { margin: 0; font-size: var(--h6); }
.link-cards--rows .link-card__cta { margin: 0; flex: 0 0 auto; }

/* Google map */
/* Height, not aspect-ratio: with aspect-ratio a min-height is transferred into
   a min-WIDTH through the ratio (320px tall → 917px wide on a phone). */
.map-embed { position: relative; height: clamp(320px, 35vw, 600px); background: var(--white); --cut: 60px; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* About page */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: clamp(120px, 8.75vw, 168px); }
.about-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.about-hero-text h1 { max-width: 780px; font-size: var(--h1); }
.about-hero-media { position: relative; aspect-ratio: 780 / 940; --cut: clamp(60px, 5vw, 96px); justify-self: end; width: 100%; max-width: 780px; }
.about-hero-media .since { position: absolute; right: 0; bottom: 0; background: var(--white); color: var(--ink); z-index: 2; }
.about-hero-media .since strong { color: var(--ink); }
/* The hero sits above the navy band so its photo can hang over it — but its box also
   reaches down over the band's tab row (the text column stretched to the photo's height
   and swallowed the clicks). Only the title/button and the photo take pointer events. */
.about-hero { position: relative; z-index: 2; pointer-events: none; }
.about-hero-text { align-self: start; }
.about-hero-text, .about-hero-media { pointer-events: auto; }
.about-hero-photo { position: absolute; inset: 0; }

/* Mission band (brodplast/tabs-band): navy, tucked under the about-hero photo */
.mission-band {
  position: relative; background: var(--navy); color: var(--white);
  margin-top: clamp(-420px, -22vw, -260px);
  padding: clamp(180px, 20vw, 380px) 0 clamp(60px, 5.6vw, 108px);
  --cut: clamp(50px, 5vw, 96px);
}
.mission-band--plain { margin-top: 0; padding-top: clamp(60px, 5.6vw, 108px); }
.mission-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.mission-band--plain .wrap { grid-template-columns: 1fr; }
.tabs { display: flex; gap: 12px 40px; margin-bottom: 30px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid transparent;
  opacity: 0.6; font-family: var(--font-display); font-weight: 600; font-size: var(--h6); color: var(--white);
  transition: opacity 0.2s ease;
}
.tab img, .tab .tab-icon { width: 20px; height: 20px; }
.tab.is-active, .tab:hover { opacity: 1; }
.tab.is-active { border-color: var(--white); }
.tab-panel { max-width: 780px; }
.js .tab-panel { display: none; }
.js .tab-panel.is-active { display: block; }
.tab-panel + .tab-panel { margin-top: 24px; }
.tab-panel > * + * { margin-top: 1em; }
.tab-panel ul { padding-left: 27px; list-style: disc; display: grid; gap: 8px; }
.tab-panel img { width: 130px; height: auto; background: var(--white); }

/* Timeline (brodplast/timeline) */
.timeline { display: grid; grid-template-columns: minmax(0, 536px) minmax(0, 1fr); gap: 60px; align-items: start; }
.timeline-intro { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.timeline-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.timeline-track::-webkit-scrollbar { display: none; }
.milestone { flex: 0 0 min(517px, 86vw); scroll-snap-align: start; padding-right: 60px; display: flex; flex-direction: column; }
.milestone .year { display: block; font-weight: 500; color: var(--ink); margin-bottom: 20px; }
.milestone .rail { position: relative; height: 20px; margin-bottom: 20px; }
.milestone .rail::before { content: ""; position: absolute; left: 0; right: -60px; top: 9px; height: 2px; background: var(--navy); }
.milestone .rail img { position: absolute; left: 0; top: 0; width: 20px; height: 20px; }
.milestone .card { background: var(--white); padding: 30px; --cut: 40px; min-height: 200px; flex: 1; }
.milestone .card h6 { color: var(--navy); margin-bottom: 12px; }
.milestone .card p + p { margin-top: 12px; }

.values { display: grid; grid-template-columns: minmax(0, 921fr) minmax(0, 999fr); gap: clamp(32px, 4vw, 80px); align-items: center; }
.values-media { aspect-ratio: 921 / 796; margin-left: calc(-1 * var(--gutter)); --cut: clamp(60px, 5vw, 96px); }
.values-content h2 { max-width: 700px; margin-bottom: clamp(32px, 3.5vw, 64px); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 3vw, 56px) 40px; }
.feature img, .feature .card-icon { width: 60px; height: 60px; margin-bottom: 20px; color: var(--navy); }
.feature h6 { margin-bottom: 10px; }
.feature p { max-width: 350px; }

.stats-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--navy); color: var(--white); --cut: 70px; }
.stats-cta .stats-body { padding: clamp(40px, 4vw, 75px) clamp(24px, 3.7vw, 70px); display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.stats-cta h2 { color: var(--white); }
.stats-cta .row { display: flex; gap: clamp(32px, 3vw, 60px); flex-wrap: wrap; }
.stats-cta .stat strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--h5); }
.stats-cta .stat span { display: block; font-size: 14px; opacity: 0.6; margin-top: 6px; max-width: 160px; }
.stats-cta .stats-media { aspect-ratio: 860 / 393; }
.stats-cta--text { grid-template-columns: 1fr; }
.stats-cta .stat strong { font-size: var(--h3); }

/* Logo grid (partners) */
.logo-grid-head { margin-bottom: clamp(24px, 3vw, 48px); }
.logo-grid-text { max-width: 780px; margin-bottom: clamp(24px, 3vw, 48px); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.logo-grid li { background: var(--white); display: grid; place-items: center; padding: 18px 20px; min-height: 124px; }
.logo-grid li a { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-grid img { max-width: 100%; max-height: 88px; width: auto; height: auto; object-fit: contain; }

/* Stats band (EU project summary) */
.stats-band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--navy); color: var(--white); --cut: 70px; }
.stats-band--text { grid-template-columns: 1fr; }
.stats-band__body { padding: clamp(40px, 4.6vw, 89px) clamp(24px, 5vw, 96px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.stats-band__logo { height: 64px; width: auto; background: var(--white); padding: 8px 12px; }
.stats-band h2 { color: var(--white); font-size: var(--h3); max-width: 20ch; }
.stats-band__text { opacity: 0.85; max-width: 62ch; }
.stats-band__text p + p { margin-top: 14px; }
.stats-band__stats { background: var(--navy-deep); padding: clamp(40px, 4.6vw, 89px) clamp(24px, 4vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.stats-band__stats h5 { color: var(--white); }
.stats-band__stat { display: flex; gap: 20px; align-items: flex-start; }
.stats-band__icon { flex: 0 0 72px; width: 72px; height: 72px; background: var(--white); display: grid; place-items: center; }
.stats-band__icon img { width: 56px; height: 56px; object-fit: contain; }
.stats-band__stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--h4); line-height: 1.1; }
.stats-band__label { display: block; font-weight: 600; margin-top: 4px; }
.stats-band__stat small { display: block; font-size: 14px; opacity: 0.7; margin-top: 6px; max-width: 44ch; }

/* People / department contacts */
.people-head { margin-bottom: clamp(24px, 3vw, 48px); }
.people-group + .people-group { margin-top: clamp(40px, 4vw, 72px); }
.people-group h3 { font-size: var(--h5); margin-bottom: 20px; }
/* One-line e-mail addresses: the longest (antonija.horvatovic@brodplast.com) is 253px at
   16px, plus 33px icon + gap and 2 × 22px padding = 330px, the minimum card width. Only
   phones narrower than 370px still wrap, at the @. */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.person { background: var(--white); padding: 30px 22px; --cut: 40px; }
.person-role { margin-bottom: 6px; color: var(--navy); font-weight: 600; }
.person h6 { margin-bottom: 18px; }
.person .icon-list { display: grid; gap: 10px; font-size: 16px; }
.person .icon-list a { overflow-wrap: anywhere; }

/* Company data panel */
.company-data { background: var(--navy); color: var(--white); padding: clamp(32px, 3.6vw, 70px); --cut: clamp(50px, 4.2vw, 80px); }
.company-data h2 { color: var(--white); font-size: var(--h3); margin-bottom: clamp(24px, 2.5vw, 40px); }
.company-data dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 48px; }
.company-data dt { font-size: 14px; opacity: 0.6; margin-bottom: 6px; }
.company-data dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.social-proof--single { grid-template-columns: 1fr; }
.social-proof--single .certificate { min-height: 0; }
.social-proof--single .certificate h3 { max-width: none; }
.contact-info .intro a { text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.bp-404 { max-width: var(--max); margin-inline: auto; padding: clamp(120px, 10.3vw, 197px) var(--gutter) var(--section); min-height: 60vh; }
.bp-404__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(96px, 14vw, 220px); line-height: 0.9; color: var(--navy); margin-bottom: 20px; }
.bp-404__actions { margin-top: 40px; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Below ~1640px the three-column about row leaves the copy under 300px: go to photo + content. */
@media (max-width: 1640px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .about-content { grid-column: 2; }
  .footer-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px 40px; }
  .footer-links { gap: 32px; }
}

@media (max-width: 1400px) {
  .social-proof { gap: 24px; }
  /* Four across down to the tablet breakpoint (eight cards = two full rows), compact card. */
  .products-grid { gap: 20px; }
  .product-card { padding: 20px 20px 24px; }
  .product-name { font-size: 18px; padding-right: 0; margin-bottom: 16px; }
  .product-go { position: static; margin-top: auto; }
  .blog-grid, .blog-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1101px) {
  .menu > li > a { white-space: nowrap; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .site-nav { gap: 24px; }
  .menu { gap: 18px; }
}

@media (max-width: 1100px) {
  .service-card .card-body { padding: 32px 28px 24px; }
  .services-grid .service-card--featured .card-body { flex-basis: 50%; padding: 40px 32px; }
  .nav-toggle { display: grid; }
  /* Full-screen panel sliding in from the right (same drawer as the other Swiftframe sites).
     Visibility is delayed on close so the slide-out can play; .site-header is absolute at the
     page top, so the panel is fixed to the viewport, not to the header. */
  .site-nav {
    position: fixed; inset: 0; z-index: 100; overflow-y: auto;
    display: flex; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 110px var(--gutter) 40px; background: var(--white); color: var(--navy);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
  }
  body.admin-bar .site-nav { top: 46px; }
  .nav-open .site-nav { transform: translateX(0); visibility: visible; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s; }
  .nav-close { display: grid; place-items: center; position: absolute; top: 31px; right: var(--gutter); width: 44px; height: 44px; font-size: 40px; line-height: 1; color: var(--navy); }
  .nav-open .nav-toggle { visibility: hidden; }
  /* Links stagger in once the panel is open */
  .site-nav > .menu > li, .site-nav > .btn-header { opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; }
  .nav-open .site-nav > .menu > li, .nav-open .site-nav > .btn-header { opacity: 1; transform: none; }
  .nav-open .site-nav > .menu > li:nth-child(1) { transition-delay: 0.18s; }
  .nav-open .site-nav > .menu > li:nth-child(2) { transition-delay: 0.24s; }
  .nav-open .site-nav > .menu > li:nth-child(3) { transition-delay: 0.30s; }
  .nav-open .site-nav > .menu > li:nth-child(4) { transition-delay: 0.36s; }
  .nav-open .site-nav > .menu > li:nth-child(n+5), .nav-open .site-nav > .btn-header { transition-delay: 0.42s; }
  .menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .menu > li > a { font-size: var(--h6); padding-block: 12px; }
  .site-nav > .btn-header { align-self: flex-start; margin-top: 8px; }
  .menu a { display: flex; padding: 10px 0 10px 14px; }
  .menu a::before { left: 0; top: 50%; transform: translateY(-50%); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 0 0 8px 16px; }
  .has-sub.is-open > .submenu { display: block; }
  .has-sub:hover > .submenu:not(.is-open) { display: none; }
  .has-sub.is-open > .submenu { display: block; }
  .has-sub > a { justify-content: space-between; }
  .site-header--dark .btn-header { background: var(--navy); color: var(--white); border-color: var(--navy); }
  @media (prefers-reduced-motion: reduce) { .site-nav, .site-nav > .menu > li, .site-nav > .btn-header { transition: none; } }

  .hero-top { grid-template-columns: 1fr; }
  .hero-top p { justify-self: start; text-align: left; margin-top: 0; }
  .hero { padding-bottom: calc(10vw + 56px); }
  .hero::before { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10vw), 0 100%); }

  .about, .location, .values, .about-hero { grid-template-columns: 1fr; }
  /* Back into the single column: left in column 2 it created an implicit column that
     collapsed the photo to zero width and indented the text by the grid gap. */
  .about-content { grid-column: auto; }
  .about-media { margin-top: 0; max-width: 624px; }
  .about-copy { flex-basis: 100%; max-width: none; }
  .mission-band { margin-top: 0; padding-top: clamp(60px, 8vw, 100px); }
  .quote-band { grid-template-columns: 1fr; }
  .mission-band .wrap, .timeline { grid-template-columns: 1fr; }
  .timeline { gap: 32px; }
  /* One column: the track runs out to the screen edge so the next card peeks in. */
  .timeline-track { margin-right: calc(-1 * var(--gutter)); }
  .prose-row { flex-direction: column; }
  .prose-aside { justify-items: start; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
  .testimonial { grid-template-columns: 1fr; }
  .testimonial-media { aspect-ratio: 16 / 9; }
  .cta, .stats-cta, .contact-block, .stats-band { grid-template-columns: 1fr; }
  .cta-media, .stats-cta .stats-media { aspect-ratio: 16 / 9; }
  .values-media { margin-left: 0; }
  .about-hero-media { justify-self: start; }
}

@media (max-width: 900px) {
  .social-proof { grid-template-columns: 1fr; }
  .certificate { min-height: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .link-cards { grid-template-columns: 1fr; gap: 24px; }
  .link-card { padding: 32px 28px; }
  .link-cards--rows { gap: 10px; }
  .link-cards--rows .link-card { padding: 18px 28px 18px 20px; gap: 16px; --cut: 20px; }
  .services-grid .service-card:not(.service-card--featured) .card-media { aspect-ratio: auto; height: clamp(220px, 36vw, 300px); }
  .services-grid .service-card:not(.service-card--featured) .ph--contain { padding: 12px; }
  .services-grid .service-card--featured { flex-direction: column; }
  .services-grid .service-card--featured .card-body { flex: 1; padding: 32px 28px 30px; }
  .services-grid .service-card--featured .card-media { aspect-ratio: 494 / 251; min-height: 0; }
  .services-grid .service-card--featured .card-media .ph { position: static; }
}

@media (max-width: 720px) {
  :root { --cut: 32px; }
  .section-head { flex-direction: column; }
  .carousel { gap: 24px; }
  .services-grid { gap: 24px; }
  .products-grid { gap: 16px; }
  .product-card { padding: 16px 16px 20px; }
  .product-name { font-size: 16px; margin-bottom: 14px; }
  .product-go { width: 40px; height: 40px; }
  .services-grid .service-card--featured .btn { padding-inline: 20px; white-space: normal; text-align: center; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .logo-grid li { min-height: 96px; padding: 14px; }
  .logo-grid img { max-height: 64px; }
  .certificate { padding: 32px 24px; }
  .testimonial-body { padding: 32px 24px; }
  .blog-grid, .blog-grid--3 { grid-template-columns: 1fr; }
  .blog-intro { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .big-stat { padding-left: 0; }
  .contact-row + .contact-row { margin-top: 24px; }
  .site-footer::after { width: 360px; height: 350px; }
  .hero-actions .btn { white-space: normal; text-align: center; }
  .about-actions { gap: 20px; }
  .since { width: min(276px, 100%); }
  .milestone { padding-right: 24px; }
  .milestone .rail::before { right: -24px; }
  .milestone .card { padding: 24px; }
  .about-hero-media .since { width: 190px; height: 160px; padding: 20px; }
  .about-hero-text { gap: 24px; }
}

/* --------------------------------------------------------------------------
   Loading screen (inc/loader.php) — same choreography as the red cross themes:
   mark fades in centred, slides to its final spot, wordmark wipes in beside it,
   whole screen fades away. Lockup geometry follows the horizontal logo.
   -------------------------------------------------------------------------- */
.loader-screen { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: var(--white); overflow: hidden; }
.loader-screen::before {
  content: ""; position: absolute; inset: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, transparent 10%, rgba(29, 57, 96, 0.06) 50%, rgba(29, 57, 96, 0.22) 100%); pointer-events: none;
}
.loader-screen .logo-container { position: relative; transform: scale(1); }
@media (min-width: 640px)  { .loader-screen .logo-container { transform: scale(1.5); } }
@media (min-width: 1024px) { .loader-screen .logo-container { transform: scale(2); } }
.loader-screen .logo-main { display: flex; align-items: flex-start; gap: 9px; width: 228px; }
.loader-screen .logo-word {
  display: block; width: 176px; height: auto; margin-top: 8px; clip-path: inset(0 100% 0 0); transform: translateY(6px);
  animation: sfRevealWord 0.4s ease-in-out 1.7s forwards, sfSettleWord 0.3s ease-in-out 2.15s forwards;
}
.loader-screen .logo-mark {
  display: block; width: 43px; height: 43px; flex-shrink: 0; opacity: 0; transform: translateX(-92px);
  animation: sfFadeInMark 0.6s ease-out 0.3s forwards, sfMoveMarkRight 0.6s ease-in-out 1.0s forwards;
}
.loader-screen.done { animation: sfLoaderOut 0.5s ease-in 3.15s forwards; }
@keyframes sfFadeInMark    { from { opacity: 0; } to { opacity: 1; } }
@keyframes sfMoveMarkRight { from { transform: translateX(-92px); } to { transform: translateX(0); } }
@keyframes sfRevealWord    { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sfSettleWord    { from { transform: translateY(6px); } to { transform: translateY(0); } }
@keyframes sfLoaderOut     { to { opacity: 0; visibility: hidden; } }
