/* =========================================================
   Fuel Technology Services — site styles
   ========================================================= */

:root {
  --ink: #0d1b2a;
  --ink-2: #1b2b3d;
  --paper: #f6f4ef;
  --paper-2: #ecE8df;
  --surface: #ffffff;
  --line: rgba(13, 27, 42, 0.12);
  --text: #0d1b2a;
  --text-soft: #4c5866;
  --accent: #2f8f3a;
  --accent-ink: #1f6a28;
  --accent-soft: rgba(47, 143, 58, 0.1);
  --on-dark: #f6f4ef;
  --on-dark-soft: rgba(246, 244, 239, 0.68);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --radius: 4px;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --paper: #0b141e;
  --paper-2: #101c29;
  --surface: #13212f;
  --line: rgba(246, 244, 239, 0.1);
  --text: #eef0ec;
  --text-soft: #9aa6b2;
  --accent: #5cbf66;
  --accent-ink: #7fd488;
  --accent-soft: rgba(92, 191, 102, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
ul { list-style: none; }
strong { font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 span, h2 span { color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Pages ---------- */
.page { display: none; min-height: 100vh; }
.page.active { display: block; animation: pageIn .6s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Navigation ---------- */
.navbar-bg { display: none; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.logo { margin-right: auto; }
.logo img { height: 52px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 4px; order: 1; }
.nav-links > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-soft);
  transition: color .2s;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--on-dark); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }
.dropdown-arrow { font-size: 10px; opacity: .7; }

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .25s var(--ease);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: 2px;
}
.dropdown-menu a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.theme-toggle {
  order: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--on-dark);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s, transform .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--on-dark); transform: rotate(-20deg); }

.nav-toggle {
  order: 3;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--on-dark); transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline, .submit-btn, .featured-copy > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn-primary, .submit-btn, .featured-copy > a { background: var(--accent); color: #fff; }
.btn-primary:hover, .submit-btn:hover, .featured-copy > a:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn-outline { color: var(--on-dark); border-color: rgba(255, 255, 255, .4); }
.btn-outline:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--pad) 96px;
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  background: url("../images/css-bg-01.jpg") center / cover;
  animation: heroZoom 18s ease-out forwards;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 18, 30, .92) 0%, rgba(8, 18, 30, .7) 45%, rgba(8, 18, 30, .25) 100%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero-content { max-width: 760px; }
