/* ISM Engenharia — site styles
   Palette from the ISM logo: navy wordmark + lime→green lotus gradient. */

:root {
  --ink: #0f1e3a;          /* logo navy */
  --ink-2: #1b2d52;
  --ink-soft: #4a5872;
  --green-950: #062b1d;
  --green-900: #0a3d29;
  --green-700: #0f6b3b;
  --green-500: #3d9a3e;
  --lime: #c3d82f;
  --lime-soft: #e7efb4;
  --paper: #f5f4ef;
  --paper-2: #ecebe3;
  --white: #fff;
  --line: rgba(15, 30, 58, .12);
  --line-light: rgba(255, 255, 255, .14);
  --wa: #25d366;
  --wa-dark: #128c4b;

  --grad: linear-gradient(120deg, var(--lime) 0%, var(--green-500) 45%, var(--green-700) 100%);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(15, 30, 58, .06), 0 8px 24px -8px rgba(15, 30, 58, .14);
  --shadow-lg: 0 2px 4px rgba(15, 30, 58, .06), 0 24px 48px -16px rgba(15, 30, 58, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 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(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--f-sans); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- type ---------- */
.h1, .h2, .hero-title, .quote { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; font-optical-sizing: auto; }
.h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.1; }
.h3 { font: 700 1.28rem/1.25 var(--f-sans); font-variation-settings: "wdth" 108; letter-spacing: -.01em; }
.h4 { font: 700 1.06rem/1.3 var(--f-sans); font-variation-settings: "wdth" 108; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em; margin-bottom: 1.1rem;
  font: 500 .76rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow .idx { color: var(--ink-soft); }
.eyebrow-light { color: var(--lime); }
.eyebrow-light .idx { color: rgba(255, 255, 255, .6); }
.idx { color: var(--green-700); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .6em 1.15em; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .95rem; line-height: 1.1;
  font-variation-settings: "wdth" 105; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 52px; padding: .8em 1.5em; font-size: 1rem; }
.btn-primary { --bg: var(--green-700); }
.btn-primary:hover { --bg: var(--green-900); }
.btn-wa { --bg: var(--wa-dark); }
.btn-wa:hover { --bg: #0e7a40; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost-light { --bg: rgba(255, 255, 255, .08); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { --bg: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--green-700); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon, a:hover .link-arrow .icon { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 30, 58, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 0 0 4px var(--white), 0 0 0 5px rgba(61, 154, 62, .35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font: 700 1.08rem/1.1 var(--f-sans); font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30ch; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
  position: relative; display: block; padding: 8px 12px; border-radius: 8px;
  font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: color .2s, background-color .2s;
}
.nav ul a:hover { background: var(--paper); }
.nav ul a[aria-current="page"] { color: var(--green-700); }
.nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px;
  font: 500 .8rem/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .2s;
}
.lang:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lang .icon { width: 16px; height: 16px; }
.nav-actions .btn { min-height: 40px; padding: .5em 1em; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .i-close { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: min(calc(100svh - var(--header-h)), 860px); display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 18, 38, .92) 0%, rgba(8, 18, 38, .72) 42%, rgba(8, 18, 38, .2) 100%),
    linear-gradient(0deg, rgba(6, 43, 29, .85) 0%, rgba(6, 43, 29, 0) 45%);
}
.grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-inner { padding-top: clamp(72px, 12vh, 140px); padding-bottom: 48px; }
.hero-title { max-width: 16ch; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1; }
.hero-title em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--lime) 10%, #8fd06b 60%, #5fc08a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* italic glyphs overhang their box; pad so the clipped gradient covers them (each line) */
  padding: 0 .3em .12em; margin: 0 -.3em -.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-text { max-width: 58ch; margin-top: 1.6rem; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line-light); padding-top: 0; padding-bottom: 0;
}
.fact { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px 30px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-light); }
.fact strong { font: 600 clamp(1.4rem, 2.2vw, 1.9rem)/1.1 var(--f-display); color: var(--lime); }
.fact span { font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* ---------- sections ---------- */
.section { position: relative; isolation: isolate; padding-block: clamp(72px, 10vw, 128px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--white); }
.section-dark { background: var(--ink); color: #fff; overflow: hidden; }
.section-dark .lead, .section-dark p { color: rgba(255, 255, 255, .74); }
.section-dark .eyebrow { color: var(--lime); }
.section-dark .link-arrow { color: var(--lime); }
.section-dark .grid-lines { mask-image: radial-gradient(ellipse 60% 80% at 90% 10%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 90% 10%, #000 10%, transparent 70%); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { flex-basis: 100%; margin-bottom: .2rem; }
.section-head .h2 { max-width: 22ch; }

/* split: o que fazemos */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-text .h2 { margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.chips li {
  padding: 7px 14px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .86rem; font-weight: 500; color: var(--ink-2);
}
.framed { position: relative; }
.framed img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; }
.framed::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1; border-radius: var(--radius-lg);
  background: var(--grad); opacity: .9;
}
.split-media figcaption { margin-top: 14px; color: var(--ink-soft); }

/* services cards (home) */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.service-body p { font-size: .94rem; color: var(--ink-soft); }

/* mission */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.mission-media { position: relative; padding: 0 12% 14% 0; }
.mission-media .m-main { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.mission-media .m-small {
  position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--paper); box-shadow: var(--shadow-lg);
}
.m-tag { position: absolute; left: 18px; top: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 30, 58, .78); color: #fff; backdrop-filter: blur(6px); }
.quote { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.18; font-weight: 500; }
.mission-text .quote { position: relative; padding-left: 0; }
.mission-text .quote::before { content: "“"; display: block; height: .55em; font-size: 2.4em; line-height: 1; color: var(--green-500); }
.mvv { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.mvv p { margin-top: .5rem; color: var(--ink-soft); font-size: .96rem; }
.values { display: flex; flex-direction: column; gap: 6px; margin-top: .6rem; }
.values li, .ticks li { display: flex; align-items: flex-start; gap: 10px; }
.values .icon, .ticks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--green-500); }
.values li { font-weight: 500; }

/* equipment cards */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.equip-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-light);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.section:not(.section-dark) .equip-card { background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
a.equip-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(195, 216, 47, .5), var(--shadow-lg); }
.equip-media { aspect-ratio: 5 / 4; overflow: hidden; background: #fff; }
.equip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.equip-card:hover .equip-media img { transform: scale(1.05); }
.equip-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px; }
.equip-body p { font-size: .95rem; }
.section:not(.section-dark) .equip-body p { color: var(--ink-soft); }
.equip-body .link-arrow { margin-top: auto; padding-top: 6px; }
.section-dark .equip-body .link-arrow { color: var(--lime); }
.code {
  align-self: flex-start; padding: 4px 10px; border-radius: 6px; font: 500 .74rem/1.2 var(--f-mono); letter-spacing: .08em;
  background: rgba(195, 216, 47, .16); color: var(--lime);
}
.section:not(.section-dark) .code { background: var(--lime-soft); color: var(--green-900); }

/* partners marquee */
.partners { padding-bottom: clamp(60px, 8vw, 100px); overflow: hidden; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex: none; gap: 20px; padding-right: 20px; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: grid; place-items: center; width: 230px; height: 128px; padding: 22px 30px; border-radius: var(--radius);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
}
.marquee-track img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .3s, opacity .3s; }
.marquee-track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* location */
.location { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.location-info .h2 { margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.contact-list .icon { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--paper); color: var(--green-700); }
.contact-list dt { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list dd a { font-weight: 600; }
.contact-list dd a:hover, .footer-contact a:hover { color: var(--green-700); }
.social-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 2.4rem; padding: 22px 24px; border-radius: var(--radius); background: var(--ink); color: #fff;
}
.social-card p { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); font-weight: 600; font-size: .9rem;
  transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--lime); color: var(--ink); }
