/* ==========================================================================
   Liefern Global Services — site styles (v2, 2026)
   Layout: photo-led industrial site. Full-bleed photo bands washed in the
   brand's deep green, white working sections between them, and monospace
   discipline tags (MECH / ELEC / C&A / INST) as the recurring signature.
   ========================================================================== */

:root {
  /* Brand colour (taken from the existing Liefern site) */
  --g-deep: #064f1b;      /* primary brand green */
  --g-darker: #04300f;    /* footer, overlays */
  --g-mid: #31a050;       /* buttons, links */
  --g-bright: #61d17b;    /* accents on dark */
  --g-tint: #e8f3ea;      /* soft green surfaces */

  /* Neutrals, biased slightly toward the green */
  --paper: #f4f8f4;
  --white: #ffffff;
  --ink: #0d141a;
  --text: #1e2a23;
  --muted: #56655b;
  --line: #d8e3da;
  --amber: #f2820a;       /* rating stars only */

  /* Semantic */
  --ok-bg: #e7f5ea;  --ok-fg: #0b5d23;
  --err-bg: #fdeceb; --err-fg: #9a1c16;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.2rem;
  --fs-lg: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
  --fs-xl: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  --fs-2xl: clamp(2.3rem, 1.5rem + 3.6vw, 4.3rem);

  --wrap: 1220px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(6, 79, 27, 0.06), 0 10px 28px rgba(6, 79, 27, 0.09);
  --shadow-lg: 0 2px 4px rgba(6, 79, 27, 0.06), 0 22px 48px rgba(4, 48, 15, 0.16);
  --header-h: 78px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--g-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 86%;
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-2xl); font-weight: 800; }
h2 { font-size: var(--fs-xl); font-weight: 800; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--g-bright); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--g-deep); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Shared bits ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g-mid);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--g-bright); flex: none; }
.on-dark .kicker { color: var(--g-bright); }
.lead { font-size: var(--fs-md); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.on-dark .lead { color: rgba(255, 255, 255, 0.82); }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { margin-bottom: 0.25em; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-row .section-head { margin-bottom: 0; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--white);
  color: var(--g-deep);
  line-height: 1;
}

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.checklist li svg { width: 20px; height: 20px; margin-top: 1px; color: var(--g-mid); }
.on-dark .checklist li svg { color: var(--g-bright); }
.checklist.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--g-mid); color: #fff; box-shadow: 0 6px 18px rgba(49, 160, 80, 0.28); }
.btn-primary:hover { background: var(--g-deep); color: #fff; }
.btn-light { background: #fff; color: var(--g-deep); }
.btn-light:hover { background: var(--g-tint); color: var(--g-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline { background: transparent; color: var(--g-deep); border-color: var(--g-mid); }
.btn-outline:hover { background: var(--g-tint); color: var(--g-deep); }
.btn-wa { background: #25d366; color: #062b14; }
.btn-wa:hover { background: #1fb957; color: #062b14; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--g-mid); }
.text-link .icon { width: 17px; height: 17px; transition: transform 0.2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--g-darker); color: rgba(255, 255, 255, 0.82); font-size: 0.84rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: var(--g-bright); }
.topbar-offices { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(4, 48, 15, 0.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; flex: none; background: transparent; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-stretch: 88%; font-weight: 800; font-size: 1.22rem; color: var(--g-deep); letter-spacing: -0.005em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link {
  position: relative;
  padding: 10px 12px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}
.main-nav a.nav-link:hover { color: var(--g-deep); background: var(--g-tint); }
.main-nav a.nav-link[aria-current="page"] { color: var(--g-deep); font-weight: 600; }
.main-nav a.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--g-mid); border-radius: 2px;
}
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--g-deep);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--g-deep); overflow: hidden; }
.hero-media, .band-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .band-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before, .band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(4, 48, 15, 0.95) 0%, rgba(6, 79, 27, 0.86) 42%, rgba(6, 79, 27, 0.45) 100%);
}
.hero .wrap { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 5vw, 64px); }
.hero-content { max-width: 800px; }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--g-bright); }
.hero .lead { color: rgba(255, 255, 255, 0.86); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); margin-bottom: 30px; }
.hero .kicker { color: var(--g-bright); }

