/* ES "Nepis Gol" — grey-turquoise corporate theme */
:root {
  --ink: #142428;
  --deep: #1B3035;      /* dark grey-teal panels */
  --deep-2: #22393F;
  --teal: #2C8C80;      /* primary turquoise */
  --teal-d: #23736A;
  --teal-l: #6CC3B0;    /* accents on dark */
  --emerald: #48B088;   /* logo green */
  --grey: #5F6E70;
  --text: #34464A;
  --bg: #FFFFFF;
  --mist: #EEF3F2;
  --line: #DCE4E3;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hdr: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.dark .kicker, .hero .kicker { color: var(--teal-l); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--teal-d); text-decoration: none; }
.link .arr { width: 18px; height: 18px; transition: transform .2s; }
.link:hover .arr, .tile:hover .arr { transform: translateX(4px); }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 .95rem var(--font); padding: 14px 26px; border-radius: 0; border: 2px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); }
.btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.line { background: transparent; color: var(--teal-d); }
.btn.line:hover { background: var(--teal); color: #fff; }
.btn.sm { padding: 10px 18px; font-size: .88rem; }

.ornament { height: 20px; background: url(../img/ornament.png) repeat-x left center / auto 17px; background-color: #fff; }

/* Header */
#site-header { display: contents; }
.hdr { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.hdr.scrolled { box-shadow: 0 6px 24px rgba(20,36,40,.08); }
.hdr-in { display: flex; align-items: center; height: var(--hdr); gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 38px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 1.15rem; letter-spacing: .1em; color: var(--ink); }
.brand small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }
.nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.nav-item > a { display: flex; align-items: center; height: 100%; padding: 0 16px; text-decoration: none; font-weight: 700; font-size: .95rem; border-bottom: 3px solid transparent; }
.nav-item > a:hover, .nav-item > a.active { color: var(--teal-d); border-bottom-color: var(--teal); }
.nav-cta-m { display: none; }
.mega { position: absolute; left: 0; right: 0; top: var(--hdr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 20px 40px rgba(20,36,40,.12); padding: 34px 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-in { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.mega-intro p { color: var(--grey); }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 30px; }
.mega-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.mega-list a:hover { color: var(--teal-d); }
.hdr-tools { display: flex; align-items: center; gap: 12px; }
.lang { background: none; border: 1.5px solid var(--line); font: 800 .8rem var(--font); padding: 8px 10px; cursor: pointer; color: var(--ink); }
.lang:hover { border-color: var(--ink); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 9px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--deep) center / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,34,38,.92) 0%, rgba(20,44,48,.72) 45%, rgba(27,48,53,.25) 100%), linear-gradient(0deg, rgba(16,34,38,.6), transparent 40%); }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -40px; width: 520px; height: 600px; background: url(../img/emblem.png) center / contain no-repeat; filter: brightness(0) invert(1); opacity: .07; }
.hero-in { position: relative; z-index: 1; padding: 120px 0 90px; max-width: 820px; }
.hero h1 { color: #fff; }
.hero .lead { color: #d6e3e1; max-width: 660px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.page-hero { min-height: 420px; }
.page-hero .hero-in { padding: 90px 0 60px; }
.crumbs { font-size: .85rem; color: #b9cbc8; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* Quick links overlapping hero */
.quick { position: relative; z-index: 2; margin-top: -1px; background: var(--deep); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick a { display: block; padding: 28px 30px; color: #fff; text-decoration: none; border-left: 1px solid rgba(255,255,255,.1); transition: .2s; }
.quick a:first-child { border-left: 0; }
.quick a:hover { background: var(--teal); }
.quick b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.quick span { color: #b9cbc8; font-size: .92rem; }
.quick a:hover span { color: #e8f5f2; }

/* Sections */
.sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sec.mist { background: var(--mist); }
.watermark { overflow: hidden; }
body { overflow-x: clip; }
.sec.dark { background: var(--deep); color: #c3d2d0; overflow: hidden; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.watermark::after { content: ""; position: absolute; right: -80px; bottom: -60px; width: 460px; height: 530px; background: url(../img/emblem.png) center / contain no-repeat; opacity: .06; pointer-events: none; }
.sec.dark.watermark::after { filter: brightness(0) invert(1); opacity: .05; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head > div { max-width: 760px; }
.statement { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--ink); line-height: 1.35; max-width: 1000px; }
.statement em { font-style: normal; color: var(--teal); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 50px; }
.stats div { padding: 26px 24px 0 0; }
.stats b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.stats span { font-weight: 600; color: var(--grey); font-size: .93rem; }

/* Photo tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.tile { position: relative; display: flex; flex-direction: column; text-decoration: none; background: #fff; color: inherit; overflow: hidden; }
.tile-img { display: block; aspect-ratio: 16 / 10; background: center / cover no-repeat; transition: transform .4s; }
.tile:hover .tile-img { transform: scale(1.05); }
.tile-body { display: flex; flex-direction: column; padding: 22px 22px 24px; flex: 1; background: #fff; position: relative; }
.tile-body h3 { margin-bottom: 8px; }
.tile-body p { color: var(--grey); font-size: .93rem; flex: 1; }
.tile:hover h3 { color: var(--teal-d); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.split-img { background: center / cover no-repeat; min-height: 340px; }
.split-body { padding: clamp(44px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.split.reverse .split-img { order: 2; }
.split-body ul { padding-left: 0; list-style: none; margin: 0 0 26px; }
.split-body li { padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); position: relative; }
.dark .split-body li { border-color: rgba(255,255,255,.1); }
.split-body li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; background: var(--teal); transform: rotate(45deg); }

/* Partner logos */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo-tile { display: grid; place-items: center; height: 104px; padding: 18px; background: #fff; border: 1px solid var(--line); transition: .2s; }
.logo-tile.dark { background: var(--deep); border-color: var(--deep); }
.logo-tile:hover { border-color: var(--teal); transform: translateY(-2px); }
.logo-tile img { max-height: 64px; max-width: 100%; object-fit: contain; }

/* CTA band */
.cta-band { background: linear-gradient(100deg, var(--teal-d), var(--teal) 60%, #3aa595); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: 4%; top: -40px; width: 260px; height: 300px; background: url(../img/emblem.png) center / contain no-repeat; filter: brightness(0) invert(1); opacity: .1; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0; max-width: 700px; }

/* Services page */
.subnav { position: sticky; top: var(--hdr); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; padding: 16px 14px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--grey); white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--teal-d); border-bottom-color: var(--teal); }
.svc-block { margin-bottom: 70px; scroll-margin-top: calc(var(--hdr) + 70px); }
.svc-hero { position: relative; min-height: 280px; display: flex; align-items: flex-end; background: center / cover no-repeat; color: #fff; }
.svc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,34,38,.9), rgba(20,44,48,.45) 70%, rgba(20,44,48,.2)); }
.svc-hero-in { position: relative; padding: 40px; max-width: 760px; }
.svc-hero h2 { color: #fff; }
.svc-hero p { color: #d6e3e1; margin: 0; }
.svc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border: 1px solid var(--line); border-top: 0; }
.svc-group { padding: 30px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.svc-group h3 { color: var(--teal-d); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.svc-group ul, .chem ul { list-style: none; margin: 0; padding: 0; }
.svc-group li, .chem li { padding: 7px 0 7px 22px; position: relative; font-size: .95rem; }
.svc-group li::before, .chem li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; background: var(--teal); transform: rotate(45deg); }
.svc-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 30px; background: var(--mist); border: 1px solid var(--line); border-top: 0; }
.svc-partners span { font-weight: 700; font-size: .88rem; color: var(--grey); margin-right: 6px; }
.chip { display: grid; place-items: center; height: 52px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); }
.chip.dark { background: var(--deep); border-color: var(--deep); }
.chip img { max-height: 34px; max-width: 130px; object-fit: contain; }

/* Chemicals */
.chems { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.chem { background: #fff; padding: 32px; }
.chem .src { margin: 18px 0 0; font-size: .84rem; color: var(--grey); font-weight: 600; }

/* Partners page */
.partner { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); margin-bottom: 18px; scroll-margin-top: calc(var(--hdr) + 20px); }
.partner-logo { display: grid; place-items: center; padding: 30px; background: #fff; border-right: 1px solid var(--line); }
.partner-logo.dark { background: var(--deep); }
.partner-logo img { max-height: 110px; max-width: 220px; object-fit: contain; }
.partner-body { padding: 30px 34px; }
.partner-svc { font-size: .92rem; color: var(--grey); }
.partner-svc a { color: var(--teal-d); font-weight: 700; text-decoration: none; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.1); counter-reset: s; }
.steps div { background: var(--deep-2); padding: 26px 22px; color: #fff; font-weight: 700; }
.steps b { display: block; color: var(--teal-l); font-size: 1.8rem; margin-bottom: 10px; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 36px; }
.models p { border-top: 3px solid var(--teal-l); padding-top: 16px; margin: 0; }
.models b { color: #fff; }

/* About / HSE */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.cards3 > div { background: #fff; padding: 32px; }
.cards3 h3 { color: var(--teal-d); }
.dark .cards3 { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
.dark .cards3 > div { background: var(--deep-2); }
.dark .cards3 h3 { color: var(--teal-l); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.grid4 > div { background: #fff; padding: 24px; font-weight: 700; color: var(--ink); }
.grid4 svg { width: 28px; height: 28px; color: var(--teal); display: block; margin-bottom: 12px; }
.iso { display: flex; gap: 12px; flex-wrap: wrap; }
.iso span { border: 2px dashed var(--teal); padding: 14px 22px; font-weight: 800; color: var(--ink); }
.iso small { display: block; font-weight: 600; color: var(--grey); font-size: .75rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; font-weight: 700; }
.contact-list svg { width: 24px; height: 24px; color: var(--teal); flex: none; }
.contact-list a { text-decoration: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--mist); padding: 34px; border-top: 4px solid var(--teal); }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 800; color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea, .form select { font: inherit; padding: 12px; border: 1px solid #c8d4d2; background: #fff; width: 100%; border-radius: 0; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--teal); border-color: transparent; }
.note { font-size: .8rem; color: var(--grey); margin: 0; }

/* Footer */
.ftr { background: var(--ink); color: #9fb3b0; position: relative; overflow: hidden; }
.ftr::after { content: ""; position: absolute; right: -40px; top: 20px; width: 300px; height: 350px; background: url(../img/emblem.png) center / contain no-repeat; filter: brightness(0) invert(1); opacity: .04; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 64px 24px 40px; position: relative; z-index: 1; }
.ftr-brand img { width: 46px; height: auto; margin-bottom: 14px; }
.ftr-brand b { color: #fff; }
.ftr h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin: 8px 0; font-size: .93rem; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--teal-l); }
.ftr-bottom { display: flex; justify-content: space-between; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; position: relative; z-index: 1; }

/* Responsive */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--hdr)); background: #fff; flex-direction: column; overflow-y: auto; padding: 10px 24px 30px; border-top: 1px solid var(--line); }
  .nav.show { display: flex; }
  .nav-item > a { height: auto; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .mega { display: none; }
  .nav-cta { display: none; }
  .nav-cta-m { display: inline-flex; margin-top: 20px; align-self: flex-start; }
  .burger { display: block; }
  .quick-grid, .split, .cards3, .grid4, .models, .contact-grid, .mega-in { grid-template-columns: 1fr; }
  .quick a { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .split.reverse .split-img { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .partner { grid-template-columns: 1fr; }
  .partner-logo { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .tiles, .logos { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .ftr-grid { grid-template-columns: 1fr; padding: 48px 16px 30px; }
  .ftr-bottom { padding: 18px 16px; flex-direction: column; gap: 6px; }
  .svc-hero-in, .svc-group, .chem { padding: 24px; }
  .svc-partners { padding: 16px 20px; }
  .hero::after { width: 300px; height: 340px; }
  .brand small { display: none; }
  .hdr-in { gap: 10px; }
}
