/* ─────────────────────────────────────────────────────────
   KAUFFEN — TECHNICAL INSTALLATIONS
   Professional engineering contractor website
   ───────────────────────────────────────────────────────── */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --white:        #ffffff;
  --grey-50:      #f7f8f9;
  --grey-100:     #f0f1f3;
  --grey-200:     #e2e5e9;
  --grey-300:     #c8cdd5;
  --grey-400:     #9aa1ae;
  --grey-500:     #6b7280;
  --grey-700:     #374151;
  --grey-800:     #1f2937;
  --grey-900:     #111827;
  --blue:         #2563eb;
  --blue-light:   #eff6ff;
  --blue-mid:     #bfdbfe;
  --blue-dark:    #1e40af;

  --font-body:    'Inter', system-ui, sans-serif;
  --font-head:    'Space Grotesk', system-ui, sans-serif;

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.12);

  --nav-height:   72px;
  --max-w:        1200px;
  --gutter:       clamp(1.25rem, 5vw, 2.5rem);

  --transition:   180ms ease;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }

/* ── LAYOUT HELPERS ──────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--grey { background: var(--grey-50); }

.section__header {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--grey-900);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.section__desc {
  font-size: 1.05rem;
  color: var(--grey-500);
  line-height: 1.7;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  background-size: 200% auto;
  opacity: 0;
  transition: opacity .2s;
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn--primary:hover::after { opacity: 1; animation: shimmerBtn .55s linear; }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--grey-700);
  border: 1.5px solid var(--grey-200);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(37,99,235,.12); }
.btn--ghost:active { transform: translateY(0); }
.btn--full { width: 100%; justify-content: center; padding-block: 1rem; }

/* ── ACCENT ──────────────────────────────────────────────── */
.accent { color: var(--blue); }

/* ── LANGUAGE TOGGLE (sliding pill) ──────────────────────── */
.lang-toggle {
  position: relative;
  display: flex;
  background: var(--grey-100);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle__track {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  background: var(--white);
  border-radius: 100px;
  box-shadow: 0 1px 6px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 0;
}
.lang-toggle__btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: .3rem .7rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--grey-400);
  transition: color .25s ease, transform .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.lang-toggle__btn:active { transform: scale(.94); }
.lang-toggle__btn--active { color: var(--grey-900); }
.lang-flag { font-size: .85rem; line-height: 1; }
.nav__lang-item { display: flex; align-items: center; }

/* ─────────────────────────────────────────────────────────
   ANIMATION KEYFRAMES
   ───────────────────────────────────────────────────────── */
@keyframes heroLabelIn {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(48px) skewY(2deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroSubIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroActionsIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroScrollIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(4deg); }
}
@keyframes floatX {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50%       { transform: translateX(14px) rotate(-6deg); }
}
@keyframes floatDiag {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  33%       { transform: translate(10px,-12px) rotate(8deg); }
  66%       { transform: translate(-6px, 6px) rotate(-4deg); }
}
@keyframes pulseFade {
  0%, 100% { opacity: .15; transform: scale(1); }
  50%       { opacity: .35; transform: scale(1.08); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes shimmerBtn {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: none; }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: none; }
}
@keyframes revealScale {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: none; }
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
  50%       { box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
}

/* ─────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────── */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0;
}
.nav__logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--grey-900);
  position: relative;
  line-height: 1;
}
.nav__logo-smile {
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 20px;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--grey-600, #4b5563);
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.nav__link:hover { color: var(--grey-900); background: var(--grey-50); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--grey-900); }
.nav__link--cta {
  background: var(--blue);
  color: var(--white);
  padding: .5rem 1.25rem;
  margin-left: .5rem;
}
.nav__link--cta:hover { background: var(--blue-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grey-800);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--white);
}

/* Subtle technical photo background */
.hero__bg-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero__bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.07;
  filter: grayscale(20%) contrast(1.1);
}

/* Engineering grid background */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grey-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--grey-100) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.4) 30%, rgba(0,0,0,.4) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.4) 30%, rgba(0,0,0,.4) 70%, transparent 100%);
}