.meca {
  margin-top: clamp(44px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.meca-item { padding: 22px 22px 6px 0; display: grid; gap: 6px; align-content: start; }
.meca-item + .meca-item { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.meca-code { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; color: var(--g-bright); }
.meca-title { font-family: var(--font-display); font-stretch: 88%; font-weight: 700; font-size: 1.18rem; color: #fff; line-height: 1.15; }
.meca-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); line-height: 1.5; }

/* ---------- Page hero (inner pages) ---------- */
.band { position: relative; isolation: isolate; color: #fff; background: var(--g-deep); overflow: hidden; }
.page-hero .wrap { padding-block: clamp(56px, 7vw, 96px); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 0.3em; }
.page-hero .lead { color: rgba(255, 255, 255, 0.85); margin-bottom: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); margin-bottom: 18px; }
.breadcrumb a { color: var(--g-bright); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-tight { padding-block: clamp(44px, 5vw, 72px); }
.section--paper { background: var(--paper); }
.section--green { background: var(--g-deep); color: rgba(255, 255, 255, 0.86); }
.section--green h2, .section--green h3, .section--green h4 { color: #fff; }
.section--rule { border-top: 1px solid var(--line); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 30px 26px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--font-display); font-stretch: 80%; font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; color: var(--g-deep); font-variant-numeric: tabular-nums; }
.stat-num sup { font-size: 0.5em; color: var(--g-mid); vertical-align: top; position: relative; top: 0.25em; margin-left: 2px; }
.stat-label { font-size: 0.95rem; color: var(--muted); }

/* Split media/text */
.split { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split > * { min-width: 0; }
.media-frame { position: relative; border-radius: var(--radius); }
.media-frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius);
  background: var(--g-tint); z-index: 0;
}
.section--paper .media-frame::before { background: #dcebdf; }
.media-frame .ph { position: relative; z-index: 1; }
.media-badge {
  position: absolute; z-index: 2; left: -14px; bottom: 26px;
  background: var(--g-deep); color: #fff; border-radius: 12px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: grid; gap: 2px; max-width: 260px;
}
.media-badge strong { font-family: var(--font-display); font-stretch: 86%; font-size: 1.15rem; line-height: 1.15; }
.media-badge span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-bright); }

/* Photo placeholder: shows brand green if a photo fails to load */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 14px),
    linear-gradient(140deg, #0a5e24, var(--g-deep) 60%, var(--g-darker));
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
img.img-failed { visibility: hidden; }
.brand-logo.img-failed { display: none; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-5x4 { aspect-ratio: 5 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ph[class*="ratio-"] { max-width: 100%; }

/* Statement cards (mission / vision) */
.statements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.statement { border-top: 3px solid var(--g-mid); padding-top: 18px; }
.statement h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.statement p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card .ph { border-radius: 0; aspect-ratio: 16 / 11; }
.svc-card .ph img { transition: transform 0.6s ease; }
.svc-card:hover .ph img { transform: scale(1.045); }
.svc-card .tag { position: absolute; top: 16px; left: 16px; z-index: 2; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.svc-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 26px; flex: 1; }
.svc-body h3 { font-size: 1.32rem; color: var(--g-deep); margin: 0; }
.svc-body p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.svc-items { list-style: none; display: grid; gap: 7px; font-size: 0.95rem; }
.svc-items li { position: relative; padding-left: 18px; line-height: 1.45; }
.svc-items li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 8px; height: 2px; background: var(--g-mid); }
.svc-body .text-link { margin-top: auto; padding-top: 6px; }

.svc-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.svc-card.wide .ph { aspect-ratio: auto; min-height: 320px; height: 100%; }
.svc-card.wide .svc-body { padding: clamp(26px, 4vw, 48px); justify-content: center; }
.svc-card.wide .svc-body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }

/* ---------- Detailed service rows (services page) ---------- */
.svc-rows { display: grid; gap: clamp(56px, 7vw, 96px); }
.svc-row h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); color: var(--g-deep); }
.svc-row .tag { background: var(--g-tint); margin-bottom: 14px; }
.svc-row .lead { margin-bottom: 22px; }
.svc-row .checklist { margin-bottom: 28px; }

