/* ================================================================
   PIRNAR × INSIGNIA — Partner Site
   Design system based on pirnar.nl (Source Sans Pro + #d71920 red)
   ================================================================ */

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #f8f6f5;
  --white:   #ffffff;
  --text:    #393939;
  --muted:   #555759;
  --light:   #a1a1a1;
  --red:     #d71920;
  --red-d:   #9a1217;
  --dark:    #393939;
  --bdr:     #e0e0e0;
  --gal-bg:  #3b3b3b;
  --font:    'Source Sans Pro', sans-serif;
  --mw:      1680px;
  --pad:     40px;
  --ease:    cubic-bezier(.25,.46,.45,.94);
  --t:       .25s;
}
@media (max-width: 768px) { :root { --pad: 20px; } }

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.73;
  overflow-x: hidden;
  padding-top: 75px;
}
@media (min-width: 1024px) { body { font-size: 17px; line-height: 1.7333; } }
@media (min-width: 1280px) { body { padding-top: 120px; } }

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--text); text-decoration: underline; transition: color var(--t); }
a:hover { color: var(--red); }

.wrap { box-sizing: border-box; margin: 0 auto; max-width: var(--mw); padding: 0 var(--pad); position: relative; }

/* ── Typography — pirnar.nl exact ──────────────────────────── */
h1 {
  color: var(--text); font-size: clamp(38px,4.5vw,52px);
  font-weight: 300; line-height: 1.15; margin: 20px 0;
  padding: 20px 0 0; position: relative;
}
h1::before { border-top: 3px solid var(--red); content: ''; left: 0; position: absolute; top: 0; width: 80px; }
@media (min-width: 768px) { h1::before { width: 120px; } }

h2 {
  color: var(--text); font-size: clamp(32px,4vw,48px);
  font-weight: 300; line-height: 1.17; margin: 0 0 .5em;
  padding: 20px 0 0; position: relative;
}
h2::before { border-top: 3px solid var(--red); content: ''; left: 0; position: absolute; top: 0; width: 80px; }
@media (min-width: 768px) { h2::before { width: 120px; } }
h2.h-center { text-align: center; }
h2.h-center::before { left: 50%; transform: translateX(-50%); }
h2.h-noline { padding-top: 0; }
h2.h-noline::before { display: none; }

h3 {
  color: var(--dark); font-size: clamp(16px,2.2vw,24px);
  font-weight: 700; line-height: 1.5; margin: 1em 0 .6em;
  padding: 10px 0 0; position: relative;
}
h3::before { border-top: 2px solid var(--red); content: ''; left: 0; position: absolute; top: 0; width: 50px; }
h3.h-noline { padding-top: 0; }
h3.h-noline::before { display: none; }

p { margin: 0 0 1em; }