.hero-content > * { opacity: 0; animation: rise .9s var(--ease) forwards; }
.hero-content > :nth-child(1) { animation-delay: .1s; }
.hero-content > :nth-child(2) { animation-delay: .2s; }
.hero-content > :nth-child(3) { animation-delay: .32s; }
.hero-content > :nth-child(4) { animation-delay: .46s; }
.hero-content > :nth-child(5) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-company-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.hero-badge {
  display: inline-block;
  margin: 10px 0 28px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  color: var(--on-dark-soft);
}
.hero h1 { font-size: clamp(42px, 6.6vw, 88px); margin-bottom: 24px; }
.hero h1 span { color: #8fd497; }
.hero p { font-size: 18px; color: var(--on-dark-soft); max-width: 600px; margin-bottom: 36px; }
.hero p br { display: none; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--on-dark);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.stat-item { padding: 40px var(--pad) 44px; border-right: 1px solid rgba(255, 255, 255, .08); }
.stat-item:last-child { border-right: 0; }
.stat-number { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat-label { margin-top: 10px; font-size: 14px; color: var(--on-dark-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) var(--pad); }
.section-alt { background: var(--paper-2); }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.section-header { margin-bottom: 56px; max-width: var(--wrap); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.section-tag::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(34px, 4.6vw, 60px); max-width: 16ch; }
.section-header p { margin-top: 20px; max-width: 680px; color: var(--text-soft); }

/* ---------- Home: services list ---------- */
.services-grid { counter-reset: svc; border-top: 1px solid var(--line); }
.service-card {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 80px minmax(220px, 1fr) 2fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.service-card::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  padding-top: 6px;
}
.service-card h3 { font-size: 24px; transition: color .3s, transform .4s var(--ease); }
.service-card p { color: var(--text-soft); }
.service-card:hover h3 { color: var(--accent-ink); transform: translateX(6px); }

/* ---------- Construction gallery ---------- */
.construction-section { padding: clamp(72px, 10vw, 128px) var(--pad); background: var(--ink); color: var(--on-dark); }
.construction-section .section-header { margin: 0 auto 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.construction-section h2 { font-size: clamp(32px, 4vw, 52px); }
.construction-section .section-header p { color: var(--on-dark-soft); margin: 0; }

.construction-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.constr-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  transition: background-size .8s var(--ease);
}
.constr-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.constr-card:nth-child(4), .constr-card:nth-child(5), .constr-card:nth-child(6) { grid-column: span 2; }
.constr-overlay { position: absolute; inset: 0; background: rgba(8, 18, 30, .25); transition: background-color .4s; }
.constr-card:hover .constr-overlay { background: rgba(8, 18, 30, 0); }

/* ---------- Featured product ---------- */
.featured { background: var(--surface); }
.featured-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.featured-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.featured-media img { width: 62%; transition: transform .8s var(--ease); }
.featured-media:hover img { transform: translateY(-8px) scale(1.03); }
.featured-copy h2 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 20px; }
.featured-copy h2 span { color: var(--accent-ink); }
.featured-copy > p { color: var(--text-soft); margin-bottom: 28px; }
.featured-copy ul { margin-bottom: 32px; border-top: 1px solid var(--line); }
.featured-copy li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.featured-copy li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 1px; background: var(--accent); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why-item { background: var(--paper-2); padding: 36px 28px 40px; transition: background-color .3s; }
.why-item:hover { background: var(--surface); }
.why-item h4 { font-size: 20px; margin-bottom: 12px; }
.why-item p { font-size: 15px; color: var(--text-soft); }

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: #fff; text-align: left; }
.cta > * { max-width: var(--wrap); }
.cta .section-tag { color: rgba(255, 255, 255, .85); }
.cta .section-title { max-width: none; margin-bottom: 16px; }
.cta p { color: rgba(255, 255, 255, .85); margin-bottom: 32px; font-size: 18px; }
.cta .btn-primary { background: var(--ink); }
.cta .btn-primary:hover { background: #000; }

/* ---------- Footer ---------- */
footer {
  padding: 48px var(--pad);
  background: var(--ink);
  color: var(--on-dark-soft);
  font-size: 14px;
  display: grid;
  gap: 6px;
}
footer strong { color: var(--on-dark); }
footer p:last-child { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }

/* ---------- Inner page heroes ---------- */
.about-hero, .page-hero, .partners-hero {
  position: relative;
  padding: clamp(96px, 14vw, 160px) var(--pad) clamp(56px, 7vw, 88px);
  color: var(--on-dark);
  background: var(--ink) center / cover;
  isolation: isolate;
  overflow: hidden;
}
.about-hero::after, .page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 18, 30, .9), rgba(8, 18, 30, .45));
}
.about-hero { background-image: url("../images/css-bg-02.jpg"); }
.page-hero { background-image: url("../images/css-bg-03.jpg"); }
#page-contact .page-hero { background-image: url("../images/css-bg-04.jpg"); }
.about-hero > *, .page-hero > *, .partners-hero > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; animation: rise .9s var(--ease) both; }
.about-hero h1, .page-hero h1, .partners-hero h1 { font-size: clamp(42px, 6vw, 80px); }
.partners-hero h1 span { color: #8fd497; }
.about-hero p, .page-hero p, .partners-hero p { margin-top: 18px; font-size: 18px; color: var(--on-dark-soft); max-width: 640px; margin-left: auto; margin-right: auto; animation-delay: .15s; }
.about-hero p, .page-hero p, .partners-hero p { margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }

/* ---------- About ---------- */
.about-tab-content { display: none; }
.about-tab-content.active { display: block; animation: pageIn .5s var(--ease); }

.about-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-text h2 { font-size: 28px; margin: 44px 0 14px; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--text-soft); }
.about-text p strong { color: var(--text); }