/* Blue accent geometric shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Floating shapes ─────────────────────────────────────── */
.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero__shape {
  position: absolute;
  opacity: .12;
}
.hero__shape--ring {
  right: 8%;
  top: 18%;
  width: 220px;
  height: 220px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  animation: floatY 7s ease-in-out infinite;
}
.hero__shape--ring::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  opacity: .5;
}
.hero__shape--cross {
  right: 18%;
  bottom: 22%;
  width: 48px;
  height: 48px;
  animation: floatDiag 9s ease-in-out infinite 1s;
}
.hero__shape--cross::before,
.hero__shape--cross::after {
  content: '';
  position: absolute;
  background: var(--blue);
}
.hero__shape--cross::before { inset: 40% 0; border-radius: 2px; }
.hero__shape--cross::after  { inset: 0 40%; border-radius: 2px; }
.hero__shape--circle {
  left: 55%;
  top: 60%;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
  opacity: .25;
  animation: pulseFade 4s ease-in-out infinite 0.5s;
}
.hero__shape--square {
  right: 5%;
  top: 55%;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--blue);
  transform: rotate(20deg);
  animation: floatX 8s ease-in-out infinite 2s;
}
.hero__shape--dots {
  left: 48%;
  top: 20%;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(var(--blue) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  animation: floatY 10s ease-in-out infinite 3s;
}

/* ── Hero entrance animations ────────────────────────────── */
.hero__inner--anim .hero__label {
  animation: heroLabelIn .65s cubic-bezier(.22,1,.36,1) .1s both;
}
.hero__inner--anim .hero__title {
  animation: heroTitleIn .85s cubic-bezier(.22,1,.36,1) .25s both;
}
.hero__inner--anim .hero__sub {
  animation: heroSubIn .65s ease .55s both;
}
.hero__inner--anim .hero__actions {
  animation: heroActionsIn .6s ease .75s both;
}
.hero__scroll {
  animation: heroScrollIn .6s ease 1.1s both;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--blue);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.04em;
  color: var(--grey-900);
  margin-bottom: 2rem;
}

.hero__sub {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: var(--grey-500);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--grey-300);
}

/* ─────────────────────────────────────────────────────────
   INTRO STRIP
   ───────────────────────────────────────────────────────── */
.intro-strip {
  background: var(--grey-900);
  padding-block: 2.5rem;
}
.intro-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.intro-strip__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  flex: 1;
  min-width: 100px;
}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--grey-400);
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.intro-strip__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--grey-200);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.service-card:not(.service-card--featured):hover { background: var(--grey-50); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.service-card:not(.service-card--featured):hover::before { transform: scaleX(1); }
.service-card:not(.service-card--featured):hover .service-card__icon { transform: scale(1.15) rotate(-4deg); }

.service-card--featured {
  grid-column: span 3;
  flex-direction: row;
  gap: 0;
  padding: 0;
  background: var(--grey-900);
  color: var(--white);
}
.service-card--featured:hover { background: #1a2333; }
.service-card--featured .service-card__content { color: var(--grey-300); }
.service-card--featured h3 { color: var(--white); }

.service-card__main {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--blue);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.service-card--featured .service-card__icon {
  width: 64px;
  height: 64px;
  color: var(--blue-mid, #93c5fd);
  margin-top: .25rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__content h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.service-card--featured .service-card__content h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .75rem;
}
.service-card__content p {
  font-size: .9rem;
  color: var(--grey-500);
  line-height: 1.65;
}
.service-card--featured .service-card__content p {
  color: var(--grey-400);
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.service-card__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem .75rem;
}
.service-card__list li {
  font-size: .85rem;
  color: var(--grey-300);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.service-card__list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   WHY KAUFFEN
   ───────────────────────────────────────────────────────── */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.why__item {
  padding: 2rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.why__item:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); transform: translateY(-4px); }
.why__number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--grey-200);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -.04em;
}
.why__item:hover .why__number { color: var(--blue-mid); }
.why__item h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: .6rem;
}
.why__item p {
  font-size: .875rem;
  color: var(--grey-500);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────
   PORTFOLIO
   ───────────────────────────────────────────────────────── */
.portfolio__filter {
  display: flex;
  gap: .5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .5rem 1.25rem;
  border: 1.5px solid var(--grey-200);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--grey-500);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn--active { background: var(--blue); color: var(--white); border-color: var(--blue); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.portfolio-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.portfolio-card.hidden { display: none; }

.portfolio-card__img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.portfolio-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.portfolio-card:hover .portfolio-card__img img { transform: scale(1.04); }
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,.5) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.portfolio-card__tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(37,99,235,.85);
  padding: .3rem .75rem;
  border-radius: 100px;
}