.sup {
  color: var(--light); display: block; font-size: 13px;
  font-weight: 400; letter-spacing: 1px; margin-bottom: 14px; text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────────────────── */
/* Arrow button — pirnar.nl signature style */
.btn-arrow {
  align-items: center; background: none; border: 0;
  color: var(--text); cursor: pointer; display: inline-flex;
  font-family: var(--font); font-size: 12px; font-weight: 700;
  height: 70px; letter-spacing: 1.5px; padding: 0;
  text-decoration: none; text-transform: uppercase; transition: color var(--t);
}
.btn-arrow::before {
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M7 4l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 14px;
  box-sizing: border-box; content: ''; flex: 0 0 50px; height: 70px;
  margin-right: 12px; transition: all var(--t);
}
.btn-arrow:hover { color: var(--red); }
.btn-arrow:hover::before {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23d71920' d='M7 4l6 6-6 6'/%3E%3C/svg%3E");
  background-position: 8px center;
  border: 1px solid var(--text);
}
.btn-arrow--white { color: #fff; }
.btn-arrow--white::before { background-color: var(--red); }
.btn-arrow--white:hover { color: rgba(255,255,255,.8); }

/* Filled red button */
.btn-red {
  background: var(--red); border: 0; color: #fff; cursor: pointer;
  display: inline-block; font-family: var(--font); font-size: 13px;
  font-weight: 600; letter-spacing: 1px; padding: 14px 22px;
  text-decoration: none; text-transform: uppercase; transition: background var(--t);
}
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-red--block { display: block; text-align: center; }

/* Ghost button (white outline, for dark bg) */
.btn-ghost {
  background: none; border: 1px solid rgba(255,255,255,.5); color: #fff;
  cursor: pointer; display: inline-block; font-family: var(--font);
  font-size: 13px; font-weight: 400; letter-spacing: 1px; padding: 14px 22px;
  text-decoration: none; text-transform: uppercase; transition: border-color var(--t);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* Square slider arrow */
.arr {
  align-items: center; border: none; cursor: pointer; display: flex;
  height: 52px; justify-content: center; transition: background var(--t); width: 52px;
}
.arr svg { fill: none; height: 16px; stroke: #fff; stroke-width: 2.5; width: 16px; }
.arr--red  { background: var(--red); }
.arr--red:hover  { background: var(--red-d); }
.arr--grey { background: #b0acaa; }
.arr--grey:hover { background: #999; }

/* ── Scroll Reveal Animations ───────────────────────────────── */
/* Pirnar.nl pattern: fade + slide up on scroll */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-group > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal-group.in > *:nth-child(1) { opacity:1; transform:none; transition-delay:.00s }
.reveal-group.in > *:nth-child(2) { opacity:1; transform:none; transition-delay:.10s }
.reveal-group.in > *:nth-child(3) { opacity:1; transform:none; transition-delay:.20s }
.reveal-group.in > *:nth-child(4) { opacity:1; transform:none; transition-delay:.30s }
.reveal-group.in > *:nth-child(5) { opacity:1; transform:none; transition-delay:.40s }
.reveal-group.in > *:nth-child(6) { opacity:1; transform:none; transition-delay:.50s }
.reveal-group.in > *:nth-child(7) { opacity:1; transform:none; transition-delay:.60s }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--bg); height: 75px; left: 0; position: fixed;
  top: 0; transition: box-shadow var(--t); width: 100%; z-index: 200;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.1); }
@media (min-width: 1280px) { .site-header { height: 120px; } }

.header-inner {
  align-items: center; display: flex; height: 100%;
  justify-content: space-between; margin: 0 auto;
  max-width: var(--mw); padding: 0 var(--pad); position: relative;
}

.site-logo { align-items: center; display: inline-flex; gap: 14px; text-decoration: none; }
.logo-full { height: 37px; width: auto; flex-shrink: 0; }
@media (min-width: 1280px) { .logo-full { height: 52px; } }
.site-logo__sub {
  border-left: 1px solid var(--bdr); color: var(--muted);
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  line-height: 1.3; padding-left: 14px; text-transform: uppercase;
}

.site-nav { display: none; gap: 28px; left: 50%; position: absolute; transform: translateX(-50%); }
@media (min-width: 1280px) { .site-nav { display: flex; } }
.site-nav a {
  color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 1px;
  padding: 10px 0; text-decoration: none; text-transform: uppercase; transition: color var(--t);
}
.site-nav a:hover, .site-nav a.active { color: var(--red); }

.header-cta {
  align-items: center; background: var(--red); border: 0; color: #fff;
  cursor: pointer; display: flex; flex-direction: column; font-family: var(--font);
  font-size: 12px; font-weight: 400; height: 75px; justify-content: center;
  line-height: 1.3; margin-right: calc(-1 * var(--pad)); padding: 0 16px;
  text-align: center; text-decoration: none; transition: background var(--t); width: 90px;
}
.header-cta:hover { background: var(--red-d); color: #fff; }
@media (min-width: 768px)  { .header-cta { font-size: 15px; width: 145px; } }
@media (min-width: 1280px) { .header-cta { height: 120px; } }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { overflow: hidden; position: relative; }

.hero__img {
  background: #1a1a1a; height: 520px; overflow: hidden; position: relative;
}
.hero__img img {
  height: 100%; object-fit: cover; object-position: center; width: 100%;
  animation: heroZoom 8s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (min-width: 1280px) { .hero__img { height: 650px; } }

.hero__overlay {
  background: rgba(0,0,0,.62); box-sizing: border-box; color: #fff;
  display: flex; flex-direction: column; height: 520px; justify-content: center;
  left: 0; max-width: 660px; padding: 50px var(--pad) 30px;
  position: absolute; top: 0; width: 100%;
}
@media (min-width: 768px)  { .hero__overlay { width: 50%; } }
@media (min-width: 1280px) {
  .hero__overlay { height: 650px; padding: 0 60px 0 calc(var(--pad) + 30px); width: 46%; }
}

.hero__inner { padding-top: 24px; position: relative; }
.hero__inner::before { border-top: 3px solid var(--red); content: ''; left: 0; position: absolute; top: 0; width: 120px; }
.hero__inner .sup { color: rgba(255,255,255,.75); margin-bottom: 14px; }
.hero__inner h1 { color: #fff; font-size: clamp(26px,3.8vw,52px); margin: 14px 0; padding: 0; }
.hero__inner h1::before { display: none; }
.hero__inner .text-large {
  color: rgba(255,255,255,.82); font-size: clamp(16px,1.5rem,20px);
  font-weight: 300; line-height: 1.5; margin: 0 0 28px;
}
.hero__btns { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats { background: var(--dark); color: #fff; padding: 36px var(--pad); }
.stats__grid {
  display: grid; gap: 20px; grid-template-columns: repeat(4,1fr);
  margin: 0 auto; max-width: var(--mw); text-align: center;
}
@media (max-width: 640px) { .stats__grid { grid-template-columns: repeat(2,1fr); } }
.stat__n { font-size: clamp(32px,4vw,52px); font-weight: 300; line-height: 1; margin-bottom: 5px; }
.stat__n span { color: var(--red); }
.stat__l { color: var(--light); font-size: 11px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; }

/* ── Section helpers ────────────────────────────────────────── */
.sec { padding: 70px var(--pad); }
@media (min-width: 1024px) { .sec { padding: 100px var(--pad); } }
.sec--bg   { background: var(--bg); }
.sec--dark { background: var(--dark); color: #fff; }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark h2::before, .sec--dark h3::before { border-color: var(--red); }
.sec--dark p { color: rgba(255,255,255,.72); }
.sec--dark .sup { color: rgba(255,255,255,.55); }

.sec__hd { margin: 0 auto var(--pad); max-width: var(--mw); }
.sec__hd.ct { text-align: center; }
.sec__hd.ct > * { margin-left: auto; margin-right: auto; }
.sec__desc { color: var(--muted); font-size: inherit; line-height: 1.73; margin-top: 18px; max-width: 700px; }
.sec--dark .sec__desc { color: rgba(255,255,255,.7); }

/* ── For Whom ───────────────────────────────────────────────── */
.whom { background: var(--bdr); display: grid; gap: 1px; grid-template-columns: repeat(3,1fr); margin: 50px auto 0; max-width: var(--mw); }
@media (max-width: 900px) { .whom { background: none; gap: 2px; grid-template-columns: 1fr; } }
.whom__card {
  background: var(--white); overflow: hidden; padding: 40px 36px; position: relative; transition: background var(--t);
}
.whom__card::after { background: var(--red); bottom: 0; content: ''; height: 3px; left: 0; position: absolute; right: 0; transform: scaleX(0); transition: transform .35s; }
.whom__card:hover { background: var(--bg); }
.whom__card:hover::after { transform: scaleX(1); }
.whom__num { color: var(--red); font-size: 56px; font-weight: 700; line-height: 1; margin-bottom: 20px; opacity: .1; }
.whom__card h3 { font-size: 20px; margin: 0 0 12px; padding: 0; }
.whom__card h3::before { display: none; }
.whom__card p { color: var(--muted); font-size: inherit; line-height: 1.73; margin: 0; }

/* ── Solutions ──────────────────────────────────────────────── */
.solutions { background: var(--bdr); display: grid; gap: 1px; grid-template-columns: repeat(3,1fr); margin: 50px auto 0; max-width: var(--mw); }
@media (max-width: 900px) { .solutions { background: none; gap: 2px; grid-template-columns: 1fr; } }
.sol__card { background: var(--white); border-top: 3px solid var(--red); padding: 40px 36px; }
.sol__num  { color: var(--red); font-size: 72px; font-weight: 700; line-height: 1; margin-bottom: 14px; opacity: .08; }
.sol__card h3 { font-size: 20px; margin-bottom: 10px; }
.sol__card > p { color: var(--muted); font-size: inherit; margin-bottom: 22px; }
.sol__list { list-style: none; }
.sol__list li { border-bottom: 1px solid var(--bdr); color: var(--text); font-size: 15px; padding: 8px 0 8px 22px; position: relative; }
.sol__list li::before { background: var(--red); border-radius: 50%; content: ''; height: 7px; left: 0; position: absolute; top: 50%; transform: translateY(-50%); width: 7px; }

/* ── Process ────────────────────────────────────────────────── */
.process { margin: 50px auto 0; max-width: 820px; }
.proc { display: grid; gap: 20px; grid-template-columns: 58px 1fr; padding-bottom: 36px; position: relative; }
.proc:not(:last-child)::after { background: var(--bdr); content: ''; height: calc(100% - 58px); left: 28px; position: absolute; top: 58px; width: 1px; }
.proc__n { align-items: center; background: var(--red); color: #fff; display: flex; flex-shrink: 0; font-size: 18px; font-weight: 700; height: 58px; justify-content: center; width: 58px; }
.proc__body h3 { font-size: clamp(17px,2vw,19px); margin: 8px 0 6px; padding: 0; }
.proc__body h3::before { display: none; }
.proc__body p { color: var(--muted); font-size: inherit; line-height: 1.73; margin: 0; }

/* ── Production Block — pirnar.nl three_plus style ──────────── */
.production { background: var(--white); padding: 80px var(--pad) 60px; }
.production__hd { margin: 0 auto 56px; max-width: 900px; text-align: center; }
.production__hd h2 { font-size: clamp(24px,3vw,44px); text-align: center; }
.production__hd h2::before { left: 50%; transform: translateX(-50%); }
.production__hd p { color: var(--muted); font-size: inherit; font-style: italic; line-height: 1.73; margin: 0 auto; max-width: 780px; }
.production__wrap { margin: 0 auto; max-width: var(--mw); overflow: hidden; }
.production__track {
  display: flex; gap: 16px; transition: transform .45s var(--ease); will-change: transform;
}
/* 4 cards visible — matching pirnar.nl three_plus (they show 4 at 1280px+) */
.production__card {
  flex: 0 0 calc(25% - 12px); /* (100% - 3×16px) / 4 */
  min-width: 0;
  background: #f8f6f5;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1024px) { .production__card { flex: 0 0 calc(50% - 8px); } }
@media (max-width: 580px)  { .production__card { flex: 0 0 100%; } }

/* Inner — slides up on hover (pirnar three_plus pattern) */
.pb-inner {
  transition: transform .25s linear;
}
.pb-inner img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity .25s linear;
}
/* Title — bold uppercase, pirnar #484848 color */
.pb-title {
  color: #484848;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  margin: 0;
  padding: 20px 20px 20px;
  text-align: center;
  text-transform: uppercase;
}
/* Text description — position:absolute exactly like pirnar three_plus */
.pb-text {
  color: #393939;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
  padding: 20px;
  position: absolute;
  background: #f8f6f5;
  left: 0; right: 0; bottom: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s linear, visibility .25s linear;
}
/* Hover effect — desktop only, matches pirnar exactly */
@media (hover: hover) and (min-width: 1025px) {
  .production__card:hover .pb-inner {
    transform: translate(0, -55%);
  }
  .production__card:hover .pb-inner img {
    opacity: 0;
  }
  .production__card:hover .pb-text {
    opacity: 1;
    visibility: visible;
  }
}
.production__nav { align-items: center; display: flex; gap: 4px; justify-content: center; margin-top: 40px; }

/* ── Tech / Quality Splits ──────────────────────────────────── */
.tech-split {
  align-items: center; display: grid; gap: 60px;
  grid-template-columns: 1fr 1fr; margin: 60px auto 0; max-width: var(--mw);
}
.tech-split + .tech-split { margin-top: 80px; }
.tech-split--rev .ts__img { order: 2; }
.tech-split--rev .ts__txt { order: 1; }
.ts__img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.ts__img img { height: 100%; object-fit: cover; transition: transform .7s var(--ease); width: 100%; }
.ts__img:hover img { transform: scale(1.04); }
.ts__txt h2 { font-size: clamp(28px,2.5vw,36px); }
.ts__txt p { color: var(--muted); font-size: inherit; line-height: 1.73; margin-bottom: 16px; }
.tech-feats { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 22px; }
.tech-feat { background: var(--bg); border-left: 3px solid var(--red); padding: 16px 18px; }
.tech-feat h4 { color: var(--text); font-size: 14px; font-weight: 700; margin: 0 0 3px; }
.tech-feat p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.pvd-colors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pvd-chip { border: 1px solid var(--bdr); color: var(--muted); font-size: 11px; letter-spacing: 1px; padding: 6px 14px; text-transform: uppercase; }
@media (max-width: 900px) {
  .tech-split { gap: 36px; grid-template-columns: 1fr; }
  .tech-split--rev .ts__img, .tech-split--rev .ts__txt { order: 0; }
  .tech-feats { grid-template-columns: 1fr; }
}

/* ── Products Grid ──────────────────────────────────────────── */
.products { display: grid; gap: 3px; grid-template-columns: repeat(2,1fr); margin: 50px auto 0; max-width: var(--mw); }
@media (max-width: 640px) { .products { grid-template-columns: 1fr; } }
.product {
  aspect-ratio: 16/10; background: var(--dark); cursor: pointer; overflow: hidden; position: relative;
}
.product img { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: transform .7s var(--ease); width: 100%; }
.product:hover img { transform: scale(1.06); }
.product__ov {
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
  bottom: 0; display: flex; flex-direction: column; justify-content: flex-end;
  left: 0; padding: 28px 30px; position: absolute; right: 0; top: 0;
}
.product__tag { color: var(--red); font-size: 10px; font-weight: 600; letter-spacing: 2px; margin-bottom: 3px; text-transform: uppercase; }
.product__name { color: #fff; font-size: 24px; font-weight: 300; margin-bottom: 7px; }
.product__desc {
  color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.6; max-width: 360px;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.product:hover .product__desc { opacity: 1; transform: none; }

/* ── Gallery Slider (Screenshot 3 style) ────────────────────── */
.gallery { background: var(--gal-bg); overflow: hidden; }
.gallery__slider { position: relative; }
.gallery__slide { animation: galFade .45s ease; display: none; }
.gallery__slide--on { display: flex; align-items: stretch; }
@keyframes galFade { from { opacity: 0; } to { opacity: 1; } }

.gallery__left { display: flex; flex: 0 0 58%; flex-direction: column; }
.gallery__img  { flex: 1; min-height: 460px; overflow: hidden; }
.gallery__img img { height: 100%; object-fit: cover; width: 100%; }

.gallery__nav { background: var(--gal-bg); display: flex; gap: 4px; padding: 18px 0 18px 0; }

.gallery__txt {
  color: #fff; display: flex; flex: 1; flex-direction: column;
  justify-content: center; padding: 64px 64px 40px;
}
.gallery__txt h2 { color: #fff; font-size: clamp(26px,3.2vw,46px); line-height: 1.1; margin-bottom: 22px; padding-top: 20px; }
.gallery__txt h2::before { border-color: var(--red); width: 80px; }
.gallery__txt p { color: rgba(255,255,255,.72); font-size: inherit; line-height: 1.85; margin: 0; }

@media (max-width: 900px) {
  .gallery__slide--on { flex-direction: column; }
  .gallery__left { flex: none; }
  .gallery__img { min-height: 260px; }
  .gallery__txt { padding: 36px var(--pad) 28px; }
  .gallery__nav { padding: 14px var(--pad); }
}

/* ── Awards Ticker (pirnar.co.uk style) ─────────────────────── */
.awards-ticker {
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.awards-ticker:hover .awards-track { animation-play-state: paused; }
.awards-track {
  animation: awardsScroll 30s linear infinite;
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  will-change: transform;
}
@keyframes awardsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.award-img {
  filter: grayscale(30%);
  flex-shrink: 0;
  height: 80px;
  object-fit: contain;
  opacity: .55;
  transition: opacity .3s, filter .3s;
}
.award-img:hover { filter: none; opacity: 1; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { margin: 50px auto 0; max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--muted); }
.faq__btn {
  align-items: center; background: none; border: none; color: var(--text);
  cursor: pointer; display: flex; font-family: var(--font); font-size: clamp(16px,1.8vw,18px); font-weight: 300;
  gap: 20px; justify-content: space-between; padding: 22px 36px 22px 0;
  position: relative; text-align: left; transition: color var(--t); width: 100%;
}
.faq__btn:hover, .faq__item--open .faq__btn { color: var(--red); }
.faq__btn::before, .faq__btn::after {
  background: var(--red); content: ''; height: 1px; position: absolute;
  right: 8px; top: 50%; transition: transform .2s ease; width: 14px;
}
.faq__btn::after { transform: rotate(90deg); }
.faq__item--open .faq__btn::before { transform: rotate(180deg); }
.faq__item--open .faq__btn::after  { transform: rotate(360deg); }
.faq__ans { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__ans p { color: var(--muted); font-size: inherit; line-height: 1.8; padding-bottom: 22px; }

/* ── Partner Program ────────────────────────────────────────── */
.partner { display: grid; gap: 70px; grid-template-columns: 1fr 420px; margin: 50px auto 0; max-width: var(--mw); }
@media (max-width: 1060px) { .partner { grid-template-columns: 1fr; } }
.benefits { list-style: none; }
.benefit { align-items: flex-start; border-bottom: 1px solid var(--bdr); display: flex; gap: 24px; padding: 24px 0; }
.benefit__n { color: var(--red); flex-shrink: 0; font-size: 36px; font-weight: 700; line-height: 1; opacity: .3; width: 44px; }
.benefit h4 { color: var(--text); font-size: clamp(16px,1.8vw,17px); font-weight: 700; margin-bottom: 5px; }
.benefit p { color: var(--muted); font-size: inherit; line-height: 1.73; margin: 0; }

.pbox {
  background: var(--bg); border-top: 3px solid var(--red); padding: 36px;
  position: sticky; top: 130px;
}
@media (max-width: 1060px) { .pbox { position: static; } }
.pbox h3 { font-size: 22px; font-weight: 300; margin-bottom: 8px; padding: 0; }
.pbox h3::before { display: none; }
.pbox > p { color: var(--muted); font-size: inherit; margin-bottom: 22px; }
.pbox__check { align-items: center; color: var(--muted); display: flex; font-size: 13px; gap: 7px; margin-top: 11px; }
.pbox__check::before { color: var(--red); content: '✓'; font-weight: 700; }
.pbox__div { border: none; border-top: 1px solid var(--bdr); margin: 22px 0; }
.pbox__lbl { color: var(--light); font-size: 10px; letter-spacing: 1.5px; margin-bottom: 8px; text-transform: uppercase; }
.pbox__tel { color: var(--text); display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; text-decoration: none; transition: color var(--t); }
.pbox__tel:hover { color: var(--red); }
.pbox__eml { color: var(--red); font-size: 14px; text-decoration: none; }

/* ── Exposed / CTA ──────────────────────────────────────────── */
.exposed {
  align-items: center; background-color: var(--dark); background-position: center;
  background-size: cover; box-sizing: border-box; color: #fff; display: flex;
  flex-direction: column; justify-content: center; min-height: 400px;
  padding: 80px var(--pad); position: relative; text-align: center;
}
.exposed::before { background: rgba(0,0,0,.58); bottom: 0; content: ''; left: 0; position: absolute; right: 0; top: 0; z-index: 0; }
.exposed__inner { margin: 0 auto; max-width: 900px; position: relative; z-index: 2; }
.exposed__inner h2 { color: #fff; text-align: center; }
.exposed__inner h2::before { left: 50%; transform: translateX(-50%); }
.exposed__inner p { color: rgba(255,255,255,.82); font-size: 17px; margin: 0 auto 28px; max-width: 600px; }
.exposed__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 60px; grid-template-columns: 1fr 1fr; margin: 50px auto 0; max-width: var(--mw); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.cnt-row { border-bottom: 1px solid var(--bdr); padding: 14px 0; }
.cnt-row:last-of-type { border-bottom: none; }
.cnt-lbl { color: var(--light); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 2px; text-transform: uppercase; }
.cnt-val { color: var(--text); display: block; font-size: inherit; text-decoration: none; transition: color var(--t); }
.cnt-val:hover { color: var(--red); }
.cnt-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-bg {
  align-items: center; background: rgba(0,0,0,.6); display: flex; inset: 0;
  justify-content: center; opacity: 0; padding: 20px; pointer-events: none;
  position: fixed; transition: opacity var(--t); z-index: 999;
}
.modal-bg--on { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); max-height: 90vh; max-width: 520px; overflow-y: auto;
  padding: 44px; position: relative; transform: translateY(18px);
  transition: transform var(--t); width: 100%;
}
.modal-bg--on .modal { transform: none; }
@media (max-width: 600px) { .modal { padding: 26px 16px; } }
.modal__x { background: var(--bg); border: none; color: var(--muted); cursor: pointer; font-size: 20px; height: 38px; position: absolute; right: 16px; top: 16px; transition: color var(--t); width: 38px; }
.modal__x:hover { color: var(--red); }
.modal h2 { font-size: 26px; margin-bottom: 6px; padding-top: 16px; }
.modal > p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

.fg { margin-bottom: 16px; }
.fg label { color: var(--text); display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
  appearance: none; background: var(--bg); border: 1px solid #c8c5c2; color: var(--text);
  font-family: var(--font); font-size: 15px; font-weight: 400; outline: none;
  padding: 12px 14px; transition: border-color var(--t), background var(--t); width: 100%;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--light); }
.fg input:focus, .fg select:focus, .fg textarea:focus { background: var(--white); border-color: var(--red); }
.fg textarea { height: 90px; resize: vertical; }
.fg select { background-color: var(--bg); }
.fg select option { background: var(--white); color: var(--text); }
.form-note { color: var(--light); font-size: 11px; margin-top: 10px; text-align: center; }
.form-ok { display: none; padding: 40px 0; text-align: center; }
.form-ok__icon { color: var(--red); font-size: 44px; margin-bottom: 12px; }
.form-ok p { color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--white); border-top: 1px solid var(--bdr);
  color: var(--text); font-size: 14px; font-weight: 300; line-height: 1.75; padding: 40px 0 0;
}
.footer-top {
  border-bottom: 1px solid var(--bdr); display: grid; gap: 40px;
  grid-template-columns: 2fr 1fr 1fr 1fr; margin: 0 auto; max-width: var(--mw); padding: 0 var(--pad) 32px;
}
@media (max-width: 900px) { .footer-top { gap: 28px; grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand__logo { color: var(--text); display: block; font-size: 17px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; text-decoration: none; text-transform: uppercase; }
.footer-brand__logo span { color: var(--red); }
.footer-brand p { color: var(--muted); font-size: 13px; max-width: 260px; }
.footer-col h4 { border-top: 1px solid var(--muted); color: var(--text); font-size: 10px; font-weight: 700; letter-spacing: 2px; margin-bottom: 14px; padding-top: 12px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color var(--t); }
.footer-col a:hover { color: var(--red); }
.footer-bot { align-items: center; color: var(--muted); display: flex; font-size: 12px; justify-content: space-between; margin: 0 auto; max-width: var(--mw); padding: 18px var(--pad); }
.footer-bot a { color: var(--muted); text-decoration: none; transition: color var(--t); }
.footer-bot a:hover { color: var(--red); }
@media (max-width: 580px) { .footer-bot { flex-direction: column; gap: 8px; text-align: center; } }

/* ── References Gallery (pirnar.co.uk style) ───────────────── */
.references { background: var(--bg); padding: 70px 0 60px; }
@media (min-width: 1024px) { .references { padding: 100px 0 80px; } }

.references__head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin: 0 auto var(--pad);
  max-width: var(--mw);
  padding: 0 var(--pad);
  flex-wrap: wrap;
  gap: 20px;
}
.references__head-txt .sup { margin-bottom: 10px; }
.references__head-txt h2 { margin-bottom: 4px; }
.references__head-txt p  { color: var(--muted); font-size: inherit; margin: 0; }

/* Horizontal scrolling track */
.references__track-wrap {
  overflow: hidden;
  position: relative;
  cursor: grab;
}
.references__track-wrap:active { cursor: grabbing; }
.references__track {
  display: flex;
  gap: 4px;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
  user-select: none;
}
.ref-card {
  flex: 0 0 calc(25% - 3px);
  min-width: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  background: var(--white);
  cursor: pointer;
}
@media (max-width: 1024px) { .ref-card { flex: 0 0 calc(50% - 2px); } }
@media (max-width: 640px)  { .ref-card { flex: 0 0 calc(85%); } }

.ref-card img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s var(--ease), filter .35s;
  width: 100%;
}
/* Default: no dimming. Hover: darken */
.ref-card:hover img {
  transform: scale(1.04);
  filter: brightness(.65);
}
/* Expand icon appears on hover */
.ref-card::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E") no-repeat center;
  background-size: 22px;
  bottom: 12px;
  content: '';
  height: 36px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 12px;
  transition: opacity .3s;
  width: 36px;
  z-index: 2;
}
.ref-card:hover::after { opacity: 1; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  align-items: center;
  background: rgba(0,0,0,.93);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .3s;
  z-index: 1000;
}
.lightbox--on { opacity: 1; pointer-events: all; }

.lb-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  max-height: 86vh;
  max-width: 90vw;
  position: relative;
}
.lb-wrap img {
  display: block;
  max-height: 86vh;
  max-width: 86vw;
  object-fit: contain;
  opacity: 0;
  transition: opacity .25s;
}
.lb-wrap img.lb-on { opacity: 1; }

.lb-close {
  background: none; border: none;
  color: rgba(255,255,255,.7); cursor: pointer;
  font-size: 38px; height: 52px; line-height: 1;
  position: absolute; right: 20px; top: 20px;
  transition: color .2s; width: 52px;
}
.lb-close:hover { color: #fff; }

.lb-prev, .lb-next {
  align-items: center; background: rgba(255,255,255,.1);
  border: none; cursor: pointer; display: flex;
  height: 64px; justify-content: center;
  position: absolute; top: 50%; transform: translateY(-50%);
  transition: background .2s; width: 52px;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: -72px; }
.lb-next { right: -72px; }
.lb-prev svg, .lb-next svg { fill: none; height: 20px; stroke: #fff; stroke-width: 2.5; width: 20px; }

.lb-counter {
  bottom: 24px; color: rgba(255,255,255,.55);
  font-size: 13px; letter-spacing: 1.5px;
  position: absolute;
}
.lb-counter strong { color: #fff; font-weight: 400; }

@media (max-width: 768px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-wrap { max-width: 98vw; }
  .lb-wrap img { max-width: 98vw; max-height: 78vh; }
}

/* Nav bar under the gallery */
.references__nav {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin: 16px auto 0;
  max-width: var(--mw);
  padding: 0 var(--pad);
}

/* Catalog form modal */
.catalog-modal h2 { font-size: 26px; margin-bottom: 6px; padding-top: 16px; }
.catalog-modal > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.messenger-opts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.msg-opt {
  align-items: center;
  border: 1px solid var(--bdr);
  cursor: pointer;
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.msg-opt input[type=radio] { accent-color: var(--red); flex-shrink: 0; }
.msg-opt:has(input:checked) { background: #fef0f0; border-color: var(--red); }
.cat-contact-field { display: none; }
.cat-contact-field.show { display: block; }