.values-box { position: sticky; top: 100px; border-top: 2px solid var(--text); }
.values-box h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 18px 0; }
.value-item { padding: 20px 0; border-top: 1px solid var(--line); }
.value-item p { font-size: 15px; color: var(--text-soft); }
.value-item p + p { margin-top: 8px; }
.value-item p strong { font-family: var(--font-display); font-size: 17px; color: var(--text); margin-bottom: 4px; }

.team-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(72px, 10vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}
#about-tab-team .section-header { padding: clamp(64px, 9vw, 104px) var(--pad) 0; margin: 0 auto 56px; }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); margin-bottom: 18px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.25); transition: transform .8s var(--ease), filter .5s; }
.team-card:hover .team-photo img { transform: scale(1.04); filter: none; }
.team-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.team-title { font-size: 14px; color: var(--accent-ink); font-weight: 600; margin: 2px 0 10px; }
.team-bio { font-size: 15px; color: var(--text-soft); }

/* ---------- Services page ---------- */
.services-full { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--pad); }
.service-full-card {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.service-full-card:first-child { border-top: 1px solid var(--line); }
.service-full-card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .6s var(--ease);
}
.service-full-card > img[src$=".png"] { object-fit: contain; padding: 16px; }
.service-full-card:hover > img { transform: scale(1.02); }
.service-full-card h3 { font-size: 28px; margin-bottom: 14px; }
.service-full-card p { color: var(--text-soft); }
.service-full-card p + p { margin-top: 12px; }
.service-full-card p strong { color: var(--text); }
.service-full-card ul { margin-top: 12px; color: var(--text-soft); }
.service-full-card li { padding-left: 18px; position: relative; }
.service-full-card li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--accent); }
.service-full-card .btn-primary { background: transparent; color: var(--text); border-color: var(--line); padding: 10px 18px; font-size: 14px; }
.service-full-card .btn-primary:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Products ---------- */
.partners-hero { background: var(--ink); }
.partners-intro {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--pad) 32px;
  font-size: 18px;
  color: var(--text-soft);
}
.partners-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(72px, 10vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 24px;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.partner-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 48px -28px rgba(13, 27, 42, .35); }
.card-media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper); border-radius: 2px; margin-bottom: 20px; overflow: hidden; }
.card-media img { max-height: 82%; max-width: 82%; object-fit: contain; transition: transform .6s var(--ease); }
.partner-card:hover .card-media img { transform: scale(1.05); }
.product-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.partner-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.partner-desc { font-size: 15px; color: var(--text-soft); flex: 1; }
.partner-link { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--accent-ink); align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .3s; }

/* Solutions */
.solution-card { max-width: var(--wrap); margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.solution-card-header { display: flex; align-items: center; gap: 28px; padding: 36px; border-bottom: 1px solid var(--line); }
.solution-logo { width: 110px; flex-shrink: 0; }
.solution-tag { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.solution-heading h3 { font-size: 30px; }
.solution-subtitle { color: var(--text-soft); margin-top: 6px; }
.solution-body { padding: 36px; display: grid; gap: 16px; color: var(--text-soft); }
.solution-body h4 { color: var(--text); font-size: 18px; margin-top: 12px; }
.solution-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.solution-feature-list li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.solution-feature-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--accent); }