.portfolio-card__info {
  padding: 1.5rem;
}
.portfolio-card__info h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: .5rem;
}
.portfolio-card__info p {
  font-size: .85rem;
  color: var(--grey-500);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.portfolio-card__info em { color: var(--blue); font-style: normal; font-weight: 500; }
.portfolio-card__meta {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.portfolio-card__meta span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--grey-500);
  background: var(--grey-100);
  padding: .25rem .6rem;
  border-radius: var(--radius-sm);
  letter-spacing: .04em;
}
.portfolio-card__units {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: .3rem 0 .6rem;
  font-size: .8rem;
  color: var(--blue);
  font-weight: 500;
}
.portfolio-card__units svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.portfolio-card__units strong {
  font-size: .92rem;
  font-weight: 700;
}

/* Collaboration callout */
.portfolio__collab {
  margin-top: 3rem;
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--radius-lg);
  background: var(--blue-light);
  padding: 2rem;
}
.portfolio__collab-partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.portfolio__collab-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
}
.portfolio__collab-logo {
  width: 64px;
  height: 64px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.portfolio__collab-logo--img {
  background: var(--white);
  padding: 6px;
}
.portfolio__collab-logo--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 640px) {
  .portfolio__collab-partners { grid-template-columns: 1fr; }
}
.portfolio__collab-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .25rem;
}
.portfolio__collab-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: .5rem;
}
.portfolio__collab-desc {
  font-size: .9rem;
  color: var(--grey-600, #4b5563);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────
   BRANDS
   ───────────────────────────────────────────────────────── */
.brands__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.brand-card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.brand-card:hover { box-shadow: var(--shadow); border-color: var(--grey-300); }
.brand-card__logo {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.brand-card__logo svg { height: 100%; }
.brand-card__content h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: .5rem;
}
.brand-card__content p {
  font-size: .875rem;
  color: var(--grey-500);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.brand-card__content ul {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.brand-card__content li {
  font-size: .8rem;
  color: var(--grey-600, #4b5563);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.brand-card__content li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────────────────── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about__title { margin-bottom: 1.5rem; }
.about__text {
  font-size: .975rem;
  color: var(--grey-500);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about__text strong { color: var(--grey-800); font-weight: 600; }
.about__badges {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.about__badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--grey-700);
  background: var(--white);
}
.about__badge svg { width: 16px; height: 16px; color: var(--blue); }

.about__visual { position: relative; }
.about__img-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about__img-wrapper img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about__img-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.about__img-card-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -.04em;
}
.about__img-card-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--grey-500);
  margin-top: .25rem;
}

/* ─────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact__desc {
  font-size: .95rem;
  color: var(--grey-500);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.contact__detail svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact__detail strong {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: .15rem;
}
.contact__detail span {
  font-size: .95rem;
  color: var(--grey-700);
}
.contact__service-area strong {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: .75rem;
}
.contact__tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.contact__tags span {
  font-size: .8rem;
  font-weight: 500;
  color: var(--grey-600, #4b5563);
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: .3rem .75rem;
  border-radius: 100px;
}

/* Form */
.contact__form {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.form__group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--grey-700);
  letter-spacing: .02em;
}
.form__group input,
.form__group select,
.form__group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--grey-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--grey-300); }
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group select { appearance: none; cursor: pointer; }

.form__checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--grey-600, #4b5563);
  cursor: pointer;
  padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  border: 1px solid var(--grey-200);
}
.checkbox:hover { background: var(--grey-50); }
.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  padding: 0;
  border: none;
  margin: 0;
  flex-shrink: 0;
}

.form__note {
  font-size: .78rem;
  color: var(--grey-400);
  text-align: center;
  margin-top: 1rem;
}

/* Success state */
.contact__form.submitted {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  gap: 1rem;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
}
.success-icon svg { width: 32px; height: 32px; }

/* ─────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────── */
.footer {
  background: var(--grey-900);
  color: var(--grey-400);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-block: 4rem;
}
.footer__logo { margin-bottom: 1rem; }
.footer__logo .nav__logo-text { color: var(--white); }
.footer__brand p {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--grey-500);
  max-width: 280px;
  margin-top: 1rem;
}
.footer__nav h4,
.footer__contact h4 {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-200);
  margin-bottom: 1rem;
}
.footer__nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer__nav a {
  font-size: .875rem;
  color: var(--grey-500);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }
.footer__contact p {
  font-size: .875rem;
  color: var(--grey-500);
  line-height: 1.75;
}
.footer__brands {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.footer__brand-pill {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey-300);
  border: 1px solid var(--grey-700);
  padding: .3rem .75rem;
  border-radius: 100px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__bottom-inner p {
  font-size: .8rem;
  color: var(--grey-600, #4b5563);
}

/* ─────────────────────────────────────────────────────────
   SCROLL REVEAL
   ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.reveal-scale.visible { opacity: 1; transform: none; }

/* ── Counter number ──────────────────────────────────────── */
.stat-number { transition: opacity .3s ease; }
.stat-number.counting { opacity: .7; }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────── */

/* Large tablet / small desktop */
@media (max-width: 1024px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { order: -1; max-width: 480px; }
  .about__img-wrapper img { aspect-ratio: 16/9; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Tablet */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-100);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--gutter) 1.5rem;
    gap: .25rem;
    box-shadow: var(--shadow);
  }
  .nav__links.open { display: flex; }
  .nav__link { width: 100%; padding: .75rem 1rem; }
  .nav__link--cta { margin-left: 0; margin-top: .5rem; text-align: center; justify-content: center; }

  .services__grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: 1; flex-direction: column; }
  .service-card--featured .service-card__gallery { width: 100%; height: 260px; }
  .service-card--featured .service-card__slides { min-height: 260px; }
  .service-card--featured .service-card__slides img { height: 260px; }
  .service-card__list { grid-template-columns: 1fr; }

  .portfolio__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form__checkboxes { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .intro-strip__divider { display: none; }
  .intro-strip__inner { justify-content: center; gap: 2rem; }
}

/* Mobile */
@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.5rem, 14vw, 4rem); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .portfolio__collab-inner { flex-direction: column; }
  .about__badges { flex-direction: column; }
  .brands__grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────
   PORTFOLIO GALLERY BUTTON
   ───────────────────────────────────────────────────────── */
.portfolio-card__gallery-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.95);
  color: var(--grey-800);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .45rem .9rem;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  cursor: pointer;
}
.portfolio-card__gallery-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.portfolio-card:hover .portfolio-card__gallery-btn {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-card__gallery-btn:hover {
  background: var(--blue);
  color: var(--white);
}

/* ─────────────────────────────────────────────────────────
   BRAND LOGOS
   ───────────────────────────────────────────────────────── */
.brand-card__logo--bosch {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand-card__logo--bosch svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(228,3,46,.2));
}
.brand-wordmark {
  display: block;
  line-height: 1;
}
.brand-wordmark--bosch {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grey-900);
  letter-spacing: .04em;
}
.brand-card__logo--uponor {
  display: flex;
  align-items: center;
  height: 52px;
}
.brand-wordmark--uponor {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: #0072CE;
  letter-spacing: .08em;
}
.brand-card__logo--libertas {
  display: flex;
  align-items: center;
  height: 52px;
}
.brand-card__logo--libertas img {
  max-height: 44px;
  width: auto;
  max-width: 160px;
}

/* ─────────────────────────────────────────────────────────
   LIGHTBOX
   ───────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,14,20,.92);
  cursor: pointer;
}
.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1200px);
  max-height: 92vh;
  background: var(--grey-900);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  transform: scale(.96) translateY(12px);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.lightbox.is-open .lightbox__panel {
  transform: none;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.lightbox__close svg { width: 16px; height: 16px; }
.lightbox__body {
  display: grid;
  grid-template-columns: 1fr 300px;
  height: 100%;
  min-height: 0;
  flex: 1;
}
.lightbox__stage {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}
.lightbox__img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
}
.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  transition: opacity .25s ease;
  display: block;
}
.lightbox__img-wrap img.loading { opacity: 0; }
.lightbox__spinner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spinSlow .7s linear infinite;
  display: none;
}
.lightbox__spinner.active { display: block; }
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__arrow:hover { background: rgba(255,255,255,.25); }
.lightbox__arrow--prev { left: .75rem; }
.lightbox__arrow--next { right: .75rem; }
.lightbox__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox__arrow--next:hover { transform: translateY(-50%) translateX(2px); }
.lightbox__arrow svg { width: 20px; height: 20px; }
.lightbox__sidebar {
  display: flex;
  flex-direction: column;
  background: var(--grey-900);
  border-left: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.lightbox__meta {
  padding: 1.5rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lightbox__project-type {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .4rem;
}
.lightbox__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .6rem;
  line-height: 1.25;
}
.lightbox__desc {
  font-size: .82rem;
  color: var(--grey-400);
  line-height: 1.65;
  margin-bottom: .75rem;
}
.lightbox__units {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .6rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--blue);
}
.lightbox__units svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.lightbox__units strong {
  font-size: .95rem;
  font-weight: 700;
}
.lightbox__services {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .75rem;
}
.lightbox__services span {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--grey-400);
  background: rgba(255,255,255,.07);
  padding: .2rem .55rem;
  border-radius: var(--radius-sm);
}
.lightbox__credit {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .75rem;
  background: rgba(37,99,235,.12);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37,99,235,.2);
}
.lightbox__credit svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.lightbox__credit > div { display: flex; flex-direction: column; gap: .1rem; }
.lightbox__credit strong { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-400); }
.lightbox__credit span  { font-size: .8rem; color: var(--grey-300); }
.lightbox__thumbs-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.lightbox__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
}
.lightbox__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s ease, transform .2s ease, outline .1s ease;
  outline: 2px solid transparent;
}
.lightbox__thumb:hover { opacity: .8; transform: scale(1.04); }
.lightbox__thumb.active { opacity: 1; outline-color: var(--blue); }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__counter {
  flex-shrink: 0;
  padding: .75rem 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  color: var(--grey-500);
  letter-spacing: .06em;
}

@media (max-width: 768px) {
  .lightbox__body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox__stage { min-height: 50vw; }
  .lightbox__img-wrap { min-height: 50vw; }
  .lightbox__img-wrap img { max-height: 55vw; }
  .lightbox__sidebar { border-left: none; border-top: 1px solid rgba(255,255,255,.08); max-height: 40vh; overflow-y: auto; }
  .lightbox__thumbs { grid-template-columns: repeat(5, 1fr); }
}

/* ─────────────────────────────────────────────────────────
   SERVICE CARD GALLERY
   ───────────────────────────────────────────────────────── */