.map { min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(.85); }

/* ---------- inner pages ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 11vw, 150px) clamp(56px, 7vw, 96px);
  background: var(--ink); color: #fff;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8, 18, 38, .95) 0%, rgba(8, 18, 38, .7) 55%, rgba(6, 43, 29, .55) 100%); }
.page-hero .eyebrow { color: var(--lime); }
.page-hero .h1 { max-width: 18ch; }
.page-hero .lead { max-width: 62ch; margin-top: 1.4rem; color: rgba(255, 255, 255, .78); }

.plant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.plant-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.plant-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.plant-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.plant-card:hover .plant-media img { transform: scale(1.04); }
.badge { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 600 .74rem/1 var(--f-mono); letter-spacing: .08em; }
.plant-body { padding: 26px 28px 30px; }
.plant-body p { margin-top: .5rem; color: var(--ink-soft); }

.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.overview-col { padding: 30px; border-radius: var(--radius-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.overview-col .h4 { margin-bottom: 1.1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.ticks { display: flex; flex-direction: column; gap: 10px; font-size: .96rem; }

.service-rows { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 120px); }
.service-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row:nth-child(even) .framed::before { inset: -14px -14px 14px 14px; }
.service-row-media img { aspect-ratio: 4 / 3; }
.service-row-text .idx { display: block; margin-bottom: 1rem; }
.service-row-text .h2 { margin-bottom: 1.1rem; }

.mvv-dark { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.mvv-dark .quote { font-size: clamp(1.3rem, 2vw, 1.65rem); color: #fff; }
.values-light li { font: 500 clamp(1.3rem, 2vw, 1.65rem)/1.3 var(--f-display); color: #fff; }
.values-light .icon { color: var(--lime); margin-top: 6px; }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cat-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-media { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.spec { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; font-size: .88rem; color: var(--ink-soft); }
.spec li { padding-left: 14px; position: relative; }
.spec li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 2px; background: var(--green-500); }

.training-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; counter-reset: t; }
.training-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 230px; padding: 30px; border-radius: var(--radius-lg);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.training-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.training-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.training-card:hover::after { transform: scaleX(1); }
.training-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--lime); }
.training-icon .icon { width: 28px; height: 28px; }
.training-card .idx { position: absolute; top: 30px; right: 30px; color: var(--ink-soft); }
.training-card .h3 { margin-top: auto; font-size: 1.32rem; }

.doc-cta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px 32px;
  border-radius: var(--radius-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.doc-cta-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--lime-soft); color: var(--green-900); }
.doc-cta-icon .icon { width: 28px; height: 28px; }
.doc-cta p { color: var(--ink-soft); margin-top: 4px; }

.cta-band {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  padding: clamp(36px, 5vw, 60px); border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, var(--green-700) 0%, var(--green-900) 45%, var(--ink) 100%);
}
.cta-band p { margin-top: .6rem; color: rgba(255, 255, 255, .75); }
.cta-band-lotus { position: absolute; right: -40px; bottom: -70px; z-index: -1; width: 360px; opacity: .07; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* equipment detail page */
.equip-page { background: var(--ink); color: #fff; overflow: hidden; }
.equip-page .grid-lines { mask-image: radial-gradient(ellipse 70% 70% at 80% 20%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 20%, #000 10%, transparent 70%); }
.equip-layout { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.equip-video { position: relative; }
.equip-video::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: -1; border-radius: var(--radius-lg); background: var(--grad); opacity: .85; }
.equip-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-lg); background: #000; box-shadow: var(--shadow-lg); }
.crumbs { display: block; margin-bottom: 1.2rem; color: rgba(255, 255, 255, .6); }
.crumbs a { color: var(--lime); }
.crumbs a:hover { text-decoration: underline; }
.equip-info .h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.equip-info .lead { margin-top: 1.3rem; color: rgba(255, 255, 255, .85); }
.equip-info > p:not(.lead) { margin-top: 1rem; color: rgba(255, 255, 255, .7); }
.equip-info .ticks { margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.equip-info .ticks .icon { color: var(--lime); }
.other-equip {
  display: flex; align-items: center; gap: 14px; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, .7);
}
.other-equip strong { color: #fff; font-weight: 600; }
.other-equip .icon { margin-left: auto; color: var(--lime); transition: transform .25s var(--ease); }
.other-equip:hover .icon { transform: translateX(5px); }

/* ---------- footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .72); padding-top: clamp(60px, 8vw, 96px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1.2fr 1fr; gap: 40px; padding-bottom: 56px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }
.brand-light img { box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.footer-brand p { margin-top: 1.2rem; max-width: 40ch; }
.footer-brand .slogan { font: italic 500 1.15rem/1.3 var(--f-display); color: var(--lime); }
.footer-title { margin-bottom: 1rem; font: 500 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover { color: var(--lime); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { margin-top: 3px; color: var(--lime); }
.footer-contact a:hover { color: var(--lime); }
.site-footer .social a { padding: 0; width: 44px; justify-content: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .5); }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 30px -6px rgba(18, 140, 75, .65);
  transform: translateY(120px); transition: transform .4s var(--ease);
}
.wa-float.is-visible { transform: none; }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-dark); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-text small { letter-spacing: .1em; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { width: 44px; height: 44px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    /* absolute, not fixed: the header's backdrop-filter makes it the containing block */
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); z-index: 49; flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px var(--gutter) 32px; background: var(--white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .nav-open { overflow: hidden; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font: 600 1.6rem/1.2 var(--f-display); }
  .nav ul a[aria-current="page"]::after { left: 4px; right: auto; width: 40px; bottom: 8px; }
  .nav ul a:hover { background: none; }
  .nav-actions { margin-top: 28px; }
  .nav-actions .btn { flex: 1; min-height: 52px; }
  .lang { height: 52px; padding: 0 18px; }

  .split, .mission-grid, .location, .service-row, .equip-layout { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .mission-media { max-width: 560px; }
  .equip-grid, .plant-grid, .overview, .mvv-dark { grid-template-columns: 1fr; }
  .equip-grid { gap: 18px; }
  .equip-card { flex-direction: row; }
  .equip-media { flex: 0 0 38%; aspect-ratio: auto; }
  .equip-video { max-width: 380px; }
  .cta-band { grid-template-columns: 1fr; }
  .doc-cta { grid-template-columns: auto 1fr; }
  .doc-cta .btn { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-text strong { font-size: 1rem; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 64px; }
  .hero-facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { flex-direction: row; align-items: baseline; gap: 14px; padding: 16px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line-light); }
  .fact strong { min-width: 6.2em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .mvv { grid-template-columns: 1fr; gap: 24px; }
  .equip-card { flex-direction: column; }
  .equip-media { aspect-ratio: 5 / 4; }
  .framed::before { inset: -10px 10px 10px -10px; }
  .equip-info .ticks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .marquee-track li { width: 180px; height: 104px; padding: 18px 22px; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .map, .map iframe { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* tweaks */
.brand-text small { font: 500 .66rem/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--green-700); }
.brand-light .brand-text small { color: var(--lime); }
.equip-media.is-contain { display: grid; place-items: center; padding: 18px; }
.equip-media.is-contain img { height: auto; object-fit: contain; border-radius: 8px; }
.split-media figcaption { margin-top: 26px; }
.section:not(.section-alt):not(.section-dark) + .section-tight:not(.section-alt) { padding-top: 0; }
@media (max-width: 640px) {
  .hero .eyebrow { font-size: .66rem; letter-spacing: .1em; line-height: 1.5; }
  .hero .eyebrow::before { width: 18px; }
}
.cta-band > div { min-width: 0; }
@media (max-width: 960px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cta-band-actions .btn { flex: 1 1 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}
.show-sm { display: none; }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
}