/* ---------- Why panels ---------- */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); background: #fff; display: grid; gap: 18px; align-content: start; }
.panel h3 { margin: 0; font-size: 1.45rem; }
.panel-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--g-mid); text-transform: uppercase; }
.panel.dark { background: var(--g-deep); border-color: var(--g-deep); color: rgba(255, 255, 255, 0.88); }
.panel.dark h3 { color: #fff; }
.panel.dark .panel-num { color: var(--g-bright); }
.panel.dark .checklist li svg { color: var(--g-bright); }

/* ---------- Industry cards ---------- */
.ind-card { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; background: var(--g-deep); }
.ind-card .ph { position: absolute; inset: 0; border-radius: 0; z-index: -2; }
.ind-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 48, 15, 0.1) 0%, rgba(4, 48, 15, 0.55) 45%, rgba(4, 48, 15, 0.96) 100%); }
.ind-body { padding: 26px; display: grid; gap: 12px; }
.ind-body h3 { color: #fff; margin: 0; font-size: 1.5rem; }
.ind-body .tag { justify-self: start; background: var(--g-bright); color: var(--g-darker); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.85rem; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; line-height: 1.2; }
.chips.light li { background: var(--g-tint); border-color: #cfe5d4; color: var(--g-deep); }

/* ---------- Logo walls ---------- */
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee + .marquee { margin-top: 16px; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee var(--marquee-speed, 70s) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 16px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo-tile {
  flex: none; width: 168px; height: 92px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.logo-tile img { max-width: 100%; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.logo-tile.is-failed { display: none; }
.logo-tile.is-blank { background: linear-gradient(140deg, #f3f7f3, #e6efe7); }
.logo-tile.is-blank img { opacity: 0; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-grid .logo-tile { width: auto; height: 100px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.logo-grid .logo-tile:hover { border-color: #b9d7bf; box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.quote-card {
  position: relative; border-radius: var(--radius); padding: clamp(28px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid; gap: 22px; grid-template-rows: auto auto 1fr auto; min-width: 0;
}
.quote-mark { width: 40px; height: 40px; color: var(--g-bright); }
.stars { color: var(--amber); letter-spacing: 3px; font-size: 1.05rem; }
.quote-card blockquote { margin: 0; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); line-height: 1.55; color: #fff; }
.quote-card figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; background: var(--g-mid); display: grid; place-items: center; position: relative; color: #fff; font-family: var(--font-display); font-weight: 700; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar img.img-failed { display: none; }
.quote-name { color: #fff; font-weight: 600; display: block; }
.quote-role { color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: var(--g-deep); color: rgba(255, 255, 255, 0.88);
  padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px 48px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 209, 123, 0.32), rgba(97, 209, 123, 0) 68%);
}
.cta h2 { color: #fff; margin-bottom: 0.35em; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.8); max-width: 54ch; }
.cta .btn-row { justify-content: flex-end; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery .ph { aspect-ratio: 4 / 5; }
.gallery .ph:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery .ph img { position: absolute; inset: 0; }

/* ---------- Simple feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 38px); background: #fff; display: grid; gap: 14px; align-content: start; }
.feature h3 { margin: 0; color: var(--g-deep); font-size: 1.4rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--g-tint); color: var(--g-deep); display: grid; place-items: center; }
.feature-icon .icon { width: 26px; height: 26px; }

/* ---------- HSE pillars ---------- */
.pillars { display: grid; gap: clamp(48px, 6vw, 80px); }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 26px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.office-city { font-family: var(--font-display); font-stretch: 86%; font-weight: 800; font-size: 1.5rem; color: var(--g-deep); line-height: 1.1; margin: 0; }
.office-country { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-mid); }
.office address { font-style: normal; color: var(--text); line-height: 1.55; }
.office-lines { display: grid; gap: 8px; font-size: 0.95rem; }
.office-lines a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; overflow-wrap: anywhere; }
.office-lines a:hover { color: var(--g-deep); }
.office-lines .icon { width: 17px; height: 17px; color: var(--g-mid); }

/* ---------- Partner (WONE) ---------- */
.partner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.partner-mark { background: var(--g-deep); color: #fff; padding: clamp(30px, 5vw, 56px); display: grid; align-content: center; gap: 10px; }
.partner-mark .tag { justify-self: start; background: var(--g-bright); color: var(--g-darker); }
.partner-mark strong { font-family: var(--font-display); font-stretch: 80%; font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: 0.01em; }
.partner-mark span { color: rgba(255, 255, 255, 0.72); }
.partner-body { padding: clamp(30px, 5vw, 56px); display: grid; gap: 16px; align-content: center; }
.partner-body p { margin: 0; color: var(--muted); }

/* ---------- Partners (Robopac, WONE) ---------- */
.ph.contain { background: #fff; }
.ph.contain img { object-fit: contain; padding: 6%; }
.svc-card .ph.contain { border-bottom: 1px solid var(--line); }
.svc-card.span-2 { grid-column: span 2; }
.svc-card.span-2 .ph { aspect-ratio: 5 / 2; }
.partner-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pcard { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--g-deep); min-width: 0; }
.pcard .ph { position: absolute; inset: 0; border-radius: 0; z-index: -2; }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 48, 15, 0.05) 0%, rgba(4, 48, 15, 0.6) 50%, rgba(4, 48, 15, 0.96) 100%); }
.pcard.solid::before { background: radial-gradient(circle at 85% 10%, rgba(97, 209, 123, 0.28), rgba(97, 209, 123, 0) 55%); }
.pcard-body { padding: clamp(24px, 3.5vw, 36px); display: grid; gap: 12px; }
.pcard-body h3 { color: #fff; margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.pcard-body p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 52ch; }
.pcard-body .tag { justify-self: start; background: var(--g-bright); color: var(--g-darker); }
.pcard-body .text-link { color: #fff; }
.pcard-body .text-link:hover { color: var(--g-bright); }
.wordmark { font-family: var(--font-display); font-stretch: 78%; font-weight: 900; letter-spacing: 0.04em; line-height: 0.9; color: #fff; font-size: clamp(2.8rem, 2rem + 4vw, 5rem); }
.wordmark small { display: block; font-family: var(--font-mono); font-stretch: 100%; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.16em; color: var(--g-bright); margin-top: 12px; }
.partner-band { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.partner-band .partner-mark { padding: clamp(32px, 5vw, 64px); }
.partner-band .partner-body { padding: clamp(28px, 4.5vw, 56px); }
.partner-body h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); margin-bottom: 0.2em; }
.partner-body .lead { margin-bottom: 4px; }
.sub-head { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-mid); margin: 10px 0 2px; }
.logo-plate { justify-self: start; display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.logo-plate img { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.partner-mark.light { background: #fff; color: var(--text); border-right: 1px solid var(--line); justify-items: start; gap: 18px; }
.partner-mark.light .partner-logo { width: min(100%, 360px); height: auto; }
.partner-mark.light .partner-meta { color: var(--muted); }
.partner-meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.section-logo { height: 54px; width: auto; margin-bottom: 18px; }
.partner-stack { display: grid; gap: 28px; }
.wordmark.dark { color: var(--ink); font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); }
.partner-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.pmini { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; align-content: start; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; min-width: 0; }
.pmini:hover { border-color: #b9d7bf; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.pmini-mark { grid-column: 1 / -1; height: 52px; display: flex; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pmini-mark img { max-height: 40px; max-width: 160px; width: auto; height: auto; object-fit: contain; }
.pmini-mark .wordmark.dark { font-size: 1.8rem; }
.pmini-text { display: grid; gap: 6px; min-width: 0; }
.pmini-text .tag { justify-self: start; background: var(--g-tint); }
.pmini-text strong { font-family: var(--font-display); font-stretch: 88%; font-size: 1.25rem; color: var(--g-deep); line-height: 1.2; }
.pmini-text span:last-child { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.pmini-arrow { color: var(--g-mid); align-self: end; }
.pmini-arrow .icon { width: 20px; height: 20px; }
@media (max-width: 960px) { .partner-minis { grid-template-columns: minmax(0, 1fr); } }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .card-grid.two { grid-template-columns: minmax(0, 1fr); } }
.svc-card .ph.contain.ratio-4x3 { aspect-ratio: 16 / 10; }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); object-fit: cover; }
.wone-head { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: end; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 44px); }
.wone-head .section-head { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); min-width: 0; }
.form-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 6px; }
.form-intro { color: var(--muted); margin-bottom: 26px; }
.form-step { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.form-step:disabled { display: none; }
.form-step-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-stretch: 88%; font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 16px; padding: 0; }
.step-num { width: 30px; height: 30px; border-radius: 8px; background: var(--g-deep); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.82rem; font-stretch: 100%; flex: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fields .span-2 { grid-column: 1 / -1; }
.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.req { color: var(--g-mid); margin-left: 2px; }
.hint { font-size: 0.83rem; color: var(--muted); line-height: 1.45; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.78rem 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
select {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23064f1b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: #bcd3c1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g-mid); box-shadow: 0 0 0 4px rgba(49, 160, 80, 0.16); }
.was-validated input:invalid, .was-validated select:invalid, .was-validated textarea:invalid { border-color: #d0453b; }
input[type="file"] { width: 100%; font: inherit; font-size: 0.92rem; color: var(--muted); padding: 14px; border: 1.5px dashed #b9d0be; border-radius: 10px; background: var(--paper); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 14px; border: 0; border-radius: 8px; background: var(--g-deep); color: #fff; padding: 9px 14px; cursor: pointer; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Choice cards */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; min-width: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.choice-box { display: grid; gap: 4px; height: 100%; padding: 16px 16px 16px 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; position: relative; }
.choice-box::before { content: ""; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9fbfa6; background: #fff; }
.choice-title { font-weight: 600; color: var(--ink); line-height: 1.3; }
.choice-text { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.choice input:checked + .choice-box { border-color: var(--g-mid); background: var(--g-tint); box-shadow: 0 0 0 3px rgba(49, 160, 80, 0.12); }
.choice input:checked + .choice-box::before { border-color: var(--g-mid); background: radial-gradient(circle, var(--g-mid) 0 5px, #fff 6px); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--g-bright); outline-offset: 2px; }

/* Parts list */
.parts-head { display: none; }
.parts-list { display: grid; gap: 12px; margin-bottom: 12px; }
.part-row {
  display: grid; gap: 10px 12px; align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 90px 44px;
  grid-template-areas: "brand num qty rm" "desc desc desc desc";
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.part-row .pf-brand { grid-area: brand; min-width: 0; }
.part-row .pf-num { grid-area: num; min-width: 0; }
.part-row .pf-qty { grid-area: qty; min-width: 0; }
.part-row .pf-remove { grid-area: rm; }
.part-row .pf-desc { grid-area: desc; min-width: 0; }
.part-row input { padding: 0.68rem 0.8rem; }
.part-row .part-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.part-row .part-label [data-n] { color: var(--g-deep); }
.part-remove { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.part-remove:hover { color: var(--err-fg); border-color: #e7b3ae; background: var(--err-bg); }
.part-remove .icon { width: 18px; height: 18px; }
.part-remove:disabled { opacity: 0.35; cursor: default; background: #fff; color: var(--muted); border-color: var(--line); }
.add-row { margin-top: 2px; padding: 0.65rem 1rem; font-size: 0.92rem; }

.form-actions { display: grid; gap: 12px; margin-top: 8px; }
.form-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 0; }
.form-status { border-radius: 12px; padding: 14px 16px; font-size: 0.95rem; line-height: 1.5; margin: 0 0 18px; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok-fg); }
.form-status.is-error { background: var(--err-bg); color: var(--err-fg); }
.form-status.is-info { background: #eef4fb; color: #1d4a7a; }
.form-done { text-align: center; padding: clamp(28px, 6vw, 60px) 10px; display: grid; gap: 14px; justify-items: center; }
.form-done .done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); display: grid; place-items: center; }
.form-done .done-icon .icon { width: 32px; height: 32px; }
.form-done h3 { margin: 0; color: var(--g-deep); }
.form-done p { margin: 0; color: var(--muted); max-width: 46ch; }

/* Aside */
.aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.aside-card { border-radius: var(--radius); padding: 26px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 14px; }
.aside-card h3 { font-size: 1.2rem; margin: 0; }
.aside-card.dark { background: var(--g-deep); border-color: var(--g-deep); color: rgba(255, 255, 255, 0.85); }
.aside-card.dark h3 { color: #fff; }
.aside-card.dark a { color: #fff; }
.contact-lines { display: grid; gap: 10px; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines .icon { width: 18px; height: 18px; color: var(--g-bright); }
.steps-list { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 0.95rem; line-height: 1.5; }
.steps-list li::before { content: counter(s); width: 28px; height: 28px; border-radius: 8px; background: var(--g-deep); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; }

/* Staff */
.staff-bar { background: var(--g-tint); border-bottom: 1px solid #cfe3d4; font-size: 0.92rem; }
.staff-bar .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; min-height: 48px; padding-block: 8px; }
.staff-bar strong { color: var(--g-deep); }
.staff-bar-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
/* ---------- Funds request page (opened from email buttons) ---------- */
input[readonly][data-po] { background: var(--paper); color: var(--g-deep); font-weight: 600; cursor: default; }
.wrap.narrow { max-width: 640px; }
.request-title { font-size: var(--fs-xl); margin: 4px 0 12px; }
.btn-danger { background: #b3261e; color: #fff; border-color: #b3261e; }
.btn-danger:hover { background: #8f1d17; border-color: #8f1d17; color: #fff; }
.decision-card { display: grid; gap: 14px; }
.decision-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; padding: 0; }
.flow-steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; background: #fff; border-top-width: 4px; min-width: 0; }
.flow-steps li strong { font-size: 0.95rem; }
.flow-steps li span { font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.flow-steps li.is-done { border-top-color: var(--g-mid); }
.flow-steps li.is-now { border-top-color: #e0a100; background: #fffaf0; }
.flow-steps li.is-stop { border-top-color: #b3261e; background: #fdf1f0; }
.flow-steps li.is-todo { border-top-color: var(--line); opacity: 0.75; }
@media (max-width: 560px) { .flow-steps { grid-template-columns: minmax(0, 1fr); } .decision-buttons { grid-template-columns: minmax(0, 1fr); } }
.staff-bar .icon { width: 16px; height: 16px; color: var(--g-deep); vertical-align: -3px; margin-right: 6px; }
.login-section { min-height: 62vh; display: grid; align-items: center; }
.login-section .wrap { padding-block: clamp(56px, 8vw, 110px); }
.login-card { max-width: 460px; margin-inline: auto; background: #fff; border-radius: 18px; padding: clamp(26px, 5vw, 42px); box-shadow: var(--shadow-lg); color: var(--text); display: grid; gap: 18px; }
.login-card h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); margin: 0; }
.login-card p { margin: 0; color: var(--muted); }
.login-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--g-deep); color: #fff; display: grid; place-items: center; }
.login-icon .icon { width: 28px; height: 28px; }
.preview-note { font-size: 0.85rem; background: #eef4fb; color: #1d4a7a; border-radius: 10px; padding: 10px 12px; }

/* ---------- Funds records (management) ---------- */
.records h1 small { font-size: 0.45em; color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.pill-pending { background: #fff4dc; color: #7a4b00; }
.pill-approved { background: #e3eefb; color: #1d4a7a; }
.pill-rejected { background: var(--err-bg); color: var(--err-fg); }
.pill-paid { background: var(--ok-bg); color: var(--ok-fg); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 20px; display: grid; gap: 4px; min-width: 0; }
.tile-num { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 2rem; color: var(--g-deep); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-num.tile-money { font-size: 1.35rem; }
.tile-label { color: var(--muted); font-size: 0.9rem; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; margin-bottom: 18px; padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.filter-actions { display: flex; gap: 14px; align-items: center; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.records-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 980px; }
.records-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--paper); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.records-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.records-table tr:last-child td { border-bottom: 0; }
.records-table tbody tr:hover { background: #fafcfa; }
.records-table a { font-weight: 600; text-decoration: none; }
.records-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.records-table .purpose { max-width: 280px; }
.record-head { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.record-head h1 { margin: 0 0 4px; font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.detail-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.detail-table th { text-align: left; width: 34%; color: var(--muted); font-weight: 500; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.detail-table td { padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history { list-style: none; display: grid; gap: 12px; font-size: 0.92rem; }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed #c6d9ca; border-radius: var(--radius); background: var(--paper); }
.empty-state h2 { font-size: 1.4rem; }
.empty-state p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .filters { grid-template-columns: minmax(0, 1fr); } .tiles { gap: 10px; } .tile { padding: 14px; } .tile-num { font-size: 1.6rem; } .tile-num.tile-money { font-size: 1.05rem; } .tile-label { font-size: 0.82rem; } }
.section.records, .section.request-page { padding-top: clamp(36px, 4vw, 56px); }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--g-darker); color: rgba(255, 255, 255, 0.78); overflow: hidden; }
.footer-media { position: absolute; inset: 0; z-index: -2; }
/* Footer: the construction-site night scene shows through clearly, as on the original site */
.footer-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 14, 7, 0.62) 0%, rgba(2, 14, 7, 0.18) 55%, rgba(2, 14, 7, 0.45) 100%),
    linear-gradient(180deg, rgba(4, 40, 14, 0.78) 0%, rgba(3, 20, 9, 0.28) 32%, rgba(3, 20, 9, 0.30) 72%, rgba(2, 10, 5, 0.9) 100%);
}
.site-footer .footer-main, .site-footer .footer-callback { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.site-footer .footer-main .wrap { padding-block: 72px 64px; }
.footer-callback { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-callback .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 48px; align-items: center; padding-block: 40px; }
.footer-callback h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 4px; }
.footer-callback p { margin: 0; color: rgba(255, 255, 255, 0.7); }
.callback-form { display: flex; gap: 10px; flex-wrap: wrap; }
.callback-form input[type="email"] { flex: 1 1 240px; background: rgba(255, 255, 255, 0.96); border-color: transparent; }
.callback-form .form-status { flex-basis: 100%; margin: 0; }
.footer-main .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; padding-block: 56px 40px; }
.footer-brand .brand-logo { width: 64px; height: 64px; filter: brightness(0) invert(1); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.55); }
.footer-brand p { margin: 18px 0 20px; font-size: 0.95rem; max-width: 40ch; }
.footer-col h3 { font-family: var(--font-mono); font-stretch: 100%; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-bright); margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 9px; font-size: 0.95rem; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-office { display: grid; gap: 3px; font-size: 0.92rem; margin-bottom: 16px; }
.footer-office strong { color: #fff; font-weight: 600; }
.footer-office a { color: rgba(255, 255, 255, 0.8); text-decoration: none; overflow-wrap: anywhere; }
.footer-office a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.2s; }
.socials a:hover { background: var(--g-mid); color: #fff; }
.socials .icon { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
/* Bottom row: copyright on the left, Staff Portal on the right, stopping just short of the
   floating WhatsApp button (58px wide, 20px from the screen edge). The right padding only
   grows when the page is narrow enough for the row to reach the button. */
.footer-bottom .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  padding-block: 22px;
  padding-right: max(max(20px, env(safe-area-inset-right, 0px)), calc(92px + env(safe-area-inset-right, 0px) - max(0px, (100vw - 1220px) / 2)));
  font-size: 0.86rem; color: rgba(255, 255, 255, 0.6);
}
.footer-bottom .wrap > a { margin-left: auto; }
.footer-bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .icon { width: 15px; height: 15px; }

/* WhatsApp float */
.wa-float {
  position: fixed; z-index: 90;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(4, 48, 15, 0.32);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }

/* Plain page (PHP fallback / 404) */
.plain-page { min-height: 100vh; display: grid; place-items: center; background: var(--paper); padding: 24px; }
.plain-card { max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); text-align: center; }
.plain-card h1 { font-size: 2rem; color: var(--g-deep); }
.notfound { text-align: center; }
.notfound .big { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); color: var(--g-tint); line-height: 1; -webkit-text-stroke: 2px var(--g-mid); }

/* ---------- Reveal on scroll (only for content below the first screen) ---------- */
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  /* The blur effect on the header would trap the full-screen menu inside the header bar, so drop it on smaller screens */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; z-index: 150; left: 0; right: 0; top: var(--nav-top, 118px); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    overflow-y: auto; border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  .main-nav a.nav-link { font-size: 1.12rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a.nav-link[aria-current="page"]::after { left: 0; right: auto; width: 4px; top: 12px; bottom: 12px; height: auto; }
  .nav-cta { margin: 18px 0 0; }
  .nav-cta .btn { width: 100%; padding-block: 1rem; }
  .footer-main .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meca { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meca-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .meca-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .split.reverse { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .media-frame { margin-right: 22px; }
  .panels, .quotes, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .offices { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta .btn-row { justify-content: flex-start; }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .partner { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .ph:nth-child(1) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .footer-callback .wrap { grid-template-columns: minmax(0, 1fr); }
  .svc-card.wide { grid-template-columns: minmax(0, 1fr); }
  .svc-card.wide .ph { min-height: 0; aspect-ratio: 16 / 10; }
  .partner-cards, .partner-band { grid-template-columns: minmax(0, 1fr); }
  .partner-mark.light { border-right: 0; border-bottom: 1px solid var(--line); }
  .svc-card.span-2 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar-offices, .topbar .hide-sm { display: none; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-card.span-2 { grid-column: auto; }
  .svc-card.span-2 .ph { aspect-ratio: 16 / 11; }
  .pcard { min-height: 340px; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .fields, .fields-3 { grid-template-columns: minmax(0, 1fr); }
  .checklist.two-col { grid-template-columns: minmax(0, 1fr); }
  .part-row { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "brand brand" "num num" "desc desc" "qty rm"; }
  .ind-card { min-height: 380px; }
  .media-badge { left: 12px; bottom: 12px; }
}
@media (max-width: 520px) {
  :root { --header-h: 68px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.12em; }
  .meca { grid-template-columns: minmax(0, 1fr); }
  .meca-item, .meca-item + .meca-item { padding: 16px 0 6px; border-left: 0; }
  .meca-item + .meca-item { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .stat { padding: 22px 14px; }
  .footer-main .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .logo-tile { width: 138px; height: 80px; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-set { flex-wrap: wrap; justify-content: center; }
  .marquee-set[aria-hidden="true"] { display: none; }
  .reveal-pending { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .wa-float, .footer-callback, .nav-toggle { display: none !important; }
}