.service-card__gallery {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Featured card: gallery = right image panel */
.service-card--featured .service-card__gallery {
  width: 42%;
}

/* Regular cards: gallery = image strip at top */
.service-card:not(.service-card--featured) .service-card__gallery {
  order: -1;
  height: 210px;
  margin: 0;
}

.service-card__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .42s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.service-card__slides img {
  min-width: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.service-card:not(.service-card--featured) .service-card__slides img {
  height: 210px;
}
.service-card--featured .service-card__slides {
  height: 100%;
  min-height: 360px;
}
.service-card--featured .service-card__slides img {
  height: 100%;
}

/* Gallery nav */
.service-card__gallery-nav {
  position: absolute;
  bottom: .7rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  z-index: 2;
  pointer-events: none;
}
.service-card__gallery-nav > * { pointer-events: all; }
.svc-gallery-prev,
.svc-gallery-next {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,.48);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease;
}
.svc-gallery-prev:hover,
.svc-gallery-next:hover { background: rgba(37,99,235,.85); }
.svc-gallery-prev svg,
.svc-gallery-next svg { width: 13px; height: 13px; }
.svc-gallery-dots { display: flex; gap: .28rem; }
.svc-gallery-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.svc-gallery-dot.is-active {
  background: #fff;
  transform: scale(1.35);
}

/* ─────────────────────────────────────────────────────────
   BRAND WORDMARKS — NEW SUPPLIERS
   ───────────────────────────────────────────────────────── */
.brand-card__logo--montalgarve {
  display: flex;
  align-items: center;
  height: 52px;
}
.brand-wordmark--montalgarve {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2a6b2a;
  letter-spacing: .14em;
}
.brand-card__logo--nicolau {
  display: flex;
  align-items: center;
  height: 52px;
}
.brand-wordmark--nicolau {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-800);
  letter-spacing: .04em;
  line-height: 1.15;
}
.brand-wordmark--nicolau-amp {
  color: var(--blue);
  font-weight: 700;
}
.brand-card__logo--sanitop {
  display: flex;
  align-items: center;
  height: 52px;
}
.brand-wordmark--sanitop {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #005baa;
  letter-spacing: .08em;
}

/* ─────────────────────────────────────────────────────────
   PARTNERS SECTION
   ───────────────────────────────────────────────────────── */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.partner-card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: box-shadow .25s ease, transform .25s ease;
}
.partner-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.partner-card__logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
  overflow: hidden;
}
.partner-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-card__logo--og {
  background: var(--grey-900);
  border-color: var(--grey-700);
}
.partner-card__logo--img {
  background: var(--white);
  padding: 8px;
}
.partner-card__logo--og span {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.partner-card__type {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .4rem;
}
.partner-card__content h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.partner-card__content p {
  font-size: .88rem;
  color: var(--grey-500);
  line-height: 1.65;
  margin-bottom: .75rem;
}
.partner-card__content ul {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.partner-card__content ul li {
  font-size: .82rem;
  color: var(--grey-700);
  padding-left: .9rem;
  position: relative;
}
.partner-card__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 768px) {
  .partners__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .partner-card { flex-direction: column; }
  .partner-card__logo { width: 60px; height: 60px; }
}