/* ---------- Partners & clients ---------- */
.logo-section-title { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--pad) 0; font-size: clamp(30px, 3.6vw, 44px); }
.logo-section-title + .partners-intro { padding-top: 12px; }
.partners-logo-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--pad) 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1px;
}
.partner-logo-plain {
  width: 100%;
  height: 120px;
  object-fit: contain;
  padding: 26px;
  background: #fff;
  outline: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.partner-logo-plain:hover { transform: scale(1.03); z-index: 1; position: relative; box-shadow: 0 10px 28px rgba(16,32,48,.10); }
#page-partners > footer { margin-top: clamp(56px, 8vw, 96px); }

/* ---------- Contact ---------- */
.contact-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.contact-info-box h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 28px; }
.contact-detail { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-detail-icon { color: var(--accent-ink); flex-shrink: 0; }
.contact-detail-icon svg { width: 22px; height: 22px; }
.contact-detail h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 6px; font-family: var(--font-body); font-weight: 600; }
.contact-detail p { font-size: 17px; }

.message-box {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
}
.message-icon { color: #8fd497; }
.message-box h3 { font-size: 30px; }
.message-box p { color: var(--on-dark-soft); }
.message-box p:last-child { font-size: 14px; }

.toast { display: none; position: fixed; bottom: 24px; right: 24px; z-index: 200; padding: 14px 20px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius); }

/* ---------- Scroll reveal ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-anim .reveal.visible { opacity: 1; transform: none; }
.js-anim .stat-item:nth-child(2), .js-anim .constr-card:nth-child(2), .js-anim .team-card:nth-child(3n+2), .js-anim .partner-card:nth-child(3n+2) { transition-delay: .08s; }
.js-anim .stat-item:nth-child(3), .js-anim .constr-card:nth-child(3), .js-anim .team-card:nth-child(3n), .js-anim .partner-card:nth-child(3n) { transition-delay: .16s; }
.js-anim .stat-item:nth-child(4), .js-anim .constr-card:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-content > * { opacity: 1; }
  .js-anim .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 20px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .nav-links.open { display: flex; animation: pageIn .35s var(--ease); }
  .nav-links > li > a { padding: 14px 0; font-size: 17px; }
  .nav-links > li > a::after { left: 0; right: auto; width: 24px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 8px 16px; }
  .dropdown-menu a { color: var(--on-dark-soft); }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-full-card { grid-template-columns: 200px 1fr; }
  .service-full-card .btn-primary { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .logo img { height: 42px; }
  .hero { min-height: 88vh; padding-bottom: 64px; }
  .hero p { font-size: 16px; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 18, 30, .7), rgba(8, 18, 30, .9)); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .service-card { grid-template-columns: 1fr; gap: 10px; }
  .construction-section .section-header { grid-template-columns: 1fr; gap: 16px; }
  .construction-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .constr-card:nth-child(n+4) { grid-column: span 1; }
  .constr-card:nth-child(6) { grid-column: span 2; }
  .featured-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .featured-media { aspect-ratio: auto; padding: 24px; }
  .featured-media img { width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; }
  .values-box { position: static; }
  .why-grid, .partners-grid, .team-grid { grid-template-columns: 1fr; }
  .service-full-card { grid-template-columns: 1fr; gap: 20px; }
  .service-full-card .btn-primary { grid-column: auto; }
  .service-full-card > img { max-width: 320px; }
  .solution-card-header { flex-direction: column; align-items: flex-start; padding: 24px; }
  .solution-body { padding: 24px; }
  .solution-feature-list { grid-template-columns: 1fr; }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Logo slideshow ---------- */
.logo-marquee {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 0 32px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track { display: flex; gap: 20px; width: max-content; animation: logo-scroll 45s linear infinite; }
.logo-marquee--reverse .logo-track { animation-direction: reverse; animation-duration: 30s; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track .partner-logo-plain { width: 200px; flex: 0 0 200px; border-radius: var(--radius); outline: none; border: 1px solid var(--line); }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .logo-track [aria-hidden="true"] { display: none; } }
@media (max-width: 640px) { .logo-track .partner-logo-plain { width: 150px; flex-basis: 150px; height: 96px; padding: 18px; } }

/* Show full product image */
.card-media.media-full { background: #fff; }
.card-media.media-full img { max-height: 96%; max-width: 96%; image-rendering: auto; }
.partner-card:hover .card-media.media-full img { transform: none; }
